make combo movement faster as the old bug has been fixed

This commit is contained in:
Corwin 2024-04-05 00:43:19 +01:00
parent 549c90b746
commit b0f9e65d66
No known key found for this signature in database

View file

@ -95,8 +95,7 @@ fn get_game(gba: &mut agb::Gba) -> Game {
position.x = Num::new(game_idx * 30 * 8); position.x = Num::new(game_idx * 30 * 8);
} }
position.x += position.x += (Num::new(game_idx * 30 * 8) - position.x) / 8;
((Num::new(game_idx * 30 * 8) - position.x) / 8).clamp(-Num::new(8), Num::new(8));
bg.set_pos(&mut vram, position.floor()); bg.set_pos(&mut vram, position.floor());