home *** CD-ROM | disk | FTP | other *** search
- global gc, gh20, gh21, gv20, gv21, gch20, gch21, gscore, gpana
-
- on initialize
- set gscore to 0
- set gch20 to 0
- set gch21 to 0
- set gpana to 0
- saraset20()
- end
-
- on saraset20
- set gch20 to gch20 + 1
- set the puppet of sprite 20 to 1
- set the visible of sprite 20 to 1
- set gc to 0
- set gh20 to random(150) * -1
- set gv20 to random(190) + 40
- end
-
- on saraset21
- set gch21 to gch21 + 1
- set the puppet of sprite 21 to 1
- set the visible of sprite 21 to 1
- set gc to 0
- set gh21 to random(500) * -1
- set gv21 to random(200) + 40
- end
-
- on saramove20
- if gh20 > 500 then
- saraset20()
- else
- set gc to (gc + 1) mod 4
- set the castNum of sprite 20 to the number of cast "sara" + gc
- set gh20 to gh20 + random(4) + 30
- set gv20 to gv20 + random(4) - 5
- set the locH of sprite 20 to gh20
- set the locV of sprite 20 to gv20
- updateStage()
- end if
- end
-
- on saramove21
- if gh21 > 500 then
- saraset21()
- else
- set gc to (gc + 1) mod 4
- set the castNum of sprite 21 to the number of cast "sara" + gc
- set gh21 to gh21 + random(8) + 30
- set gv21 to gv21 + random(40) - 20
- set the locH of sprite 21 to gh21
- set the locV of sprite 21 to gv21
- updateStage()
- end if
- end
-
- on wait t
- startTimer()
- repeat while the timer <= t
- nothing()
- end repeat
- end
-
- on sarashoot20
- if sprite 20 intersects 24 and the mouseDown then
- repeat with n = 6 to 10
- set the castNum of sprite 20 to n
- updateStage()
- end repeat
- set the visible of sprite 20 to 0
- set gv20 to -100
- set gscore to gscore + 1
- tokuten()
- end if
- end
-
- on sarashoot21
- if sprite 21 intersects 24 and the mouseDown then
- repeat with n = 6 to 10
- set the castNum of sprite 21 to n
- updateStage()
- end repeat
- set the visible of sprite 21 to 0
- set gv21 to -100
- set gscore to gscore + 1
- tokuten()
- end if
- end
-
- on tokuten
- global ghitoketa, gfutaketa
- if gscore < 10 then
- put 0 & gscore into field "tensu"
- else
- put gscore into field "tensu"
- end if
- puppetSprite(2, 1)
- puppetSprite(3, 1)
- set ghitoketa to char 1 of field "tensu"
- set gfutaketa to char 2 of field "tensu"
- set the castNum of sprite 3 to ghitoketa + 100
- set the castNum of sprite 2 to gfutaketa + 100
- updateStage()
- end
-
- on appeared
- global ahitoketa, afutaketa
- if (gch20 + gch21) < 10 then
- put 0 & gch20 + gch21 into field "appeared"
- else
- put gch20 + gch21 into field "appeared"
- end if
- puppetSprite(4, 1)
- puppetSprite(5, 1)
- set ahitoketa to char 1 of field "appeared"
- set afutaketa to char 2 of field "appeared"
- set the castNum of sprite 5 to ahitoketa + 100
- set the castNum of sprite 4 to afutaketa + 100
- updateStage()
- end
-
- on mouseMotion
- puppetSprite(24, 1)
- if the mouseDown = 0 then
- set the locH of sprite 24 to the mouseH
- set the locV of sprite 24 to the mouseV - 8
- updateStage()
- end if
- end
-