Files
snakePlus/include/game_render.h
T
phillip 0e7477031f Add cursed apple: a status-effect apple that inverts controls
Eating a cursed apple inverts the snake's steering for
CURSE_DURATION_TICKS ticks, shown on the top screen while active. The
sprite is a recolored copy of the rotten-apple tile since all existing
sprite tiles are already in use.
2026-09-03 22:27:22 +02:00

26 lines
654 B
C

#ifndef GAME_RENDER_H
#define GAME_RENDER_H
#include <nds.h>
#include "game_state.h"
struct RenderAssets {
PrintConsole *topScreen = nullptr;
PrintConsole *bottomScreen = nullptr;
u16 *gfx_segment = nullptr;
u16 *gfx_segment_small = nullptr;
u16 *gfx_head = nullptr;
u16 *gfx_apple = nullptr;
u16 *gfx_tail = nullptr;
u16 *gfx_apple_rotten = nullptr;
u16 *gfx_apple_cursed = nullptr;
};
void draw_game(const GameState &state, const RenderAssets &assets);
void draw_stats(const GameState &state, bool internals, bool musicEnabled, uint8_t frame);
void blink_apples(const GameState &state, u16 *gfx_apple);
#endif