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.

30 lines
605 B

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