Skip to content
Snippets Groups Projects
Commit b54e0f94 authored by Jantz's avatar Jantz
Browse files

Turret attack calling from main

parent e391b1db
No related branches found
No related tags found
No related merge requests found
......@@ -70,14 +70,20 @@ def main():
# Game state updates
if world.round_active:
# Spawn enemies at the correct time
for enemy in world.round_spawn_times:
if time.time() - world.round_start_time > enemy[1]:
world.enemies.append(enemy[0])
world.round_spawn_times.pop(0)
break
# Move enemies along the path
for enemy in world.enemies:
enemy.move_along_path(dt, world.waypoints)
# Turret logic
world.turret_attacks(dt)
if world.request_to_start_round:
world.current_round += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment