diff --git a/MazezaM/mazezam.c b/MazezaM/mazezam.c index 92375e5..286c1e0 100644 --- a/MazezaM/mazezam.c +++ b/MazezaM/mazezam.c @@ -11,7 +11,7 @@ z88dk version by Stefano Bodrato (www.z88dk.org) - VT100 version by Anna Christina Naß + VT100 version with 42 levels by Anna Christina Naß Build: @@ -27,7 +27,7 @@ #include // We use printf(); putchar(); #include // strlen for the Level name centering. -#define LEVELS 12 // Number of Levels +#define LEVELS 42 // Number of Levels #define TRUE 1 #define FALSE 0 @@ -147,20 +147,20 @@ void Level(int MazeNumber) switch (MazeNumber) { case 1: - LevelName="Humble Origins";uWidth=7;uHeight=2;lx=rx=1; + LevelName="Humble Origins";uWidth=7;uHeight=2;lx=1;rx=1; MazeLine[1]=" # # "; MazeLine[2]=" # ## "; break; case 2: - LevelName="Easy Does It";uWidth=8;uHeight=lx=3;rx=2; + LevelName="Easy Does It";uWidth=8;uHeight=3;lx=3;rx=2; MazeLine[1]=" # ###"; MazeLine[2]=" # # # "; MazeLine[3]=" # # # "; break; case 3: - LevelName="Up, Up and Away";uWidth=5;uHeight=lx=11;rx=1; + LevelName="Up, Up and Away";uWidth=5;uHeight=11;lx=11;rx=1; MazeLine[1]= " # "; MazeLine[2]= " # ##"; MazeLine[3]= " ## "; @@ -183,7 +183,7 @@ void Level(int MazeNumber) break; case 5: - LevelName="To and Fro";uWidth=13;uHeight=6;lx=rx=1; + LevelName="To and Fro";uWidth=13;uHeight=6;lx=1;rx=1; MazeLine[1]=" ##### "; MazeLine[2]="# ##### ### "; MazeLine[3]=" # ### #### "; @@ -208,7 +208,7 @@ void Level(int MazeNumber) break; case 8: - LevelName="Be Prepared";uWidth=7;uHeight=6;lx=5;rx=3; + LevelName="Be Prepared";uWidth=7;uHeight=6;lx=5;rx=3; MazeLine[1]=" # "; MazeLine[2]=" #### "; MazeLine[3]=" ### ##"; @@ -218,7 +218,7 @@ void Level(int MazeNumber) break; case 9: - LevelName="Two Front Doors";uWidth=16;uHeight=rx=7;lx=1; + LevelName="Two Front Doors";uWidth=16;uHeight=7;lx=1;rx=7; MazeLine[1]=" ####### "; MazeLine[2]=" #### #### # # "; MazeLine[3]="## ## ###### # #"; @@ -237,7 +237,7 @@ void Level(int MazeNumber) break; case 11: - LevelName="Double Cross";uWidth=9;uHeight=lx=7;rx=3; + LevelName="Double Cross";uWidth=9;uHeight=7;lx=7;rx=3; MazeLine[1]=" # #### "; MazeLine[2]=" # # ## "; MazeLine[3]=" # #### #"; @@ -261,6 +261,296 @@ void Level(int MazeNumber) MazeLine[10]=" "; break; + case 13: + LevelName="Hidden corridor ";uWidth=12;uHeight=10;lx=4;rx=1; + MazeLine[1]= " ## # # ### "; + MazeLine[2]= " # ## # "; + MazeLine[3]= " ## # ## "; + MazeLine[4]= " ######## "; + MazeLine[5]= " # # ## "; + MazeLine[6]= "# ## # # # "; + MazeLine[7]= " ####### # #"; + MazeLine[8]= " ###### # "; + MazeLine[9]= " # # # # ## "; + MazeLine[10]="# # # # # "; + break; + + case 14: + LevelName="First Principles";uWidth=5;uHeight=2;lx=2;rx=1; + MazeLine[1]=" # # "; + MazeLine[2]=" # "; + break; + + case 15: + LevelName="Baby Steps";uWidth=7;uHeight=3;lx=1;rx=2; + MazeLine[1]=" ## ##"; + MazeLine[2]=" # # # "; + MazeLine[3]=" ## # "; + break; + + case 16: + LevelName="Conway's Game Of Death";uWidth=14;uHeight=12;lx=12;rx=3; + MazeLine[1]= " ## ## #"; + MazeLine[2]= " ## ## #"; + MazeLine[3]= "# # # # # # "; + MazeLine[4]= "### ## ## ####"; + MazeLine[5]= " # # # # # # "; + MazeLine[6]= " ### ### "; + MazeLine[7]= " ### ### "; + MazeLine[8]= " # # # # # # "; + MazeLine[9]= "### ## ## ### "; + MazeLine[10]="# # ### # # "; + MazeLine[11]=" ## ## "; + MazeLine[12]=" ## ## "; + break; + + case 17: + LevelName="Opening Gambit";uWidth=7;uHeight=4;lx=2;rx=3; + MazeLine[1]=" # # "; + MazeLine[2]=" ## ## "; + MazeLine[3]=" # # # "; + MazeLine[4]="# ### "; + break; + + case 18: + LevelName="Collatz";uWidth=17;uHeight=5;lx=4;rx=5; + MazeLine[1]="### # # # # "; + MazeLine[2]=" # ## # # ## "; + MazeLine[3]="### # # # ### # "; + MazeLine[4]=" # # ## # # "; + MazeLine[5]="### # # # ### "; + break; + + case 19: + LevelName="Fishcake";uWidth=10;uHeight=7;lx=2;rx=7; + MazeLine[1]=" ## ### # "; + MazeLine[2]=" ## # # "; + MazeLine[3]="# ##### "; + MazeLine[4]=" # ### #"; + MazeLine[5]="# # # # # "; + MazeLine[6]=" # ## ## "; + MazeLine[7]=" ##### #"; + break; + + case 20: + LevelName="Ego";uWidth=12;uHeight=5;lx=5;rx=5; + MazeLine[1]=" # # # # "; + MazeLine[2]=" # # # ## "; + MazeLine[3]=" ## # # #"; + MazeLine[4]=" # # ## #"; + MazeLine[5]=" # # ## #"; + break; + + case 21: + LevelName="Little Rascal";uWidth=5;uHeight=4;lx=4;rx=4; + MazeLine[1]=" # "; + MazeLine[2]=" # ##"; + MazeLine[3]=" # # "; + MazeLine[4]=" # #"; + break; + + case 22: + LevelName="Leap Frog";uWidth=7;uHeight=4;lx=1;rx=4; + MazeLine[1]=" # # # "; + MazeLine[2]="# ### "; + MazeLine[3]=" # # ##"; + MazeLine[4]=" # # "; + break; + + case 23: + LevelName="Shuttles";uWidth=7;uHeight=5;lx=1;rx=5; + MazeLine[1]=" ### #"; + MazeLine[2]=" # # "; + MazeLine[3]=" # ###"; + MazeLine[4]="# # # #"; + MazeLine[5]=" # # "; + break; + + case 24: + LevelName="The Nudge";uWidth=8;uHeight=3;lx=3;rx=3; + MazeLine[1]="# # "; + MazeLine[2]=" # # ##"; + MazeLine[3]=" ## ### "; + break; + + case 25: + LevelName="A Dog On A Plinth";uWidth=8;uHeight=9;lx=9;rx=9; + MazeLine[1]=" ## #"; + MazeLine[2]=" ## "; + MazeLine[3]=" ### #"; + MazeLine[4]=" #### "; + MazeLine[5]=" #### "; + MazeLine[6]=" # ##"; + MazeLine[7]=" # #"; + MazeLine[8]=" # #"; + MazeLine[9]=" #### "; + break; + + case 26: + LevelName="The Pit";uWidth=5;uHeight=10;lx=1;rx=1; + MazeLine[1]= " # # "; + MazeLine[2]= "# # "; + MazeLine[3]= " # ##"; + MazeLine[4]= " ## "; + MazeLine[5]= " # # "; + MazeLine[6]= " ## "; + MazeLine[7]= "# ## "; + MazeLine[8]= " # #"; + MazeLine[9]= " # #"; + MazeLine[10]=" ## "; + break; + + case 27: + LevelName="Duck Commander";uWidth=7;uHeight=8;lx=8;rx=1; + MazeLine[1]=" ## "; + MazeLine[2]=" # ###"; + MazeLine[3]="# #### "; + MazeLine[4]="# # # "; + MazeLine[5]=" ## "; + MazeLine[6]="# # # "; + MazeLine[7]=" # ## #"; + MazeLine[8]=" # # "; + break; + + case 28: + LevelName="Nudge-nudge";uWidth=7;uHeight=4;lx=2;rx=2; + MazeLine[1]=" ## ## "; + MazeLine[2]=" # # # "; + MazeLine[3]=" # ### "; + MazeLine[4]=" ## "; + break; + + case 29: + LevelName="Ragged Rascle";uWidth=6;uHeight=5;lx=4;rx=2; + MazeLine[1]=" # "; + MazeLine[2]=" ## #"; + MazeLine[3]=" ## # "; + MazeLine[4]=" # ###"; + MazeLine[5]=" # "; + break; + + case 30: + LevelName="Knot Theory";uWidth=6;uHeight=6;lx=1;rx=6; + MazeLine[1]=" # # "; + MazeLine[2]="# # # "; + MazeLine[3]=" # # "; + MazeLine[4]="# ## "; + MazeLine[5]="# ## "; + MazeLine[6]=" # ##"; + break; + + case 31: + LevelName="Rack and Pinion";uWidth=10;uHeight=4;lx=1;rx=3; + MazeLine[1]=" ## # # "; + MazeLine[2]="### # ## "; + MazeLine[3]=" ## # # #"; + MazeLine[4]="## ### # "; + break; + + case 32: + LevelName="Blue Meanie";uWidth=7;uHeight=4;lx=1;rx=4; + MazeLine[1]=" ## # "; + MazeLine[2]=" # # #"; + MazeLine[3]="# ### "; + MazeLine[4]=" # # "; + break; + + case 33: + LevelName="Great Things";uWidth=7;uHeight=4;lx=3;rx=4; + MazeLine[1]=" # # "; + MazeLine[2]=" ## ## "; + MazeLine[3]=" # # #"; + MazeLine[4]=" # ###"; + break; + + case 34: + LevelName="Just Enough";uWidth=8;uHeight=5;lx=3;rx=3; + MazeLine[1]="# # ## "; + MazeLine[2]="## # ## "; + MazeLine[3]=" # # #"; + MazeLine[4]="# #### "; + MazeLine[5]=" # # "; + break; + + case 35: + LevelName="The Secret Staircase";uWidth=11;uHeight=4;lx=1;rx=3; + MazeLine[1]=" ### ## "; + MazeLine[2]=" ## ## # #"; + MazeLine[3]="# #### ## "; + MazeLine[4]="# ## "; + break; + + case 36: + LevelName="Clear The Way";uWidth=8;uHeight=5;lx=4;rx=2; + MazeLine[1]=" # ###"; + MazeLine[2]=" ## #"; + MazeLine[3]=" # ### #"; + MazeLine[4]=" # # ## "; + MazeLine[5]=" # # ##"; + break; + + case 37: + LevelName="A Mismatch Made In Heaven";uWidth=9;uHeight=4;lx=4;rx=1; + MazeLine[1]=" # # "; + MazeLine[2]="## #### "; + MazeLine[3]="### ## "; + MazeLine[4]=" # # "; + break; + + case 38: + LevelName="Zen Garden";uWidth=7;uHeight=6;lx=1;rx=1; + MazeLine[1]=" # ## "; + MazeLine[2]=" # ## "; + MazeLine[3]="#### # "; + MazeLine[4]=" # ##"; + MazeLine[5]="# #### "; + MazeLine[6]=" "; + break; + + case 39: + LevelName="The Wumpus Room";uWidth=18;uHeight=5;lx=1;rx=5; + MazeLine[1]=" #### ### ### # "; + MazeLine[2]="## # # ### ### # "; + MazeLine[3]=" ## ## #### #### "; + MazeLine[4]="#### ## ### ## # "; + MazeLine[5]=" # # ## # ## #"; + break; + + case 40: + LevelName="Double Decker";uWidth=9;uHeight=7;lx=2;rx=5; + MazeLine[1]=" # ## "; + MazeLine[2]=" ## # # #"; + MazeLine[3]="# # ## "; + MazeLine[4]=" ########"; + MazeLine[5]=" # #### "; + MazeLine[6]="# ## # "; + MazeLine[7]=" # ### "; + break; + + case 41: + LevelName="Back to Front";uWidth=11;uHeight=10;lx=1;rx=10; + MazeLine[1]= " "; + MazeLine[2]= "########## "; + MazeLine[3]= "### #### "; + MazeLine[4]= "# # ## # "; + MazeLine[5]= " # #### "; + MazeLine[6]= "##### ## "; + MazeLine[7]= " ### ## ## "; + MazeLine[8]= " ## ###"; + MazeLine[9]= " ##########"; + MazeLine[10]=" "; + break; + + case 42: + LevelName="The Beast";uWidth=10;uHeight=7;lx=1;rx=1; + MazeLine[1]=" # ## # "; + MazeLine[2]="# # ### ##"; + MazeLine[3]=" # # # "; + MazeLine[4]=" ## ## ###"; + MazeLine[5]=" # # # # "; + MazeLine[6]=" ## # ### "; + MazeLine[7]=" # ### # "; + break; default: ClearScreen(); diff --git a/MazezaM/mazezam.com b/MazezaM/mazezam.com index f126813..b18f7cc 100644 Binary files a/MazezaM/mazezam.com and b/MazezaM/mazezam.com differ