Labyrinth of the Minotaur A simple roguelike/RPG using a nokia 5110 screen
Dependencies: N5110 PowerControl mbed
WorldBuilder/WorldBuilder.h@20:e54792b89571, 2015-05-04 (annotated)
- Committer:
- ThomasBGill
- Date:
- Mon May 04 16:26:43 2015 +0000
- Revision:
- 20:e54792b89571
- Child:
- 21:aa4feee6aa39
Worldbuilder functions put into separate header and source
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ThomasBGill | 20:e54792b89571 | 1 | #include "mbed.h" |
ThomasBGill | 20:e54792b89571 | 2 | |
ThomasBGill | 20:e54792b89571 | 3 | #ifndef WORLDBUILDER_H |
ThomasBGill | 20:e54792b89571 | 4 | #define WORLDBUILDER_H |
ThomasBGill | 20:e54792b89571 | 5 | |
ThomasBGill | 20:e54792b89571 | 6 | #define WALL 0 |
ThomasBGill | 20:e54792b89571 | 7 | #define FLOOR 1 |
ThomasBGill | 20:e54792b89571 | 8 | #define ENTER 2 |
ThomasBGill | 20:e54792b89571 | 9 | #define EXIT 3 |
ThomasBGill | 20:e54792b89571 | 10 | #define FLOOR_SEEN 4 |
ThomasBGill | 20:e54792b89571 | 11 | #define CHEST 5 |
ThomasBGill | 20:e54792b89571 | 12 | #define CHEST_OPENED 6 |
ThomasBGill | 20:e54792b89571 | 13 | |
ThomasBGill | 20:e54792b89571 | 14 | #define RIGHT 0 |
ThomasBGill | 20:e54792b89571 | 15 | #define LEFT 1 |
ThomasBGill | 20:e54792b89571 | 16 | #define UP 2 |
ThomasBGill | 20:e54792b89571 | 17 | #define DOWN 3 |
ThomasBGill | 20:e54792b89571 | 18 | |
ThomasBGill | 20:e54792b89571 | 19 | #define SOUTH 0 |
ThomasBGill | 20:e54792b89571 | 20 | #define EAST 1 |
ThomasBGill | 20:e54792b89571 | 21 | |
ThomasBGill | 20:e54792b89571 | 22 | extern int map[84][48]; |
ThomasBGill | 20:e54792b89571 | 23 | |
ThomasBGill | 20:e54792b89571 | 24 | //Enterance coordinates |
ThomasBGill | 20:e54792b89571 | 25 | extern int enx; |
ThomasBGill | 20:e54792b89571 | 26 | extern int eny; |
ThomasBGill | 20:e54792b89571 | 27 | |
ThomasBGill | 20:e54792b89571 | 28 | //Exit coordinates |
ThomasBGill | 20:e54792b89571 | 29 | extern int exx; |
ThomasBGill | 20:e54792b89571 | 30 | extern int exy; |
ThomasBGill | 20:e54792b89571 | 31 | |
ThomasBGill | 20:e54792b89571 | 32 | extern int sx; |
ThomasBGill | 20:e54792b89571 | 33 | extern int sy; |
ThomasBGill | 20:e54792b89571 | 34 | extern int dir; |
ThomasBGill | 20:e54792b89571 | 35 | |
ThomasBGill | 20:e54792b89571 | 36 | extern int level; |
ThomasBGill | 20:e54792b89571 | 37 | |
ThomasBGill | 20:e54792b89571 | 38 | void Walls(); |
ThomasBGill | 20:e54792b89571 | 39 | void FirstRoom(); |
ThomasBGill | 20:e54792b89571 | 40 | void ExitRoom(); |
ThomasBGill | 20:e54792b89571 | 41 | void DungeonRoomBuilder(); |
ThomasBGill | 20:e54792b89571 | 42 | int Neighbours(int i, int j); |
ThomasBGill | 20:e54792b89571 | 43 | void DeadEnds(int d); |
ThomasBGill | 20:e54792b89571 | 44 | void Border(); |
ThomasBGill | 20:e54792b89571 | 45 | void MazeKill(); |
ThomasBGill | 20:e54792b89571 | 46 | void Maze(); |
ThomasBGill | 20:e54792b89571 | 47 | void DungeonBuilder(); |
ThomasBGill | 20:e54792b89571 | 48 | void LabyrinthBuilder(); |
ThomasBGill | 20:e54792b89571 | 49 | |
ThomasBGill | 20:e54792b89571 | 50 | #endif |