Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

634 B
Raw Blame
/* What the game needs from the calculator (plat_eadk.c), or from a computer for the tests. */
#ifndef UNO_PLAT_H
#define UNO_PLAT_H
#include <stdbool.h>
#include <stdint.h>

enum { K_OK = 1, K_SHIFT = 2, K_UP = 4, K_DOWN = 8, K_LEFT = 16, K_RIGHT = 32, K_BACK = 64, K_HOME = 128 };
uint32_t plat_keys(void);
uint32_t plat_millis(void);
void plat_sleep(uint32_t ms);
void plat_push(int x, int y, int w, int h, const uint16_t *px);
bool plat_save(const char *name, const void *data, uint32_t len);
const uint8_t *plat_load(const char *name, uint32_t *len);
uint32_t plat_random(void);
void plat_begin(void);
int plat_end(void);
#endif