Commit e8f9adba authored by Adam Gausmann's avatar Adam Gausmann
Browse files

Cleanup

parent a7949d04
......@@ -170,7 +170,7 @@ func _ready():
#Add enitites to list
refresh()
#tick_loop()
tick_loop()
return
......
......@@ -478,11 +478,10 @@ func spawn_chests():
grid[spawn.y][spawn.x].elligible_hole = false
# Generates a new map
func generate_map(fill_percent, width, height, mutex):
func generate_map(fill_percent, width, height):
rooms.clear()
enemy_spawns.clear()
print("init")
initialize_grid(fill_percent, width, height)
for i in range(0, 3):
......
......@@ -262,7 +262,7 @@ func _update_map_inner(userdata):
if line != null:
line.free()
map_gen.generate_map(fill_percent, width, height, mutex)
map_gen.generate_map(fill_percent, width, height)
# Make sure enemies do not spawn inside a collidable tile
for coord in map_gen.enemy_spawns:
break_obstacle(coord.x, coord.y)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment