Let AI refactor everything and see if it breaks.

This commit is contained in:
2026-03-29 00:59:27 +01:00
parent 561b99b710
commit b873ac24ca
11 changed files with 656 additions and 576 deletions

24
include/game_render.h Normal file
View File

@@ -0,0 +1,24 @@
#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;
};
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