Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MotionSensor
Diff: main.cpp
- Revision:
- 45:8725b4171646
- Parent:
- 44:cc4cecfc639f
- Child:
- 46:f09711580d4a
--- a/main.cpp Tue May 07 23:53:29 2019 +0000
+++ b/main.cpp Wed May 08 12:40:52 2019 +0000
@@ -29,6 +29,7 @@
float global_contrast = 0.5;
Player *player;
Room *rooms[MAX_ROOMS_MAP_Y][MAX_ROOMS_MAP_X];
+bool valid_rooms[MAX_ROOMS_MAP_Y][MAX_ROOMS_MAP_X];
RoomEngine *room_engine;
// Objects
@@ -72,9 +73,12 @@
while(1) { // Floor Loop
for (int i = 0; i < MAX_ROOMS_MAP_X; i++) {
for (int j = 0; j < MAX_ROOMS_MAP_Y; j++) {
- rooms[j][i] = new Room(4, 2);
+ rooms[j][i] = new Room(rand() % 1, 10);
}
}
+ rooms[7][6]->set_boss_doorway(true);
+ delete rooms[8][6];
+ rooms[8][6] = new Room(0,10);
// Rooms Generation
while(1) { // Room Loop