use emerald::{ font::FontKey, rendering::components::{Label, Sprite}, *, }; // Bunnymark is super disappointing right now, need to fix // https://github.com/Bombfuse/emerald/issues/10 #[derive(Clone, Debug)] struct Velocity { pub x: f32, pub y: f32, } impl Velocity { pub fn new(x: f32, y: f32) -> Self { Velocity { x, y } } } #[cfg_attr(target_os = "android", ndk_glue::main(backtrace = "on"))] pub fn main() { let mut settings = GameSettings::default(); settings.render_settings.resolution = (320 * 5, 180 * 5); emerald::start( Box::new(BunnymarkGame { count: 0, world: World::new(), fps_label: None, bunnymark_label: None, }), settings, ) } pub struct BunnymarkGame { count: u64, world: World, fps_label: Option