Make the background rotate again

This commit is contained in:
Gwilym Kuiper 2022-10-01 15:30:37 +01:00
parent dd2030d354
commit cde3bca0ea

View file

@ -48,7 +48,7 @@ fn main(mut gba: agb::Gba) -> ! {
let scroll_pos = (scroll_x as i16, scroll_y as i16); let scroll_pos = (scroll_x as i16, scroll_y as i16);
bg.set_scroll_pos(scroll_pos.into()); bg.set_scroll_pos(scroll_pos.into());
bg.set_transform((0, 0), (1, 1), 0); bg.set_transform((0, 0), (1, 1), rotation);
rotation += rotation_increase; rotation += rotation_increase;
if rotation >= num!(255.) { if rotation >= num!(255.) {