diff options
Diffstat (limited to 'Sprite.gd')
-rw-r--r-- | Sprite.gd | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -10,6 +10,7 @@ export var team = 0 export var has_moved = false export var in_check = false +export var killed = false # queue_free() isn't fast enough; get_nodes.by_group("piece") will still find this so mark explictly func get_move_pattern(): return self.move_patterns.get(piece) @@ -82,4 +83,5 @@ func get_piece_color_by_region(): return map func kill(): + killed = true queue_free() |