home *** CD-ROM | disk | FTP | other *** search
- on start
- global offset, right, up, direction, mup, mright, shield, armor, level, max_shield, exact, speed_of_astroids, max_littleships, max_littlebullets, max_astroids, player_acc, max_shipspeed, little_ships_bullets, bullets_speed, max_bullets, bulletlist, astroidlist, lil_list, lil_bulletlist
- preLoad(1, 200)
- set max_shield to shield
- set right to 0.0
- set up to 0.0
- set mup to 0.0
- set mright to 0.0
- set the castNum of sprite 10 to direction + offset
- set speed_of_astroids to 10
- set max_littleships to 0
- set max_littlebullets to 0
- set max_astroids to 1
- set little_ships_bullets to 3
- set bullets_speed to 20
- set lil_bulletlist to []
- set mright to 0
- set bulletlist to []
- set astroidlist to []
- set lil_list to []
- repeat with t = 1 to max_littleships
- add(lil_list, birth(script "lil_ship script", count(lil_list) + 23))
- end repeat
- repeat with t = 1 to max_littlebullets
- setAt(lil_bulletlist, t, 0)
- end repeat
- repeat with t = 1 to max_astroids
- set n to random(2)
- if n = 1 then
- set h to random(200) - 400
- end if
- if n = 2 then
- set h to random(200) + 800
- end if
- set V to random(800) - 400
- set num to random(5) + 67
- add(astroidlist, birth(script "astroid script", count(astroidlist) + 12, h, V, num))
- end repeat
- repeat with t = 1 to max_bullets
- setAt(bulletlist, t, 0)
- end repeat
- end
-