From a61e0aa6a31d6028eeb4ff45bb6c71f604641fea Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 30 Oct 2006 00:33:31 +0000 Subject: Added MAZOGS (changes by Paul Fearnley) --- source/main.c | 4 ++-- source/tapes.c | 36 +++++++++++++++++++++++++++++++++++- 2 files changed, 37 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/main.c b/source/main.c index 1a3aa8c..83bc543 100644 --- a/source/main.c +++ b/source/main.c @@ -90,6 +90,8 @@ static void Splash(void) int f; int y; + ZX81DisplayString("10 print '%the zx81 is ace%'\n20 goto 10"); + FB_Clear(); loadPCX(splashimg_bin,&img); @@ -146,8 +148,6 @@ static void Splash(void) y+=8; } - ZX81DisplayString("10 print '%the zx81 is ace%'\n20 goto 10"); - while(!(keysDown() & KEY_A)) { swiWaitForVBlank(); diff --git a/source/tapes.c b/source/tapes.c index 86da796..bc5ac8b 100644 --- a/source/tapes.c +++ b/source/tapes.c @@ -33,6 +33,8 @@ #include "cpatrol_inlay_bin.h" #include "sabotage_bin.h" #include "sabotage_inlay_bin.h" +#include "mazogs_bin.h" +#include "mazogs_inlay_bin.h" /* ---------------------------------------- STATIC DATA @@ -47,7 +49,7 @@ typedef struct const char *text; } Tape; -#define NO_TAPES 3 +#define NO_TAPES 4 static SoftKey maze_keys[]= { @@ -85,6 +87,20 @@ static SoftKey sabotage_keys[]= NUM_SOFT_KEYS }; +static SoftKey mazogs_keys[]= + { + SK_PAD_UP, SK_W, + SK_PAD_LEFT, SK_H, + SK_PAD_RIGHT, SK_J, + SK_PAD_DOWN, SK_S, + SK_PAD_A, SK_NEWLINE, + SK_PAD_R, SK_R, + SK_PAD_L, SK_L, + SK_PAD_START, SK_Y, + SK_PAD_SELECT, SK_V, + NUM_SOFT_KEYS + }; + static Tape tapes[NO_TAPES]= { { @@ -105,6 +121,24 @@ static Tape tapes[NO_TAPES]= "problem - the game is creating\n" "the maze." }, + { + mazogs_bin, + &mazogs_bin_size, + {0}, + mazogs_inlay_bin, + mazogs_keys, + "%Mazogs%\n" + "(c) 1981 Don Priestley\n\n" + "Find the treasure and\n" + "return to the start.\n" + "Avoid the %Mazogs% that roam\n" + "the maze.\n\n" + "Use joypad to move.\n" + "%select% to view map.\n" + "%start% to quit.\n" + "%L% or %R% shoulder to select\n" + "direction at start." + }, { cpatrol_bin, &cpatrol_bin_size, -- cgit v1.2.3