Combined Code
movieClip 52 hockey {
#initclip
Object.registerClass('hockey', Hockey);
#endinitclip
}
// unknown tag 88 length 35
movieClip 55 title {
#initclip
Object.registerClass('title', TitleScreen);
#endinitclip
}
movieClip 57 preloader {
#initclip
Object.registerClass('preloader', Preloader);
#endinitclip
}
movieClip 58 __Packages.TitleScreen {
#initclip
if (!_global.TitleScreen) {
var v1 = function () {
super();
};
_global.TitleScreen = v1;
_global.TitleScreen extends MovieClip;
var v2 = v1.prototype;
v2.loadBitmap3x = function (name) {
var v1 = flash.display.BitmapData.loadBitmap(name);
if (v1 == null) {
trace('bm ' + name + ' was null');
}
var v3 = new flash.display.BitmapData(v1.width * 3, v1.height * 3, true, 0);
var v2 = new flash.geom.Matrix();
v2.scale(3, 3);
v3.draw(v1, v2);
return v3;
};
v2.convertToCanadian = function (bm) {
var v8 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
var v11 = 133;
var v9 = 230;
var v10 = 156;
var v3 = 0;
while (v3 < bm.height) {
var v2 = 0;
while (v2 < bm.width) {
var v1 = bm.getPixel32(v2, v3);
var v5 = v1 >> 16 & 255;
var v6 = v1 >> 8 & 255;
var v4 = v1 & 255;
if (Math.abs(v5 - v11) < 3 && Math.abs(v6 - v9) < 3 && Math.abs(v4 - v10) < 3) {
v1 = 4294948133.0;
}
v8.setPixel32(v2, v3, v1);
++v2;
}
++v3;
}
return v8;
};
v2.convertToReferee = function (bm) {
var v8 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
var v11 = 133;
var v9 = 230;
var v10 = 156;
var v3 = 0;
while (v3 < bm.height) {
var v2 = 0;
while (v2 < bm.width) {
var v1 = bm.getPixel32(v2, v3);
var v5 = v1 >> 16 & 255;
var v6 = v1 >> 8 & 255;
var v4 = v1 & 255;
if (Math.abs(v5 - v11) < 3 && Math.abs(v6 - v9) < 3 && Math.abs(v4 - v10) < 3) {
if (v3 <= 33 || int(v2 / 3) % 2) {
v1 = 4278190080.0;
} else {
v1 = 4294967295.0;
}
}
v8.setPixel32(v2, v3, v1);
++v2;
}
++v3;
}
return v8;
};
v2.flipHoriz = function (bm) {
var v1 = new flash.geom.Matrix();
v1.scale(-1, 1);
v1.translate(bm.width, 0);
var v3 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
v3.draw(bm, v1);
return v3;
};
v2.setDepthOf = function (m, n) {
var v3 = _root.getInstanceAtDepth(n);
if (v3 == m) {
return undefined;
}
if (v3 != undefined) {
this.setDepthOf(v3, n - 1);
}
m.swapDepths(n);
};
v2.createMovieAtDepth = function (name, depth) {
var v3 = _root.getNextHighestDepth();
var v2 = _root.createEmptyMovieClip(name, v3);
v2.swapDepths(depth);
return v2;
};
v2.toDecimal = function (number, factor) {
return Math.round(number * factor) / factor;
};
v2.onLoad = function () {
Key.addListener(this);
trace('title onload');
this.titlebitmap = this.loadBitmap3x('title.png');
this.selectedbitmap = this.loadBitmap3x('selected.png');
trace('hi');
this.setframe(this.titlebitmap);
this.moveSelection(false);
if (this.MUSIC) {
this.titlemusic = new Sound(this);
this.titlemusic.attachSound('unlucky.wav');
this.titlemusic.setVolume(100);
this.titlemusic.start(0, 99999);
trace('started title music');
}
};
v2.moveSelection = function (playsound) {
if (_root.selmc) {
_root.selmc.removeMovieClip();
}
_root.selmc = _root.createEmptyMovieClip('selmc', this.TITLESELDEPTH);
_root.selmc.attachBitmap(this.selectedbitmap, this.TITLESELDEPTH);
_root.selmc._x = this.TITLESELX;
_root.selmc._y = this.TITLESELY + this.TITLESELHEIGHT * this.selection;
if (playsound) {
var v3 = new Sound(this);
v3.attachSound('menuchange.wav');
v3.setVolume(100);
v3.start(0, 1);
}
};
v2.setframe = function (which) {
if (_root.titlemc) {
_root.titlemc.removeMovieClip();
}
_root.titlemc = _root.createEmptyMovieClip('titlemc', this.BGIMAGEDEPTH);
_root.titlemc.attachBitmap(which, this.BGIMAGEDEPTH);
};
v2.onEnterFrame = function () {
++this.frames;
if (this.frames < this.FADEFRAMES) {
_root.titlemc._alpha = 0;
} else {
if (this.starting > 0) {
--this.starting;
if (!this.starting) {
this.reallyStart();
}
_root.titlemc._alpha = 0;
} else {
_root.titlemc._alpha = 100;
}
}
};
v2.triggerStart = function () {
trace('did it');
this.starting = this.FADEOUTFRAMES;
var v2 = new Sound(this);
v2.attachSound('menuchoose.wav');
v2.setVolume(60);
v2.start(0, 1);
};
v2.onKeyDown = function () {
var v2 = Key.getCode();
if (this.starting >= 0) {
return undefined;
}
switch (v2) {
case 38:
--this.selection;
if (this.selection < 0) {
this.selection = 2;
}
this.moveSelection(true);
break;
case 40:
this.selection = (this.selection + 1) % 3;
this.moveSelection(true);
break;
case 32:
case 13:
this.triggerStart();
}
};
v2.reallyStart = function () {
Key.removeListener(this);
trace('reallystart!');
this.titlemusic.stop();
_root.titlemc.removeMovieClip();
_root.titlemc = undefined;
_root.selmc.removeMovieClip();
_root.selmc = undefined;
_root.menuselection = this.selection;
this.removeMovieClip();
_root.gotoAndStop('game');
_root.hockey = _root.attachMovie('hockey', 'hockey', 0);
_root.hockey.init();
};
v2.FASTMODE = false;
v2.MUSIC = !TitleScreen.prototype.FASTMODE;
v2.SCREENW = 840;
v2.SCREENH = 600;
v2.ARENAW = 1740;
v2.ARENAH = 960;
v2.ICEMINX = 105;
v2.ICEMAXX = 1620;
v2.ICEMAXY = 810;
v2.ICEMINY = 216;
v2.USAX = 747;
v2.USAY = 96;
v2.CANX = 939;
v2.CANY = 96;
v2.TIMEX = 825;
v2.TIMEY = 96;
v2.FACEOFF0X = 453;
v2.FACEOFF0Y = 336;
v2.FACEOFF1X = 1269;
v2.FACEOFF1Y = TitleScreen.prototype.FACEOFF0Y;
v2.FACEOFF2X = 858;
v2.FACEOFF2Y = 498;
v2.FACEOFF3X = TitleScreen.prototype.FACEOFF0X;
v2.FACEOFF3Y = 672;
v2.FACEOFF4X = TitleScreen.prototype.FACEOFF1X;
v2.FACEOFF4Y = TitleScreen.prototype.FACEOFF3Y;
v2.USAGOALIEX = 309;
v2.CANGOALIEX = 1413;
v2.GOALIEY = 435;
v2.GOALH = 144;
v2.REDLINEX = 864;
v2.USAGOALX1 = 219;
v2.USAGOALY1 = 450;
v2.USAGOALX2 = 261;
v2.USAGOALY2 = 558;
v2.CANGOALX1 = 1458;
v2.CANGOALY1 = 450;
v2.CANGOALX2 = 1500;
v2.CANGOALY2 = 558;
v2.BOTTOMBOARDSX = 96;
v2.BOTTOMBOARDSY = 636;
v2.PUCKH = 12;
v2.PUCKCLIPW = 12;
v2.PUCKCLIPH = 9;
v2.PLAYERW = 42;
v2.PLAYERC = TitleScreen.prototype.PLAYERW / 2;
v2.PLAYERH = 75;
v2.PLAYERCLIPHEIGHT = 18;
v2.COLLIDEDIST = 18;
v2.PLAYERTOPUCK = 33;
v2.PICKUPDIST = 33;
v2.PICKUPSTICKDIST = 39;
v2.SPLATTIME = 24;
v2.GETUPTIME = 12;
v2.FOLLOWTHROUGHTIME = 6;
v2.FULLSTRENGTHTIME = 24;
v2.RIGHT = 0;
v2.LEFT = 1;
v2.USA = 0;
v2.CAN = 1;
v2.REF = 2;
v2.REFDIST = 175;
v2.NHURT = 4;
v2.NBOUNCE = 3;
v2.MAXVELOCITYX = 8;
v2.MAXVELOCITYY = 5.6;
v2.PUCKFRICTION = 0.99;
v2.PLAYERFRICTION = 0.95;
v2.JUNKFRICTION = 0.98;
v2.SHOTSTRENGTH = 30;
v2.MINSTRENGTH = 0.2;
v2.PLAYERACCEL = 2;
v2.TITLESELX = 222;
v2.TITLESELY = 285;
v2.TITLESELHEIGHT = 60;
v2.FONTW = 9;
v2.FONTH = 16;
v2.FONTOVERLAP = 1;
v2.FONTCHARS = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`-=[]\\;\',./~!@#$%^&*()_+{}|:"<>?';
v2.INFOLINES = 2;
v2.INFOHEIGHT = TitleScreen.prototype.INFOLINES * TitleScreen.prototype.FONTH * 3;
v2.INFOMARGINX = 0;
v2.INFOMARGINY = 0;
v2.BGIMAGEDEPTH = 290;
v2.TITLESELDEPTH = 295;
v2.MUSICDEPTH = 80;
v2.RINKDEPTH = 200;
v2.HALODEPTH = 210;
v2.ICESTUFFDEPTH = 1000;
v2.BGMUSICDEPTH = 297;
v2.CUTSOUNDDEPTH = 298;
v2.PUCKSOUNDDEPTH = 299;
v2.PLAYERSOUNDDEPTH = 300;
v2.PPLAYERDEPTH = 10;
v2.BOTTOMBOARDSDEPTH = 50000;
v2.INFODEPTH = 60000;
v2.CUTSCENEDEPTH = 80000;
v2.frames = 0;
v2.starting = -1;
v2.FADEFRAMES = TitleScreen.prototype.FASTMODE ? 1 : 10;
v2.FADEOUTFRAMES = TitleScreen.prototype.FASTMODE ? 1 : 10;
v2.selection = TitleScreen.prototype.FASTMODE ? 2 : 0;
ASSetPropFlags(_global.TitleScreen.prototype, null, 1);
}
#endinitclip
}
movieClip 59 __Packages.Preloader {
#initclip
if (!_global.Preloader) {
var v1 = function () {
super();
};
_global.Preloader = v1;
_global.Preloader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.stop();
};
v2.onEnterFrame = function () {
var v3 = Math.round(_root.getBytesTotal());
var v4 = Math.round(_root.getBytesLoaded());
var v5 = (v4 / v3) * 100;
++this.frames;
if (v4 < v3) {
} else {
fscommand('trapallkeys', 'true');
fscommand('showmenu', 'false');
Stage.showMenu = false;
_root.gotoAndStop('title');
this.swapDepths(0);
this.removeMovieClip();
}
};
v2.frames = 0;
ASSetPropFlags(_global.Preloader.prototype, null, 1);
}
#endinitclip
}
movieClip 60 __Packages.Hockey {
#initclip
if (!_global.Hockey) {
var v1 = function () {
super();
};
_global.Hockey = v1;
_global.Hockey extends MovieClip;
var v2 = v1.prototype;
v2.loadBitmap3x = function (name) {
var v1 = flash.display.BitmapData.loadBitmap(name);
if (v1 == null) {
trace('bm ' + name + ' was null');
}
var v3 = new flash.display.BitmapData(v1.width * 3, v1.height * 3, true, 0);
var v2 = new flash.geom.Matrix();
v2.scale(3, 3);
v3.draw(v1, v2);
return v3;
};
v2.convertToCanadian = function (bm) {
var v8 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
var v11 = 133;
var v9 = 230;
var v10 = 156;
var v3 = 0;
while (v3 < bm.height) {
var v2 = 0;
while (v2 < bm.width) {
var v1 = bm.getPixel32(v2, v3);
var v5 = v1 >> 16 & 255;
var v6 = v1 >> 8 & 255;
var v4 = v1 & 255;
if (Math.abs(v5 - v11) < 3 && Math.abs(v6 - v9) < 3 && Math.abs(v4 - v10) < 3) {
v1 = 4294948133.0;
}
v8.setPixel32(v2, v3, v1);
++v2;
}
++v3;
}
return v8;
};
v2.convertToReferee = function (bm) {
var v8 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
var v11 = 133;
var v9 = 230;
var v10 = 156;
var v3 = 0;
while (v3 < bm.height) {
var v2 = 0;
while (v2 < bm.width) {
var v1 = bm.getPixel32(v2, v3);
var v5 = v1 >> 16 & 255;
var v6 = v1 >> 8 & 255;
var v4 = v1 & 255;
if (Math.abs(v5 - v11) < 3 && Math.abs(v6 - v9) < 3 && Math.abs(v4 - v10) < 3) {
if (v3 <= 33 || int(v2 / 3) % 2) {
v1 = 4278190080.0;
} else {
v1 = 4294967295.0;
}
}
v8.setPixel32(v2, v3, v1);
++v2;
}
++v3;
}
return v8;
};
v2.flipHoriz = function (bm) {
var v1 = new flash.geom.Matrix();
v1.scale(-1, 1);
v1.translate(bm.width, 0);
var v3 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
v3.draw(bm, v1);
return v3;
};
v2.setDepthOf = function (m, n) {
var v3 = _root.getInstanceAtDepth(n);
if (v3 == m) {
return undefined;
}
if (v3 != undefined) {
this.setDepthOf(v3, n - 1);
}
m.swapDepths(n);
};
v2.createMovieAtDepth = function (name, depth) {
var v3 = _root.getNextHighestDepth();
var v2 = _root.createEmptyMovieClip(name, v3);
v2.swapDepths(depth);
return v2;
};
v2.toDecimal = function (number, factor) {
return Math.round(number * factor) / factor;
};
v2.setMusic = function (m) {
trace('switch music ' + m);
this.backgroundclip = this.createMovieAtDepth('bgm', this.BGMUSICDEPTH);
this.backgroundmusic = new Sound(this.backgroundclip);
if (this.MUSIC) {
this.backgroundmusic.attachSound(m);
this.backgroundmusic.setVolume(100);
this.backgroundmusic.start(0, 99999);
}
};
v2.onLoad = function () {
Key.addListener(this);
};
v2.createGlobalMC = function (name, bitmap, depth) {
var v2 = this.createMovieAtDepth(name, depth);
v2.attachBitmap(bitmap, 'b', 1);
return v2;
};
v2.getPlayerShot = function (player) {
var v2;
var v3 = this.GOALIEY + this.GOALH / 2;
if (player.facing == this.RIGHT) {
v2 = this.CANGOALIEX + 15;
var v6 = v2 - player.x;
var v5 = v3 - player.y;
v5 += 0.2 * (Math.random() - 0.5);
return {'dx': v6, 'dy': v5};
}
v2 = this.USAGOALIEX - 15;
var v6 = v2 - player.x;
var v5 = v3 - player.y;
v5 += 0.2 * (Math.random() - 0.5);
return {'dx': v6, 'dy': v5};
};
v2.playerShoots = function (player, dx, dy, strengthfrac) {
var v4 = Math.sqrt(dx * dx + dy * dy);
if (v4 > 0) {
dx /= v4;
dy /= v4;
}
if (isNaN(dx)) {
dx = 0;
}
if (isNaN(dy)) {
dy = 0;
}
var v6 = dx * this.SHOTSTRENGTH * strengthfrac;
var v5 = dy * this.SHOTSTRENGTH * strengthfrac;
this.releasePuck(player);
this.puck.dx = v6;
this.puck.dy = v5;
player.stance = this.FOLLOWTHROUGH;
player.counter = 0;
};
v2.releasePuck = function (player) {
var v3 = this.tryMove(player.x, player.y, this.PUCKCLIPW, this.PUCKCLIPH, (player.facing == this.RIGHT) ? this.PLAYERTOPUCK : -this.PLAYERTOPUCK, 0, this.PUCKFRICTION, false);
player.puck = false;
this.puck = {'x': v3.x, 'y': v3.y, 'dx': player.dx, 'dy': player.dy};
};
v2.angerTeam = function (team, amt) {
var v2 = 0;
while (v2 < this.players.length) {
if (this.players[v2].team == team) {
this.players[v2].anger += amt;
if (this.players[v2].anger > 1) {
this.players[v2].anger = 1;
}
if (this.players[v2].anger < 0) {
this.players[v2].anger = 0;
}
}
++v2;
}
};
v2.makeCutsceneMC = function () {
if (_root.cutscenemc) {
_root.cutscenemc.removeMovieClip();
}
_root.cutscenemc = this.createMovieAtDepth('cut', this.CUTSCENEDEPTH);
_root.cutscenemc._visible = true;
_root.cutscenemc._x = 0;
_root.cutscenemc._y = 0;
};
v2.playCutsceneSound = function (wav, times) {
var v2 = new Sound(_root.cutscenesmc);
trace(wav);
v2.attachSound(wav);
v2.setVolume(100);
v2.start(0, times);
};
v2.newCutScene = function (scene) {
this.cutx = this.SCREENW + 3;
this.cutcounter = 0;
this.cutscene = scene;
if (scene == this.GAMEOVER) {
if (this.cutteam == this.REF) {
this.playCutsceneSound('boo.wav', 1);
} else {
this.playCutsceneSound('crowd.wav', 1);
}
} else {
if (scene == this.GOALSCORED) {
this.playCutsceneSound('crowd.wav', 1);
} else {
if (scene == this.EJECTION) {
this.playCutsceneSound('boo.wav', 1);
} else {
if (scene == this.TELEPHONE) {
this.playCutsceneSound('telephone.wav', 2);
}
}
}
}
};
v2.resetCutScene = function () {
this.animframe = 0;
this.cutscene = this.NOCUT;
_root.cutscenemc._visible = false;
this.faceOff(2);
};
v2.addAnger = function (player, amt) {
player.anger += amt;
if (player.anger > 1) {
player.anger = 1;
}
if (player.anger < 0) {
player.anger = 0;
}
};
v2.addGuilt = function (player, amt) {
player.guilt += amt;
if (player.guilt > 1) {
player.guilt = 1;
}
if (player.guilt < 0) {
player.guilt = 0;
}
};
v2.onEnterFrame = function () {
++this.animframe;
if (this.animframe > 1000000) {
this.animframe = 0;
}
if (this.suspicion < 0) {
this.suspicion = 0;
}
if (this.suspicion > 1 && this.cutscene == this.NOCUT) {
this.newCutScene(this.TELEPHONE);
this.cutteam = this.REF;
}
if (this.cutscene == this.GOALSCORED) {
++this.cutcounter;
this.makeCutsceneMC();
_root.cutscenemc.attachBitmap(this.goalscoredbg, 0);
var v60 = _root.cutscenemc.createEmptyMovieClip('team', 1);
v60._y = 27;
this.cutx = 40.59 + 0.66 * this.cutx;
v60._x = this.cutx;
if (this.cutteam == this.USA) {
v60.attachBitmap(this.goalscoredusa, 4);
} else {
if (this.cutteam == this.CAN) {
v60.attachBitmap(this.goalscoredcan, 4);
} else {
if (this.cutteam == this.REF) {
v60.attachBitmap(this.goalscoredref, 4);
}
}
}
if (this.cutcounter > 75) {
this.resetCutScene();
}
return undefined;
} else {
if (this.cutscene == this.EJECTION) {
++this.cutcounter;
this.makeCutsceneMC();
_root.cutscenemc.attachBitmap(this.ejectionbg, 0);
var v60 = _root.cutscenemc.createEmptyMovieClip('team', 1);
v60._y = 159;
this.cutx = 159.39 + 0.66 * this.cutx;
v60._x = this.cutx;
if (this.cutteam == this.USA) {
v60.attachBitmap(this.ejectionusa, 4);
} else {
if (this.cutteam == this.CAN) {
v60.attachBitmap(this.ejectioncan, 4);
}
}
var v63 = _root.cutscenemc.createEmptyMovieClip('v', 6);
var v61;
if (this.cutguilt > 0.8) {
v61 = this.guilt2bm;
} else {
if (this.cutguilt > 0.5) {
v61 = this.guilt1bm;
v63.attachBitmap(this.guilt1bm, 12);
} else {
v61 = this.innocentbm;
}
}
v63.attachBitmap(v61, 12);
v63._x = this.cutx + 96 - v61.width / 2;
v63._y = 144 - v61.height;
var v64 = _root.cutscenemc.createEmptyMovieClip('r', 5);
v64._y = 93;
v64._x = -this.cutx * 1.5 + this.SCREENW;
v64.attachBitmap(this.ejectionref, 10);
if (this.cutcounter > 75) {
this.resetCutScene();
}
return undefined;
} else {
if (this.cutscene == this.TELEPHONE) {
++this.cutcounter;
this.makeCutsceneMC();
_root.cutscenemc.attachBitmap(this.telephonebg, 0);
var v64 = _root.cutscenemc.createEmptyMovieClip('r', 5);
v64._y = 111;
this.cutx = 167.31 + 0.66 * this.cutx;
v64._x = this.cutx;
v64.attachBitmap(this.telephoneref, 10);
if (this.cutcounter > 100) {
if (this.backgroundclip != null) {
this.backgroundmusic.setVolume(0);
this.backgroundmusic.stop();
this.backgroundclip.removeMovieClip();
this.backgroundclip = null;
}
} else {
this.backgroundmusic.setVolume(100 - this.cutcounter);
}
if (this.cutcounter > 180) {
this.removeMovieClip();
for (var v62 in _root) {
_root[v62].removeMovieClip();
}
_root.gotoAndStop('title');
return undefined;
}
return undefined;
} else {
if (this.cutscene == this.GAMEOVER) {
++this.cutcounter;
this.makeCutsceneMC();
if (this.cutteam == this.REF) {
_root.cutscenemc.attachBitmap(this.flamesbg, 0);
} else {
_root.cutscenemc.attachBitmap(this.gameoverbg, 0);
}
var v60 = _root.cutscenemc.createEmptyMovieClip('team', 1);
v60._y = 27;
this.cutx = 40.59 + 0.66 * this.cutx;
v60._x = this.cutx;
if (this.cutteam == this.USA) {
v60.attachBitmap(this.goalscoredusa, 4);
} else {
if (this.cutteam == this.CAN) {
v60.attachBitmap(this.goalscoredcan, 4);
} else {
if (this.cutteam == this.REF) {
v60.attachBitmap(this.goalscoredref, 4);
}
}
}
if (this.cutcounter > 100) {
if (this.backgroundclip != null) {
this.backgroundmusic.setVolume(0);
this.backgroundmusic.stop();
this.backgroundclip.removeMovieClip();
this.backgroundclip = null;
}
} else {
this.backgroundmusic.setVolume(100, this.cutcounter);
}
if (this.cutcounter > 180) {
this.removeMovieClip();
for (var v62 in _root) {
_root[v62].removeMovieClip();
}
_root.gotoAndStop('title');
return undefined;
}
return undefined;
}
}
}
}
--this.gametimeframes;
this.showScore();
if (this.gametimeframes < 0 && (this.usascore != this.canscore || this.players.length == 1)) {
if (this.players.length == 1) {
this.cutteam = this.REF;
} else {
this.cutteam = this.usascore > this.canscore ? this.USA : this.CAN;
}
this.newCutScene(this.GAMEOVER);
}
if (this.players.length == 1 && this.cutscene == this.NOCUT && this.gametimeframes > 120) {
this.gametimeframes = 120;
}
if (this.puck.p == undefined) {
var v28 = this.tryMove(this.puck.x, this.puck.y, this.PUCKCLIPW, this.PUCKCLIPH, this.puck.dx, this.puck.dy, this.PUCKFRICTION, true);
this.puck.x = v28.x;
this.puck.y = v28.y;
this.puck.dx = v28.dx;
this.puck.dy = v28.dy;
if (v28.hit) {
this.playPuckBounce(this.puck.x, this.puck.y);
}
}
var v41 = 0;
while (v41 < this.junks.length) {
var v12 = this.junks[v41];
v28 = this.tryMove(v12.x, v12.y, this.PUCKCLIPW, this.PUCKCLIPH, v12.dx, v12.dy, this.JUNKFRICTION, false);
v12.x = v28.x;
v12.y = v28.y;
v12.dx = v28.dx;
v12.dy = v28.dy;
++v41;
}
var v11 = this.getPuckCoordinates();
var v27 = this.getRefCoordinates();
v41 = 0;
while (v41 < this.players.length) {
var v7 = this.players[v41];
if (v7.stance == this.SPLAT) {
++v7.counter;
if (v7.counter > this.SPLATTIME) {
v7.stance = this.GETTINGUP;
v7.counter = 0;
}
} else {
if (v7.stance == this.GETTINGUP) {
++v7.counter;
if (v7.counter > this.GETUPTIME) {
v7.stance = this.UPRIGHT;
v7.counter = 0;
}
} else {
if (v7.stance == this.FOLLOWTHROUGH) {
++v7.counter;
if (v7.counter > this.FOLLOWTHROUGHTIME) {
v7.stance = this.UPRIGHT;
v7.counter = 0;
}
}
}
}
++v41;
}
v41 = 0;
while (v41 < this.players.length) {
v7 = this.players[v41];
if (v7.team == this.REF) {
v7.guilt = 0;
if (v7.puck) {
this.suspicion += 0.0002;
} else {
if (v7.stick) {
this.suspicion += 2.0e-005;
} else {
this.suspicion -= 1.0e-005;
}
}
} else {
if (v7.team != this.REF && guilt > 0.1) {
var v14 = v7.x - v27.x;
var v13 = v7.y - v27.y;
var v49 = Math.sqrt(v14 * v14 + v13 * v13);
if (v49 > 320) {
v7.guilt *= 0.99;
}
}
}
++v41;
}
var v44 = [{'x': 1167, 'y': 501}, {'x': 1272, 'y': 336}, {'x': 1272, 'y': 672}, {'x': 1155, 'y': 381}, {'x': 1149, 'y': 609}];
var v56 = [];
v41 = 0;
while (v41 < v44.length) {
var v55 = v44[v41].x;
var v54 = v44[v41].y;
v56.push({'x': this.REDLINEX - (v55 - this.REDLINEX), 'y': v54});
++v41;
}
var v43 = [{'x': 366, 'y': 402}, {'x': 366, 'y': 594}, {'x': 450, 'y': 498}, {'x': 621, 'y': 504}, {'x': 720, 'y': 381}];
var v57 = [];
v41 = 0;
while (v41 < v43.length) {
v55 = v43[v41].x;
v54 = v43[v41].y;
v57.push({'x': this.REDLINEX - (v55 - this.REDLINEX), 'y': v54});
++v41;
}
v41 = 0;
while (v41 < this.players.length) {
v7 = this.players[v41];
if (v41 == this.user) {
if (this.holdingX) {
this.allowX = false;
this.holdingX = false;
if (v7.team == this.REF) {
if (v7.stick) {
if (v7.puck) {
this.releasePuck(v7);
this.puck.dx = 1.3 * v7.dx;
this.puck.dy = 1.3 * v7.dy;
}
v7.stick = false;
var v37 = 1.8 * (v7.dx + Math.random() - 0.5);
var v35 = 1.8 * (v7.dy + Math.random() - 0.5);
this.addJunk(v7.x, v7.y, v37, v35, this.STICK, this.stick1bm);
v7.stance = this.GETTINGUP;
v7.counter = 0;
} else {
var v33 = 999999;
var v26 = v41;
var v45 = 0;
while (v45 < this.players.length) {
var v8 = this.players[v45];
if (v8.team != this.REF) {
var v47 = v8.x - v7.x;
var v46 = v8.y - v7.y;
v49 = v47 * v47 + v46 * v46;
if (v49 < v33) {
v33 = v49;
v26 = v45;
}
}
++v45;
}
if (v26 != v41) {
v8 = this.players[v26];
this.newCutScene(this.EJECTION);
this.cutteam = v8.team;
var guilt = v8.guilt;
if (guilt > 0.8) {
guilt = 1;
}
this.cutguilt = guilt;
var v53 = (1 - guilt) / 2;
this.suspicion += (1 - guilt) * 0.55 - 0.1;
this.removePlayer(v26);
v45 = 0;
while (v45 < this.players.length) {
this.players[v45].guilt /= 2;
++v45;
}
this.angerTeam(this.cutteam, v53);
this.showScore();
return undefined;
}
}
} else {
if (v7.puck) {
var v38 = pp;
var v34 = -10;
var pp = 0;
while (pp < this.players.length) {
var v8 = this.players[pp];
if (v8.team == v7.team && pp != this.user) {
var v5 = 0;
if (this.holdingLeft) {
if (v8.x < v7.x) {
++v5;
} else {
--v5;
}
}
if (this.holdingRight) {
if (v8.x > v7.x) {
++v5;
} else {
--v5;
}
}
if (this.holdingDown) {
if (v8.y > v7.y) {
++v5;
} else {
--v5;
}
}
if (this.holdingUp) {
if (v8.y < v7.y) {
++v5;
} else {
--v5;
}
}
if (v5 > v34) {
v34 = v5;
v38 = pp;
}
}
++pp;
}
v8 = this.players[v38];
this.playerShoots(v7, v8.x - v7.x, v8.y - v7.y, 0.66);
} else {
var pp = 0;
while (pp < this.players.length) {
var v8 = (this.user + pp + 1) % this.players.length;
if (this.players[v8].team == v7.team) {
this.user = v8;
break;
}
++pp;
}
}
}
}
if (v7.stance == this.SHOOTING) {
++v7.counter;
if (!this.holdingZ) {
trace('shoots!');
var v50 = this.getPlayerShot(v7);
var v25 = Math.sqrt(v7.counter / this.FULLSTRENGTHTIME);
if (v25 < this.MINSTRENGTH) {
v25 = this.MINSTRENGTH;
}
if (v25 > 1) {
v25 = 1;
}
this.playerShoots(v7, v50.dx, v50.dy, v25);
}
}
if (v7.stance == this.UPRIGHT) {
if (this.holdingZ && v7.puck && v7.stick) {
trace('shooting...');
v7.stance = this.SHOOTING;
v7.counter = 0;
} else {
if (this.holdingLeft) {
v7.dx -= this.PLAYERACCEL;
if (v7.dx < 0) {
v7.facing = this.LEFT;
}
} else {
if (this.holdingRight) {
v7.dx += this.PLAYERACCEL;
if (v7.dx > 0) {
v7.facing = this.RIGHT;
}
}
}
if (this.holdingUp) {
v7.dy -= this.PLAYERACCEL;
} else {
if (this.holdingDown) {
v7.dy += this.PLAYERACCEL;
}
}
}
}
} else {
var v10 = v7.x;
var v6 = v7.y;
if (v7.anger > 0.8 && v7.team != this.REF && this.menuteam == this.REF) {
v10 = v27.x;
v6 = v27.y;
}
if (v7.team == this.REF) {
var v47 = v11.x - v7.x;
var v46 = v11.y - v7.y;
v49 = Math.sqrt(v47 * v47 + v46 * v46);
if (v49 > this.REFDIST) {
v10 = v11.x;
v6 = v11.y;
} else {
v10 = this.FACEOFF2X;
v6 = this.FACEOFF2Y - 100;
}
} else {
if (this.animframe > 10) {
if (!v7.stick) {
var v33 = 9999999;
v10 = v27.x;
v6 = v27.y;
var v9 = 0;
while (v9 < this.junks.length) {
if (this.junks[v9].type == this.STICK) {
var v17 = this.junks[v9].x - v7.x;
var v20 = this.junks[v9].y - v7.y;
var v18 = v17 * v17 + v20 * v20;
if (v18 < v33) {
v33 = v18;
v10 = this.junks[v9].x;
v6 = this.junks[v9].y;
}
}
++v9;
}
} else {
if (v7.puck) {
if (v7.stance == this.SHOOTING) {
++v7.counter;
if (Math.random() < 0.1 || v7.counter > this.FULLSTRENGTHTIME) {
var v25 = Math.sqrt(v7.counter / this.FULLSTRENGTHTIME);
if (v25 < this.MINSTRENGTH) {
v25 = this.MINSTRENGTH;
}
if (v25 > 1) {
v25 = 1;
}
var v50 = this.getPlayerShot(v7);
this.playerShoots(v7, v50.dx, v50.dy, v25);
}
} else {
if (v7.team == this.CAN && v7.facing == this.LEFT || v7.team == this.USA && v7.facing == this.RIGHT) {
v7.stance = this.SHOOTING;
v7.counter = 0;
} else {
v10 = (v7.team == this.CAN) ? this.USAGOALIEX + 100 : this.CANGOALIEX - 100;
v6 = v7.desty;
}
}
} else {
if (v7.goalie) {
v10 = (v7.team == this.USA) ? this.USAGOALIEX : this.CANGOALIEX;
v6 = v11.y;
if (v6 < this.GOALIEY) {
v6 = this.GOALIEY;
}
if (v6 > this.GOALIEY + this.GOALH) {
v6 = this.GOALIEY + this.GOALH;
}
} else {
var v36 = 99999;
var v40 = v41;
var v39 = false;
var v42 = false;
var v45 = 0;
while (v45 < this.players.length) {
var v8 = this.players[v45];
if (v45 != v41 && v8.puck) {
if (v8.team == v7.team) {
v39 = true;
} else {
v42 = true;
}
}
if (v8.team == v7.team && !v8.goalie) {
var v23 = v8.x - v11.x;
var v21 = v8.y - v11.y;
v49 = v23 * v23 + v21 * v21;
if (v49 < v36) {
v36 = v49;
v40 = v45;
}
}
++v45;
}
if (v41 == v40) {
v10 = v11.x;
v6 = v11.y;
} else {
if (v42) {
var v48 = (v7.team == this.USA) ? v43.shift() : v57.shift();
v10 = v48.x;
v6 = v48.y;
}
}
if (v39) {
v48 = (v7.team == this.USA) ? v44.shift() : v56.shift();
v10 = v48.x;
v6 = v48.y;
}
}
}
}
}
}
if (v7.stance == this.UPRIGHT) {
var v47 = v7.x - v10;
var v46 = v7.y - v6;
v49 = Math.sqrt(v47 * v47 + v46 * v46);
var v24 = this.PLAYERACCEL;
if (v49 < 12) {
v24 *= v49 / 12;
}
if (v7.x < v10) {
v7.dx += v24;
if (v7.dx > 0) {
v7.facing = this.RIGHT;
}
} else {
if (v7.x > v10) {
v7.dx -= v24;
if (v7.dx < 0) {
v7.facing = this.LEFT;
}
}
}
if (v7.y < v6) {
v7.dy += v24;
} else {
if (v7.y > v6) {
v7.dy -= v24;
}
}
}
}
if (!v7.stick && v7.stance == this.UPRIGHT && (v41 == this.user || v7.team != this.REF)) {
this.maybeGetStick(v7);
}
if (v7.stick && v7.stance == this.UPRIGHT && this.puck.p == undefined) {
var v51 = v7.y;
var v52 = v7.x;
if (Math.abs(this.puck.x - v52) < this.PICKUPDIST && Math.abs(this.puck.y - v51) < this.PICKUPDIST) {
v7.puck = true;
this.reftouchedlast = v7.team == this.REF;
this.puck = {'p': v41};
}
}
++v41;
}
v41 = 0;
while (v41 < this.players.length) {
var v4 = this.players[v41];
if (v4.stance == this.SPLAT) {
} else {
var v9 = v41 + 1;
while (v9 < this.players.length) {
var v3 = this.players[v9];
if (v3.stance == this.SPLAT) {
} else {
if (Math.abs(v4.x - v3.x) < this.COLLIDEDIST && Math.abs(v4.y - v3.y) < this.COLLIDEDIST) {
var v19 = (v41 == this.user && !v4.puck) ? 1000 : (v4.goalie ? 2000 : v41);
var v15 = (v9 == this.user && !v3.puck) ? 1000 : (v3.goalie ? 2000 : v9);
if (this.menuteam == this.REF) {
v19 += v4.anger * 1500;
v15 += v3.anger * 1500;
}
var v22 = v41;
if (v19 < v15) {
var v29 = v4;
v4 = v3;
v3 = v29;
v22 = v9;
}
v14 = v3.dx + v4.dx;
v13 = v3.dy + v4.dy;
var v16 = (v4.team == this.REF) ? 0.3 : ((v4.team == v3.team) ? 0.05 : 0.1);
if (v3.team == this.REF) {
this.addGuilt(v4, 0.3);
}
if (v3.puck) {
if (v4.goalie) {
this.reftouchedlast = false;
this.puck = {'p': v22};
v4.puck = true;
} else {
this.releasePuck(v3);
this.puck.dx = 2 * v14;
this.puck.dy = 2 * v13;
}
v3.puck = false;
this.addAnger(v3, v16);
this.addAnger(v4, -v16);
} else {
this.addGuilt(v4, 0.2);
}
if (v3.stick) {
var v37 = 0.6 * (v14 + Math.random() - 0.5);
var v35 = 0.6 * (v13 + Math.random() - 0.5);
this.addJunk(v3.x, v3.y, v37, v35, this.STICK, this.stick1bm);
v3.stick = false;
this.addAnger(v3, 0.1);
this.addAnger(v4, -0.1);
} else {
if (v4.stick) {
this.addGuilt(v4, 0.1);
}
}
if (!v4.stick) {
v4.stance = this.GETTINGUP;
v4.counter = 0;
}
v3.dx = 0.3 * v14;
v3.dy = 0.3 * v13;
v3.stance = this.SPLAT;
v3.counter = 0;
var v31 = 1;
this.playHurtSound(v3, v31);
}
}
++v9;
}
}
++v41;
}
v41 = 0;
while (v41 < this.players.length) {
v7 = this.players[v41];
var v32 = v7.puck ? this.MAXVELOCITYX * 1.1 : this.MAXVELOCITYX;
var v30 = v7.puck ? this.MAXVELOCITYY * 1.1 : this.MAXVELOCITYY;
if (v7.dx > v32) {
v7.dx = v32;
}
if (v7.dx < -v32) {
v7.dx = -v32;
}
if (v7.dy > v30) {
v7.dy = v30;
}
if (v7.dy < -v30) {
v7.dy = -v30;
}
v28 = this.tryMove(v7.x, v7.y, this.PLAYERC, this.PLAYERCLIPHEIGHT, v7.dx, v7.dy, this.PLAYERFRICTION, false);
v7.x = v28.x;
v7.y = v28.y;
v7.dx = v28.dx;
v7.dy = v28.dy;
++v41;
}
if (this.puck.p == undefined) {
if (this.puck.x >= this.CANGOALX1 && this.puck.x <= this.CANGOALX2 && this.puck.y >= this.CANGOALY1 && this.puck.y <= this.CANGOALY2) {
this.newCutScene(this.GOALSCORED);
if (this.menuteam == this.REF && this.reftouchedlast) {
this.cutteam = this.REF;
this.angerTeam(this.USA, 0.5);
this.suspicion += 0.15;
} else {
this.cutteam = this.USA;
this.angerTeam(this.CAN, 0.2);
this.angerTeam(this.USA, -0.5);
}
++this.usascore;
this.showScore();
} else {
if (this.puck.x >= this.USAGOALX1 && this.puck.x <= this.USAGOALX2 && this.puck.y >= this.USAGOALY1 && this.puck.y <= this.USAGOALY2) {
this.newCutScene(this.GOALSCORED);
if (this.menuteam == this.REF && this.reftouchedlast) {
this.cutteam = this.REF;
this.angerTeam(this.USA, 0.5);
this.suspicion += 0.15;
} else {
this.cutteam = this.CAN;
this.angerTeam(this.USA, 0.2);
this.angerTeam(this.CAN, -0.5);
}
++this.canscore;
this.showScore();
}
}
}
this.redraw();
};
v2.playPuckBounce = function (x, y) {
var v3 = new Sound(_root.pucksmc);
var v4 = int(Math.random() * 1000) % this.NBOUNCE;
v3.attachSound('bounce' + (v4 + 1) + '.wav');
this.setSoundVolume(x, y, v3, 100);
v3.start(0, 1);
};
v2.playHurtSound = function (player, damage) {
var v2 = new Sound(player.smc);
var v3 = int(Math.random() * 1000) % this.NHURT;
v2.attachSound('hurt' + (v3 + 1) + '.wav');
this.setSoundVolume(player.x, player.y, v2, 75);
v2.start(0, 1);
};
v2.setSoundVolume = function (x, y, sound, maxvol) {
var v4 = this.scrollx + this.SCREENW / 2 - x;
var v5 = this.scrolly + this.SCREENH / 2 - y;
var v6 = Math.sqrt(v4 * v4 + v5 * v5);
var v2 = (v6 / this.SCREENW) * 1.3;
if (v2 < 0.05) {
v2 = 0.05;
}
if (v2 > 0.95) {
v2 = 0.95;
}
v2 = 1 - v2;
sound.setVolume(maxvol * v2);
var v3 = -v4 / (this.SCREENW / 2);
if (v3 > 0.9) {
v3 = 0.9;
}
if (v3 < -0.9) {
v3 = -0.9;
}
sound.setPan(v3 * 10);
};
v2.maybeGetStick = function (player) {
var v5 = player.y;
var v6 = player.x;
var v2 = 0;
while (v2 < this.junks.length) {
var v3 = this.junks[v2];
if (v3.type == this.STICK) {
if (Math.abs(v3.x - v6) < this.PICKUPSTICKDIST && Math.abs(v3.y - v5) < this.PICKUPSTICKDIST) {
trace('pick up stick');
this.removeJunk(v2);
player.stick = true;
player.stance = this.GETTINGUP;
player.counter = int(this.GETUPTIME / 2);
return undefined;
}
}
++v2;
}
};
v2.tryMove = function (x, y, w, h, dx, dy, friction, ispuck) {
var v10 = false;
var v5 = x + dx;
var v4 = y + dy;
if (v5 - w < this.ICEMINX) {
dx = -dx;
v10 = true;
v5 = this.ICEMINX + w;
} else {
if (v5 + w > this.ICEMAXX) {
dx = -dx;
v10 = true;
v5 = this.ICEMAXX - w;
}
}
if (v4 - h < this.ICEMINY) {
dy = -dy;
v10 = true;
v4 = this.ICEMINY + h;
} else {
if (v4 + h > this.ICEMAXY) {
dy = -dy;
v10 = true;
v4 = this.ICEMAXY - h;
}
}
var v6 = 0;
while (v6 < this.hbars.length) {
var v2 = this.hbars[v6];
if (ispuck && v2.puckok) {
} else {
if (y >= v2.y1 && y <= v2.y2) {
if (x <= v2.x1 && v5 > v2.x1) {
v5 = v2.x1;
dx = -dx;
v10 = true;
} else {
if (x >= v2.x2 && v5 < v2.x2) {
v5 = v2.x2;
dx = -dx;
v10 = true;
}
}
}
}
++v6;
}
v6 = 0;
while (v6 < this.vbars.length) {
var v3 = this.vbars[v6];
if (ispuck && v3.puckok) {
} else {
if (x >= v3.x1 && x <= v3.x2) {
if (y <= v3.y1 && v4 > v3.y1) {
v4 = v3.y1;
dy = -dy;
v10 = true;
} else {
if (y >= v3.y2 && v4 < v3.y2) {
v4 = v3.y2;
dy = -dy;
v10 = true;
}
}
}
}
++v6;
}
dx *= friction;
dy *= friction;
return {'x': v5, 'y': v4, 'dx': dx, 'dy': dy, 'hit': v10};
};
v2.init = function () {
this.menuteam = _root.menuselection;
trace('init hockey ' + this.menuteam);
this.goalscoredbg = this.loadBitmap3x('goalscoredbg.png');
this.goalscoredcan = this.loadBitmap3x('goalscoredcan.png');
this.goalscoredusa = this.loadBitmap3x('goalscoredusa.png');
this.goalscoredref = this.loadBitmap3x('goalscoredref.png');
this.ejectionbg = this.loadBitmap3x('ejectionbg.png');
this.ejectioncan = this.loadBitmap3x('ejectioncan.png');
this.ejectionusa = this.loadBitmap3x('ejectionusa.png');
this.ejectionref = this.loadBitmap3x('ejectionref.png');
this.gameoverbg = this.loadBitmap3x('gameoverbg.png');
this.flamesbg = this.loadBitmap3x('flamesbg.png');
this.telephonebg = this.loadBitmap3x('telephonebg.png');
this.telephoneref = this.loadBitmap3x('telephoneref.png');
this.anger1bm = this.loadBitmap3x('anger1.png');
this.anger2bm = this.loadBitmap3x('anger2.png');
this.anger3bm = this.loadBitmap3x('anger3.png');
this.guilt1bm = this.loadBitmap3x('guilt1.png');
this.guilt2bm = this.loadBitmap3x('guilt2.png');
this.innocentbm = this.loadBitmap3x('innocent.png');
this.stick1bm = this.loadBitmap3x('stick1.png');
this.halobm = this.loadBitmap3x('halo.png');
_root.halomc = this.createGlobalMC('halo', this.halobm, this.HALODEPTH);
this.rinkbm = this.loadBitmap3x('rink.png');
_root.rinkmc = this.createGlobalMC('rink', this.rinkbm, this.RINKDEPTH);
this.bottomboardsbm = this.loadBitmap3x('bottomboards.png');
_root.bottomboardsmc = this.createGlobalMC('bottomboards', this.bottomboardsbm, this.BOTTOMBOARDSDEPTH);
this.puckbm = this.loadBitmap3x('puck.png');
_root.puckmc = this.createGlobalMC('puck', this.puckbm, this.ICESTUFFDEPTH + 500);
_root.pucksmc = this.createMovieAtDepth('ps', this.PUCKSOUNDDEPTH);
_root.cutscenesmc = this.createMovieAtDepth('cuts', this.CUTSOUNDDEPTH);
var v14 = 0;
for (var v15 in this.playerframes) {
var v13 = this.playerframes[v15].l;
var v6 = 0;
while (v6 < v13.length) {
var v3 = v13[v6];
var v5 = this.loadBitmap3x(v3.f);
var v7 = this.convertToCanadian(v5);
var v8 = this.convertToReferee(v5);
var v9 = this.flipHoriz(v5);
var v10 = this.flipHoriz(v7);
var v11 = this.flipHoriz(v8);
v3.bm = v5;
v3.bmc = v7;
v3.bmr = v8;
v3.bml = v9;
v3.bmlc = v10;
v3.bmlr = v11;
++v14;
++v6;
}
}
this.setMusic('circus.wav');
this.junks = [];
this.players = [];
var v18 = 0;
while (v18 < 2) {
var v4 = 0;
while (v4 < 5) {
var v17 = this.createMovieAtDepth('p_' + v18 + '_' + v4, this.ICESTUFFDEPTH + v18 * 20 + v4);
var v12 = {'goalie': v4 == 0, 'x': 0, 'y': 0, 'dx': 0, 'dy': 0, 'stance': this.UPRIGHT, 'team': v18, 'anger': 0, 'guilt': 0, 'smc': this.createMovieAtDepth('s' + this.players.length, this.PLAYERSOUNDDEPTH + this.players.length), 'mc': v17};
this.players.push(v12);
++v4;
}
++v18;
}
this.players.push({'goalie': false, 'team': this.REF, 'x': 0, 'y': 0, 'dx': 0, 'dy': 0, 'stance': this.UPRIGHT, 'anger': 0, 'guilt': 0, 'smc': this.createMovieAtDepth('sref', this.PLAYERSOUNDDEPTH + this.players.length), 'mc': this.createMovieAtDepth('pref', this.ICESTUFFDEPTH + 500)});
switch (this.menuteam) {
case this.USA:
default:
this.user = 1;
goto 24262;
case this.CAN:
//Invalid switch }
this.user = 7;
goto 24262;
case this.USA:
v1.user = v1.players.length - 1;
label 24262:
trace('user: ' + v1.user);
trace('loaded ' + storedv14 + ' frames.');
v1.info = new Info();
v1.info.init();
v1.showScore();
v1.faceOff(2);
v1.redraw();
};
v2.showScore = function () {
var v7 = int(this.gametimeframes / 1440);
var v8 = this.gametimeframes - v7 * 60 * 24;
var v3 = int(v8 / 24);
var v2 = '' + v3;
if (v3 == 0) {
v2 = '00';
} else {
if (v3 < 10) {
v2 = '0' + v3;
}
}
var v5 = '' + v7 + ':' + v2;
if (this.menuteam == this.REF) {
var v4 = ' YOU ARE THE REF ';
if (this.suspicion > 0) {
v2 = '' + this.toDecimal(100 * this.suspicion, 100);
while (v2.length < 5) {
v2 += '0';
}
v4 = ' SUSPICION: ' + v2 + '% ';
}
v4 += ' TIME: ' + v5;
var v6 = 'EJECT CLOSEST';
if (this.players[this.user].stick) {
v6 = 'DROP STICK';
}
this.info.setMessage(v4 + '\n' + ' Z - SHOOT X - ' + v6);
} else {
this.info.setMessage(' USA: ' + this.usascore + ' ' + 'CAN: ' + this.canscore + ' TIME: ' + v5 + '\n' + ' Z - SHOOT X - PASS/SWITCH');
}
};
v2.faceOff = function (which) {
var v6;
var v5;
switch (which) {
case 0:
v6 = this.FACEOFF0X;
v5 = this.FACEOFF0Y;
break;
case 1:
v6 = this.FACEOFF1X;
v5 = this.FACEOFF1Y;
break;
case 2:
default:
v6 = this.FACEOFF2X;
v5 = this.FACEOFF2Y;
goto 25265;
case 3:
//Invalid switch }
v6 = this.FACEOFF3X;
v5 = this.FACEOFF3Y;
goto 25265;
case 1:
var v6 = v1.FACEOFF4X;
var v5 = v1.FACEOFF4Y;
label 25265:
v1.puck = {'x': v6, 'y': v5, 'dx': 0, 'dy': 0};
var v4 = 0;
while (v4 < v1.junks.length) {
v1.junks[v4].mc.removeMovieClip();
++v4;
}
v1.junks = [];
var v8 = [{'x': -75, 'y': 0}, {'x': -132, 'y': -150}, {'x': -132, 'y': 150}, {'x': -186, 'y': 0}];
var v7 = [{'x': 75, 'y': 0}, {'x': 132, 'y': -150}, {'x': 132, 'y': 150}, {'x': 186, 'y': 0}];
v4 = 0;
while (v4 < v1.players.length) {
v2 = v1.players[v4];
v2.dx = 0;
v2.dy = 0;
v2.puck = false;
v2.stance = v1.UPRIGHT;
v2.counter = 0;
if (v2.team == v1.REF) {
v2.facing = v1.RIGHT;
v2.x = v6;
v2.y = v5 - v1.PLAYERH / 2;
v2.stick = false;
} else {
v2.stick = true;
if (v2.goalie) {
v2.y = v1.GOALIEY;
if (v2.team == v1.USA) {
v2.x = v1.USAGOALIEX;
v2.facing = v1.RIGHT;
} else {
v2.x = v1.CANGOALIEX;
v2.facing = v1.LEFT;
}
} else {
var v3;
if (v2.team == v1.USA) {
v2.facing = v1.RIGHT;
v3 = v8.shift();
} else {
v2.facing = v1.LEFT;
v3 = v7.shift();
}
if (!v3) {
v3 = {'x': 0, 'y': 0};
}
v2.x = v6 + v3.x;
v2.y = v5 + v3.y;
}
}
++v4;
}
};
v2.getPuckCoordinates = function () {
if (this.puck.p != undefined) {
var v2 = this.players[this.puck.p];
var v3 = (v2.facing == this.RIGHT) ? this.PLAYERTOPUCK : -this.PLAYERTOPUCK;
return {'x': v2.x + v3, 'y': v2.y};
} else {
return {'x': this.puck.x, 'y': this.puck.y};
}
};
v2.getRefCoordinates = function () {
var v2 = 0;
while (v2 < this.players.length) {
if (this.players[v2].team == this.REF) {
return {'x': this.players[v2].x, 'y': this.players[v2].y};
}
++v2;
}
return {'x': 0, 'y': 0};
};
v2.scrollToShow = function (x, y) {
var v2 = 135;
var v4 = this.scrollx;
var v3 = this.scrolly;
if (x - v2 < this.scrollx) {
v4 = x - v2;
}
if (y - v2 < this.scrolly) {
v3 = y - v2;
}
if (x + v2 >= this.scrollx + this.SCREENW) {
v4 = x + v2 - this.SCREENW;
}
if (y + v2 >= this.scrolly + (this.SCREENH - this.INFOHEIGHT)) {
v3 = y + v2 - (this.SCREENH - this.INFOHEIGHT);
}
this.scrollx = this.scrollx * 0.75 + v4 * 0.25;
this.scrolly = this.scrolly * 0.75 + v3 * 0.25;
};
v2.iceDepth = function (ycoord) {
return int(ycoord * 20);
};
v2.placePlayer = function (idx, player) {
var v8 = 'skate';
if (player.stance == this.SPLAT) {
v8 = 'splat';
} else {
if (player.stance == this.SHOOTING) {
v8 = 'shooting';
} else {
if (player.stance == this.FOLLOWTHROUGH) {
v8 = 'followthrough';
} else {
if (player.stance == this.GETTINGUP) {
v8 = 'gettingup';
} else {
if (Math.abs(player.dx) < 1 && Math.abs(player.dy) < 1) {
if (player.stick) {
v8 = 'stand';
} else {
v8 = 'standwo';
}
} else {
if (player.stick) {
v8 = 'skate';
} else {
v8 = 'skatewo';
}
}
}
}
}
}
var v13 = this.playerframes[v8].x || 0;
var v15 = this.playerframes[v8].y || 0;
var v4 = this.playerframes[v8].l;
var v10 = 0;
var v3 = 0;
while (v3 < v4.length) {
v10 += v4[v3].d;
++v3;
}
var v7 = this.animframe % v10;
var v6 = v4[0];
v3 = 0;
while (v3 < v4.length) {
if (v7 < v4[v3].d) {
v6 = v4[v3];
break;
}
v7 -= v4[v3].d;
++v3;
}
var v11;
if (player.team == this.USA) {
v11 = (player.facing == this.LEFT) ? v6.bml : v6.bm;
} else {
if (player.team == this.CAN) {
v11 = (player.facing == this.LEFT) ? v6.bmlc : v6.bmc;
} else {
v11 = (player.facing == this.LEFT) ? v6.bmlr : v6.bmr;
}
}
if (player.mc) {
player.mc.removeMovieClip();
}
player.mc = this.createMovieAtDepth('p' + idx, this.ICESTUFFDEPTH + this.iceDepth(player.y) + 1 + idx);
if (idx == this.user) {
_root.halomc._x = player.x - this.halobm.width / 2 - this.scrollx;
_root.halomc._y = player.y - this.halobm.height / 2 - this.scrolly;
}
player.mc.attachBitmap(v11, this.PPLAYERDEPTH);
if (player.facing == this.RIGHT) {
player.mc._x = player.x + v13 - this.PLAYERC - this.scrollx;
} else {
player.mc._x = player.x + v13 - (v11.width - this.PLAYERC) - this.scrollx;
}
player.mc._y = player.y + v15 - this.PLAYERH - this.scrolly;
var v9 = player.mc.createEmptyMovieClip('a', 3);
v9._x = 12;
v9._y = -40;
var v12 = this.menuteam == this.REF;
if (v12 && player.guilt > 0.8) {
v9.attachBitmap(this.guilt2bm, 4);
} else {
if (v12 && player.guilt > 0.5) {
v9.attachBitmap(this.guilt1bm, 4);
} else {
if (player.anger > 0.8) {
v9.attachBitmap(this.anger3bm, 4);
} else {
if (player.anger > 0.5) {
v9.attachBitmap(this.anger2bm, 4);
} else {
if (player.anger > 0.2) {
v9.attachBitmap(this.anger1bm, 4);
}
}
}
}
}
};
v2.addJunk = function (x, y, dx, dy, type, bm) {
++this.junkctr;
var v4 = this.createMovieAtDepth('j' + this.junkctr, this.iceDepth(y));
v4.attachBitmap(bm, 1);
var v2 = {'x': x, 'y': y, 'dx': dx, 'dy': dy, 'type': type, 'bm': bm, 'mc': v4};
this.junks.push(v2);
return v2;
};
v2.removeJunk = function (idx) {
var v2 = this.junks[idx];
v2.mc.removeMovieClip();
this.junks.splice(idx, 1);
};
v2.removePlayer = function (idx) {
if (this.user == idx) {
return undefined;
}
var v3 = this.players[idx];
v3.mc.removeMovieClip();
v3.smc.removeMovieClip();
this.players.splice(idx, 1);
var v2 = 0;
while (v2 < this.players.length) {
if (this.players[v2].team == this.REF) {
this.user = v2;
}
++v2;
}
};
v2.placeJunk = function (idx, thing) {
this.setDepthOf(thing.mc, thing.y);
thing.mc._x = thing.x - thing.bm.width / 2 - this.scrollx;
thing.mc._y = thing.y - thing.bm.height / 2 - this.scrolly;
};
v2.redraw = function () {
var v5 = this.getPuckCoordinates();
this.scrollToShow(v5.x, v5.y);
this.scrollToShow(this.players[this.user].x, this.players[this.user].y);
_root.rinkmc._x = -this.scrollx;
_root.rinkmc._y = -this.scrolly;
_root.bottomboardsmc._x = this.BOTTOMBOARDSX - this.scrollx;
_root.bottomboardsmc._y = this.BOTTOMBOARDSY - this.scrolly;
_root.puckmc._x = v5.x - this.scrollx;
_root.puckmc._y = v5.y - this.PUCKH / 2 - this.scrolly;
this.setDepthOf(_root.puckmc, this.iceDepth(v5.y));
var v4 = 0;
while (v4 < this.junks.length) {
this.placeJunk(v4, this.junks[v4]);
++v4;
}
var v3 = 0;
while (v3 < this.players.length) {
this.placePlayer(v3, this.players[v3]);
++v3;
}
};
v2.clearKeys = function () {
this.allowX = true;
this.holdingDown = false;
this.holdingRight = this.holdingDown;
this.holdingLeft = this.holdingDown;
this.holdingUp = this.holdingDown;
this.holdingEsc = this.holdingDown;
this.holdingX = this.holdingDown;
this.holdingZ = this.holdingDown;
};
v2.onKeyDown = function () {
var v2 = Key.getCode();
switch (v2) {
case 192:
case 27:
this.holdingEsc = true;
break;
case 90:
this.holdingZ = true;
break;
case 88:
if (this.allowX) {
this.holdingX = true;
}
break;
case 32:
this.holdingSpace = true;
break;
case 38:
this.holdingUp = true;
break;
case 37:
this.holdingLeft = true;
break;
case 39:
this.holdingRight = true;
break;
case 40:
this.holdingDown = true;
}
};
v2.onKeyUp = function () {
var v2 = Key.getCode();
switch (v2) {
case 192:
case 27:
this.holdingEsc = false;
break;
case 90:
this.holdingZ = false;
break;
case 88:
this.holdingX = false;
this.allowX = true;
break;
case 32:
this.holdingSpace = false;
break;
case 38:
this.holdingUp = false;
break;
case 37:
this.holdingLeft = false;
break;
case 39:
this.holdingRight = false;
break;
case 40:
this.holdingDown = false;
}
};
v2.FASTMODE = false;
v2.MUSIC = !Hockey.prototype.FASTMODE;
v2.SCREENW = 840;
v2.SCREENH = 600;
v2.ARENAW = 1740;
v2.ARENAH = 960;
v2.ICEMINX = 105;
v2.ICEMAXX = 1620;
v2.ICEMAXY = 810;
v2.ICEMINY = 216;
v2.USAX = 747;
v2.USAY = 96;
v2.CANX = 939;
v2.CANY = 96;
v2.TIMEX = 825;
v2.TIMEY = 96;
v2.FACEOFF0X = 453;
v2.FACEOFF0Y = 336;
v2.FACEOFF1X = 1269;
v2.FACEOFF1Y = Hockey.prototype.FACEOFF0Y;
v2.FACEOFF2X = 858;
v2.FACEOFF2Y = 498;
v2.FACEOFF3X = Hockey.prototype.FACEOFF0X;
v2.FACEOFF3Y = 672;
v2.FACEOFF4X = Hockey.prototype.FACEOFF1X;
v2.FACEOFF4Y = Hockey.prototype.FACEOFF3Y;
v2.USAGOALIEX = 309;
v2.CANGOALIEX = 1413;
v2.GOALIEY = 435;
v2.GOALH = 144;
v2.REDLINEX = 864;
v2.USAGOALX1 = 219;
v2.USAGOALY1 = 450;
v2.USAGOALX2 = 261;
v2.USAGOALY2 = 558;
v2.CANGOALX1 = 1458;
v2.CANGOALY1 = 450;
v2.CANGOALX2 = 1500;
v2.CANGOALY2 = 558;
v2.BOTTOMBOARDSX = 96;
v2.BOTTOMBOARDSY = 636;
v2.PUCKH = 12;
v2.PUCKCLIPW = 12;
v2.PUCKCLIPH = 9;
v2.PLAYERW = 42;
v2.PLAYERC = Hockey.prototype.PLAYERW / 2;
v2.PLAYERH = 75;
v2.PLAYERCLIPHEIGHT = 18;
v2.COLLIDEDIST = 18;
v2.PLAYERTOPUCK = 33;
v2.PICKUPDIST = 33;
v2.PICKUPSTICKDIST = 39;
v2.SPLATTIME = 24;
v2.GETUPTIME = 12;
v2.FOLLOWTHROUGHTIME = 6;
v2.FULLSTRENGTHTIME = 24;
v2.RIGHT = 0;
v2.LEFT = 1;
v2.USA = 0;
v2.CAN = 1;
v2.REF = 2;
v2.REFDIST = 175;
v2.NHURT = 4;
v2.NBOUNCE = 3;
v2.MAXVELOCITYX = 8;
v2.MAXVELOCITYY = 5.6;
v2.PUCKFRICTION = 0.99;
v2.PLAYERFRICTION = 0.95;
v2.JUNKFRICTION = 0.98;
v2.SHOTSTRENGTH = 30;
v2.MINSTRENGTH = 0.2;
v2.PLAYERACCEL = 2;
v2.TITLESELX = 222;
v2.TITLESELY = 285;
v2.TITLESELHEIGHT = 60;
v2.FONTW = 9;
v2.FONTH = 16;
v2.FONTOVERLAP = 1;
v2.FONTCHARS = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`-=[]\\;\',./~!@#$%^&*()_+{}|:"<>?';
v2.INFOLINES = 2;
v2.INFOHEIGHT = Hockey.prototype.INFOLINES * Hockey.prototype.FONTH * 3;
v2.INFOMARGINX = 0;
v2.INFOMARGINY = 0;
v2.BGIMAGEDEPTH = 290;
v2.TITLESELDEPTH = 295;
v2.MUSICDEPTH = 80;
v2.RINKDEPTH = 200;
v2.HALODEPTH = 210;
v2.ICESTUFFDEPTH = 1000;
v2.BGMUSICDEPTH = 297;
v2.CUTSOUNDDEPTH = 298;
v2.PUCKSOUNDDEPTH = 299;
v2.PLAYERSOUNDDEPTH = 300;
v2.PPLAYERDEPTH = 10;
v2.BOTTOMBOARDSDEPTH = 50000;
v2.INFODEPTH = 60000;
v2.CUTSCENEDEPTH = 80000;
v2.hbars = [{'x1': 207, 'y1': 429, 'x2': 228, 'y2': 567}, {'puckok': true, 'x1': 228, 'y1': 429, 'x2': 276, 'y2': 567}, {'x1': 1497, 'y1': 429, 'x2': 1518, 'y2': 567}, {'puckok': true, 'x1': 1446, 'y1': 429, 'x2': 1497, 'y2': 567}];
v2.vbars = [{'x1': 207, 'y1': 429, 'x2': 279, 'y2': 450}, {'x1': 207, 'y1': 549, 'x2': 279, 'y2': 570}, {'x1': 1446, 'y1': 429, 'x2': 1518, 'y2': 450}, {'x1': 1446, 'y1': 549, 'x2': 1518, 'y2': 570}];
v2.rinkbm = null;
v2.halobm = null;
v2.puckbm = null;
v2.bottomboardsbm = null;
v2.goalscoredbg = null;
v2.goalscoredcan = null;
v2.goalscoredusa = null;
v2.goalscoredref = null;
v2.ejectionbg = null;
v2.ejectionusa = null;
v2.ejectioncan = null;
v2.ejectionref = null;
v2.gameoverbg = null;
v2.flamesbg = null;
v2.telephonebg = null;
v2.telephoneref = null;
v2.stick1bm = null;
v2.anger1bm = null;
v2.anger2bm = null;
v2.anger3bm = null;
v2.guilt1bm = null;
v2.guilt2bm = null;
v2.innocentbm = null;
v2.info = null;
v2.holdingSpace = false;
v2.holdingZ = false;
v2.allowX = true;
v2.holdingX = false;
v2.holdingUp = false;
v2.holdingLeft = false;
v2.holdingRight = false;
v2.holdingDown = false;
v2.holdingEsc = false;
v2.menuteam = Hockey.prototype.USA;
v2.NOCUT = 0;
v2.GOALSCORED = 1;
v2.EJECTION = 2;
v2.TELEPHONE = 3;
v2.GAMEOVER = 4;
v2.cutscene = Hockey.prototype.NOCUT;
v2.cutteam = Hockey.prototype.USA;
v2.cutguilt = 0;
v2.cutx = 0;
v2.cutcounter = 0;
v2.reftouchedlast = false;
v2.suspicion = 0;
v2.gametimeframes = Hockey.prototype.FASTMODE ? 30 : 5760;
v2.scrollx = 0;
v2.scrolly = 0;
v2.UPRIGHT = 0;
v2.SPLAT = 1;
v2.GETTINGUP = 2;
v2.SHOOTING = 3;
v2.FOLLOWTHROUGH = 4;
v2.playerframes = {'shooting': {'x': -6, 'l': [{'f': 'slapshot1.png', 'd': 1}]}, 'followthrough': {'x': -6, 'l': [{'f': 'slapshot2.png', 'd': 1}]}, 'splat': {'y': 39, 'l': [{'f': 'splat.png', 'd': 1}]}, 'stand': {'l': [{'f': 'skate2.png', 'd': 1}]}, 'skate': {'l': [{'f': 'skate1.png', 'd': 5}, {'f': 'skate2.png', 'd': 9}, {'f': 'skate3.png', 'd': 5}, {'f': 'skate2.png', 'd': 9}]}, 'gettingup': {'l': [{'f': 'gettingup.png', 'd': 1}]}, 'standwo': {'l': [{'f': 'skatewo2.png', 'd': 1}]}, 'skatewo': {'l': [{'f': 'skatewo1.png', 'd': 5}, {'f': 'skatewo2.png', 'd': 9}, {'f': 'skatewo3.png', 'd': 5}, {'f': 'skatewo2.png', 'd': 9}]}};
v2.animframe = 0;
v2.players = [];
v2.junks = [];
v2.STICK = 0;
v2.puck = {'x': 0, 'y': 0, 'dx': 0, 'dy': 0};
v2.user = 0;
v2.usascore = 0;
v2.canscore = 0;
v2.backgroundclip = null;
v2.backgroundmusic = null;
v2.junkctr = 0;
ASSetPropFlags(_global.Hockey.prototype, null, 1);
}
#endinitclip
}
movieClip 61 __Packages.Info {
#initclip
if (!_global.Info) {
var v1 = function () {};
_global.Info = v1;
var v2 = v1.prototype;
v2.loadBitmap3x = function (name) {
var v1 = flash.display.BitmapData.loadBitmap(name);
if (v1 == null) {
trace('bm ' + name + ' was null');
}
var v3 = new flash.display.BitmapData(v1.width * 3, v1.height * 3, true, 0);
var v2 = new flash.geom.Matrix();
v2.scale(3, 3);
v3.draw(v1, v2);
return v3;
};
v2.convertToCanadian = function (bm) {
var v8 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
var v11 = 133;
var v9 = 230;
var v10 = 156;
var v3 = 0;
while (v3 < bm.height) {
var v2 = 0;
while (v2 < bm.width) {
var v1 = bm.getPixel32(v2, v3);
var v5 = v1 >> 16 & 255;
var v6 = v1 >> 8 & 255;
var v4 = v1 & 255;
if (Math.abs(v5 - v11) < 3 && Math.abs(v6 - v9) < 3 && Math.abs(v4 - v10) < 3) {
v1 = 4294948133.0;
}
v8.setPixel32(v2, v3, v1);
++v2;
}
++v3;
}
return v8;
};
v2.convertToReferee = function (bm) {
var v8 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
var v11 = 133;
var v9 = 230;
var v10 = 156;
var v3 = 0;
while (v3 < bm.height) {
var v2 = 0;
while (v2 < bm.width) {
var v1 = bm.getPixel32(v2, v3);
var v5 = v1 >> 16 & 255;
var v6 = v1 >> 8 & 255;
var v4 = v1 & 255;
if (Math.abs(v5 - v11) < 3 && Math.abs(v6 - v9) < 3 && Math.abs(v4 - v10) < 3) {
if (v3 <= 33 || int(v2 / 3) % 2) {
v1 = 4278190080.0;
} else {
v1 = 4294967295.0;
}
}
v8.setPixel32(v2, v3, v1);
++v2;
}
++v3;
}
return v8;
};
v2.flipHoriz = function (bm) {
var v1 = new flash.geom.Matrix();
v1.scale(-1, 1);
v1.translate(bm.width, 0);
var v3 = new flash.display.BitmapData(bm.width, bm.height, true, 0);
v3.draw(bm, v1);
return v3;
};
v2.setDepthOf = function (m, n) {
var v3 = _root.getInstanceAtDepth(n);
if (v3 == m) {
return undefined;
}
if (v3 != undefined) {
this.setDepthOf(v3, n - 1);
}
m.swapDepths(n);
};
v2.createMovieAtDepth = function (name, depth) {
var v3 = _root.getNextHighestDepth();
var v2 = _root.createEmptyMovieClip(name, v3);
v2.swapDepths(depth);
return v2;
};
v2.toDecimal = function (number, factor) {
return Math.round(number * factor) / factor;
};
v2.init = function () {
this.mc = _root.createEmptyMovieClip('info', this.INFODEPTH);
this.mc._x = 0;
this.mc._y = this.SCREENH - this.INFOHEIGHT;
this.fontbm = flash.display.BitmapData.loadBitmap('font.png');
this.background = this.loadBitmap3x('info.png');
var v3 = 0;
while (v3 < this.FONTCHARS.length) {
var v4 = new flash.geom.Matrix();
v4.translate(-this.FONTW * v3, 0);
v4.scale(this.SCALE, this.SCALE);
var v5 = new flash.display.BitmapData(this.FONTW * this.SCALE, this.FONTH * this.SCALE, true, 0);
v5.draw(this.fontbm, v4);
this.font[this.FONTCHARS.charCodeAt(v3)] = v5;
++v3;
}
this.message = [];
this.reload();
this.show();
};
v2.hide = function () {
this.mc._visible = false;
};
v2.show = function () {
this.mc._visible = true;
};
v2.reload = function () {
this.mc.attachBitmap(this.background, 1);
this.textbm = new flash.display.BitmapData(this.background.width, this.background.height, true, 0);
this.mc.attachBitmap(this.textbm, 2);
this.redraw();
};
v2.setMessage = function (m) {
this.message = [];
var v3 = '';
var v2 = 0;
while (v2 < m.length) {
if (m.charAt(v2) == '\n') {
this.message.push(v3);
v3 = '';
} else {
v3 += m.charAt(v2);
}
++v2;
}
this.message.push(v3);
this.reload();
};
v2.redraw = function () {
var v4 = 0;
while (v4 < this.INFOLINES) {
var v5 = this.message[v4];
var v2 = 0;
while (v2 < v5.length) {
var v3 = new flash.geom.Matrix();
v3.translate(this.INFOMARGINX + v2 * 3 * (this.FONTW - this.FONTOVERLAP), this.INFOMARGINY + v4 * 3 * this.FONTH);
this.textbm.draw(this.font[v5.charCodeAt(v2)], v3);
this.mc.attachBitmap(this.textbm, 2);
++v2;
}
++v4;
}
};
v2.FASTMODE = false;
v2.MUSIC = !Info.prototype.FASTMODE;
v2.SCREENW = 840;
v2.SCREENH = 600;
v2.ARENAW = 1740;
v2.ARENAH = 960;
v2.ICEMINX = 105;
v2.ICEMAXX = 1620;
v2.ICEMAXY = 810;
v2.ICEMINY = 216;
v2.USAX = 747;
v2.USAY = 96;
v2.CANX = 939;
v2.CANY = 96;
v2.TIMEX = 825;
v2.TIMEY = 96;
v2.FACEOFF0X = 453;
v2.FACEOFF0Y = 336;
v2.FACEOFF1X = 1269;
v2.FACEOFF1Y = Info.prototype.FACEOFF0Y;
v2.FACEOFF2X = 858;
v2.FACEOFF2Y = 498;
v2.FACEOFF3X = Info.prototype.FACEOFF0X;
v2.FACEOFF3Y = 672;
v2.FACEOFF4X = Info.prototype.FACEOFF1X;
v2.FACEOFF4Y = Info.prototype.FACEOFF3Y;
v2.USAGOALIEX = 309;
v2.CANGOALIEX = 1413;
v2.GOALIEY = 435;
v2.GOALH = 144;
v2.REDLINEX = 864;
v2.USAGOALX1 = 219;
v2.USAGOALY1 = 450;
v2.USAGOALX2 = 261;
v2.USAGOALY2 = 558;
v2.CANGOALX1 = 1458;
v2.CANGOALY1 = 450;
v2.CANGOALX2 = 1500;
v2.CANGOALY2 = 558;
v2.BOTTOMBOARDSX = 96;
v2.BOTTOMBOARDSY = 636;
v2.PUCKH = 12;
v2.PUCKCLIPW = 12;
v2.PUCKCLIPH = 9;
v2.PLAYERW = 42;
v2.PLAYERC = Info.prototype.PLAYERW / 2;
v2.PLAYERH = 75;
v2.PLAYERCLIPHEIGHT = 18;
v2.COLLIDEDIST = 18;
v2.PLAYERTOPUCK = 33;
v2.PICKUPDIST = 33;
v2.PICKUPSTICKDIST = 39;
v2.SPLATTIME = 24;
v2.GETUPTIME = 12;
v2.FOLLOWTHROUGHTIME = 6;
v2.FULLSTRENGTHTIME = 24;
v2.RIGHT = 0;
v2.LEFT = 1;
v2.USA = 0;
v2.CAN = 1;
v2.REF = 2;
v2.REFDIST = 175;
v2.NHURT = 4;
v2.NBOUNCE = 3;
v2.MAXVELOCITYX = 8;
v2.MAXVELOCITYY = 5.6;
v2.PUCKFRICTION = 0.99;
v2.PLAYERFRICTION = 0.95;
v2.JUNKFRICTION = 0.98;
v2.SHOTSTRENGTH = 30;
v2.MINSTRENGTH = 0.2;
v2.PLAYERACCEL = 2;
v2.TITLESELX = 222;
v2.TITLESELY = 285;
v2.TITLESELHEIGHT = 60;
v2.FONTW = 9;
v2.FONTH = 16;
v2.FONTOVERLAP = 1;
v2.FONTCHARS = ' ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`-=[]\\;\',./~!@#$%^&*()_+{}|:"<>?';
v2.INFOLINES = 2;
v2.INFOHEIGHT = Info.prototype.INFOLINES * Info.prototype.FONTH * 3;
v2.INFOMARGINX = 0;
v2.INFOMARGINY = 0;
v2.BGIMAGEDEPTH = 290;
v2.TITLESELDEPTH = 295;
v2.MUSICDEPTH = 80;
v2.RINKDEPTH = 200;
v2.HALODEPTH = 210;
v2.ICESTUFFDEPTH = 1000;
v2.BGMUSICDEPTH = 297;
v2.CUTSOUNDDEPTH = 298;
v2.PUCKSOUNDDEPTH = 299;
v2.PLAYERSOUNDDEPTH = 300;
v2.PPLAYERDEPTH = 10;
v2.BOTTOMBOARDSDEPTH = 50000;
v2.INFODEPTH = 60000;
v2.CUTSCENEDEPTH = 80000;
v2.mc = null;
v2.background = null;
v2.fontbm = null;
v2.textbm = null;
v2.message = [];
v2.cx = 0;
v2.cy = 0;
v2.font = [];
v2.SCALE = 3;
ASSetPropFlags(_global.Info.prototype, null, 1);
}
#endinitclip
}