home *** CD-ROM | disk | FTP | other *** search
- on startGame
- global hero, gameControl, background, obstacles, hit, projector, started
- hit = 8
- puppetSprite(hit, 1)
- obstacles = []
- hero = new(script("hero parent"))
- background = new(script("background parent"))
- repeat with i = 12 to 18
- append(obstacles, new(script("obstacles parent"), i))
- end repeat
- if not started then
- gameControl = new(script("gameControl parent"))
- started = 1
- else
- initLevel(gameControl)
- end if
- end
-