
Labyrinth of the Minotaur A simple roguelike/RPG using a nokia 5110 screen
Dependencies: N5110 PowerControl mbed
Revision 30:4a03611a3d99, committed 2015-05-09
- Comitter:
- ThomasBGill
- Date:
- Sat May 09 11:46:32 2015 +0000
- Parent:
- 29:89bc8c8aa8ac
- Child:
- 31:5b4a4d225ab4
- Commit message:
- Armour values reduced for balancing
Changed in this revision
--- a/Game.cpp Fri May 08 22:45:25 2015 +0000 +++ b/Game.cpp Sat May 09 11:46:32 2015 +0000 @@ -139,7 +139,7 @@ level = 0; //Player Health - ph = 15; + ph = PH_MAX; //Player weapon pw = 0; //0 to 4 @@ -397,8 +397,8 @@ int mr = level + 1; - if (mr > 4) { - mr = 4; + if (mr > 5) { + mr = 5; } lcd.printString("FIGHT!", 24, 2);
--- a/Game.h Fri May 08 22:45:25 2015 +0000 +++ b/Game.h Sat May 09 11:46:32 2015 +0000 @@ -48,11 +48,11 @@ { "Sword", 7 }, //3 { "Warhammer", 8 }, //4 //Armour - { "Cloth armour", 1 }, //5 - { "Leather armour", 2 }, //6 - { "Studded armour", 3 }, //7 - { "Chainmail vest", 4 }, //8 - { "Plate armour", 5 }, //9 + { "Cloth armour", 0 }, //5 + { "Leather armour", 1 }, //6 + { "Studded armour", 2 }, //7 + { "Chainmail vest", 3 }, //8 + { "Plate armour", 4 }, //9 }; struct ENEMIES {
--- a/WorldBuilder/WorldBuilder.cpp Fri May 08 22:45:25 2015 +0000 +++ b/WorldBuilder/WorldBuilder.cpp Sat May 09 11:46:32 2015 +0000 @@ -94,7 +94,7 @@ } } - if (rand() % 2 == 0) { + if (rand() % 3 == 0) { int i = rand() % sw + sx; int j = rand() % sh + sy; map[i][j] = CHEST;