Merge branch 'master' of github.com:Logaritmisk/rust-smb

This commit is contained in:
2016-06-15 19:51:36 +02:00
3 changed files with 13 additions and 22 deletions

View File

@@ -39,9 +39,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))
}
}
}