Skip to content

Commit

Permalink
remove menu_item tests from example
Browse files Browse the repository at this point in the history
  • Loading branch information
tehsmeely committed Jan 5, 2024
1 parent c97678a commit b8902d8
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions examples/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ use {
crankstart_game,
geometry::{ScreenPoint, ScreenVector},
graphics::{Graphics, LCDColor, LCDSolidColor},
log_to_console,
system::System,
Game, Playdate,
},
Expand All @@ -25,24 +24,6 @@ struct State {
impl State {
pub fn new(_playdate: &Playdate) -> Result<Box<Self>, Error> {
crankstart::display::Display::get().set_refresh_rate(20.0)?;
System::get().add_menu_item(
"Say Hello",
Box::new(|| {
log_to_console!("Hello");
}),
)?;
System::get().add_menu_item(
"Say Goodbye",
Box::new(|| {
log_to_console!("Goodbye");
}),
)?;
System::get().add_menu_item(
"Sausage",
Box::new(|| {
log_to_console!("Sausage");
}),
)?;
Ok(Box::new(Self {
location: point2(INITIAL_X, INITIAL_Y),
velocity: vec2(1, 2),
Expand Down

0 comments on commit b8902d8

Please sign in to comment.