Lib for the game characters of robozoec era

Revision:
2:d9440b3314bb
Parent:
1:14e5288790f4
Child:
3:704821ea028f
diff -r 14e5288790f4 -r d9440b3314bb gameCharacters.h
--- a/gameCharacters.h	Fri Apr 29 10:44:46 2016 +0000
+++ b/gameCharacters.h	Wed May 04 10:12:42 2016 +0000
@@ -2,9 +2,8 @@
 
 */
 
-int g_g1=0;         //global vaiable that is is 1 when the players gun is upgraded
-int g_g2=0;         //global vaiable that is is 1 when the players gun is upgraded for the second time
-int g_wave;         //test variable that flickers on and of to symbolize the player waving
+int g_g1;         //global vaiable that is is 1 when the players gun is upgraded
+int g_g2;         //global vaiable that is is 1 when the players gun is upgraded for the second time
 
 int g_recks_still_gun[10][10]= {            //global array for the main charachter (recks) when he is still
     {0,0,0,1,1,1,0,0,0,0},
@@ -58,56 +57,37 @@
     {0,0,0,0,0,0,0,0,0,0}
 };
 
-int g_recks_dead[10][10]= {           //global array for the main charachter (recks) when he dies
-    {0,0,0,1,1,1,0,0,0,0},
-    {0,0,0,1,1,1,0,0,0,0},
-    {0,0,0,1,1,1,0,g_wave,0,0},
-    {0,1,0,0,1,0,0,1,0,0},
-    {0,0,1,1,1,1,1,0,0,0},
-    {0,0,0,0,1,0,0,0,0,0},
-    {0,0,0,0,1,0,0,0,0,0},
-    {0,0,0,1,0,1,0,0,0,0},
-    {0,0,1,0,0,0,1,0,0,0},
-    {0,1,0,0,0,0,0,1,0,0}
+const int g_recks_shield[15][15]= {
+    {0,0,0,0,1,1,1,1,1,1,1,0,0,0,0},
+    {0,0,0,1,0,0,0,0,0,0,0,1,0,0,0},
+    {0,0,1,0,0,0,0,0,0,0,0,0,1,0,0},
+    {0,1,0,0,1,0,0,0,0,0,0,0,0,1,0},
+    {1,0,0,1,0,0,1,1,1,0,0,0,0,0,1},
+    {1,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
+    {1,0,0,0,1,0,1,1,1,0,1,0,0,0,1},
+    {1,0,0,0,0,1,0,1,0,1,0,0,0,0,1},
+    {1,0,0,0,0,0,1,1,1,0,0,0,0,0,1},
+    {1,0,0,0,0,0,0,1,0,0,0,0,0,0,1},
+    {1,0,0,0,0,0,0,1,0,0,0,0,0,0,1},
+    {0,1,0,0,0,0,1,0,1,0,0,0,0,1,0},
+    {0,0,1,0,0,1,0,0,0,1,0,0,1,0,0},
+    {0,0,0,1,1,0,0,0,0,0,1,1,0,0,0},
+    {0,0,0,1,0,0,0,0,0,0,0,1,0,0,0}
 };
 
-int g_bad_guy_still[11][8]= {       //global array for a mob with a gun while he is still
-    {0,0,1,1,1,0,0},
-    {0,1,1,1,1,1,0},
-    {0,0,1,1,1,0,0},
-    {0,0,1,1,1,0,0},
-    {1,1,0,1,0,0,0},
-    {0,1,1,1,0,0,0},
-    {0,0,0,1,0,0,0},
-    {0,0,0,1,0,0,0},
-    {0,0,0,1,0,0,0}
-};
-
-int g_bad_guy_moving[11][8]= {     //global array for a mob with a gun while he is moving
-    {0,0,1,1,1,0,0},
-    {0,1,1,1,1,1,0},
-    {0,0,1,1,1,0,0},
-    {0,0,1,1,1,0,0},
-    {1,1,0,1,0,0,0},
-    {0,1,1,1,0,0,0},
-    {0,0,0,1,0,0,0},
-    {0,0,1,0,1,0,0},
-    {0,1,0,0,0,1,0}
-};
-
-int g_mob_rat_p1[3][8]= {           //global array for a rat
+const int g_mob_rat_p1[3][8]= {           //global array for a rat
     {0,0,0,0,0,0,0,1},
     {0,1,1,1,0,0,1,0},
     {1,1,1,1,1,1,0,0}
 };
 
-int g_mob_rat_p2[3][8]= {           //second global array for a rat
+const int g_mob_rat_p2[3][8]= {           //second global array for a rat
     {0,0,0,0,0,0,1,0},
     {0,1,1,1,0,0,1,0},
     {1,1,1,1,1,1,0,0}
 };
 
-int g_mob_hound_p1[8][13]= {        //global array for a hound
+const int g_mob_hound_p1[8][13]= {        //global array for a hound
     {0,0,0,1,0,0,0,0,0,0,0,0,0},
     {0,1,1,1,0,0,0,0,0,0,0,1,0},
     {1,1,1,1,0,0,0,0,0,0,0,1,0},
@@ -118,7 +98,7 @@
     {0,0,0,1,0,0,0,0,0,0,1,0,0}
 };
 
-int g_mob_hound_p2[8][13]= {        //global array for a moving hound
+const int g_mob_hound_p2[8][13]= {        //global array for a moving hound
     {0,0,0,1,0,0,0,0,0,0,0,0,0},
     {0,1,1,1,0,0,0,0,0,0,0,0,1},
     {1,1,1,1,0,0,0,0,0,0,0,1,0},
@@ -129,7 +109,7 @@
     {1,0,0,0,0,0,0,0,0,0,0,0,1}
 };
 
-int g_mob_hound_dead[8][13]= {        //global array for a moving hound
+const int g_mob_hound_dead[8][13]= {        //global array for a moving hound
     {0,0,0,0,0,0,0,0,0,0,1,0,1},
     {0,0,1,0,0,1,0,1,0,1,0,0,1},
     {0,1,0,1,0,0,0,0,0,0,0,1,0},
@@ -140,7 +120,7 @@
     {0,0,0,0,1,0,0,0,0,0,0,0,0}
 };
 
-int g_mob_bear_p1[10][19]= {        //global array for a still bear
+const int g_mob_bear_p1[10][19]= {        //global array for a still bear
     {0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0},
     {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0},
@@ -153,7 +133,7 @@
     {0,0,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,0,0}
 };
 
-int g_mob_bear_p2[10][19]= {        //global array for a moving bear
+const int g_mob_bear_p2[10][19]= {        //global array for a moving bear
     {0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0},
     {0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0},
@@ -166,7 +146,7 @@
     {1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1}
 };
 
-int g_mob_bear_dead[10][19]= {        //global array for a still bear
+const int g_mob_bear_dead[10][19]= {        //global array for a still bear
     {0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
     {0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,1,0},
     {0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0},
@@ -180,7 +160,7 @@
 };
 
 
-int g_mob_bird_p1 [10][10]= {
+const int g_mob_bird_p1 [10][10]= {
     {0,0,0,0,1,0,0,0,0,0},
     {0,0,0,0,1,1,0,0,0,0},
     {0,0,0,0,1,1,1,0,0,0},
@@ -193,7 +173,7 @@
     {0,0,0,0,0,0,0,0,0,0}
 };
 
-int g_mob_bird_p2 [10][10]= {
+const int g_mob_bird_p2 [10][10]= {
     {0,0,0,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,0},
@@ -206,7 +186,7 @@
     {0,0,0,0,1,0,0,0,0,0}
 };
 
-int g_mob_bird_dead [10][10]= {
+const int g_mob_bird_dead [10][10]= {
     {0,0,0,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,0},
     {0,0,0,0,1,0,0,0,0,0},
@@ -219,7 +199,7 @@
     {0,0,0,0,0,0,0,0,0,0}
 };
 
-int cactus[12][5]= {
+const int cactus[12][5]= {
     {0,0,1,0,0},
     {0,0,1,0,0},
     {0,0,1,0,1},
@@ -234,7 +214,37 @@
     {0,0,1,0,0}
 };
 
-int g_t_rex[28][25]= {
+const int g_t_rex[28][25]= {
+    {0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+    {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+    {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+    {1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+    {1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
+    {1,1,1,1,1,1,1,1,1,1,0,0,0,0,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0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0,0}
+};
+const int g_t_rex_moving[28][25]= {
     {0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
@@ -258,44 +268,14 @@
     {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0}
-};
-int g_t_rex_moving[28][25]= {
-    {0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-    {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-    {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
-    {1,1,1,1,1,1,1,1,1,1,0,0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,1,1,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0},
-    {0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,1,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0},
+    {0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0},
     {0,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0}
 };
 
-int g_t_rex_attack[28][25]= {
+const int g_t_rex_attack[28][25]= {
     {0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
     {1,1,1,1,1,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
@@ -318,15 +298,15 @@
     {0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0},
     {0,0,0,0,0,0,0,0,0,0,1,1,1,1,0,1,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0},
-    {0,0,0,0,0,0,0,0,0,1,1,1,0,0,1,1,1,0,0,0,0,0,0,0,0}
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,1,1,0,0,0,0,0,0,0,0},
+    {0,0,0,0,0,0,0,0,0,1,1,1,0,1,1,1,0,0,0,0,0,0,0,0}
 };
 
-int g_fire_ball_p1[9][9]= {
+const int g_fire_ball_p1[9][9]= {
     {0,0,0,1,0,1,0,0,0},
     {0,0,0,0,0,0,0,0,0},
     {0,1,0,0,1,0,0,1,0},
@@ -338,7 +318,7 @@
     {0,0,0,1,0,1,0,0,0}
 };
 
-int g_fire_ball_p2[9][9]= {
+const int g_fire_ball_p2[9][9]= {
     {0,0,0,0,1,0,0,0,0},
     {0,0,1,0,0,0,1,0,0},
     {0,0,0,0,1,0,0,0,0},
@@ -350,20 +330,20 @@
     {0,0,0,0,1,0,0,0,0}
 };
 
-int g_clouds[3][342]= {
+const int g_clouds[3][342]= {
     {0,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,1,1,1,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0,1,0,1,0,1,0,1,0,1,0,0},
     {1,1,1,0,1,1,1,0,1,1,1,0,1,0,1,0,1,1,1}
 };
-int g_ammo[5][15]= {
+const int g_ammo[5][15]= {
     {1,1,1,0,1,0,1,0,1,0,1,0,1,1,1},
     {1,0,1,0,1,1,1,0,1,1,1,0,1,0,1},
     {1,1,1,0,1,0,1,0,1,0,1,0,1,0,1},
@@ -371,7 +351,17 @@
     {1,0,1,0,1,0,1,0,1,0,1,0,1,1,1}
 };
 
-int g_heart[5][5]= {
+const int g_speed_boost[7][14]= {
+    {1,0,0,0,0,1,0,0,0,0,1,0,0,0},
+    {0,1,0,0,0,0,1,0,0,0,0,1,0,0},
+    {0,0,1,0,0,0,0,1,0,0,0,0,1,0},
+    {0,0,0,1,0,0,0,0,1,0,0,0,0,1},
+    {0,0,1,0,0,0,0,1,0,0,0,0,1,0},
+    {0,1,0,0,0,0,1,0,0,0,0,1,0,0},
+    {1,0,0,0,0,1,0,0,0,0,1,0,0,0}
+};
+
+const int g_heart[5][5]= {
     {0,1,0,1,0},
     {1,1,1,1,1},
     {1,1,1,1,1},
@@ -379,7 +369,7 @@
     {0,0,1,0,0}
 };
 
-int g_ammo_pickUp[8][7]= {
+const int g_ammo_pickUp[8][7]= {
     {1,1,1,1,1,1,1},
     {1,0,0,0,0,0,1},
     {1,0,1,1,1,0,1},
@@ -390,7 +380,7 @@
     {1,1,1,1,1,1,1}
 };
 
-int g_padlock_p1[6][4]= {
+const int g_padlock_p1[6][4]= {
     {0,1,1,0},
     {1,0,0,1},
     {1,0,0,1},
@@ -399,7 +389,7 @@
     {1,1,1,1}
 };
 
-int g_padlock_p2[6][4]= {
+const int g_padlock_p2[6][4]= {
     {0,1,1,0},
     {1,0,0,1},
     {1,0,0,0},
@@ -408,7 +398,7 @@
     {1,1,1,1}
 };
 
-int zero[5][3]= {
+const int zero[5][3]= {
     {1,1,1},
     {1,0,1},
     {1,0,1},
@@ -416,7 +406,7 @@
     {1,1,1}
 };
 
-int one [5][3]= {
+const int one [5][3]= {
     {0,1,0},
     {1,1,0},
     {0,1,0},
@@ -424,7 +414,7 @@
     {1,1,1}
 };
 
-int two [5][3]= {
+const int two [5][3]= {
     {1,1,1},
     {0,0,1},
     {1,1,1},
@@ -432,7 +422,7 @@
     {1,1,1}
 };
 
-int three [5][3]= {
+const int three [5][3]= {
     {1,1,1},
     {0,0,1},
     {0,1,1},
@@ -440,7 +430,7 @@
     {1,1,1}
 };
 
-int four [5][3]= {
+const int four [5][3]= {
     {1,0,1},
     {1,0,1},
     {1,1,1},
@@ -448,7 +438,7 @@
     {0,0,1}
 };
 
-int five [5][3]= {
+const int five [5][3]= {
     {1,1,1},
     {1,0,0},
     {1,1,1},
@@ -456,7 +446,7 @@
     {1,1,1}
 };
 
-int six [5][3]= {
+const int six [5][3]= {
     {1,1,1},
     {1,0,0},
     {1,1,1},
@@ -464,7 +454,7 @@
     {1,1,1}
 };
 
-int seven [5][3]= {
+const int seven [5][3]= {
     {1,1,1},
     {0,0,1},
     {0,0,1},
@@ -472,7 +462,7 @@
     {0,0,1}
 };
 
-int eight [5][3]= {
+const int eight [5][3]= {
     {1,1,1},
     {1,0,1},
     {1,1,1},
@@ -480,7 +470,7 @@
     {1,1,1}
 };
 
-int nine [5][3]= {
+const int nine [5][3]= {
     {1,1,1},
     {1,0,1},
     {1,1,1},
@@ -488,6 +478,32 @@
     {0,0,1}
 };
 
+const float song1[]= {
+    0.108,
+    880,0,0,0,0,0,0,0,0,0,880,0,880,0,1568,0,
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+    698,0,0,0,0,0,0,0,0,0,698,0,698,0,1568,0,
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,1568,0,
+    880,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+    880,0,0,0,0,0,0,0,988,0,0,0,
+    1047,0,0,0,1047,0,0,0,988,0,880,0,0,0,0,0,
+    880,0,0,0,1568,0,0,0,0,0,880,0,0,0,
+    880,0,1568,0,0,0,0,0,1047,0,0,0,988,0,0,0,
+    880,0,0,0,0,0,0,0,988,0,0,0,
+    1047,0,0,0,1047,0,0,0,988,0,1047,0,0,0,0,0,
+    1319,0,0,0,1175,0,0,0,0,0,1319,0,0,0,
+    1319,0,1175,0,0,0,0,0,1319,0,1175,0,1319,0,1175,0,
+    880,0,0,0,0,0,0,0,1047,0,1319,0,
+    0,0,1760,0,0,0,2093,0,0,0,1976,0,0,0,1568,0,
+    1568,0,0,0,0,0,0,0,0,0,0,0,1760,0,1976,0,
+    0,0,2093,0,0,0,1760,0,0,0,2093,0,1568,0,0,0,
+    698,0,0,0,0,0,0,0,1568,0,1760,0,
+    0,0,1760,0,0,0,1760,0,2093,0,1976,0,0,0,0,0,
+    1319,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+    1319,1319,0,1319,0,1319,1175,1047,988,1319,0,0,0,0,0,0
+};
+
 
 
 
@@ -495,4 +511,3 @@
 
 
 
-