Skip to content

Commit 84b6a4c

Browse files
committed
Art Attack Hitboxes - Adjust how the hue is changed
1 parent 685180e commit 84b6a4c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

ttyd-tools/rel/source/codes.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,6 @@ void displayArtAttackHitboxes()
8181
uint8_t HSV[4]; // Extra slot at the end
8282
*reinterpret_cast<uint32_t *>(&HSV) = 0x00FFCCFF; // RGBA value is 0xCC0000FF
8383

84-
// Set up a variable to handle adjusting the hue for the lines of the hitboxes
85-
uint8_t HueAdjustment = 0;
86-
8784
// Get the address of the write gather pipe, and handle the value at the address as a float
8885
volatile float *WriteGatherPipe = reinterpret_cast<float *>(0xCC008000);
8986

@@ -125,10 +122,6 @@ void displayArtAttackHitboxes()
125122
continue;
126123
}
127124

128-
// Adjust the hue for the lines of the current hitbox
129-
HSV[0] += HueAdjustment;
130-
HueAdjustment += 30;
131-
132125
// Get the RGB equivalent of the HSV value; Alpha is discarded
133126
uint32_t HitboxLineColor = ttyd::fontmgr::HSV2RGB(HSV);
134127

@@ -245,6 +238,9 @@ void displayArtAttackHitboxes()
245238
*WriteGatherPipe = ScreenPointOut2[1];
246239
*WriteGatherPipe = 0;
247240
}
241+
242+
// Adjust the hue for the lines of the next hitbox
243+
HSV[0] += 45;
248244
}
249245
}
250246
}

0 commit comments

Comments
 (0)