added graphics

This commit is contained in:
2015-01-21 19:57:53 +01:00
parent d3ccd913c6
commit d204978936
4 changed files with 20 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ impl<'a> StaticSprite<'a> {
impl<'a> Sprite for StaticSprite<'a> {
fn render(&self, renderer: &Renderer, destination: &Rect) {
let _ = renderer.copy(self.texture, Some(Rect::new(80 + (16 * self.x), 16 * self.y, 16, 16)), Some(*destination));
let _ = renderer.copy(self.texture, Some(Rect::new(self.x, self.y, 16, 16)), Some(*destination));
}
}