One of my first programming projects. I tried to learn C and use curses...it is quite embarrassing looking back at it now :D
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
646 B

#ifndef _WORLD
#define _WORLD
#define MAX_ENTITIES 10
#define MAX_ITEMS 100
#include <structs.h>
#include <ncurses.h>
#include <time.h>
clock_t startTime, timerStart, timerEnd;
float secsElapsed;
WINDOW* viewportWin;
WINDOW* infoWin;
WINDOW* gameStartWin;
WINDOW* gameOverWin;
int stdscrRows,stdscrCols;
int viewportWinRows,viewportWinCols;
int infoWinRows,infoWinCols;
struct Entity allEntities[MAX_ENTITIES];
struct Item allItems[MAX_ITEMS];
#define MAX_PROJECTILES 100
struct Projectile allProjectiles[MAX_PROJECTILES];
#define INITIAL_SPAWN_NUM 10
int zombieModifier;
int itemModifier;
char *passableChars,*unpassableChars;
#endif