Let AI refactor everything and see if it breaks.
This commit is contained in:
24
include/game_render.h
Normal file
24
include/game_render.h
Normal 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
|
||||
Reference in New Issue
Block a user