feat: overhaul cursed apple sprite with custom tile data, vibrant palette, and dynamic pulsing glow
This commit is contained in:
1 parent
60bf111400
commit
08a4b41280
4 files changed
+44
-25
No files matched your search
@@ -138,13 +138,14 @@ void draw_apples_rotten(const GameState &state, const RenderAssets &assets,
|
||||
|
||||
void draw_apples_cursed(const GameState &state, const RenderAssets &assets,
|
||||
uint16_t &oamId) {
|
||||
const bool hflip = ((state.ticks % 6) < 3);
|
||||
for (const std::array<int, 2> &apple : state.cursed_apples) {
|
||||
if (oamId >= 128) {
|
||||
return;
|
||||
}
|
||||
oamSet(&oamSub, oamId, apple[0] * 8, apple[1] * 8, 0, 0, SpriteSize_8x8,
|
||||
SpriteColorFormat_256Color, assets.gfx_apple_cursed, -1, false,
|
||||
false, false, false, false);
|
||||
false, hflip, false, false);
|
||||
oamId++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user