#ifndef _LCR_GAME_H #define _LCR_GAME_H #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