From b0f9e65d66d27189646f830862052f4cc52fb8c3 Mon Sep 17 00:00:00 2001 From: Corwin Date: Fri, 5 Apr 2024 00:43:19 +0100 Subject: [PATCH] make combo movement faster as the old bug has been fixed --- examples/combo/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/combo/src/lib.rs b/examples/combo/src/lib.rs index 2d11d87f..69332ea4 100644 --- a/examples/combo/src/lib.rs +++ b/examples/combo/src/lib.rs @@ -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) / 8).clamp(-Num::new(8), Num::new(8)); + position.x += (Num::new(game_idx * 30 * 8) - position.x) / 8; bg.set_pos(&mut vram, position.floor());