diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-06-12 22:19:54 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-06-12 22:19:54 +0200 |
commit | 6d8852b83e8498fe220bd67a3f645146518443b3 (patch) | |
tree | 7b0fc75bc875647cc9b1d44cead6f4f7d17e356e /src/main.rs | |
parent | cee4589ff116394b94643b37e251c2be67fe369c (diff) |
Made animated pug
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index c98c80e..88f0a2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,6 +50,7 @@ impl App<AssetId> for BugBasherGame { self.lives -= 1; } } + self.home.advance(seconds); if self.lives <= 0 { self.game_over = true; } @@ -111,7 +112,7 @@ impl App<AssetId> for BugBasherGame { let mut renderer = renderer.sprite_mode(); renderer.draw( &Affine::translate(self.home.pos.x, self.home.pos.y), - SpriteId::Home + self.home.sprite ); for bug in &self.bugs { renderer.draw( |