Section 1
//fadein_40 (bloodcar02_fla.fadein_40)
package bloodcar02_fla {
import flash.display.*;
public dynamic class fadein_40 extends MovieClip {
public function fadein_40(){
addFrameScript(29, frame30);
}
function frame30(){
this.stop();
this.visible = false;
}
}
}//package bloodcar02_fla
Section 2
//liltree01_62 (bloodcar02_fla.liltree01_62)
package bloodcar02_fla {
import flash.display.*;
public dynamic class liltree01_62 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 3
//Symbol12_59 (bloodcar02_fla.Symbol12_59)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol12_59 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 4
//Symbol21_67 (bloodcar02_fla.Symbol21_67)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol21_67 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 5
//Symbol22_63 (bloodcar02_fla.Symbol22_63)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol22_63 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 6
//Symbol24_60 (bloodcar02_fla.Symbol24_60)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol24_60 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 7
//Symbol26_56 (bloodcar02_fla.Symbol26_56)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol26_56 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 8
//Symbol3_66 (bloodcar02_fla.Symbol3_66)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol3_66 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 9
//Symbol32_70 (bloodcar02_fla.Symbol32_70)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol32_70 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 10
//Symbol33_49 (bloodcar02_fla.Symbol33_49)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol33_49 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 11
//Symbol35_51 (bloodcar02_fla.Symbol35_51)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol35_51 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 12
//Symbol40_64 (bloodcar02_fla.Symbol40_64)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol40_64 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 13
//Symbol42_52 (bloodcar02_fla.Symbol42_52)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol42_52 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 14
//Symbol44_72 (bloodcar02_fla.Symbol44_72)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol44_72 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 15
//Symbol46_73 (bloodcar02_fla.Symbol46_73)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol46_73 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 16
//Symbol47_74 (bloodcar02_fla.Symbol47_74)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol47_74 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 17
//Symbol52_82 (bloodcar02_fla.Symbol52_82)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol52_82 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 18
//Symbol60_92 (bloodcar02_fla.Symbol60_92)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol60_92 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 19
//Symbol61_89 (bloodcar02_fla.Symbol61_89)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol61_89 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 20
//Symbol61copy_90 (bloodcar02_fla.Symbol61copy_90)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol61copy_90 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 21
//Symbol61copy2_91 (bloodcar02_fla.Symbol61copy2_91)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol61copy2_91 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 22
//Symbol7_55 (bloodcar02_fla.Symbol7_55)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol7_55 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 23
//Symbol7copy_57 (bloodcar02_fla.Symbol7copy_57)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol7copy_57 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 24
//Symbol90_2 (bloodcar02_fla.Symbol90_2)
package bloodcar02_fla {
import flash.display.*;
public dynamic class Symbol90_2 extends MovieClip {
public function Symbol90_2(){
addFrameScript(0, frame1);
}
function frame1(){
this.stop();
}
}
}//package bloodcar02_fla
Section 25
//title_33 (bloodcar02_fla.title_33)
package bloodcar02_fla {
import flash.display.*;
public dynamic class title_33 extends MovieClip {
public var crypticsealogo:SimpleButton;
}
}//package bloodcar02_fla
Section 26
//trees01_54 (bloodcar02_fla.trees01_54)
package bloodcar02_fla {
import flash.display.*;
public dynamic class trees01_54 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 27
//trees02_96 (bloodcar02_fla.trees02_96)
package bloodcar02_fla {
import flash.display.*;
public dynamic class trees02_96 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 28
//trees03_97 (bloodcar02_fla.trees03_97)
package bloodcar02_fla {
import flash.display.*;
public dynamic class trees03_97 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 29
//trees04_98 (bloodcar02_fla.trees04_98)
package bloodcar02_fla {
import flash.display.*;
public dynamic class trees04_98 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 30
//trees05_99 (bloodcar02_fla.trees05_99)
package bloodcar02_fla {
import flash.display.*;
public dynamic class trees05_99 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 31
//wall01_108 (bloodcar02_fla.wall01_108)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall01_108 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 32
//wall02_107 (bloodcar02_fla.wall02_107)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall02_107 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 33
//wall03_106 (bloodcar02_fla.wall03_106)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall03_106 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 34
//wall04_109 (bloodcar02_fla.wall04_109)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall04_109 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 35
//wall05_101 (bloodcar02_fla.wall05_101)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall05_101 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 36
//wall06_102 (bloodcar02_fla.wall06_102)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall06_102 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 37
//wall07_100 (bloodcar02_fla.wall07_100)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall07_100 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 38
//wall08_105 (bloodcar02_fla.wall08_105)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall08_105 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 39
//wall09_104 (bloodcar02_fla.wall09_104)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall09_104 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 40
//wall10_103 (bloodcar02_fla.wall10_103)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall10_103 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 41
//wall11_110 (bloodcar02_fla.wall11_110)
package bloodcar02_fla {
import flash.display.*;
public dynamic class wall11_110 extends MovieClip {
public var coll:MovieClip;
}
}//package bloodcar02_fla
Section 42
//Bbbq01 (Bbbq01)
package {
import flash.display.*;
public dynamic class Bbbq01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 43
//Bbbq02 (Bbbq02)
package {
import flash.display.*;
public dynamic class Bbbq02 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 44
//Bbush01 (Bbush01)
package {
import flash.display.*;
public dynamic class Bbush01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 45
//Bbush02 (Bbush02)
package {
import flash.display.*;
public dynamic class Bbush02 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 46
//Bfence01 (Bfence01)
package {
import flash.display.*;
public dynamic class Bfence01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 47
//Bfence02 (Bfence02)
package {
import flash.display.*;
public dynamic class Bfence02 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 48
//Bfence03 (Bfence03)
package {
import flash.display.*;
public dynamic class Bfence03 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 49
//Bfence04 (Bfence04)
package {
import flash.display.*;
public dynamic class Bfence04 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 50
//bloodcar02 (bloodcar02)
package {
import flash.events.*;
import flash.text.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.filters.*;
import flash.geom.*;
public class bloodcar02 extends MovieClip {
public var restartbutton:SimpleButton;
public var myfont:Font;
public var porto:Bporto;
public var bush02:Bbush02;
public var startbutton:Symbol64;
public var rand:int;
var pausemenuimage;
var bgbitmapimage:Bitmap;
var gametype:int;// = 0
public var menuleveltext:TextField;
var gamemusicchannel:SoundChannel;
var enginechannel02:SoundChannel;
var enginechannel03:SoundChannel;
public var startmediumbutton:SimpleButton;
public var creditsbutton:Symbol66;
public var menuscoretext:TextField;
var playercombodelay:int;
var playerscore:int;
public var menucarimage;
var numofportos:int;
var enginechannel01:SoundChannel;
var numofcars:int;
public var mayhembutton:SimpleButton;
public var placemovie:MovieClip;
var gamelevelbonus:int;// = 0
var numofobjects:int;
public var continuebutton:SimpleButton;
public var menucarimage2;
var numofpeople:int;
var levelcompleteimage;
var scoretext;
public var titlescreen:MovieClip;
var sprite;
var viewposition:Array;
var gamelevel:int;// = 0
public var warninglabel:TextField;
var soundvolume:Number;// = 1
var playerlaptime:int;
var hud;
var screechchannel:SoundChannel;
var cartype:int;// = 1
public var instructionsbutton:Symbol65;
var numofportokills:int;
var playertime:int;
public var trash01:Btrash01;
var numofkills:int;
public var soundtransform;
public var musicchannel:SoundChannel;
var object;
public var exitgamebutton:SimpleButton;
public var racebutton:SimpleButton;
var playerlastlap:int;
var fadeoutimage;
public var wall02:Bwall02;
var playercombo:int;
public var wall01:Bwall01;
var bgbitmapdata:BitmapData;
var gameexitdelay:int;// = 0
var playerkilltype:int;
var timetext:TextField;
public var warningscreendelay:int;
var gamemusic;
var numoflaps:int;
public var starteasybutton:SimpleButton;
var gameinitialized:int;// = 0
public var mailbox01:Bmailbox01;
public var starthardbutton:SimpleButton;
var levelnametext:TextField;
var countdownimage;
public var table:Btable;
var framecount:int;
var gamestartdelay:int;// = 0
public var tombstone01:Btombstone01;
public var tombstone02:Btomestone02;
public var tombstone03:Btombstone03;
public var tombstone04:Btombstone04;
public var retrybutton:SimpleButton;
var car;
public var menutimetext:TextField;
public var bigstore:MovieClip;
public var bush01:Bbush01;
var keyboard;
public var loadscreendelay:int;
public var bbq01:Bbbq01;
public var bbq02:Bbbq02;
public var fence03:Bfence03;
public var fence04:Bfence04;
public var fence01:Bfence01;
public var fence02:Bfence02;
public function bloodcar02(){
cartype = 1;
car = new Array();
object = new Array();
sprite = new Array();
keyboard = new Array();
viewposition = [0, 0];
timetext = new TextField();
levelnametext = new TextField();
scoretext = new Array();
gameinitialized = 0;
gametype = 0;
gamelevel = 0;
gamelevelbonus = 0;
gamestartdelay = 0;
gameexitdelay = 0;
soundvolume = 1;
super();
addFrameScript(0, frame1, 2, frame3, 125, frame126, 128, frame129, 129, frame130, 130, frame131, 131, frame132, 132, frame133, 133, frame134, 134, frame135, 135, frame136, 136, frame137);
}
function soundoff(_arg1:MouseEvent){
var _local2:*;
soundvolume = 0;
_local2 = gamemusicchannel.soundTransform;
_local2.volume = 0;
gamemusicchannel.soundTransform = _local2;
}
public function selectcar2(_arg1:MouseEvent){
cartype = 1;
menucarimage.alpha = 0.5;
menucarimage2.alpha = 1;
}
function frame136(){
this.stop();
menuleveltext.embedFonts = true;
menuleveltext.defaultTextFormat = new TextFormat(myfont.fontName, 10, 0, true);
menuscoretext.embedFonts = true;
menuscoretext.defaultTextFormat = new TextFormat(myfont.fontName, 10, 0, true);
menuleveltext.text = (("Level " + gamelevel) + " Complete");
menuscoretext.text = ("Score:" + playerscore);
continuebutton.addEventListener(MouseEvent.CLICK, continuegame);
exitgamebutton.addEventListener(MouseEvent.CLICK, exitgame2);
}
function exitgame(_arg1:MouseEvent){
pausemenuimage.unpausebutton.removeEventListener(MouseEvent.MOUSE_UP, unpausegame);
pausemenuimage.soundonbutton.removeEventListener(MouseEvent.CLICK, soundon);
pausemenuimage.soundoffbutton.removeEventListener(MouseEvent.CLICK, soundoff);
pausemenuimage.exitgamebutton.removeEventListener(MouseEvent.CLICK, exitgame);
pausemenuimage.visible = false;
addEventListener(Event.ENTER_FRAME, gameloop);
shutdowngame();
gotoAndStop("titlemenu");
}
function resolvecarcollisionlevel(_arg1:int, _arg2:int, _arg3:Array, _arg4:Array, _arg5:Array){
var _local6:int;
var _local7:int;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:Number;
var _local12:Number;
_local8 = [0, 0];
_local9 = [0, 0];
_local10 = [0, 0];
_local8[0] = (_arg4[0] - _arg3[0]);
_local8[1] = (_arg4[1] - _arg3[1]);
_local11 = ((_local8[0] * _arg5[0]) + (_local8[1] * _arg5[1]));
_local9[0] = (_arg3[0] - car[_arg1].position[0]);
_local9[1] = (_arg3[1] - car[_arg1].position[1]);
getcarforce(_local8, _arg1, _local9);
_local12 = ((_local8[0] * _arg5[0]) + (_local8[1] * _arg5[1]));
_local8[0] = ((-(_arg5[0]) * _local12) * 0.25);
_local8[1] = ((-(_arg5[1]) * _local12) * 0.25);
_local8[0] = (_local8[0] + ((_arg5[0] * _local11) * 0.125));
_local8[1] = (_local8[1] + ((_arg5[1] * _local11) * 0.125));
_local11 = Math.sqrt(((_local8[0] * _local8[0]) + (_local8[1] * _local8[1])));
if (_local11 > (object[_arg2].maxforce * car[_arg1].mass)){
if (object[_arg2].type == 1){
_local6 = 0;
while (_local6 < 64) {
getcarforce(_local10, _arg1, _local9);
_local10[0] = (_local10[0] * 0.75);
_local10[1] = (_local10[1] * 0.75);
_local10[0] = (_local10[0] + ((Math.random() - 0.5) * 4));
_local10[1] = (_local10[1] + ((Math.random() - 0.5) * 4));
createsprite(0, object[_arg2].position, _local10, 0x800000);
_local6++;
};
};
if (object[_arg2].type == 3){
numofportokills++;
if ((((gamelevelbonus == 1)) || ((gamelevelbonus == 3)))){
playerscore = (playerscore + 50);
};
_local6 = 0;
while (_local6 < 64) {
getcarforce(_local10, _arg1, _local9);
_local10[0] = (_local10[0] * 0.75);
_local10[1] = (_local10[1] * 0.75);
_local10[0] = (_local10[0] + ((Math.random() - 0.5) * 4));
_local10[1] = (_local10[1] + ((Math.random() - 0.5) * 4));
createsprite(1, object[_arg2].position, _local10, 5517825);
_local6++;
};
};
_local8[0] = (_local8[0] / _local11);
_local8[1] = (_local8[1] / _local11);
_local8[0] = (_local8[0] * (object[_arg2].maxforce * car[_arg1].mass));
_local8[1] = (_local8[1] * (object[_arg2].maxforce * car[_arg1].mass));
if (object[_arg2].type == 1){
playerkilltype = 0;
if ((((car[_arg1].wheel[0].blood + car[_arg1].wheel[1].blood) + car[_arg1].wheel[2].blood) + car[_arg1].wheel[3].blood) > 0.25){
playerkilltype = (playerkilltype | 1);
};
_local10[0] = (object[_arg2].position[0] - car[_arg1].prevposition[0]);
_local10[1] = (object[_arg2].position[1] - car[_arg1].prevposition[1]);
_local12 = Math.sqrt(((_local10[0] * _local10[0]) + (_local10[1] * _local10[1])));
_local10[0] = (_local10[0] / _local12);
_local10[1] = (_local10[1] / _local12);
if (Math.abs(((car[_arg1].orientation[0] * _local10[0]) + (car[_arg1].orientation[1] * _local10[1]))) > car[_arg1].sidedot){
playerkilltype = (playerkilltype | 2);
};
_local11 = (_local11 + (Math.abs(((car[_arg1].orientation[0] * _local8[0]) + (car[_arg1].orientation[1] * _local8[1]))) * 2));
if (_local11 > 2){
playerkilltype = (playerkilltype | 4);
};
_local7 = 10;
if ((playerkilltype & 1) == 1){
_local7 = (_local7 * 2);
};
if ((playerkilltype & 2) == 2){
_local7 = (_local7 * 2);
};
if ((playerkilltype & 4) == 4){
_local7 = (_local7 * 2);
};
_local6 = 6;
while (_local6 >= 0) {
scoretext[(_local6 + 1)].type = scoretext[_local6].type;
scoretext[(_local6 + 1)].delay = scoretext[_local6].delay;
_local6--;
};
scoretext[0].type = playerkilltype;
scoretext[0].delay = 120;
playercombodelay = 120;
playerscore = (playerscore + (_local7 * playercombo));
playercombo++;
if (Math.abs(_local8[1]) > Math.abs(_local8[0])){
if (_local8[1] > 0){
object[_arg2].image.gotoAndStop(5);
} else {
object[_arg2].image.gotoAndStop(7);
};
} else {
if (_local8[0] > 0){
object[_arg2].image.gotoAndStop(6);
} else {
object[_arg2].image.gotoAndStop(8);
};
};
playsound(0);
if (gamelevelbonus == 2){
if (playertime > 30){
playertime = 30;
};
};
numofkills++;
};
if ((((object[_arg2].type == 2)) || ((object[_arg2].type == 3)))){
object[_arg2].image.gotoAndStop(2);
playsound(1);
};
this.setChildIndex(object[_arg2].image, 1);
object[_arg2].type = 8;
object[_arg2].maxforce = 0;
};
applycarforce(_local8, _arg1, _local9);
}
function frame133(){
initgame(4);
}
public function exitgame2(_arg1:MouseEvent){
gotoAndStop("titlemenu");
}
public function gotocrypticsea(_arg1:MouseEvent){
var _local2:URLRequest;
_local2 = new URLRequest("http://crypticsea.com");
navigateToURL(_local2);
}
public function exitgame4(_arg1:MouseEvent){
gotoAndStop("titlemenu");
}
public function startrace(_arg1:MouseEvent){
removeChild(menucarimage);
removeChild(menucarimage2);
gametype = 0;
gotoAndStop("bloodracemenu");
}
public function starteasyrace(_arg1:MouseEvent){
musicchannel.stop();
gotoAndStop("raceeasy");
}
public function exitgame3(_arg1:MouseEvent){
gotoAndStop("titlemenu");
}
function deletesprite(_arg1:int){
drawline(sprite[_arg1].image.x, sprite[_arg1].image.y, (sprite[_arg1].image.x - sprite[_arg1].velocity[0]), (sprite[_arg1].image.y - sprite[_arg1].velocity[1]), sprite[_arg1].color, (4 << 16), (2 << 16));
drawquad((sprite[_arg1].image.x - 1), (sprite[_arg1].image.y - 1), 2, 2, sprite[_arg1].color);
if (sprite[_arg1].type == 0){
drawquadcar(0, sprite[_arg1].image.x, sprite[_arg1].image.y, 2, 2, sprite[_arg1].color);
};
removeChild(sprite[_arg1].image);
delete sprite[_arg1];
sprite.splice(_arg1, 1);
}
function playsound(_arg1:int){
var _local2:int;
var _local3:*;
var _local4:*;
if (_arg1 == 0){
_local2 = (Math.random() * 8);
if (_local2 == 0){
_local3 = new sound_death01().play();
} else {
if (_local2 == 1){
_local3 = new sound_death02().play();
} else {
if (_local2 == 2){
_local3 = new sound_death03().play();
} else {
if (_local2 == 3){
_local3 = new sound_death04().play();
} else {
if (_local2 == 4){
_local3 = new sound_death05().play();
} else {
if (_local2 == 5){
_local3 = new sound_death06().play();
} else {
if (_local2 == 6){
_local3 = new sound_death07().play();
} else {
_local3 = new sound_death08().play();
};
};
};
};
};
};
};
_local4 = _local3.soundTransform;
_local4.volume = (0.25 * soundvolume);
_local3.soundTransform = _local4;
_local2 = (Math.random() * 4);
if (_local2 == 0){
_local3 = new sound_splat01().play();
} else {
if (_local2 == 1){
_local3 = new sound_splat02().play();
} else {
if (_local2 == 2){
_local3 = new sound_splat03().play();
} else {
_local3 = new sound_splat04().play();
};
};
};
_local4 = _local3.soundTransform;
_local4.volume = (0.25 * soundvolume);
_local3.soundTransform = _local4;
};
if (_arg1 == 1){
_local2 = (Math.random() * 3);
if (_local2 == 0){
_local3 = new sound_hit01().play();
} else {
if (_local2 == 1){
_local3 = new sound_hit02().play();
} else {
_local3 = new sound_hit03().play();
};
};
_local4 = _local3.soundTransform;
_local4.volume = (0.25 * soundvolume);
_local3.soundTransform = _local4;
};
}
function lineintersectline(_arg1:Array, _arg2:Array, _arg3:Array, _arg4:Array, _arg5:Array, _arg6:Array):int{
var _local7:Array;
var _local8:Array;
var _local9:Number;
var _local10:Number;
var _local11:Number;
_local7 = [0, 0];
_local8 = [0, 0];
_arg2[0] = (_arg6[1] - _arg5[1]);
_arg2[1] = (_arg5[0] - _arg6[0]);
_local7[0] = (_arg3[0] - _arg5[0]);
_local7[1] = (_arg3[1] - _arg5[1]);
_local8[0] = (_arg4[0] - _arg5[0]);
_local8[1] = (_arg4[1] - _arg5[1]);
_local9 = ((_local7[0] * _arg2[0]) + (_local7[1] * _arg2[1]));
_local10 = ((_local8[0] * _arg2[0]) + (_local8[1] * _arg2[1]));
if (_local9 < 0){
return (0);
};
if (_local10 > 0){
return (0);
};
_local11 = Math.sqrt(((_arg2[0] * _arg2[0]) + (_arg2[1] * _arg2[1])));
_arg2[0] = (_arg2[0] / _local11);
_arg2[1] = (_arg2[1] / _local11);
_local7[0] = (_arg5[0] - _arg3[0]);
_local7[1] = (_arg5[1] - _arg3[1]);
_local11 = ((_local7[0] * _arg2[0]) + (_local7[1] * _arg2[1]));
_local7[0] = (_arg4[0] - _arg3[0]);
_local7[1] = (_arg4[1] - _arg3[1]);
_local11 = (_local11 / ((_local7[0] * _arg2[0]) + (_local7[1] * _arg2[1])));
_arg1[0] = (_arg3[0] + (_local7[0] * _local11));
_arg1[1] = (_arg3[1] + (_local7[1] * _local11));
_local7[0] = (_arg1[0] - _arg5[0]);
_local7[1] = (_arg1[1] - _arg5[1]);
_local8[0] = (_arg6[0] - _arg5[0]);
_local8[1] = (_arg6[1] - _arg5[1]);
if (((_local7[0] * _local8[0]) + (_local7[1] * _local8[1])) < 0){
return (0);
};
_local7[0] = (_arg1[0] - _arg6[0]);
_local7[1] = (_arg1[1] - _arg6[1]);
_local8[0] = (_arg5[0] - _arg6[0]);
_local8[1] = (_arg5[1] - _arg6[1]);
if (((_local7[0] * _local8[0]) + (_local7[1] * _local8[1])) < 0){
return (0);
};
return (1);
}
public function startmayhem(_arg1:MouseEvent){
removeChild(menucarimage);
removeChild(menucarimage2);
musicchannel.stop();
gametype = 0;
gotoAndStop("mayhem");
}
function frame1(){
loadscreendelay = 0;
this.stop();
addEventListener(Event.ENTER_FRAME, loadingwait);
}
function carcollisionlevel(_arg1:int){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Array;
var _local7:Array;
var _local8:Array;
var _local9:Array;
var _local10:Array;
var _local11:Array;
var _local12:Array;
var _local13:Array;
var _local14:Number;
var _local15:Array;
var _local16:Array;
var _local17:Array;
var _local18:Number;
_local6 = [0, 0];
_local7 = [0, 0];
_local8 = [0, 0];
_local9 = [0, 0];
_local10 = [0, 0];
_local11 = [0, 0, 0, 0, 0, 0, 0, 0];
_local12 = [0, 0];
_local13 = [0, 0];
_local15 = [0, 0];
_local16 = [0, 0];
_local17 = [0, 0];
_local2 = 0;
while (_local2 < 4) {
if (_local2 == 0){
_local6[0] = -(car[_arg1].width);
_local6[1] = -(car[_arg1].height);
} else {
if (_local2 == 1){
_local6[0] = car[_arg1].width;
_local6[1] = -(car[_arg1].height);
} else {
if (_local2 == 2){
_local6[0] = car[_arg1].width;
_local6[1] = car[_arg1].height;
} else {
_local6[0] = -(car[_arg1].width);
_local6[1] = car[_arg1].height;
};
};
};
_local11[((_local2 * 2) + 0)] = ((car[_arg1].position[0] + (car[_arg1].orientation[0] * _local6[0])) + (car[_arg1].orientation[2] * _local6[1]));
_local11[((_local2 * 2) + 1)] = ((car[_arg1].position[1] + (car[_arg1].orientation[1] * _local6[0])) + (car[_arg1].orientation[3] * _local6[1]));
_local2++;
};
_local2 = 0;
while (_local2 < numofobjects) {
if (object[_local2].type != 8){
if (object[_local2].numoflines > 0){
if (pointinsideobject(_local2, car[_arg1].position, 32)){
_local5 = 0;
_local3 = 0;
while (_local3 < 4) {
_local4 = 0;
while (_local4 < object[_local2].numoflines) {
_local6[0] = _local11[((_local3 * 2) + 0)];
_local6[1] = _local11[((_local3 * 2) + 1)];
if (object[_local2].type != 1){
_local9[0] = object[_local2].line[_local4].start[0];
_local9[1] = object[_local2].line[_local4].start[1];
_local10[0] = object[_local2].line[_local4].end[0];
_local10[1] = object[_local2].line[_local4].end[1];
} else {
_local9[0] = (object[_local2].position[0] + object[_local2].line[_local4].start[0]);
_local9[1] = (object[_local2].position[1] + object[_local2].line[_local4].start[1]);
_local10[0] = (object[_local2].position[0] + object[_local2].line[_local4].end[0]);
_local10[1] = (object[_local2].position[1] + object[_local2].line[_local4].end[1]);
};
if (lineintersectline(_local12, _local13, car[_arg1].position, _local6, _local9, _local10)){
resolvecarcollisionlevel(_arg1, _local2, _local6, _local12, _local13);
_local5 = 1;
};
_local4++;
};
_local3++;
};
_local3 = 0;
while (_local3 < object[_local2].numoflines) {
if (object[_local2].type != 1){
_local10[0] = object[_local2].line[_local3].end[0];
_local10[1] = object[_local2].line[_local3].end[1];
} else {
_local10[0] = (object[_local2].position[0] + object[_local2].line[_local3].end[0]);
_local10[1] = (object[_local2].position[1] + object[_local2].line[_local3].end[1]);
};
_local4 = 0;
while (_local4 < 4) {
_local6[0] = _local11[((_local4 * 2) + 0)];
_local6[1] = _local11[((_local4 * 2) + 1)];
_local7[0] = _local11[((((_local4 + 1) & 3) * 2) + 0)];
_local7[1] = _local11[((((_local4 + 1) & 3) * 2) + 1)];
if (lineintersectline(_local12, _local13, object[_local2].position, _local10, _local6, _local7)){
_local13[0] = -(_local13[0]);
_local13[1] = -(_local13[1]);
_local8[0] = (_local10[0] - _local12[0]);
_local8[1] = (_local10[1] - _local12[1]);
_local14 = ((_local8[0] * _local13[0]) + (_local8[1] * _local13[1]));
if (_local14 < 12){
resolvecarcollisionlevel(_arg1, _local2, _local12, _local10, _local13);
};
};
_local4++;
};
_local3++;
};
};
};
};
_local2++;
};
}
function unpausegame(_arg1:MouseEvent){
pausemenuimage.unpausebutton.removeEventListener(MouseEvent.MOUSE_UP, unpausegame);
pausemenuimage.soundonbutton.removeEventListener(MouseEvent.CLICK, soundon);
pausemenuimage.soundoffbutton.removeEventListener(MouseEvent.CLICK, soundoff);
pausemenuimage.exitgamebutton.removeEventListener(MouseEvent.CLICK, exitgame);
pausemenuimage.visible = false;
addEventListener(Event.ENTER_FRAME, gameloop);
if (countdownimage != null){
countdownimage.play();
countdownimage.visible = true;
levelnametext.visible = true;
};
}
function pausemenu(){
removeEventListener(Event.ENTER_FRAME, gameloop);
pausemenuimage.x = (viewposition[0] - (pausemenuimage.width * 0.5));
pausemenuimage.y = (viewposition[1] - (pausemenuimage.height * 0.5));
pausemenuimage.visible = true;
pausemenuimage.unpausebutton.addEventListener(MouseEvent.CLICK, unpausegame);
pausemenuimage.soundonbutton.addEventListener(MouseEvent.CLICK, soundon);
pausemenuimage.soundoffbutton.addEventListener(MouseEvent.CLICK, soundoff);
pausemenuimage.exitgamebutton.addEventListener(MouseEvent.CLICK, exitgame);
}
function pointinsidebuildings(_arg1:Array, _arg2:Number):int{
var _local3:int;
_local3 = 0;
while (_local3 < numofobjects) {
if (object[_local3].type == 0){
if (pointinsideobject(_local3, _arg1, _arg2)){
return (1);
};
};
_local3++;
};
return (0);
}
public function gotoinstructions(_arg1:MouseEvent){
gotoAndStop("instructionsmenu");
}
public function restartgame(_arg1:MouseEvent){
if (gametype == 2){
gametype = 0;
gotoAndStop("raceeasy");
};
if (gametype == 3){
gametype = 0;
gotoAndStop("racemedium");
};
if (gametype == 4){
gametype = 0;
gotoAndStop("racehard");
};
}
function spritesimulation(){
var _local1:int;
_local1 = 0;
while (_local1 < sprite.length) {
sprite[_local1].image.x = (sprite[_local1].image.x + sprite[_local1].velocity[0]);
sprite[_local1].image.y = (sprite[_local1].image.y + sprite[_local1].velocity[1]);
sprite[_local1].timetolive--;
_local1++;
};
_local1 = 0;
while (_local1 < sprite.length) {
if (sprite[_local1].timetolive <= 0){
deletesprite(_local1);
} else {
_local1++;
};
};
}
public function starthardrace(_arg1:MouseEvent){
musicchannel.stop();
gotoAndStop("racehard");
}
function drawquad(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:uint){
var _local6:int;
var _local7:int;
_local6 = _arg2;
while (_local6 <= (_arg2 + _arg4)) {
_local7 = _arg1;
while (_local7 <= (_arg1 + _arg3)) {
bgbitmapdata.setPixel(_local7, _local6, _arg5);
_local7++;
};
_local6++;
};
}
public function loadingwait(_arg1:Event){
if (this.root.loaderInfo.bytesLoaded >= this.root.loaderInfo.bytesTotal){
loadscreendelay++;
if (loadscreendelay >= 120){
removeEventListener(Event.ENTER_FRAME, loadingwait);
gotoAndStop(3);
};
};
}
function deleteobject(_arg1:int){
removeChild(object[_arg1].image);
delete object[_arg1];
object.splice(_arg1, 1);
numofobjects--;
}
function frame3(){
warningscreendelay = 0;
myfont = new pcsenior();
warninglabel.embedFonts = true;
warninglabel.defaultTextFormat = new TextFormat(myfont.fontName, 14, 0xFFFFFF, true);
rand = (Math.random() * 7);
if (rand == 0){
warninglabel.text = "We are not responsible for creamed pants.";
} else {
if (rand == 1){
warninglabel.text = "Some winners may use drugs.";
} else {
if (rand == 2){
warninglabel.text = "Blood Car! 2000! does not protect against sexually transmitted diseases.";
} else {
if (rand == 3){
warninglabel.text = "You must be at least 80 years old to play Blood Car! 2000!";
} else {
if (rand == 4){
warninglabel.text = "Consult your psychiatrist before playing this or any other violent video game.";
} else {
if (rand == 5){
warninglabel.text = "This game is rated M for awesome.";
} else {
warninglabel.text = "Running people over in real life may damage your car... and your reputation!";
};
};
};
};
};
};
addEventListener(Event.ENTER_FRAME, warningwait);
}
function createsprite(_arg1:int, _arg2:Array, _arg3:Array, _arg4:uint){
var _local5:*;
_local5 = new Object();
_local5.type = new int(_arg1);
_local5.timetolive = new int();
_local5.timetolive = (7 + (Math.random() * 7));
_local5.image = new Sprite();
_local5.image.graphics.beginFill(_arg4);
_local5.image.graphics.drawRect(0, 0, 2, 2);
_local5.image.graphics.endFill();
_local5.image.x = _arg2[0];
_local5.image.y = _arg2[1];
_local5.velocity = new Array(_arg3[0], _arg3[1]);
_local5.color = new int(_arg4);
addChild(_local5.image);
sprite.push(_local5);
}
public function gotostart(_arg1:MouseEvent){
gotoAndStop("startmenu");
}
function getcarforce(_arg1:Array, _arg2:int, _arg3:Array){
var _local4:Array;
_local4 = [0, 0];
_local4[0] = -(_arg3[1]);
_local4[1] = _arg3[0];
_arg1[0] = car[_arg2].prevvelocity[0];
_arg1[1] = car[_arg2].prevvelocity[1];
_arg1[0] = (_arg1[0] + (_local4[0] * car[_arg2].prevangularvelocity));
_arg1[1] = (_arg1[1] + (_local4[1] * car[_arg2].prevangularvelocity));
}
public function initgame(_arg1:int){
var _local2:int;
var _local3:int;
var _local4:int;
var _local5:int;
var _local6:Rectangle;
var _local7:Point;
var _local8:DisplayObject;
var _local9:Rectangle;
var _local10:*;
var _local11:*;
var _local12:DisplayObject;
var _local13:*;
var _local14:Font;
var _local15:TextFormat;
var _local16:TextFormat;
var _local17:DropShadowFilter;
var _local18:*;
var _local19:*;
var _local20:*;
_local6 = new Rectangle();
_local7 = new Point();
_local9 = new Rectangle();
_local10 = new Array();
_local11 = new Matrix();
if (gameinitialized){
stage.addEventListener(KeyboardEvent.KEY_DOWN, keydown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyup);
addEventListener(Event.ENTER_FRAME, gameloop);
return;
};
_local2 = 0;
while (_local2 < 0x0100) {
keyboard.push(new uint());
keyboard[_local2] = 0;
_local2++;
};
if (gametype != _arg1){
playerscore = 0;
gamelevel = 1;
} else {
gamelevel++;
};
gametype = _arg1;
if ((((gametype >= 2)) && ((gametype <= 4)))){
gamelevel = 0;
};
gamelevelbonus = 0;
if (gametype == 1){
if ((gamelevel % 9) == 3){
gamelevelbonus = 1;
};
if ((gamelevel % 9) == 6){
gamelevelbonus = 2;
};
if ((gamelevel % 9) == 0){
gamelevelbonus = 3;
};
};
_local4 = this.numChildren;
numofobjects = 0;
_local2 = 0;
while (_local2 < _local4) {
object.push(new Object());
object[numofobjects].image = this.getChildAt(_local2);
object[numofobjects].image.stop();
object[numofobjects].position = new Array(0, 0);
object[numofobjects].position[0] = object[numofobjects].image.x;
object[numofobjects].position[1] = object[numofobjects].image.y;
object[numofobjects].type = new int();
object[numofobjects].type = 0;
object[numofobjects].maxforce = new Number();
object[numofobjects].maxforce = 65536;
object[numofobjects].timetolive = new int();
object[numofobjects].timetolive = 65536;
object[numofobjects].numoflines = new int();
object[numofobjects].numoflines = 0;
if ((((object[numofobjects].image is Bbush01)) || ((object[numofobjects].image is Bbush02)))){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 1.5;
};
if ((((object[numofobjects].image is Bwall01)) || ((object[numofobjects].image is Bwall02)))){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 2;
};
if ((((((((object[numofobjects].image is Bfence01)) || ((object[numofobjects].image is Bfence02)))) || ((object[numofobjects].image is Bfence03)))) || ((object[numofobjects].image is Bfence04)))){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 1;
};
if ((((((object[numofobjects].image is Bbbq01)) || ((object[numofobjects].image is Bbbq02)))) || ((object[numofobjects].image is Bmailbox01)))){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 1;
};
if ((object[numofobjects].image is Bporto)){
object[numofobjects].type = 3;
object[numofobjects].maxforce = 1;
};
if ((object[numofobjects].image is Btable)){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 1;
};
if ((((((((object[numofobjects].image is Btombstone01)) || ((object[numofobjects].image is Btomestone02)))) || ((object[numofobjects].image is Btombstone03)))) || ((object[numofobjects].image is Btombstone04)))){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 0.5;
};
if ((object[numofobjects].image is Btrash01)){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 0.5;
};
if ((object[numofobjects].image is Bsign01)){
object[numofobjects].type = 2;
object[numofobjects].maxforce = 1;
};
object[numofobjects].line = new Array();
_local8 = object[numofobjects].image.getChildByName("coll");
if (_local8 != null){
_local6 = _local8.getBounds(stage);
object[numofobjects].position[0] = (_local6.x + (_local6.width * 0.5));
object[numofobjects].position[1] = (_local6.y + (_local6.height * 0.5));
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].start[1] = _local6.y;
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].end[1] = _local6.y;
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].start[1] = _local6.y;
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].end[1] = (_local6.y + _local6.height);
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].start[1] = (_local6.y + _local6.height);
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].end[1] = (_local6.y + _local6.height);
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].start[1] = (_local6.y + _local6.height);
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].end[1] = _local6.y;
object[numofobjects].numoflines++;
};
object[numofobjects].image.cacheAsBitmap = true;
numofobjects++;
_local2++;
};
if (gametype == 2){
_local13 = new maprace1();
} else {
if (gametype == 3){
_local13 = new maprace2();
} else {
if (gametype == 4){
_local13 = new maprace3();
} else {
_local13 = new mapimage();
};
};
};
_local9 = _local13.getBounds(_local13);
bgbitmapdata = new BitmapData(_local13.width, _local13.height, false, 0x404040);
_local11.identity();
_local11.translate(-(_local9.x), -(_local9.y));
bgbitmapdata.draw(_local13, _local11);
bgbitmapimage = new Bitmap(bgbitmapdata);
bgbitmapimage.width = _local13.width;
bgbitmapimage.height = _local13.height;
bgbitmapimage.cacheAsBitmap = true;
addChildAt(bgbitmapimage, 0);
_local2 = 0;
while (_local2 < 7) {
_local10.push(new Object());
_local10[_local2].position = new Array(0x0100, 0x0100);
_local10[_local2].size = new Array(265, 0x0100);
if (_local2 == 0){
_local10[_local2].position[0] = (bgbitmapimage.width * 0.125);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.125);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.375);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.125);
} else {
if (_local2 == 1){
_local10[_local2].position[0] = (bgbitmapimage.width * 0.5);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.0625);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.4375);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.4375);
} else {
if (_local2 == 2){
_local10[_local2].position[0] = (bgbitmapimage.width * 0.125);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.25);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.4375);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.25);
} else {
if (_local2 == 3){
_local10[_local2].position[0] = (bgbitmapimage.width * 0.125);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.5);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.4375);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.25);
} else {
if (_local2 == 4){
_local10[_local2].position[0] = (bgbitmapimage.width * 0.125);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.75);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.125);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.125);
} else {
if (_local2 == 5){
_local10[_local2].position[0] = (bgbitmapimage.width * 0.25);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.75);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.25);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.1875);
} else {
_local10[_local2].position[0] = (bgbitmapimage.width * 0.5);
_local10[_local2].position[1] = (bgbitmapimage.height * 0.625);
_local10[_local2].size[0] = (bgbitmapimage.width * 0.4375);
_local10[_local2].size[1] = (bgbitmapimage.height * 0.25);
};
};
};
};
};
};
_local2++;
};
numofportos = 0;
if (gamelevelbonus == 1){
numofportos = 32;
};
if (gamelevelbonus == 3){
numofportos = 40;
};
_local2 = 0;
while (_local2 < numofportos) {
object.push(new Object());
object[numofobjects].image = new Bporto();
object[numofobjects].image.stop();
object[numofobjects].position = new Array(0, 0);
if (gamelevelbonus == 1){
_local5 = 0;
if (_local2 < 16){
if ((_local2 & 7) >= 4){
object[numofobjects].position[0] = (_local10[_local5].position[0] + 40);
} else {
object[numofobjects].position[0] = (_local10[_local5].position[0] + 90);
};
if (_local2 < 4){
object[numofobjects].position[0] = ((_local10[_local5].position[0] + 90) + ((3 - _local2) * 10));
};
object[numofobjects].position[1] = (((_local10[_local5].position[1] + 80) + (_local2 * 10)) + ((_local2 >> 2) * 160));
} else {
object[numofobjects].position[0] = ((_local10[_local5].position[0] + 460) + ((_local2 & 7) * 16));
object[numofobjects].position[1] = ((_local10[_local5].position[1] + 40) + (((_local2 - 16) >> 3) * 10));
};
} else {
if (_local2 < 8){
object[numofobjects].position[0] = 1150;
object[numofobjects].position[1] = (700 - (_local2 * 80));
} else {
if (_local2 < 16){
object[numofobjects].position[0] = 880;
object[numofobjects].position[1] = (700 - ((_local2 - 8) * 80));
} else {
if (_local2 < 24){
object[numofobjects].position[0] = 1550;
object[numofobjects].position[1] = (700 - ((_local2 - 16) * 80));
} else {
if (_local2 < 32){
object[numofobjects].position[0] = (880 + ((_local2 - 24) * 90));
object[numofobjects].position[1] = 580;
} else {
object[numofobjects].position[0] = (880 + ((_local2 - 32) * 90));
object[numofobjects].position[1] = 120;
};
};
};
};
};
object[numofobjects].image.x = object[numofobjects].position[0];
object[numofobjects].image.y = object[numofobjects].position[1];
object[numofobjects].type = new int();
object[numofobjects].type = 0;
object[numofobjects].maxforce = new Number();
object[numofobjects].maxforce = 65536;
object[numofobjects].timetolive = new int();
object[numofobjects].timetolive = 65536;
object[numofobjects].numoflines = new int();
object[numofobjects].numoflines = 0;
object[numofobjects].type = 3;
object[numofobjects].maxforce = 1;
object[numofobjects].line = new Array();
_local8 = object[numofobjects].image.getChildByName("coll");
if (_local8 != null){
_local6 = _local8.getBounds(stage);
object[numofobjects].position[0] = (_local6.x + (_local6.width * 0.5));
object[numofobjects].position[1] = (_local6.y + (_local6.height * 0.5));
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].start[1] = _local6.y;
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].end[1] = _local6.y;
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].start[1] = _local6.y;
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].end[1] = (_local6.y + _local6.height);
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].start[1] = (_local6.y + _local6.height);
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].end[1] = (_local6.y + _local6.height);
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].start[1] = (_local6.y + _local6.height);
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].end[1] = _local6.y;
object[numofobjects].numoflines++;
};
object[numofobjects].image.cacheAsBitmap = true;
addChild(object[numofobjects].image);
numofobjects++;
_local2++;
};
numofpeople = 28;
if (gametype == 1){
if (gamelevel == 1){
numofpeople = 8;
} else {
if (gamelevel == 2){
numofpeople = 10;
} else {
if ((((gamelevelbonus == 1)) || ((gamelevelbonus == 3)))){
numofpeople = 0;
} else {
if (gamelevel == 4){
numofpeople = 16;
} else {
if (gamelevel == 5){
numofpeople = 20;
} else {
if (gamelevelbonus == 2){
numofpeople = 10;
};
};
};
};
};
};
};
_local2 = 0;
while (_local2 < numofpeople) {
object.push(new Object());
_local3 = _local2;
if (gametype == 1){
if ((((gamelevel == 2)) || ((gamelevel == 11)))){
if ((_local2 & 1) == 0){
_local3 = 8;
} else {
_local3 = 24;
};
};
if (gamelevel == 5){
if (_local2 < 18){
_local3 = 16;
} else {
_local3 = 26;
};
};
};
if (_local3 < 2){
object[numofobjects].image = new human_alex();
if ((_local3 & 1) == 0){
_local5 = 0;
} else {
_local5 = 4;
};
} else {
if (_local3 < 4){
object[numofobjects].image = new human_blackguy();
if ((_local3 & 1) == 0){
_local5 = 0;
} else {
_local5 = 4;
};
} else {
if (_local3 < 6){
object[numofobjects].image = new human_danielle();
if ((_local3 & 1) == 0){
_local5 = 0;
} else {
_local5 = 2;
};
} else {
if (_local3 < 8){
object[numofobjects].image = new human_edmund();
if ((_local3 & 1) == 0){
_local5 = 0;
} else {
_local5 = 2;
};
} else {
if (_local3 < 10){
object[numofobjects].image = new human_hippy();
_local5 = 6;
} else {
if (_local3 < 12){
object[numofobjects].image = new human_hobo();
_local5 = 6;
} else {
if (_local3 < 14){
object[numofobjects].image = new human_kyle();
if ((_local3 & 1) == 0){
_local5 = 0;
} else {
_local5 = 3;
};
} else {
if (_local3 < 16){
object[numofobjects].image = new human_mexican();
if ((_local3 & 1) == 0){
_local5 = 0;
} else {
_local5 = 3;
};
} else {
if (_local3 < 18){
object[numofobjects].image = new human_mourner();
_local5 = 5;
} else {
if (_local3 < 20){
object[numofobjects].image = new human_oldlady();
_local5 = 1;
} else {
if (_local3 < 22){
object[numofobjects].image = new human_oldman();
_local5 = 1;
} else {
if (_local3 < 24){
object[numofobjects].image = new human_ranger();
_local5 = 6;
} else {
if (_local3 < 26){
object[numofobjects].image = new human_skinnydipper();
_local5 = 6;
} else {
object[numofobjects].image = new human_zombie();
_local5 = 5;
};
};
};
};
};
};
};
};
};
};
};
};
};
if (gametype == 1){
if ((((gamelevel == 1)) || ((gamelevel == 8)))){
_local5 = 0;
} else {
if ((((gamelevel == 2)) || ((gamelevel == 11)))){
_local5 = 6;
} else {
if (gamelevel == 4){
_local5 = 1;
} else {
if (gamelevel == 5){
_local5 = 5;
};
};
};
};
};
object[numofobjects].image.stop();
object[numofobjects].position = new Array(0, 0);
object[numofobjects].position[0] = (_local10[_local5].position[0] + (Math.random() * _local10[_local5].size[0]));
object[numofobjects].position[1] = (_local10[_local5].position[1] + (Math.random() * _local10[_local5].size[1]));
if (gamelevelbonus == 2){
if (_local2 < 4){
object[numofobjects].position[0] = (295 + ((_local2 - 2) * 22));
object[numofobjects].position[1] = 220;
} else {
if (_local2 < 7){
object[numofobjects].position[0] = (284 + ((_local2 - 5) * 22));
object[numofobjects].position[1] = 240;
} else {
if (_local2 < 9){
object[numofobjects].position[0] = (295 + ((_local2 - 8) * 22));
object[numofobjects].position[1] = 260;
} else {
object[numofobjects].position[0] = 284;
object[numofobjects].position[1] = 280;
};
};
};
};
while (pointinsidebuildings(object[numofobjects].position, 40)) {
object[numofobjects].position[0] = (_local10[_local5].position[0] + (Math.random() * _local10[_local5].size[0]));
object[numofobjects].position[1] = (_local10[_local5].position[1] + (Math.random() * _local10[_local5].size[1]));
};
object[numofobjects].image.x = object[numofobjects].position[0];
object[numofobjects].image.y = object[numofobjects].position[1];
object[numofobjects].type = new int();
object[numofobjects].type = 1;
object[numofobjects].maxforce = new Number();
object[numofobjects].maxforce = 0.5;
object[numofobjects].timetolive = new int();
object[numofobjects].timetolive = 65536;
object[numofobjects].numoflines = new int();
object[numofobjects].numoflines = 0;
object[numofobjects].line = new Array();
_local8 = object[numofobjects].image.getChildByName("coll");
if (_local8 != null){
_local6.x = _local8.x;
_local6.y = _local8.y;
_local6.width = _local8.width;
_local6.height = _local8.height;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].start[1] = _local6.y;
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].end[1] = _local6.y;
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].start[1] = _local6.y;
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].end[1] = (_local6.y + _local6.height);
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = (_local6.x + _local6.width);
object[numofobjects].line[object[numofobjects].numoflines].start[1] = (_local6.y + _local6.height);
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].end[1] = (_local6.y + _local6.height);
object[numofobjects].numoflines++;
object[numofobjects].line.push(new Object());
object[numofobjects].line[object[numofobjects].numoflines].start = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].start[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].start[1] = (_local6.y + _local6.height);
object[numofobjects].line[object[numofobjects].numoflines].end = new Array(2);
object[numofobjects].line[object[numofobjects].numoflines].end[0] = _local6.x;
object[numofobjects].line[object[numofobjects].numoflines].end[1] = _local6.y;
object[numofobjects].numoflines++;
};
object[numofobjects].image.cacheAsBitmap = true;
addChildAt(object[numofobjects].image, 1);
numofobjects++;
_local2++;
};
numofcars = 0;
_local2 = 0;
while (_local2 < 1) {
car.push(new Object());
if (cartype == 0){
_local12 = new carimage();
} else {
_local12 = new carimage2();
};
car[_local2].bitmapdata = new BitmapData(_local12.width, _local12.height, true, 0);
_local11.identity();
if (cartype == 0){
_local11.translate((_local12.width * 0.5), (_local12.height * 0.421));
} else {
_local11.translate((_local12.width * 0.5), (_local12.height * 0.5));
};
car[_local2].bitmapdata.draw(_local12, _local11);
if (cartype == 0){
_local12 = new carimageblood();
} else {
_local12 = new carimageblood2();
};
car[_local2].bitmapdatablood = new BitmapData(_local12.width, _local12.height, true, 0);
_local11.identity();
if (cartype == 0){
_local11.translate((_local12.width * 0.5), (_local12.height * 0.421));
} else {
_local11.translate((_local12.width * 0.5), (_local12.height * 0.5));
};
car[_local2].bitmapdatablood.draw(_local12, _local11);
car[_local2].image = new Bitmap(car[_local2].bitmapdata, PixelSnapping.AUTO, false);
car[_local2].image.cacheAsBitmap = true;
car[_local2].image.blendMode = BlendMode.NORMAL;
addChildAt(car[_local2].image, 1);
car[_local2].imageposition = new Array(0, 0);
car[_local2].imageposition[0] = (-(car[_local2].image.width) * 0.5);
if (cartype == 0){
car[_local2].imageposition[1] = (-(car[_local2].image.height) * 0.421);
} else {
car[_local2].imageposition[1] = (-(car[_local2].image.height) * 0.5);
};
car[_local2].imagesize = new Array(0, 0);
car[_local2].imagesize[0] = car[_local2].image.width;
car[_local2].imagesize[1] = car[_local2].image.height;
car[_local2].position = new Array();
car[_local2].position[0] = 284;
car[_local2].position[1] = 500;
if (gametype == 1){
if ((((gamelevel == 1)) || ((gamelevel == 8)))){
car[_local2].position[0] = 284;
car[_local2].position[1] = 400;
} else {
if ((((gamelevel == 2)) || ((gamelevel == 11)))){
car[_local2].position[0] = 1284;
car[_local2].position[1] = 1300;
} else {
if (gamelevelbonus == 1){
car[_local2].position[0] = 284;
car[_local2].position[1] = 1040;
} else {
if (gamelevel == 4){
car[_local2].position[0] = 1160;
car[_local2].position[1] = 800;
} else {
if (gamelevel == 5){
car[_local2].position[0] = 660;
car[_local2].position[1] = 1200;
} else {
if (gamelevelbonus == 2){
car[_local2].position[0] = 284;
car[_local2].position[1] = 1040;
} else {
if (gamelevelbonus == 3){
car[_local2].position[0] = 1160;
car[_local2].position[1] = 800;
};
};
};
};
};
};
};
};
car[_local2].prevposition = new Array();
car[_local2].prevposition[0] = car[_local2].position[0];
car[_local2].prevposition[1] = car[_local2].position[1];
car[_local2].velocity = new Array(0, 0);
car[_local2].prevvelocity = new Array(0, 0);
car[_local2].orientation = new Array(1, 0, 0, 1);
car[_local2].prevorientation = new Array(1, 0, 0, 1);
car[_local2].dir = new Number(0);
car[_local2].angularvelocity = new Number(0);
car[_local2].prevangularvelocity = new Number(0);
if (cartype == 0){
car[_local2].rotationalinertia = new Number(0.625);
car[_local2].maxspeed = new Number(10);
car[_local2].friction = new Number(0.65);
car[_local2].width = new Number(14);
car[_local2].height = new Number(25);
car[_local2].mass = new Number(1);
car[_local2].sidedot = new Number(0.5);
} else {
car[_local2].rotationalinertia = new Number(0.75);
car[_local2].maxspeed = new Number(8);
car[_local2].friction = new Number(0.75);
car[_local2].width = new Number(14);
car[_local2].height = new Number(22);
car[_local2].mass = new Number(1.2);
car[_local2].sidedot = new Number(0.65);
};
if (gamelevelbonus == 2){
car[_local2].dir = 3.14159265358979;
car[_local2].orientation[0] = -1;
car[_local2].orientation[3] = -1;
};
car[_local2].image.x = ((car[_local2].position[0] + (car[_local2].orientation[0] * car[_local2].imageposition[0])) + (car[_local2].orientation[2] * car[_local2].imageposition[1]));
car[_local2].image.y = ((car[_local2].position[1] + (car[_local2].orientation[1] * car[_local2].imageposition[0])) + (car[_local2].orientation[3] * car[_local2].imageposition[1]));
car[_local2].image.rotation = (car[_local2].dir * 57.2957795130823);
car[_local2].wheel = new Array();
_local19 = new Number(10);
_local20 = new Number(18);
if (cartype == 1){
_local19 = 11;
_local20 = 15;
};
_local3 = 0;
while (_local3 < 4) {
car[_local2].wheel.push(new Object());
car[_local2].wheel[_local3].position = new Array(2);
if (_local3 == 0){
car[_local2].wheel[_local3].position[0] = -(_local19);
car[_local2].wheel[_local3].position[1] = -(_local20);
} else {
if (_local3 == 1){
car[_local2].wheel[_local3].position[0] = _local19;
car[_local2].wheel[_local3].position[1] = -(_local20);
} else {
if (_local3 == 2){
car[_local2].wheel[_local3].position[0] = _local19;
car[_local2].wheel[_local3].position[1] = _local20;
} else {
car[_local2].wheel[_local3].position[0] = -(_local19);
car[_local2].wheel[_local3].position[1] = _local20;
};
};
};
car[_local2].wheel[_local3].spin = new Number(0);
car[_local2].wheel[_local3].dir = new Number(0);
car[_local2].wheel[_local3].blood = new Number(0);
_local3++;
};
numofcars++;
_local2++;
};
if (gamelevelbonus == 2){
drawquad(184, 380, 200, 10, 0x800000);
};
framecount = 0;
numofkills = 0;
numofportokills = 0;
numoflaps = 0;
playerlaptime = 0;
playerlastlap = 0;
playerkilltype = 0;
playercombo = 1;
playercombodelay = 0;
gamestartdelay = 90;
gameexitdelay = 0;
if (gametype == 1){
if (gamelevel == 1){
playertime = (100 * 30);
} else {
if (gamelevel == 2){
playertime = (100 * 30);
} else {
if (gamelevelbonus == 1){
playertime = (8 * 30);
} else {
if (gamelevel == 4){
playertime = (100 * 30);
} else {
if (gamelevel == 5){
playertime = (100 * 30);
} else {
if (gamelevelbonus == 2){
playertime = (30 * 30);
} else {
if (gamelevel == 7){
playertime = (120 * 30);
} else {
if (gamelevel == 8){
playertime = (60 * 30);
} else {
if (gamelevelbonus == 3){
playertime = (50 * 30);
} else {
if (gamelevel == 10){
playertime = (110 * 30);
} else {
if (gamelevel == 11){
playertime = (60 * 30);
} else {
if (gamelevelbonus == 0){
_local2 = (gamelevel - 12);
_local2 = ((int((_local2 / 3)) * 2) + (_local2 % 3));
_local2 = (_local2 + 2);
playertime = ((130 * 30) - ((_local2 * 10) * 30));
};
};
};
};
};
};
};
};
};
};
};
};
} else {
playertime = 0;
};
hud = new hudimage();
addChild(hud);
_local14 = new pcsenior();
_local15 = new TextFormat(_local14.fontName, 16, 0xFFFFFF, true);
_local15.tabStops = [184, 400, 640];
timetext.embedFonts = true;
timetext.defaultTextFormat = _local15;
timetext.x = 0;
timetext.y = 0;
timetext.width = 800;
timetext.height = 30;
timetext.text = "";
addChild(timetext);
_local2 = 0;
while (_local2 < 8) {
scoretext.push(new Object());
scoretext[_local2].type = new int(0);
scoretext[_local2].delay = new int(0);
scoretext[_local2].bloodimage = new text_blood();
scoretext[_local2].bloodimage.visible = false;
addChild(scoretext[_local2].bloodimage);
scoretext[_local2].slideimage = new text_slide();
scoretext[_local2].slideimage.visible = false;
addChild(scoretext[_local2].slideimage);
scoretext[_local2].explosionimage = new text_explosion();
scoretext[_local2].explosionimage.visible = false;
addChild(scoretext[_local2].explosionimage);
scoretext[_local2].killimage = new text_kill();
scoretext[_local2].killimage.visible = false;
addChild(scoretext[_local2].killimage);
_local2++;
};
stage.addEventListener(KeyboardEvent.KEY_DOWN, keydown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyup);
addEventListener(Event.ENTER_FRAME, gameloop);
if (viewposition[0] < (car[0].position[0] - 40)){
viewposition[0] = (car[0].position[0] - 40);
};
if (viewposition[0] > (car[0].position[0] + 40)){
viewposition[0] = (car[0].position[0] + 40);
};
if (viewposition[1] < (car[0].position[1] - 40)){
viewposition[1] = (car[0].position[1] - 40);
};
if (viewposition[1] > (car[0].position[1] + 40)){
viewposition[1] = (car[0].position[1] + 40);
};
if (viewposition[0] < 400){
viewposition[0] = 400;
};
if (viewposition[1] < 300){
viewposition[1] = 300;
};
if (viewposition[0] > (bgbitmapimage.width - 400)){
viewposition[0] = (bgbitmapimage.width - 400);
};
if (viewposition[1] > (bgbitmapimage.height - 300)){
viewposition[1] = (bgbitmapimage.height - 300);
};
pausemenuimage = new menu_pausescreen();
pausemenuimage.x = (viewposition[0] - 400);
pausemenuimage.y = (viewposition[1] - 300);
pausemenuimage.visible = false;
addChild(pausemenuimage);
countdownimage = new text_countdown();
countdownimage.x = (viewposition[0] - (countdownimage.width * 0.5));
countdownimage.y = (viewposition[1] - 100);
addChild(countdownimage);
_local16 = new TextFormat(_local14.fontName, 16, 0xFFFFFF, true);
_local16.align = TextFormatAlign.CENTER;
levelnametext.embedFonts = true;
levelnametext.defaultTextFormat = _local16;
levelnametext.x = (viewposition[0] - 300);
levelnametext.y = (viewposition[1] - 140);
levelnametext.width = 600;
levelnametext.height = 40;
if (gametype == 1){
if (gamelevel == 1){
levelnametext.text = "Level 1\nShopping Maul";
} else {
if (gamelevel == 2){
levelnametext.text = "Level 2\nHippie Picnic Of Death";
} else {
if (gamelevelbonus == 1){
levelnametext.text = "Bonus Level\nPoop Slalom";
} else {
if (gamelevel == 4){
levelnametext.text = "Level 4\nSuburbs Of Death";
} else {
if (gamelevel == 5){
levelnametext.text = "Level 5\nCemetery Of Death";
} else {
if (gamelevelbonus == 2){
levelnametext.text = "Bonus Level\nBowling For Blood";
} else {
if (gamelevel == 7){
levelnametext.text = "Level 7\nCity Of Death Part 1";
} else {
if (gamelevel == 8){
levelnametext.text = "Level 8\nHoliday Shopping Maul";
} else {
if (gamelevelbonus == 3){
levelnametext.text = "Bonus Level\nPoopman:Suburbs Of Poop";
} else {
if (gamelevel == 10){
levelnametext.text = "Level 10\nCity Of Death Part 2";
} else {
if (gamelevel == 11){
levelnametext.text = "Level 11\nWoodstock";
} else {
_local2 = (gamelevel - 12);
_local2 = ((int((_local2 / 3)) * 2) + (_local2 % 3));
_local2 = (_local2 + 2);
levelnametext.text = ((("Level " + gamelevel) + "\nCity Of Death Part ") + _local2);
};
};
};
};
};
};
};
};
};
};
};
} else {
if (gametype == 2){
levelnametext.text = "Easy Race";
} else {
if (gametype == 3){
levelnametext.text = "Medium Race";
} else {
levelnametext.text = "Hard Race";
};
};
};
_local17 = new DropShadowFilter();
levelnametext.filters = [_local17];
addChild(levelnametext);
this.x = (-(viewposition[0]) + 400);
this.y = (-(viewposition[1]) + 300);
if (gamelevelbonus == 0){
if ((gamelevel % 3) == 2){
gamemusic = new music_game2();
} else {
gamemusic = new music_game();
};
} else {
gamemusic = new music_title();
};
gamemusicchannel = gamemusic.play(0, 4);
_local18 = gamemusicchannel.soundTransform;
_local18.volume = (0.5 * soundvolume);
gamemusicchannel.soundTransform = _local18;
enginechannel01 = new sound_engine01().play(0, 65536);
_local18 = enginechannel01.soundTransform;
_local18.volume = (0 * soundvolume);
enginechannel01.soundTransform = _local18;
enginechannel02 = new sound_engine02().play(0, 65536);
_local18 = enginechannel02.soundTransform;
_local18.volume = (0 * soundvolume);
enginechannel02.soundTransform = _local18;
enginechannel03 = new sound_engine03().play(0, 65536);
_local18 = enginechannel03.soundTransform;
_local18.volume = (0 * soundvolume);
enginechannel03.soundTransform = _local18;
screechchannel = new sound_screech().play(0, 65536);
_local18 = screechchannel.soundTransform;
_local18.volume = (0 * soundvolume);
screechchannel.soundTransform = _local18;
gameinitialized = 1;
}
function applycarforce(_arg1:Array, _arg2:int, _arg3:Array){
var _local4:Array;
var _local5:Number;
_local4 = [0, 0];
_local4[0] = -(_arg3[1]);
_local4[1] = _arg3[0];
_local5 = Math.sqrt(((_local4[0] * _local4[0]) + (_local4[1] * _local4[1])));
_local4[0] = (_local4[0] / _local5);
_local4[1] = (_local4[1] / _local5);
car[_arg2].velocity[0] = (car[_arg2].velocity[0] + _arg1[0]);
car[_arg2].velocity[1] = (car[_arg2].velocity[1] + _arg1[1]);
car[_arg2].angularvelocity = (car[_arg2].angularvelocity + ((((_arg1[0] * _local4[0]) + (_arg1[1] * _local4[1])) * car[_arg2].rotationalinertia) / _local5));
}
public function continuegame(_arg1:MouseEvent){
gotoAndStop("mayhem");
}
public function warningwait(_arg1:Event){
warningscreendelay++;
if (warningscreendelay >= 60){
removeEventListener(Event.ENTER_FRAME, warningwait);
gotoAndPlay(4);
};
}
function drawline(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:uint, _arg6:uint, _arg7:uint){
var _local8:int;
var _local9:int;
var _local10:int;
var _local11:int;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:int;
if (_arg3 > _arg1){
_local9 = (_arg3 - _arg1);
} else {
_local9 = (_arg1 - _arg3);
};
if (_arg4 > _arg2){
if ((_arg4 - _arg2) > _local9){
_local9 = (_arg4 - _arg2);
};
} else {
if ((_arg2 - _arg4) > _local9){
_local9 = (_arg2 - _arg4);
};
};
_local12 = (_arg5 >> 16);
_local13 = ((_arg5 >> 8) & 0xFF);
_local14 = (_arg5 & 0xFF);
if (_arg6 > (4 << 16)){
_arg6 = (4 << 16);
};
if (_arg7 > (4 << 16)){
_arg7 = (4 << 16);
};
_local10 = (((_arg3 - _arg1) << 16) / _local9);
_local11 = (((_arg4 - _arg2) << 16) / _local9);
_local15 = ((_arg7 - _arg6) / _local9);
_arg1 = (_arg1 << 16);
_arg2 = (_arg2 << 16);
_local8 = 0;
while (_local8 < _local9) {
setbackgroundpixel((_arg1 >> 16), (_arg2 >> 16), _local12, _local13, _local14, (_arg6 >> 2));
setbackgroundpixel(((_arg1 >> 16) + 1), (_arg2 >> 16), _local12, _local13, _local14, (_arg6 >> 3));
setbackgroundpixel(((_arg1 >> 16) - 1), (_arg2 >> 16), _local12, _local13, _local14, (_arg6 >> 3));
setbackgroundpixel((_arg1 >> 16), ((_arg2 >> 16) + 1), _local12, _local13, _local14, (_arg6 >> 3));
setbackgroundpixel((_arg1 >> 16), ((_arg2 >> 16) - 1), _local12, _local13, _local14, (_arg6 >> 3));
_arg1 = (_arg1 + _local10);
_arg2 = (_arg2 + _local11);
_arg6 = (_arg6 + _local15);
_local8++;
};
}
public function shutdowngame(){
var _local1:int;
var _local2:int;
enginechannel01.stop();
enginechannel02.stop();
enginechannel03.stop();
screechchannel.stop();
gamemusicchannel.stop();
removeEventListener(Event.ENTER_FRAME, gameloop);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keydown);
stage.removeEventListener(KeyboardEvent.KEY_UP, keyup);
_local2 = this.numChildren;
_local1 = (_local2 - 1);
while (_local1 >= 0) {
removeChild(this.getChildAt(_local1));
_local1--;
};
this.x = 0;
this.y = 0;
hud = null;
fadeoutimage = null;
levelcompleteimage = null;
countdownimage = null;
pausemenuimage = null;
bgbitmapdata = null;
bgbitmapimage = null;
_local1 = (numofobjects - 1);
while (_local1 >= 0) {
delete object[_local1];
object.pop();
_local1--;
};
_local1 = (numofcars - 1);
while (_local1 >= 0) {
delete car[_local1];
car.pop();
_local1--;
};
_local1 = (sprite.length - 1);
while (_local1 >= 0) {
delete sprite[_local1];
sprite.pop();
_local1--;
};
_local1 = 0;
while (_local1 < 0x0100) {
keyboard.pop();
_local1++;
};
_local1 = 0;
while (_local1 < 8) {
scoretext.pop();
_local1++;
};
gameinitialized = 0;
}
function soundon(_arg1:MouseEvent){
var _local2:*;
soundvolume = 1;
_local2 = gamemusicchannel.soundTransform;
_local2.volume = 0.5;
gamemusicchannel.soundTransform = _local2;
}
public function selectcar(_arg1:MouseEvent){
cartype = 0;
menucarimage.alpha = 1;
menucarimage2.alpha = 0.5;
}
function drawquadcar(_arg1:int, _arg2:Number, _arg3:Number, _arg4:int, _arg5:int, _arg6:uint){
var _local7:Number;
var _local8:Number;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:uint;
var _local14:uint;
var _local15:uint;
var _local16:Number;
var _local17:Number;
var _local18:uint;
_local18 = (1 << 15);
_arg2 = (_arg2 - car[_arg1].position[0]);
_arg3 = (_arg3 - car[_arg1].position[1]);
_local16 = ((car[_arg1].orientation[0] * _arg2) + (car[_arg1].orientation[1] * _arg3));
_local17 = ((car[_arg1].orientation[2] * _arg2) + (car[_arg1].orientation[3] * _arg3));
_local16 = (_local16 - car[_arg1].imageposition[0]);
_local17 = (_local17 - car[_arg1].imageposition[1]);
_local7 = _local17;
while (_local7 <= (_local17 + _arg5)) {
if ((((_local7 >= 0)) && ((_local7 < car[_arg1].imagesize[1])))){
_local8 = _local16;
while (_local8 <= (_local16 + _arg4)) {
if ((((_local8 >= 0)) && ((_local8 < car[_arg1].imagesize[0])))){
_local9 = car[_arg1].bitmapdatablood.getPixel(_local8, _local7);
_local10 = ((_local9 >> 16) & 0xFF);
_local11 = ((_local9 >> 8) & 0xFF);
_local12 = (_local9 & 0xFF);
_local10 = ((_local10 >> 1) + (_local10 >> 2));
_local11 = ((_local11 >> 1) + (_local11 >> 2));
_local12 = ((_local12 >> 1) + (_local12 >> 2));
_arg6 = car[_arg1].bitmapdata.getPixel(_local8, _local7);
_local13 = ((_arg6 >> 16) & 0xFF);
_local14 = ((_arg6 >> 8) & 0xFF);
_local15 = (_arg6 & 0xFF);
_local13 = (_local13 + (((_local10 - _local13) * _local18) >> 16));
_local14 = (_local14 + (((_local11 - _local14) * _local18) >> 16));
_local15 = (_local15 + (((_local12 - _local15) * _local18) >> 16));
_arg6 = (((_local13 << 16) + (_local14 << 8)) + _local15);
car[_arg1].bitmapdata.setPixel(_local8, _local7, _arg6);
};
_local8++;
};
};
_local7++;
};
}
function setbackgroundpixel(_arg1:int, _arg2:int, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint){
var _local7:uint;
var _local8:uint;
var _local9:uint;
var _local10:uint;
_local7 = bgbitmapdata.getPixel(_arg1, _arg2);
_local8 = ((_local7 >> 16) & 0xFF);
_local9 = ((_local7 >> 8) & 0xFF);
_local10 = (_local7 & 0xFF);
_local8 = (_local8 + (((_arg3 - _local8) * _arg6) >> 16));
_local9 = (_local9 + (((_arg4 - _local9) * _arg6) >> 16));
_local10 = (_local10 + (((_arg5 - _local10) * _arg6) >> 16));
_local7 = (((_local8 << 16) + (_local9 << 8)) + _local10);
bgbitmapdata.setPixel(_arg1, _arg2, _local7);
}
public function keydown(_arg1:KeyboardEvent){
keyboard[_arg1.keyCode] = 1;
}
function objecttimetolive(){
var _local1:int;
_local1 = 0;
while (_local1 < numofobjects) {
if (object[_local1].timetolive == 0){
deleteobject(_local1);
} else {
_local1++;
};
};
}
public function keyup(_arg1:KeyboardEvent){
keyboard[_arg1.keyCode] = 0;
}
public function startmediumrace(_arg1:MouseEvent){
musicchannel.stop();
gotoAndStop("racemedium");
}
function setcarpixel(_arg1:int, _arg2:int, _arg3:int, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint){
var _local8:uint;
var _local9:uint;
var _local10:uint;
var _local11:uint;
var _local12:uint;
var _local13:Number;
var _local14:Number;
_arg2 = (_arg2 - car[_arg1].position[0]);
_arg3 = (_arg3 - car[_arg1].position[1]);
_local13 = ((car[_arg1].orientation[0] * _arg2) + (car[_arg1].orientation[1] * _arg3));
_local14 = ((car[_arg1].orientation[2] * _arg2) + (car[_arg1].orientation[3] * _arg3));
_local13 = (_local13 - car[_arg1].imageposition[0]);
_local14 = (_local14 - car[_arg1].imageposition[1]);
if (_local13 < 0){
return;
};
if (_local14 < 0){
return;
};
if (_local13 >= car[_arg1].imagesize[0]){
return;
};
if (_local14 >= car[_arg1].imagesize[1]){
return;
};
_local9 = car[_arg1].bitmapdatablood.getPixel(_local13, _local14);
_arg4 = ((_local9 >> 16) & 0xFF);
_arg5 = ((_local9 >> 8) & 0xFF);
_arg6 = (_local9 & 0xFF);
_local8 = car[_arg1].bitmapdata.getPixel(_local13, _local14);
_local10 = ((_local8 >> 16) & 0xFF);
_local11 = ((_local8 >> 8) & 0xFF);
_local12 = (_local8 & 0xFF);
_local10 = (_local10 + (((_arg4 - _local10) * _arg7) >> 16));
_local11 = (_local11 + (((_arg5 - _local11) * _arg7) >> 16));
_local12 = (_local12 + (((_arg6 - _local12) * _arg7) >> 16));
_local8 = (((_local10 << 16) + (_local11 << 8)) + _local12);
car[_arg1].bitmapdata.setPixel(_local13, _local14, _local8);
}
function frame129(){
this.stop();
menucarimage = new carimage();
menucarimage.x = 600;
menucarimage.y = 304;
if (cartype == 0){
menucarimage.alpha = 1;
} else {
menucarimage.alpha = 0.5;
};
addChild(menucarimage);
menucarimage2 = new carimage2();
menucarimage2.x = 600;
menucarimage2.y = 200;
if (cartype == 1){
menucarimage2.alpha = 1;
} else {
menucarimage2.alpha = 0.5;
};
addChild(menucarimage2);
mayhembutton.addEventListener(MouseEvent.CLICK, startmayhem);
racebutton.addEventListener(MouseEvent.CLICK, startrace);
menucarimage.addEventListener(MouseEvent.CLICK, selectcar);
menucarimage2.addEventListener(MouseEvent.CLICK, selectcar2);
}
function frame126(){
this.stop();
startbutton.addEventListener(MouseEvent.CLICK, gotostart);
instructionsbutton.addEventListener(MouseEvent.CLICK, gotoinstructions);
creditsbutton.addEventListener(MouseEvent.CLICK, gotocredits);
titlescreen.crypticsealogo.addEventListener(MouseEvent.CLICK, gotocrypticsea);
titlescreen.crypticsealogo.useHandCursor = true;
musicchannel = new music_title().play();
soundtransform = musicchannel.soundTransform;
soundtransform.volume = (0.5 * soundvolume);
musicchannel.soundTransform = soundtransform;
}
function frame130(){
initgame(1);
}
function frame134(){
this.stop();
starteasybutton.addEventListener(MouseEvent.CLICK, starteasyrace);
startmediumbutton.addEventListener(MouseEvent.CLICK, startmediumrace);
starthardbutton.addEventListener(MouseEvent.CLICK, starthardrace);
}
function frame137(){
this.stop();
menuleveltext.embedFonts = true;
menuleveltext.defaultTextFormat = new TextFormat(myfont.fontName, 10, 0, true);
menuscoretext.embedFonts = true;
menuscoretext.defaultTextFormat = new TextFormat(myfont.fontName, 10, 0, true);
menuscoretext.text = ("Final Score:" + playerscore);
menuleveltext.text = ("Level:" + gamelevel);
retrybutton.addEventListener(MouseEvent.CLICK, menurestartgame);
exitgamebutton.addEventListener(MouseEvent.CLICK, exitgame3);
}
public function menurestartgame(_arg1:MouseEvent){
gametype = 0;
gotoAndStop("mayhem");
}
function frame135(){
this.stop();
menutimetext.embedFonts = true;
menutimetext.defaultTextFormat = new TextFormat(myfont.fontName, 10, 0, true);
menutimetext.text = ((("Time:" + int((playertime / 30))) + ".") + int(((playertime / 3) % 10)));
if (gametype == 2){
if (playertime < (40 * 30)){
placemovie.gotoAndStop(1);
} else {
if (playertime < (50 * 30)){
placemovie.gotoAndStop(2);
} else {
if (playertime < (60 * 30)){
placemovie.gotoAndStop(3);
} else {
placemovie.gotoAndStop(4);
};
};
};
} else {
if (gametype == 3){
if (playertime < (50 * 30)){
placemovie.gotoAndStop(1);
} else {
if (playertime < (60 * 30)){
placemovie.gotoAndStop(2);
} else {
if (playertime < (70 * 30)){
placemovie.gotoAndStop(3);
} else {
placemovie.gotoAndStop(4);
};
};
};
} else {
if (gametype == 4){
if (playertime < (55 * 30)){
placemovie.gotoAndStop(1);
} else {
if (playertime < (65 * 30)){
placemovie.gotoAndStop(2);
} else {
if (playertime < (75 * 30)){
placemovie.gotoAndStop(3);
} else {
placemovie.gotoAndStop(4);
};
};
};
};
};
};
restartbutton.addEventListener(MouseEvent.CLICK, restartgame);
exitgamebutton.addEventListener(MouseEvent.CLICK, exitgame4);
}
public function gameloop(_arg1:Event){
var _local2:int;
var _local3:int;
var _local4:Array;
var _local5:Array;
var _local6:Array;
var _local7:Array;
var _local8:Number;
var _local9:Number;
var _local10:uint;
var _local11:Number;
var _local12:Number;
var _local13:Number;
var _local14:*;
var _local15:*;
_local4 = [0, 0];
_local5 = [0, 0];
_local6 = [0, 0];
_local7 = [0, 0];
_local13 = 0;
if ((((gamestartdelay < 30)) && ((gameexitdelay < 5)))){
_local2 = 0;
if (keyboard[38]){
_local3 = 2;
while (_local3 < 4) {
car[_local2].wheel[_local3].spin = (car[_local2].wheel[_local3].spin + 0.625);
if (car[_local2].wheel[_local3].spin > car[_local2].maxspeed){
car[_local2].wheel[_local3].spin = car[_local2].maxspeed;
};
_local3++;
};
} else {
if (keyboard[40]){
_local3 = 2;
while (_local3 < 4) {
car[_local2].wheel[_local3].spin = (car[_local2].wheel[_local3].spin - 0.625);
if (car[_local2].wheel[_local3].spin < -(car[_local2].maxspeed)){
car[_local2].wheel[_local3].spin = -(car[_local2].maxspeed);
};
_local3++;
};
} else {
_local8 = 0.2;
_local3 = 2;
while (_local3 < 4) {
if (car[_local2].wheel[_local3].spin > _local8){
car[_local2].wheel[_local3].spin = (car[_local2].wheel[_local3].spin - _local8);
} else {
if (car[_local2].wheel[_local3].spin < -(_local8)){
car[_local2].wheel[_local3].spin = (car[_local2].wheel[_local3].spin + _local8);
} else {
car[_local2].wheel[_local3].spin = 0;
};
};
_local3++;
};
};
};
if (keyboard[32]){
_local3 = 2;
while (_local3 < 4) {
car[_local2].wheel[_local3].spin = (car[_local2].wheel[_local3].spin * 0.75);
_local3++;
};
};
_local8 = 0.25;
if (keyboard[37]){
_local3 = 0;
while (_local3 < 2) {
car[_local2].wheel[_local3].dir = (car[_local2].wheel[_local3].dir - _local8);
if (car[_local2].wheel[_local3].dir < -0.75){
car[_local2].wheel[_local3].dir = -0.75;
};
_local3++;
};
} else {
if (keyboard[39]){
_local3 = 0;
while (_local3 < 2) {
car[_local2].wheel[_local3].dir = (car[_local2].wheel[_local3].dir + _local8);
if (car[_local2].wheel[_local3].dir > 0.75){
car[_local2].wheel[_local3].dir = 0.75;
};
_local3++;
};
} else {
_local3 = 0;
while (_local3 < 2) {
if (car[_local2].wheel[_local3].dir > _local8){
car[_local2].wheel[_local3].dir = (car[_local2].wheel[_local3].dir - _local8);
} else {
if (car[_local2].wheel[_local3].dir < -(_local8)){
car[_local2].wheel[_local3].dir = (car[_local2].wheel[_local3].dir + _local8);
} else {
car[_local2].wheel[_local3].dir = 0;
};
};
_local3++;
};
};
};
bgbitmapdata.lock();
_local2 = 0;
while (_local2 < numofcars) {
car[_local2].prevvelocity[0] = car[_local2].velocity[0];
car[_local2].prevvelocity[1] = car[_local2].velocity[1];
car[_local2].prevangularvelocity = car[_local2].angularvelocity;
car[_local2].prevorientation[0] = car[_local2].orientation[0];
car[_local2].prevorientation[1] = car[_local2].orientation[1];
car[_local2].prevorientation[2] = car[_local2].orientation[2];
car[_local2].prevorientation[3] = car[_local2].orientation[3];
car[_local2].orientation[0] = Math.cos(car[_local2].dir);
car[_local2].orientation[1] = Math.sin(car[_local2].dir);
car[_local2].orientation[2] = -(car[_local2].orientation[1]);
car[_local2].orientation[3] = car[_local2].orientation[0];
_local3 = 0;
while (_local3 < 4) {
_local6[0] = ((car[_local2].orientation[0] * car[_local2].wheel[_local3].position[0]) + (car[_local2].orientation[2] * car[_local2].wheel[_local3].position[1]));
_local6[1] = ((car[_local2].orientation[1] * car[_local2].wheel[_local3].position[0]) + (car[_local2].orientation[3] * car[_local2].wheel[_local3].position[1]));
_local7[0] = ((car[_local2].prevorientation[0] * car[_local2].wheel[_local3].position[0]) + (car[_local2].prevorientation[2] * car[_local2].wheel[_local3].position[1]));
_local7[1] = ((car[_local2].prevorientation[1] * car[_local2].wheel[_local3].position[0]) + (car[_local2].prevorientation[3] * car[_local2].wheel[_local3].position[1]));
_local5[0] = Math.sin((car[_local2].dir + car[_local2].wheel[_local3].dir));
_local5[1] = -(Math.cos((car[_local2].dir + car[_local2].wheel[_local3].dir)));
getcarforce(_local4, _local2, _local6);
_local4[0] = ((_local5[0] * car[_local2].wheel[_local3].spin) - _local4[0]);
_local4[1] = ((_local5[1] * car[_local2].wheel[_local3].spin) - _local4[1]);
_local8 = Math.sqrt(((_local4[0] * _local4[0]) + (_local4[1] * _local4[1])));
_local9 = (car[_local2].friction - (car[_local2].wheel[_local3].blood * 0.2));
if (_local3 < 2){
_local9 = (_local9 + 0.15);
};
_local10 = bgbitmapdata.getPixel((car[_local2].position[0] + _local6[0]), (car[_local2].position[1] + _local6[1]));
if (_local10 == 0x800000){
car[_local2].wheel[_local3].blood = 1;
};
if ((((car[_local2].wheel[_local3].blood >= 0.125)) || ((_local8 > _local9)))){
if (((_local8 - _local9) * 0.125) > (car[_local2].wheel[_local3].blood * 2)){
_local11 = ((_local8 - _local9) * 0.125);
} else {
_local11 = (car[_local2].wheel[_local3].blood * 2);
};
if (_local11 > 2){
_local11 = 2;
};
_local10 = (car[_local2].wheel[_local3].blood * 128);
_local10 = (_local10 << 16);
drawline((car[_local2].position[0] + _local6[0]), (car[_local2].position[1] + _local6[1]), (car[_local2].prevposition[0] + _local7[0]), (car[_local2].prevposition[1] + _local7[1]), _local10, (_local11 * 65536), (_local11 * 65536));
};
if (_local8 > _local9){
_local13 = (_local13 + (_local8 - _local9));
_local4[0] = (_local4[0] / _local8);
_local4[1] = (_local4[1] / _local8);
_local8 = _local9;
_local4[0] = (_local4[0] * _local8);
_local4[1] = (_local4[1] * _local8);
};
_local8 = ((_local4[0] * _local5[0]) + (_local4[1] * _local5[1]));
car[_local2].wheel[_local3].spin = (car[_local2].wheel[_local3].spin - (_local8 * 0.625));
_local4[0] = (_local4[0] * 0.25);
_local4[1] = (_local4[1] * 0.25);
applycarforce(_local4, _local2, _local6);
if (car[_local2].wheel[_local3].blood > 0){
if (car[_local2].wheel[_local3].blood > 0.02){
car[_local2].wheel[_local3].blood = (car[_local2].wheel[_local3].blood - 0.02);
} else {
car[_local2].wheel[_local3].blood = 0;
};
};
_local3++;
};
car[_local2].prevposition[0] = car[_local2].position[0];
car[_local2].prevposition[1] = car[_local2].position[1];
car[_local2].position[0] = (car[_local2].position[0] + car[_local2].velocity[0]);
car[_local2].position[1] = (car[_local2].position[1] + car[_local2].velocity[1]);
car[_local2].dir = (car[_local2].dir + car[_local2].angularvelocity);
if (car[_local2].position[0] < 20){
car[_local2].position[0] = 20;
car[_local2].velocity[0] = (Math.abs(car[_local2].velocity[0]) * 0.5);
};
if (car[_local2].position[1] < 20){
car[_local2].position[1] = 20;
car[_local2].velocity[1] = (Math.abs(car[_local2].velocity[1]) * 0.5);
};
if (car[_local2].position[0] > (bgbitmapimage.width - 20)){
car[_local2].position[0] = (bgbitmapimage.width - 20);
car[_local2].velocity[0] = (-(Math.abs(car[_local2].velocity[0])) * 0.5);
};
if (car[_local2].position[1] > (bgbitmapimage.height - 20)){
car[_local2].position[1] = (bgbitmapimage.height - 20);
car[_local2].velocity[1] = (-(Math.abs(car[_local2].velocity[1])) * 0.5);
};
carcollisionlevel(_local2);
_local2++;
};
_local2 = 0;
while (_local2 < numofcars) {
car[_local2].bitmapdata.lock();
_local2++;
};
spritesimulation();
_local2 = 0;
while (_local2 < numofcars) {
car[_local2].bitmapdata.unlock();
_local2++;
};
bgbitmapdata.unlock();
if (gamelevelbonus != 2){
peoplesimulation();
};
if (viewposition[0] < (car[0].position[0] - 40)){
viewposition[0] = (car[0].position[0] - 40);
};
if (viewposition[0] > (car[0].position[0] + 40)){
viewposition[0] = (car[0].position[0] + 40);
};
if (viewposition[1] < (car[0].position[1] - 40)){
viewposition[1] = (car[0].position[1] - 40);
};
if (viewposition[1] > (car[0].position[1] + 40)){
viewposition[1] = (car[0].position[1] + 40);
};
if (viewposition[0] < 400){
viewposition[0] = 400;
};
if (viewposition[1] < 300){
viewposition[1] = 300;
};
if (viewposition[0] > (bgbitmapimage.width - 400)){
viewposition[0] = (bgbitmapimage.width - 400);
};
if (viewposition[1] > (bgbitmapimage.height - 300)){
viewposition[1] = (bgbitmapimage.height - 300);
};
_local2 = 0;
while (_local2 < numofcars) {
car[_local2].image.x = ((car[_local2].position[0] + (car[_local2].orientation[0] * car[_local2].imageposition[0])) + (car[_local2].orientation[2] * car[_local2].imageposition[1]));
car[_local2].image.y = ((car[_local2].position[1] + (car[_local2].orientation[1] * car[_local2].imageposition[0])) + (car[_local2].orientation[3] * car[_local2].imageposition[1]));
car[_local2].image.rotation = (car[_local2].dir * 57.2957795130823);
_local2++;
};
this.x = (-(viewposition[0]) + 400);
this.y = (-(viewposition[1]) + 300);
objecttimetolive();
_local12 = (((_local13 * 0.125) * 0.125) * 0.25);
if (_local12 > 0.125){
_local12 = 0.125;
};
_local15 = screechchannel.soundTransform;
_local15.volume = (_local12 * soundvolume);
screechchannel.soundTransform = _local15;
_local8 = ((Math.abs((((car[0].wheel[0].spin + car[0].wheel[1].spin) + car[0].wheel[2].spin) + car[0].wheel[3].spin)) * 0.125) * 0.25);
_local12 = (0.5 - _local8);
if (_local12 < 0.125){
_local12 = 0.125;
};
_local12 = (_local12 * 0.5);
_local12 = (_local12 * 0.5);
_local15 = enginechannel01.soundTransform;
_local15.volume = (_local12 * soundvolume);
enginechannel01.soundTransform = _local15;
_local12 = (0.5 - Math.abs((0.5 - _local8)));
if (_local12 < 0.125){
_local12 = 0.125;
};
_local12 = (_local12 * 0.75);
_local12 = (_local12 * 0.5);
_local15 = enginechannel02.soundTransform;
_local15.volume = (_local12 * soundvolume);
enginechannel02.soundTransform = _local15;
_local12 = (_local8 - 0.5);
if (_local12 < 0.125){
_local12 = 0.125;
};
if (_local12 > 0.5){
_local12 = 0.5;
};
_local12 = (_local12 * 0.75);
_local12 = (_local12 * 0.5);
_local15 = enginechannel03.soundTransform;
_local15.volume = (_local12 * soundvolume);
enginechannel03.soundTransform = _local15;
if ((((gametype >= 2)) && ((gametype <= 4)))){
if (car[0].position[0] < 400){
if (car[0].position[1] < 540){
if (car[0].prevposition[1] >= 540){
playerlastlap = (playertime - playerlaptime);
playerlaptime = playertime;
numoflaps++;
};
};
if (car[0].position[1] >= 540){
if (car[0].prevposition[1] < 540){
numoflaps--;
};
};
};
};
if (playercombodelay > 0){
playercombodelay--;
if (playercombodelay <= 0){
playerkilltype = 0;
playercombo = 1;
};
};
framecount++;
if (gametype == 1){
playertime--;
} else {
playertime++;
};
} else {
_local15 = screechchannel.soundTransform;
_local15.volume = 0;
screechchannel.soundTransform = _local15;
_local15 = enginechannel01.soundTransform;
_local15.volume = 0;
enginechannel01.soundTransform = _local15;
_local15 = enginechannel02.soundTransform;
_local15.volume = 0;
enginechannel02.soundTransform = _local15;
_local15 = enginechannel03.soundTransform;
_local15.volume = 0;
enginechannel03.soundTransform = _local15;
};
hud.x = (viewposition[0] - 400);
hud.y = (viewposition[1] - 300);
timetext.x = (viewposition[0] - 400);
timetext.y = (viewposition[1] - 300);
if (gametype == 1){
if (((!((gamelevelbonus == 1))) && (!((gamelevelbonus == 3))))){
if (playercombo > 1){
timetext.text = ((((((((("Time:" + int((playertime / 30))) + "\tKills:") + numofkills) + "/") + numofpeople) + "\tScore:") + playerscore) + "\tCombo:x") + (playercombo - 1));
} else {
timetext.text = ((((((("Time:" + int((playertime / 30))) + "\tKills:") + numofkills) + "/") + numofpeople) + "\tScore:") + playerscore);
};
} else {
timetext.text = ((((((("Time:" + int((playertime / 30))) + "\tPoops:") + numofportokills) + "/") + numofportos) + "\tScore:") + playerscore);
};
} else {
if ((((gametype >= 2)) && ((gametype <= 4)))){
timetext.text = (((((((((("Time:" + int((playertime / 30))) + ".") + int(((playertime / 3) % 10))) + "\tLaps:") + numoflaps) + "/3") + "\tLast Lap:") + int((playerlastlap / 30))) + ".") + int(((playerlastlap / 3) % 10)));
};
};
_local6[1] = 30;
if (gametype == 1){
_local2 = 0;
while (_local2 < 8) {
if (scoretext[_local2].delay > 0){
scoretext[_local2].delay--;
if (scoretext[_local2].delay == 0){
scoretext[_local2].type = 0;
};
};
_local6[0] = 0;
if ((scoretext[_local2].type & 1) == 1){
scoretext[_local2].bloodimage.x = ((viewposition[0] - 400) + _local6[0]);
scoretext[_local2].bloodimage.y = ((viewposition[1] - 300) + _local6[1]);
scoretext[_local2].bloodimage.visible = true;
scoretext[_local2].bloodimage.alpha = (scoretext[_local2].delay / 60);
_local6[0] = (_local6[0] + scoretext[_local2].bloodimage.width);
} else {
scoretext[_local2].bloodimage.visible = false;
};
if ((scoretext[_local2].type & 2) == 2){
scoretext[_local2].slideimage.x = ((viewposition[0] - 400) + _local6[0]);
scoretext[_local2].slideimage.y = ((viewposition[1] - 300) + _local6[1]);
scoretext[_local2].slideimage.visible = true;
scoretext[_local2].slideimage.alpha = (scoretext[_local2].delay / 60);
_local6[0] = (_local6[0] + scoretext[_local2].slideimage.width);
} else {
scoretext[_local2].slideimage.visible = false;
};
if ((scoretext[_local2].type & 4) == 4){
scoretext[_local2].explosionimage.x = ((viewposition[0] - 400) + _local6[0]);
scoretext[_local2].explosionimage.y = ((viewposition[1] - 300) + _local6[1]);
scoretext[_local2].explosionimage.visible = true;
scoretext[_local2].explosionimage.alpha = (scoretext[_local2].delay / 60);
_local6[0] = (_local6[0] + scoretext[_local2].explosionimage.width);
scoretext[_local2].killimage.visible = false;
} else {
scoretext[_local2].explosionimage.visible = false;
if ((((scoretext[_local2].delay > 0)) && (!((scoretext[_local2].type == 3))))){
scoretext[_local2].killimage.x = ((viewposition[0] - 400) + _local6[0]);
scoretext[_local2].killimage.y = ((viewposition[1] - 300) + _local6[1]);
scoretext[_local2].killimage.visible = true;
scoretext[_local2].killimage.alpha = (scoretext[_local2].delay / 60);
_local6[0] = (_local6[0] + scoretext[_local2].killimage.width);
} else {
scoretext[_local2].killimage.visible = false;
};
};
_local6[1] = (_local6[1] + 20);
_local2++;
};
};
if (((keyboard[27]) && ((gameexitdelay == 0)))){
keyboard[27] = 0;
_local15 = screechchannel.soundTransform;
_local15.volume = 0;
screechchannel.soundTransform = _local15;
_local15 = enginechannel01.soundTransform;
_local15.volume = 0;
enginechannel01.soundTransform = _local15;
_local15 = enginechannel02.soundTransform;
_local15.volume = 0;
enginechannel02.soundTransform = _local15;
_local15 = enginechannel03.soundTransform;
_local15.volume = 0;
enginechannel03.soundTransform = _local15;
if (countdownimage != null){
countdownimage.stop();
countdownimage.visible = false;
levelnametext.visible = false;
};
pausemenu();
};
if (gamestartdelay > 0){
gamestartdelay--;
if (gamestartdelay == 75){
_local14 = new sound_carstart().play();
_local15 = _local14.soundTransform;
_local15.volume = (0.5 * soundvolume);
_local14.soundTransform = _local15;
};
if (gamestartdelay == 0){
removeChild(countdownimage);
countdownimage = null;
removeChild(levelnametext);
};
};
if (gameexitdelay > 0){
_local15 = gamemusicchannel.soundTransform;
_local15.volume = (((100 - gameexitdelay) * soundvolume) / 200);
gamemusicchannel.soundTransform = _local15;
};
if ((((gametype >= 2)) && ((gametype <= 4)))){
if (numoflaps == 3){
if (gameexitdelay == 0){
levelcompleteimage = new text_levelcomplete();
levelcompleteimage.x = (viewposition[0] - 120);
levelcompleteimage.y = (viewposition[1] - 50);
addChild(levelcompleteimage);
};
if (gameexitdelay == 60){
fadeoutimage = new fadeout();
fadeoutimage.x = (viewposition[0] - 400);
fadeoutimage.y = (viewposition[1] - 300);
addChild(fadeoutimage);
};
gameexitdelay++;
if (gameexitdelay >= 100){
shutdowngame();
gotoAndStop("1stplacemenu");
};
};
};
if (gametype == 1){
if ((((((numofkills == numofpeople)) && ((numofportokills >= numofportos)))) || ((((playertime <= 0)) && (!((gamelevelbonus == 0))))))){
if (gameexitdelay == 0){
levelcompleteimage = new text_levelcomplete();
levelcompleteimage.x = (viewposition[0] - 120);
levelcompleteimage.y = (viewposition[1] - 50);
addChild(levelcompleteimage);
};
if (gameexitdelay == 60){
fadeoutimage = new fadeout();
fadeoutimage.x = (viewposition[0] - 400);
fadeoutimage.y = (viewposition[1] - 300);
addChild(fadeoutimage);
};
gameexitdelay++;
if (gameexitdelay >= 100){
shutdowngame();
gotoAndStop("levelcompletemenu");
};
};
if ((((playertime <= 0)) && ((gamelevelbonus == 0)))){
if (gameexitdelay == 0){
levelcompleteimage = new text_youlose();
levelcompleteimage.x = (viewposition[0] - 120);
levelcompleteimage.y = (viewposition[1] - 50);
addChild(levelcompleteimage);
};
if (gameexitdelay == 60){
fadeoutimage = new fadeout();
fadeoutimage.x = (viewposition[0] - 400);
fadeoutimage.y = (viewposition[1] - 300);
addChild(fadeoutimage);
};
gameexitdelay++;
if (gameexitdelay >= 100){
shutdowngame();
gotoAndStop("gameovermenu");
};
};
};
}
public function gotocredits(_arg1:MouseEvent){
gotoAndStop("creditsmenu");
}
function pointinsideobject(_arg1:int, _arg2:Array, _arg3:Number):int{
if (object[_arg1].type != 1){
if (object[_arg1].numoflines == 4){
if ((((_arg2[0] > (object[_arg1].line[0].start[0] - _arg3))) && ((_arg2[0] < (object[_arg1].line[2].start[0] + _arg3))))){
if ((((_arg2[1] > (object[_arg1].line[0].start[1] - _arg3))) && ((_arg2[1] < (object[_arg1].line[2].start[1] + _arg3))))){
return (1);
};
};
};
} else {
if (object[_arg1].numoflines == 4){
if ((((_arg2[0] > ((object[_arg1].position[0] + object[_arg1].line[0].start[0]) - _arg3))) && ((_arg2[0] < ((object[_arg1].position[0] + object[_arg1].line[2].start[0]) + _arg3))))){
if ((((_arg2[1] > ((object[_arg1].position[1] + object[_arg1].line[0].start[1]) - _arg3))) && ((_arg2[1] < ((object[_arg1].position[1] + object[_arg1].line[2].start[1]) + _arg3))))){
return (1);
};
};
};
};
return (0);
}
function peoplesimulation(){
var _local1:int;
var _local2:Array;
var _local3:Number;
_local2 = [0, 0];
_local1 = 0;
while (_local1 < numofobjects) {
if (object[_local1].type == 1){
_local2[0] = (object[_local1].position[0] - car[0].position[0]);
_local2[1] = (object[_local1].position[1] - car[0].position[1]);
if ((((_local2[0] > -200)) && ((_local2[0] < 200)))){
if ((((_local2[1] > -200)) && ((_local2[1] < 200)))){
_local3 = Math.sqrt(((_local2[0] * _local2[0]) + (_local2[1] * _local2[1])));
_local2[0] = (_local2[0] / _local3);
_local2[1] = (_local2[1] / _local3);
object[_local1].position[0] = (object[_local1].position[0] + _local2[0]);
object[_local1].position[1] = (object[_local1].position[1] + _local2[1]);
if (Math.abs(_local2[1]) > Math.abs(_local2[0])){
if (_local2[1] > 0){
object[_local1].image.gotoAndStop(1);
} else {
object[_local1].image.gotoAndStop(3);
};
} else {
if (_local2[0] < 0){
object[_local1].image.gotoAndStop(2);
} else {
object[_local1].image.gotoAndStop(4);
};
};
if (pointinsidebuildings(object[_local1].position, 40)){
object[_local1].position[0] = (object[_local1].position[0] - _local2[0]);
object[_local1].position[1] = (object[_local1].position[1] - _local2[1]);
};
if (object[_local1].position[0] < 20){
object[_local1].position[0] = 20;
};
if (object[_local1].position[1] < 20){
object[_local1].position[1] = 20;
};
if (object[_local1].position[0] > (bgbitmapimage.width - 20)){
object[_local1].position[0] = (bgbitmapimage.width - 20);
};
if (object[_local1].position[1] > (bgbitmapimage.height - 20)){
object[_local1].position[1] = (bgbitmapimage.height - 20);
};
};
};
object[_local1].image.x = object[_local1].position[0];
object[_local1].image.y = object[_local1].position[1];
};
_local1++;
};
}
function frame131(){
initgame(2);
}
function frame132(){
initgame(3);
}
}
}//package
Section 51
//Bmailbox01 (Bmailbox01)
package {
import flash.display.*;
public dynamic class Bmailbox01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 52
//Bporto (Bporto)
package {
import flash.display.*;
public dynamic class Bporto extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 53
//Bsign01 (Bsign01)
package {
import flash.display.*;
public dynamic class Bsign01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 54
//Btable (Btable)
package {
import flash.display.*;
public dynamic class Btable extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 55
//Btombstone01 (Btombstone01)
package {
import flash.display.*;
public dynamic class Btombstone01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 56
//Btombstone03 (Btombstone03)
package {
import flash.display.*;
public dynamic class Btombstone03 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 57
//Btombstone04 (Btombstone04)
package {
import flash.display.*;
public dynamic class Btombstone04 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 58
//Btomestone02 (Btomestone02)
package {
import flash.display.*;
public dynamic class Btomestone02 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 59
//Btrash01 (Btrash01)
package {
import flash.display.*;
public dynamic class Btrash01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 60
//Bwall01 (Bwall01)
package {
import flash.display.*;
public dynamic class Bwall01 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 61
//Bwall02 (Bwall02)
package {
import flash.display.*;
public dynamic class Bwall02 extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 62
//carimage (carimage)
package {
import flash.display.*;
public dynamic class carimage extends MovieClip {
}
}//package
Section 63
//carimage2 (carimage2)
package {
import flash.display.*;
public dynamic class carimage2 extends MovieClip {
}
}//package
Section 64
//carimageblood (carimageblood)
package {
import flash.display.*;
public dynamic class carimageblood extends MovieClip {
}
}//package
Section 65
//carimageblood2 (carimageblood2)
package {
import flash.display.*;
public dynamic class carimageblood2 extends MovieClip {
}
}//package
Section 66
//fadeout (fadeout)
package {
import flash.display.*;
public dynamic class fadeout extends MovieClip {
public function fadeout(){
addFrameScript(29, frame30);
}
function frame30(){
this.stop();
}
}
}//package
Section 67
//hudimage (hudimage)
package {
import flash.display.*;
public dynamic class hudimage extends MovieClip {
}
}//package
Section 68
//human_alex (human_alex)
package {
import flash.display.*;
public dynamic class human_alex extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 69
//human_blackguy (human_blackguy)
package {
import flash.display.*;
public dynamic class human_blackguy extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 70
//human_danielle (human_danielle)
package {
import flash.display.*;
public dynamic class human_danielle extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 71
//human_edmund (human_edmund)
package {
import flash.display.*;
public dynamic class human_edmund extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 72
//human_hippy (human_hippy)
package {
import flash.display.*;
public dynamic class human_hippy extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 73
//human_hobo (human_hobo)
package {
import flash.display.*;
public dynamic class human_hobo extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 74
//human_kyle (human_kyle)
package {
import flash.display.*;
public dynamic class human_kyle extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 75
//human_mexican (human_mexican)
package {
import flash.display.*;
public dynamic class human_mexican extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 76
//human_mourner (human_mourner)
package {
import flash.display.*;
public dynamic class human_mourner extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 77
//human_oldlady (human_oldlady)
package {
import flash.display.*;
public dynamic class human_oldlady extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 78
//human_oldman (human_oldman)
package {
import flash.display.*;
public dynamic class human_oldman extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 79
//human_ranger (human_ranger)
package {
import flash.display.*;
public dynamic class human_ranger extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 80
//human_skinnydipper (human_skinnydipper)
package {
import flash.display.*;
public dynamic class human_skinnydipper extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 81
//human_zombie (human_zombie)
package {
import flash.display.*;
public dynamic class human_zombie extends MovieClip {
public var coll:MovieClip;
}
}//package
Section 82
//mapimage (mapimage)
package {
import flash.display.*;
public dynamic class mapimage extends MovieClip {
}
}//package
Section 83
//maprace1 (maprace1)
package {
import flash.display.*;
public dynamic class maprace1 extends MovieClip {
}
}//package
Section 84
//maprace2 (maprace2)
package {
import flash.display.*;
public dynamic class maprace2 extends MovieClip {
}
}//package
Section 85
//maprace3 (maprace3)
package {
import flash.display.*;
public dynamic class maprace3 extends MovieClip {
}
}//package
Section 86
//menu_pausescreen (menu_pausescreen)
package {
import flash.display.*;
public dynamic class menu_pausescreen extends MovieClip {
public var soundoffbutton:SimpleButton;
public var unpausebutton:SimpleButton;
public var exitgamebutton:SimpleButton;
public var soundonbutton:SimpleButton;
}
}//package
Section 87
//music_game (music_game)
package {
import flash.media.*;
public dynamic class music_game extends Sound {
}
}//package
Section 88
//music_game2 (music_game2)
package {
import flash.media.*;
public dynamic class music_game2 extends Sound {
}
}//package
Section 89
//music_title (music_title)
package {
import flash.media.*;
public dynamic class music_title extends Sound {
}
}//package
Section 90
//p1 (p1)
package {
import flash.display.*;
public dynamic class p1 extends MovieClip {
}
}//package
Section 91
//p2 (p2)
package {
import flash.display.*;
public dynamic class p2 extends MovieClip {
}
}//package
Section 92
//pcsenior (pcsenior)
package {
import flash.text.*;
public dynamic class pcsenior extends Font {
}
}//package
Section 93
//sound_carstart (sound_carstart)
package {
import flash.media.*;
public dynamic class sound_carstart extends Sound {
}
}//package
Section 94
//sound_death01 (sound_death01)
package {
import flash.media.*;
public dynamic class sound_death01 extends Sound {
}
}//package
Section 95
//sound_death02 (sound_death02)
package {
import flash.media.*;
public dynamic class sound_death02 extends Sound {
}
}//package
Section 96
//sound_death03 (sound_death03)
package {
import flash.media.*;
public dynamic class sound_death03 extends Sound {
}
}//package
Section 97
//sound_death04 (sound_death04)
package {
import flash.media.*;
public dynamic class sound_death04 extends Sound {
}
}//package
Section 98
//sound_death05 (sound_death05)
package {
import flash.media.*;
public dynamic class sound_death05 extends Sound {
}
}//package
Section 99
//sound_death06 (sound_death06)
package {
import flash.media.*;
public dynamic class sound_death06 extends Sound {
}
}//package
Section 100
//sound_death07 (sound_death07)
package {
import flash.media.*;
public dynamic class sound_death07 extends Sound {
}
}//package
Section 101
//sound_death08 (sound_death08)
package {
import flash.media.*;
public dynamic class sound_death08 extends Sound {
}
}//package
Section 102
//sound_engine01 (sound_engine01)
package {
import flash.media.*;
public dynamic class sound_engine01 extends Sound {
}
}//package
Section 103
//sound_engine02 (sound_engine02)
package {
import flash.media.*;
public dynamic class sound_engine02 extends Sound {
}
}//package
Section 104
//sound_engine03 (sound_engine03)
package {
import flash.media.*;
public dynamic class sound_engine03 extends Sound {
}
}//package
Section 105
//sound_hit01 (sound_hit01)
package {
import flash.media.*;
public dynamic class sound_hit01 extends Sound {
}
}//package
Section 106
//sound_hit02 (sound_hit02)
package {
import flash.media.*;
public dynamic class sound_hit02 extends Sound {
}
}//package
Section 107
//sound_hit03 (sound_hit03)
package {
import flash.media.*;
public dynamic class sound_hit03 extends Sound {
}
}//package
Section 108
//sound_screech (sound_screech)
package {
import flash.media.*;
public dynamic class sound_screech extends Sound {
}
}//package
Section 109
//sound_splat01 (sound_splat01)
package {
import flash.media.*;
public dynamic class sound_splat01 extends Sound {
}
}//package
Section 110
//sound_splat02 (sound_splat02)
package {
import flash.media.*;
public dynamic class sound_splat02 extends Sound {
}
}//package
Section 111
//sound_splat03 (sound_splat03)
package {
import flash.media.*;
public dynamic class sound_splat03 extends Sound {
}
}//package
Section 112
//sound_splat04 (sound_splat04)
package {
import flash.media.*;
public dynamic class sound_splat04 extends Sound {
}
}//package
Section 113
//Symbol37 (Symbol37)
package {
import flash.display.*;
public dynamic class Symbol37 extends MovieClip {
public var instructionsbutton:Symbol65;
public var startbutton:Symbol64;
public var creditsbutton:Symbol66;
}
}//package
Section 114
//Symbol64 (Symbol64)
package {
import flash.display.*;
public dynamic class Symbol64 extends SimpleButton {
}
}//package
Section 115
//Symbol65 (Symbol65)
package {
import flash.display.*;
public dynamic class Symbol65 extends SimpleButton {
}
}//package
Section 116
//Symbol66 (Symbol66)
package {
import flash.display.*;
public dynamic class Symbol66 extends SimpleButton {
}
}//package
Section 117
//text_blood (text_blood)
package {
import flash.display.*;
public dynamic class text_blood extends MovieClip {
}
}//package
Section 118
//text_countdown (text_countdown)
package {
import flash.display.*;
public dynamic class text_countdown extends MovieClip {
public function text_countdown(){
addFrameScript(59, frame60);
}
function frame60(){
this.stop();
}
}
}//package
Section 119
//text_explosion (text_explosion)
package {
import flash.display.*;
public dynamic class text_explosion extends MovieClip {
}
}//package
Section 120
//text_kill (text_kill)
package {
import flash.display.*;
public dynamic class text_kill extends MovieClip {
}
}//package
Section 121
//text_levelcomplete (text_levelcomplete)
package {
import flash.display.*;
public dynamic class text_levelcomplete extends MovieClip {
public function text_levelcomplete(){
addFrameScript(48, frame49);
}
function frame49(){
this.stop();
}
}
}//package
Section 122
//text_slide (text_slide)
package {
import flash.display.*;
public dynamic class text_slide extends MovieClip {
}
}//package
Section 123
//text_youlose (text_youlose)
package {
import flash.display.*;
public dynamic class text_youlose extends MovieClip {
public function text_youlose(){
addFrameScript(48, frame49);
}
function frame49(){
this.stop();
}
}
}//package