aboutsummaryrefslogtreecommitdiff
path: root/game/background
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:04:33 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-22 20:04:33 +0100
commita600cc55468a6513743ce916aa3da129270c23f0 (patch)
tree324eb574298b321dcfba69a5a29c59b0cc18f007 /game/background
parent73dea702bdedf48a2d2d26e7922b5ee935063cfd (diff)
more WIP zapper
Diffstat (limited to 'game/background')
-rw-r--r--game/background/HallwaySubScene.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/game/background/HallwaySubScene.cpp b/game/background/HallwaySubScene.cpp
index 4d96c94..9a6654a 100644
--- a/game/background/HallwaySubScene.cpp
+++ b/game/background/HallwaySubScene.cpp
@@ -153,11 +153,6 @@ void HallwaySubScene::add_sector_number(
Animator & sector_num_anim = obj.add_component<Animator>(
sector_num_sprite, ivec2(256, 128), uvec2(4, 4), Animator::Data {}
);
- int column = (sector_num - 1) / 4;
- int row = (sector_num - 1) % 4;
- sector_num_anim.set_anim(column);
- for (int i = 0; i < row; i++) {
- sector_num_anim.next_anim();
- }
+ sector_num_anim.data.frame++;
sector_num_anim.pause();
}