game control stuff - 1 of these
score
lives
current number of jumpers
required number of jumpers
JumpA - signals to prevent a jump starting if it will result in two jumpers
JumpB - needing 'bouncing' at the same time - have not really thought it through yet
other stuff probably
object control stuff - 1 firemen, 9 jumpers, 1 faller, 2 flash - maybe more
is it active ?
type - fireman, jumper, faller, impact flash( when faller hits the floor)
current lcd image
process status for jumpers - waiting to jump, bouncing, hit the deck, dying, reached ambulance etc
my brain hurts
initialise game
clear score
set number of lives
turn off all lcd images
set current number of jumpers to 0
set required number of jumpers to 1
set starting position of firemen
turn on firemen lcd image
control firemen
read input
use input to determine required lcd image
turn of current lcd image / turn on required lcd image
do we need a new jumper ?
is number of jumpers < needed jumpers
yes - start a jumper
if < 9 jumpers
is there is a jumper waiting to jump
yes - forget it
no - get the next available jumper
make active
set process to begin
add to current number of jumpers
no - based on the score, calculate the required number of jumpers
process jumpers
if time to process
for each jumper
if process is begin
can we jump - determining differs if its an A jumper or B jumper
yes - set next process - bouncing
disable current lcd item and select next
set step to 1
no - signal jump to yes
if process is bouncing
disable current lcd item and select next
if step = catch 1, catch 2 or catch3
if firemen not in position
process = dropped
else
score a point
if step = last
process = success
add to step count
if step = jump 1, jump 2 or jump 3 - prevent jumps that result in simultaneous 'catches'
signal jumpA to no
if step = jump 4, jump 5 or jump 6
signal jumpB to no
if process is dropped
disable current lcd item and select dropped lcd items for this catch position
set process to dead
if process is dead
decrease jumper count
enable the next angel and decrease number of lives
if number of lives is 0 signal end of game
turn off this jumper
if process is success
decrease jumper count
turn off this jumper