|
Ludum Dare 29
HackSoc's entry for the Ludum Dare Jam 29
|
#include <level.h>

Data Fields | |
| List | levels |
| List * | mobs |
| struct Mob * | player |
| int | depth |
| int | startx |
| int | starty |
| int | endx |
| int | endy |
| struct Cell * | cells [LEVELWIDTH][LEVELHEIGHT] |
A level is the current part of the game which is active, it gets rendered to the screen, has a bunch of mobs, and a single player. Levels form a doubly-linked list.
| struct Cell* Level::cells[LEVELWIDTH][LEVELHEIGHT] |
The map.
| int Level::depth |
The depth of the level.
| int Level::endx |
| int Level::endy |
The x and y positions of the stairs to the next level.
| List Level::levels |
The list of levels to which this belongs
| List* Level::mobs |
The list of mobs in the level.
| struct Mob* Level::player |
The player mob (must also be in mobs).
| int Level::startx |
| int Level::starty |
The x and y positions of the stairs from the previous level.
1.8.7