Add getblockat function
This commit is contained in:
parent
e678c68b66
commit
891d0f67a1
3 changed files with 95 additions and 21 deletions
44
game.h
44
game.h
|
@ -3,4 +3,48 @@
|
|||
|
||||
#include "map.h"
|
||||
|
||||
#define LCR_KEY_UP 0x00
|
||||
#define LCR_KEY_RIGHT 0x01
|
||||
#define LCR_KEY_DOWN 0x02
|
||||
#define LCR_KEY_LEFT 0x03
|
||||
#define LCR_KEY_A 0x04 ///< confirm, restart race
|
||||
#define LCR_KEY_B 0x05 ///< cancel, open menu
|
||||
|
||||
uint8_t LCR_keyPressed(uint8_t key);
|
||||
|
||||
void LCR_sleep(uint16_t timeMs);
|
||||
|
||||
void LCR_drawPixel(unsigned int x, unsigned int y, uint_fast16_t color);
|
||||
|
||||
/**
|
||||
Call at the start of the program.
|
||||
*/
|
||||
void LCR_gameInit(void);
|
||||
|
||||
/**
|
||||
Call right before program end.
|
||||
*/
|
||||
void LCR_gameEnd(void);
|
||||
|
||||
/**
|
||||
Call this repeatedly in your main loop, pass the current time as the number
|
||||
of milliseconds since program start. Returns 0 if program should end,
|
||||
otherwise 1.
|
||||
*/
|
||||
uint8_t LCR_gameStep(uint32_t timeMs);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void LCR_gameInit(void)
|
||||
{
|
||||
}
|
||||
|
||||
void LCR_gameEnd(void)
|
||||
{
|
||||
}
|
||||
|
||||
uint8_t LCR_gameStep(uint32_t time)
|
||||
{
|
||||
}
|
||||
|
||||
#endif // guard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue