Easter Maze
Put some bounce into Easter with 12-year-old Martin Hollin's
sparkling program ...
WHY don't you go to work on the Micro-egg maze game and see
how many Easter chicks you can hatch?
The object is to help the chicks to hatch by collecting the
four eggs in the corners of the maze and taking them one at a
time to the centre where they will become Easter chicks.
Trying to stop you is a bouncing spring rabbit which chases
you around the maze.
If he catches you one of your three lives is lost and you have
to start again.
However if you outwit the rabbit and hatch all four eggs you
move onto the next sheet - which has two rabbits chasing you.
With each new sheet the number of rabbits increases, to a maximum
of eight at the highest level.
Your only defence against these predators is a carrot which
you can drop anywhere in the maze.
The first rabbit to reach the carrot will stop for a random
length of time to eat it.
You cannot kill the rabbit - only slow it down.
If it changes direction you can lay another carrot in its path,
but the first one will disappear.
When you have lost all three lives your total score and the
hi-score is displayed and an option for another game offered.
Your score increases by a random amount depending on the time
it takes the rabbit to eat the carrot, and also by five points
for every egg picked up.
A further five points are gained when the egg hatches.
The keys S (to slow down play) and F (to return to normal fast
play) add an extra dimension for the more inexperienced or younger
player.
They can be pressed at any time during the game.
At the start of the main program the graphics for the different
characters are displayed. You press the space bar to start playing.
Below the maze there is a continuous display of lives left,
score, energy, fast/slow mode in operation, and an egg (if one
is being carried) and the number of chicks which have hatched.
You won't need egging on to play this Easter game throughout
the year.
Happy hatching!
KEYS
* Up
/ Down
Z Left
X Right
Space Drop a carrot
S Slow down
F Return to fast play
P Pause (Press P again to re-start)
MAJOR PROCEDURES
PROCINIT Initialises all variables, strings and characters.
PROCSCREEN Draw maze.
PROCTEXT Prints score/lives/energy/egg/chicks at bottom of maze.
PROCMOVE Moves person.
PROCRABBITSMOVE Moves rabbit(s).
PROCEGGS Checks to see if you are on an egg.
PROCCHECK Checks to see if you are dead.
PROCSPLAT Kills person and takes away a life.
PROCFEED Sets up variables for carrot to appear.
PROCPFEED Prints carrot is "space" pressed.
PROCSTOPRABBIT Stops a rabbit for random time if he lands on carrot.
PROCNSHEET Sets up a new sheet.
PROCEASYDIF Checks to see if S or S pressed for fast or slow mode.
MAJOR VARIABLES
A% & Z% General loop counters
B%(N) True or false if egg is in a corner.
BO% Bounce for rabbit.
E% Energy
FE% True or false for carrot on screen.
FX%, FY% X and Y co-ordinates of carrot.
H% Hi-score.
L% Level.
LI% Lives
RX%(N), RY%(N) X and Y co-ordinates of carrot.
S% Score.
SL% True if slow mode chosen.
X%, Y% X and Y co-ordinates of carrot.
CARRY% True if you are carrying an egg.
EGG% Number of eggs left.
TRU% True if rabbit lands on person or your energy runs out.
A$(N) Nth line of maze.
CHICK$ Chick.
DROP$ How many chicks you have hatched.
EGG$ Prints an egg.
P$ Prints the person.
SPA$ Prints a space over an egg.