A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
752 B

  1. extends "res://scripts/player.gd"
  2. onready var placement = preload("res://scripts/placement.gd").new()
  3. # --- Godot overrides ---
  4. func _ready():
  5. # connect("start_placement", self, "add_wall")
  6. # connect("confirm_placement", self, "finalize_wall")
  7. placement.player = self
  8. placement.start_action = "hero_1_place_wall"
  9. placement.confirm_action = "hero_1_confirm_wall"
  10. placement.delete_action = "hero_1_remove_wall"
  11. placement.scene_path = "res://scenes/heroes/1_wall.tscn"
  12. placement.max_placed = 100
  13. func _process(delta):
  14. if is_network_master():
  15. placement.place_input()
  16. func _exit_tree():
  17. ._exit_tree()
  18. if placement:
  19. placement.clear()
  20. # --- Player overrides ---
  21. func spawn():
  22. .spawn()
  23. if placement:
  24. placement.clear()
  25. # --- Own ---