implement more ways of panicking

This commit is contained in:
Corwin Kuiper 2021-03-06 20:09:23 +00:00
parent 0613849da9
commit 9b0bdb17e5

View file

@ -14,8 +14,13 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize {
loop { loop {
input.update(); input.update();
// if A is pressed, draw out of range
if input.is_just_pressed(gba::input::Button::A) { if input.is_just_pressed(gba::input::Button::A) {
bitmap.draw_point(display::WIDTH, 0, 0x05); bitmap.draw_point(display::WIDTH, 0, 0x05);
} }
// if B is pressed, try take another bitmap
if input.is_just_pressed(gba::input::Button::B) {
gba.display.bitmap4();
}
} }
} }