mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Make the background rotate again
This commit is contained in:
parent
dd2030d354
commit
cde3bca0ea
|
@ -48,7 +48,7 @@ fn main(mut gba: agb::Gba) -> ! {
|
|||
|
||||
let scroll_pos = (scroll_x as i16, scroll_y as i16);
|
||||
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;
|
||||
if rotation >= num!(255.) {
|
||||
|
|
Loading…
Reference in a new issue