]> git.seodisparate.com - RockPaperScissorsDuel/commitdiff
Fix color of falling anims
authorStephen Seo <seo.disparate@gmail.com>
Thu, 2 Feb 2023 07:34:10 +0000 (16:34 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Thu, 2 Feb 2023 07:34:10 +0000 (16:34 +0900)
Previous implementation had red color drawn for blue side by mistake.

src/3d_renderer.cc

index c5f49e2bc078322894dd0ad0a4b58de65eb07292..dcddf38d757f79370582b20ce198269460fb34f1 100644 (file)
@@ -806,7 +806,7 @@ int Renderer3D::setup_anims(int idx, int score) {
       auto falling_anims = std::make_unique<AnimConcurrent>(nullptr);
       for (int i = 0; i < ANIM_FALLING_AMT; ++i) {
         falling_anims->push_anim(std::make_unique<AnimFalling2D>(
-            A3F{p2_pos.x, p2_pos.y, 0.0F}, A4C{255, 200, 200, 255},
+            A3F{p2_pos.x, p2_pos.y, 0.0F}, A4C{200, 200, 255, 255},
             &spriteSheet, p2_dims, i < ANIM_FALLING_OPP_THRESHOLD,
             &deferred_2d_draw_map));
       }