survivor

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

commit
a3e7d6be3cf7eebf9fd0ebf5aef1c8279c8fd623
parent
da5b1865f79aa68fd7e0556b166a8a864a28838b
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-02-19 13:19
rename "hero" sprite to "player"

there are no heros in this story…

Diffstat

R img/hero.ppm -> img/player.ppm 0
M src/main.rs 4 ++--
M src/sprites.rs 2 +-

3 files changed, 3 insertions, 3 deletions


diff --git a/img/hero.ppm b/img/player.ppm

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

@@ -367,7 +367,7 @@ fn main() {
  367   367                     &mut screen,
  368   368                     width / 2.0,
  369   369                     height / 2.0,
  370    -1                     &sprites::HERO,
   -1   370                     &sprites::PLAYER,
  371   371                     player.face == Dir::Left,
  372   372                 );
  373   373                 player_rendered = true;
@@ -382,7 +382,7 @@ fn main() {
  382   382                 &mut screen,
  383   383                 width / 2.0,
  384   384                 height / 2.0,
  385    -1                 &sprites::HERO,
   -1   385                 &sprites::PLAYER,
  386   386                 player.face == Dir::Left,
  387   387             );
  388   388         }

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

@@ -4,7 +4,7 @@ pub const HEIGHT: usize = 24;
    4     4 pub const WIDTH: usize = 18;
    5     5 pub type Sprite = [[[u8; 3]; WIDTH]; HEIGHT];
    6     6 
    7    -1 pub const HERO: Sprite = ppm::include_ppm!("hero");
   -1     7 pub const PLAYER: Sprite = ppm::include_ppm!("player");
    8     8 pub const DIAMOND: Sprite = ppm::include_ppm!("diamond");
    9     9 
   10    10 pub const BAT: Sprite = ppm::include_ppm!("bat");