diff --git a/player.c b/player.c index 17273eb..c71b809 100644 --- a/player.c +++ b/player.c @@ -88,8 +88,8 @@ void player_Advance(System_Player *sys, Duration deltaTime) { sys->super->particle, vec2_Add(vec2_Random(-5, 5, -30, 30), to_pos), vec2(rand_DoubleRange(650, 700) * -p->faceDirection, rand_DoubleRange(-100, 100)), - 7, rand_DoubleRange(10, 16), 3, - duration_FromSeconds(rand_DoubleRange(1.5, 2.0)), &render_ModeInverse); + 7, rand_DoubleRange(10, 16), 4, + duration_FromSeconds(rand_DoubleRange(4.0, 5.0)), &render_ModeRotate); } } diff --git a/render_util.cpp b/render_util.cpp index 89c575e..08878d9 100644 --- a/render_util.cpp +++ b/render_util.cpp @@ -69,6 +69,13 @@ const FillMode render_ModeInverse = { .rotate = {.microseconds = 0}, .dissolve = {.microseconds = 0}, .fadein = false}; +extern const FillMode render_ModeRotate = { + .rop2 = R2_COPYPEN, + .style = BS_SOLID, + .hatch = 0, + .rotate = {.microseconds = 100000}, + .dissolve = {.microseconds = 0}, + .fadein = false}; void render_SetModes(FillMode mode, TimePoint since) { diff --git a/render_util.h b/render_util.h index 6f2ced3..62d437c 100644 --- a/render_util.h +++ b/render_util.h @@ -50,12 +50,13 @@ typedef struct { // style = BS_SOLID, // others = 0 extern const FillMode render_ModeDefault; - // Fill mode that inverses the screen. // rop2 = R2_NOT, // style = BS_SOLID, // others = 0 extern const FillMode render_ModeInverse; +// Fill mode that rotates. +extern const FillMode render_ModeRotate; typedef struct _App App;