Thomas Gill / Mbed 2 deprecated LabyrinthOfTheMinotaur

Dependencies:   N5110 PowerControl mbed

Revision:
17:8790dd599b25
Parent:
16:a26d7519830e
Child:
18:98ea2b787894
--- a/main.cpp	Sat May 02 22:36:05 2015 +0000
+++ b/main.cpp	Sat May 02 23:51:25 2015 +0000
@@ -67,7 +67,7 @@
 };
 
 struct ENEMIES {
-    char  EName[14]; //Enemy name
+    char  EName[9]; //Enemy name
     int   EHealth; //Enemy health
     int   EDamage; //Enemy damage
     int   EArmour; //Enemy armour
@@ -77,10 +77,13 @@
 };
 
 ENEMIES  EnemyList[] = {
-    {"Huge Rat", 5, 3, 0, 25, 70, 40},  //0- Huge Rat
-    {"Goblin", 6, 3, 2, 25, 60, 30}, //1- Goblin
-    {"Skeleton", 8, 5, 3, 10, 50, 10}, //2- Skeleton
-    {"Giant Spider", 6, 5, 0, 40, 60, 50}, //3- Giant Spider
+    //Name          HP Dmg Arm  Dg  Ht  Spd
+    {"Huge Rat",    5,  3,  0,  25, 70, 40},  //0- Huge Rat
+    {"Goblin",      6,  3,  2,  25, 60, 30}, //1- Goblin
+    {"Skeleton",    8,  5,  3,  10, 50, 10}, //2- Skeleton
+    {"Wraith",      5,  4,  0,  40, 60, 50}, //3- Wraith
+    {"Ogre",        10, 7,  3,  10, 35, 15}, //4- Ogre
+    {"Minotaur",    15, 8,  5,  20, 45, 100}, //5- Minotaur
 };
 
 //Variables
@@ -261,7 +264,7 @@
             }
         }
     }
-    if(rand()%4 == 0) {
+    if(rand()%3 == 0) {
         int i = rand()%sw + sx;
         int j = rand()%sh + sy;
         map[i][j] = CHEST;
@@ -636,6 +639,7 @@
                         lcd.clear();
                         lcd.printString("You run away", 6, 2);
                         lcd.refresh();
+                        wait(1.0);
                         Sleep();
                         break;