home *** CD-ROM | disk | FTP | other *** search
- symbols
- message arrived
- message startup
- message pulse
- sound tieenginewhine
- thing bomberdummy0
- thing bomberdummy1
- thing bomberdummy2
- thing bomberdummy3
- template bombertemplate
-
- end
-
- code
- startup:
- lasttemplate=1;
- setpulse(15);
- return;
-
- pulse:
- randx=rand();
- // if (randx>.25){
- curtemplate=bomberdummy0[rand()*4];
- while (lasttemplate==curtemplate) {
- curtemplate=bomberdummy0[rand()*4];
- }
- call movebomber;
- // }
- return;
-
- movebomber:
- print("here comes the bomber");
- vtiebomber=creatething(bombertemplate, curtemplate);
- capturething(vtiebomber);
- xloop=playsoundthing(tieenginewhine, vtiebomber, 1.0, 10, 75, 129);
- movetoframe(vtiebomber, 1, 25);
- return;
-
- arrived:
- print("stopping sound");
- stopsound(xloop, 3.0);
- sleep(3.3);
- print("destroying vtb");
- destroything(vtiebomber);
- lasttemplate=curtemplate;
- return;
-
-
-
- end
-
-