Fixes (Thanks clippy!).

This commit is contained in:
2016-06-15 16:09:52 +02:00
parent 4c2b5a994c
commit d89d2b0d32
3 changed files with 13 additions and 22 deletions

View File

@@ -25,9 +25,9 @@ impl<'a> PlayerGraphicsComponent<'a> {
pub fn new(texture: &'a Texture) -> PlayerGraphicsComponent<'a> {
PlayerGraphicsComponent {
flip_horizontal: Cell::new(false),
sprite_standing: RefCell::new(StaticSprite::new(&texture, 80, 32)),
sprite_running: RefCell::new(AnimatedSprite::new(&texture, 96, 32, 3, 10.0)),
sprite_jumping: RefCell::new(StaticSprite::new(&texture, 160, 32))
sprite_standing: RefCell::new(StaticSprite::new(texture, 80, 32)),
sprite_running: RefCell::new(AnimatedSprite::new(texture, 96, 32, 3, 10.0)),
sprite_jumping: RefCell::new(StaticSprite::new(texture, 160, 32))
}
}
}