Mag gen & work towards AI
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user