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.

602 B
Raw Blame
/* Plants vs. Zombies: the screens, from the title to the lawn and back (screens.c). */
#ifndef PVZ_SCREENS_H
#define PVZ_SCREENS_H
#include <stdbool.h>
#include <stdint.h>

void game_init(void);
void game_frame(uint32_t keys);   /* a hundredth of a second */
void game_draw(void);
extern bool g_running;
extern int g_state;
/* the lawn as the camera sees it; sod: how far the sod rows are rolled out (-1 all) */
void show_lawn(int sod);
enum {
  ST_TITLE, ST_MENU, ST_LEVELS, ST_DAVE, ST_PAN, ST_CHOOSE, ST_READY, ST_PLAY, ST_PAUSE, ST_WON, ST_AWARD, ST_LOST,
  ST_ALMANAC, ST_SHOP, ST_HELP
};
#endif