Mag gen & work towards AI

This commit is contained in:
2024-01-21 16:39:13 +01:00
parent 405b374b9a
commit 9e3deaf3b0
20 changed files with 341 additions and 21 deletions

View File

@@ -6,12 +6,6 @@ var HP: int = 8
@export
var color_str: String = "ffff00"
func _ready():
var tile_map: TileMap = get_node("%tile_map")
var tile_pos = tile_map.local_to_map(Vector2i(int(position.x), int(position.y)))
if(tile_map.get_cell_source_id(0, tile_pos) != -1):
push_error("Enemy placed at tile in use, freeing!")
queue_free()
func take_damage(dmg):
playAudio("Bomb_Drop.wav")