home *** CD-ROM | disk | FTP | other *** search
- global gpicl, gpicno, gshootpic, glife
-
- on setpalam
- set gpicl to [#aa1: #aa2, #ab1: #ab2, #ac1: #ac2, #ad1: #ad2, #ae1: #ae2, #ba1: #ba2, #bb1: #bb2, #bc1: #bc2, #bd1: #bd2, #be1: #be2, #ca1: #ca2, #cb1: #cb2, #cd1: #cd2, #ce1: #ce2, #ufo1: #ufo2]
- set the visible of sprite 4 to 0
- set gshootpic to 0
- set glife to 8
- end
-
- on initialize
- puppetSprite(5, 1)
- puppetSprite(8, 1)
- updateStage()
- end
-
- on appearpic
- set gpicno to getPropAt(gpicl, random(15))
- go(string(gpicno))
- end
-
- on returnexchange
- go("exchange")
- end
-
- on idle
- set the locH of sprite 4 to the mouseH
- set the locV of sprite 4 to the mouseV
- if not soundBusy(1) and the mouseDown then
- puppetSound("Blast")
- end if
- if soundBusy(1) then
- set the visible of sprite 4 to 1
- else
- set the visible of sprite 4 to 0
- end if
- updateStage()
- end
-
- on shoot
- end
-
- on hitpic
- puppetSound(3, "189")
- updateStage()
- go(string(getaProp(gpicl, gpicno)))
- end
-
- on hitufo
- puppetSound(3, "666")
- updateStage()
- go(string(getaProp(gpicl, gpicno)))
- end
-
- on damagechk
- set glife to glife - 1
- set barh to the locH of sprite 5
- set the locH of sprite 5 to barh - 47
- updateStage()
- if glife <= 0 then
- wait(60)
- puppetSprite(4, 0)
- puppetSprite(5, 0)
- puppetSprite(8, 0)
- set the visible of sprite 4 to 1
- go("over")
- exit
- end if
- end
-
- on damagechkufo
- set glife to glife - 2
- if glife <= 0 then
- wait(60)
- set barh to the locH of sprite 5
- set the locH of sprite 5 to 396
- updateStage()
- puppetSprite(4, 0)
- puppetSprite(5, 0)
- puppetSprite(8, 0)
- set the visible of sprite 4 to 1
- go("over")
- exit
- else
- set barh to the locH of sprite 5
- set the locH of sprite 5 to barh - 94
- updateStage()
- end if
- end
-
- on hitpointchk
- set gshootpic to gshootpic + 1
- set the memberNum of sprite 8 to the number of member "clear0" + gshootpic
- updateStage()
- if gshootpic >= 12 then
- set the memberNum of sprite 8 to the number of member "clear12"
- puppetSprite(4, 0)
- puppetSprite(5, 0)
- puppetSprite(8, 0)
- set the visible of sprite 4 to 1
- go("clear")
- exit
- end if
- end
-