diff options
Diffstat (limited to 'world.c')
-rw-r--r-- | world.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -8,6 +8,7 @@ void init_world(World* w) { w->frame = 0; w->freeze = 0; init_player(&w->player); + init_laser(&w->laser); } Particle* inst_particle( @@ -55,6 +56,8 @@ Deathzone* inst_deathzone( void update_world(World* w, const App* a) { int i; + if (w->laser.life) + update_laser(&w->laser); if (w->freeze) { w->freeze--; return; @@ -80,5 +83,7 @@ void ren_world(const World* w, struct Renderer* r) { ren_particle(&w->particles[i], r); for (i = 0; i < w->enemy_count; i++) ren_enemy(&w->enemies[i], r); + if (w->laser.life) + ren_laser(&w->laser, r); ren_hud(w, r); } |