home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global knock, simonpos, trylist, rand, head, step, simonlist, possiblelist
- if knock = 1 then
- cursor([52, 53])
- else
- cursor([50, 51])
- end if
- if knock = 1 then
- set new to animehit()
- if ((new = 1) and (count(trylist) = count(simonlist))) or (new = 0) then
- set simonpos to 1
- set rand to random(2)
- set knock to 0
- set step to 1
- set head to 0
- mydelay(0.20000000000000001)
- if new > 0 then
- add(simonlist, getAt(possiblelist, random(count(possiblelist))) + 1)
- else
- puppetSound("buzzer")
- end if
- set trylist to []
- if count(simonlist) = 11 then
- repeat with quik = 2 to 6
- puppetSprite(quik, 0)
- end repeat
- go("rew1")
- else
- go(the frame - 16)
- end if
- end if
- end if
- end
-