void profSlideLeft(u8 index) { if (bgid_get_x_offset(2) < 0) { bgid_mod_x_offset(2, 0x200, 1); return; } tasks[index].function = (u32) profThisWorld; }
void profSlideRight(u8 index) { if (check_a_pressed(0)) return; /* * Slide right until he is positioned correctly */ if (bgid_get_x_offset(2) > -0x3600) { bgid_mod_x_offset(2, 0x200, 2); return; } tasks[index].function = (u32) profAdvice; }
void sky_scroll(u8 task_id) { bgid_mod_x_offset(0, bgid_get_x_offset(0) + 64, 0); }