use sdl2::video::FullscreenType;
use time::PreciseTime;
-use app::*;
+use game::app::*;
use common::Point2D;
-mod app;
+mod game;
#[macro_use] mod common;
mod boll;
mod sprites;
let radius = 110.0 + size as f32 * 0.5;
let angle = (mario_angle as f32 - 90.0) * PI / 180.0;
let offset2 = point!((angle.cos() * radius) as i32, (angle.sin() * radius) as i32);
- app.canvas.copy_ex(app.sprites.get("mario"), None, Rect::new(offset.x + offset2.x, offset.y + offset2.y, size as u32, size as u32), mario_angle, sdl2::rect::Point::new(size / 2, size / 2), false, false).unwrap();
+ app.canvas.copy_ex(
+ app.sprites.get("mario"),
+ None, Rect::new(offset.x + offset2.x, offset.y + offset2.y, size as u32, size as u32),
+ mario_angle,
+ sdl2::rect::Point::new(size / 2, size / 2),
+ false, false).unwrap();
mario_angle += 1.0;
if mario_angle >= 360.0 { mario_angle -= 360.0 }
}