UI work, placing traps, removing traps, disarming traps, new sound fx.
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
extends Node
|
||||
|
||||
enum TrapType{
|
||||
BOMB,
|
||||
MINE,
|
||||
GAS,
|
||||
FORCE_PANEL,
|
||||
SWITCH,
|
||||
PITFALL
|
||||
}
|
||||
|
||||
const blinder_template = preload("res://templates/blinder.tscn")
|
||||
const one_shot_template = preload("res://templates/one_shot.tscn")
|
||||
|
||||
const vs_man_level = preload("res://scenes/multiplayer_test.tscn")
|
||||
|
||||
@@ -41,3 +35,11 @@ func start_vs_man() -> void:
|
||||
var spawner = get_tree().get_first_node_in_group("level_spawner") as MultiplayerSpawner
|
||||
spawner.add_child(level)
|
||||
|
||||
|
||||
func oneshot(stream : AudioStream) -> void:
|
||||
var shot = one_shot_template.instantiate()
|
||||
shot.stream = stream
|
||||
if level:
|
||||
level.add_child(shot)
|
||||
else:
|
||||
add_child(shot)
|
||||
|
||||
Reference in New Issue
Block a user