fn main() {
println!("starting...");
- let mut app = App::new();
+ let mut app = App::new()
+ .with_resolution(SCREEN_WIDTH as u16, SCREEN_HEIGHT as u16)
+ .with_fps(60)
+ .with_state(Box::new(ActiveState::new()))
+ .with_title("SDL test")
+ .start();
app.load_sprites(&[
("block", "res/block.bmp"),
("mario", "res/mario-trans.png"),