Labyrinth of the Minotaur A simple roguelike/RPG using a nokia 5110 screen

Dependencies:   N5110 PowerControl mbed

WorldBuilder/WorldBuilder.h

Committer:
ThomasBGill
Date:
2015-05-07
Revision:
22:dae750e4d749
Parent:
21:aa4feee6aa39
Child:
35:2c290fa78f1d

File content as of revision 22:dae750e4d749:

#include "mbed.h"

#ifndef WORLDBUILDER_H
#define WORLDBUILDER_H

#define WALL 0
#define FLOOR 1
#define ENTER 2
#define EXIT 3
#define FLOOR_SEEN 4
#define CHEST 5
#define CHEST_OPENED 6

#define RIGHT 0
#define LEFT 1
#define UP 2
#define DOWN 3

#define MAP_WIDTH 84
#define MAP_HEIGHT 48

extern int map[MAP_WIDTH][MAP_HEIGHT];

//Enterance coordinates
extern int enx;
extern int eny;

//Exit coordinates
extern int exx;
extern int exy;

extern int sx;
extern int sy;
extern int dir;

extern int level;

//Player coordinates
extern int px;
extern int py;

void Walls();
void FirstRoom();
void ExitRoom();
void DungeonRoomBuilder();
int Neighbours(int i, int j);
void DeadEnds(int d);
void Border();
void MazeKill();
void Maze();
void DungeonBuilder();
void LabyrinthBuilder();
void World();

#endif