Move out GameObject and components.

This commit is contained in:
2016-06-08 00:03:35 +02:00
parent a4f31c0397
commit 4f1d72b94f
4 changed files with 62 additions and 69 deletions

View File

@@ -3,12 +3,10 @@ use std::cell::RefCell;
use sdl2::render::{Texture, Renderer};
use sdl2::rect::Rect;
pub trait Sprite {
fn render(&self, f64, &mut Renderer, &Rect);
}
pub struct StaticSprite<'a> {
texture: &'a Texture,
x: i32,
@@ -35,7 +33,6 @@ impl<'a> Sprite for StaticSprite<'a> {
}
}
pub struct AnimatedSprite<'a> {
texture: &'a Texture,
x: i32,