Changeset 708 for soft/giet_vm/applications/raycast/game.h
- Timestamp:
- Oct 1, 2015, 4:09:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/raycast/game.h
r683 r708 2 2 #define __GAME_H 3 3 4 #include <stdint.h>5 #include <stdbool.h>6 4 7 5 #define M_PI (3.14159f) … … 11 9 #define TIME_TOTAL (30) 12 10 13 typedef struct 11 typedef struct 14 12 { 15 13 float x; … … 20 18 typedef struct 21 19 { 22 uint8_ttile[10][10];23 uint8_tw;24 uint8_th;25 float startX;26 float startY;27 float startDir;20 char tile[10][10]; 21 char w; 22 char h; 23 float startX; 24 float startY; 25 float startDir; 28 26 } Map; 29 27 30 28 typedef struct 31 { 32 Player player; 33 Map *map; 34 int mapId; 35 int timeLeft; 29 { 30 Player player; 31 Map *map; 32 int mapId; 33 int timeLeft; 34 int exit; // exit requested 36 35 } Game; 37 36 38 int gameLocate(int x, int y); 39 void gameRun(); 37 38 void gameInit(); 39 int gameLocate(int x, int y); 40 void gameControl(); 40 41 void gameTick(); 41 Game *gameInstance();42 42 43 43 #endif // __GAME_H
Note: See TracChangeset
for help on using the changeset viewer.