survivor

graphical action game for the linux terminal
git clone https://git.ce9e.org/survivor.git

commit
b6d88b80c224108d28947b3c1dc30b1152c3f87b
parent
bd6433ad0224f492220a4ed40d51c0d7664feaba
Author
Viktor Bahr <viktorbahr@posteo.net>
Date
2023-03-26 15:49
feat: render projectiles

Diffstat

M src/game.rs 9 +++++++++

1 files changed, 9 insertions, 0 deletions


diff --git a/src/game.rs b/src/game.rs

@@ -300,5 +300,14 @@ impl Game {
  300   300                 self.player.face == Dir::Left,
  301   301             );
  302   302         }
   -1   303 
   -1   304         for projectile in self.projectiles.iter() {
   -1   305             win.sprite(
   -1   306                 projectile.p.x + dx,
   -1   307                 projectile.p.y + dy,
   -1   308                 projectile.t.sprite,
   -1   309                 false,
   -1   310             );
   -1   311         }
  303   312     }
  304   313 }