diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-06 10:26:03 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-06 10:26:03 +0100 |
commit | d4f443070017c5c2e6a938bf4d0a86b70ae6beaa (patch) | |
tree | f3a6f399981d69e66916544e34066af6bce3fd93 /game/background/HallwaySubScene.cpp | |
parent | ec69f40540317215d0f30e1f8e43d0e18450f8cc (diff) |
revert Animator
Diffstat (limited to 'game/background/HallwaySubScene.cpp')
-rw-r--r-- | game/background/HallwaySubScene.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/game/background/HallwaySubScene.cpp b/game/background/HallwaySubScene.cpp index 9a6654a..4d96c94 100644 --- a/game/background/HallwaySubScene.cpp +++ b/game/background/HallwaySubScene.cpp @@ -153,6 +153,11 @@ void HallwaySubScene::add_sector_number( Animator & sector_num_anim = obj.add_component<Animator>( sector_num_sprite, ivec2(256, 128), uvec2(4, 4), Animator::Data {} ); - sector_num_anim.data.frame++; + 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.pause(); } |