25 lines
617 B
C
25 lines
617 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;
|
|
};
|
|
|
|
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
|