Section 1
//BitmapAsset (mx.core.BitmapAsset)
package mx.core {
import flash.display.*;
public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject {
mx_internal static const VERSION:String = "3.2.0.3958";
public function BitmapAsset(bitmapData:BitmapData=null, pixelSnapping:String="auto", smoothing:Boolean=false){
super(bitmapData, pixelSnapping, smoothing);
}
public function get measuredWidth():Number{
if (bitmapData){
return (bitmapData.width);
};
return (0);
}
public function get measuredHeight():Number{
if (bitmapData){
return (bitmapData.height);
};
return (0);
}
public function setActualSize(newWidth:Number, newHeight:Number):void{
width = newWidth;
height = newHeight;
}
public function move(x:Number, y:Number):void{
this.x = x;
this.y = y;
}
}
}//package mx.core
Section 2
//FlexBitmap (mx.core.FlexBitmap)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexBitmap extends Bitmap {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexBitmap(bitmapData:BitmapData=null, pixelSnapping:String="auto", smoothing:Boolean=false){
var bitmapData = bitmapData;
var pixelSnapping = pixelSnapping;
var smoothing = smoothing;
super(bitmapData, pixelSnapping, smoothing);
name = NameUtil.createUniqueName(this);
//unresolved jump
var _slot1 = e;
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 3
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 4
//IFlexDisplayObject (mx.core.IFlexDisplayObject)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.accessibility.*;
public interface IFlexDisplayObject extends IBitmapDrawable, IEventDispatcher {
function get visible():Boolean;
function get rotation():Number;
function localToGlobal(void:Point):Point;
function get name():String;
function set width(flash.display:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(flash.display:String):void;
function set scaleX(flash.display:Number):void;
function set scaleY(flash.display:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(flash.display:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(void:Point):Point;
function get height():Number;
function set blendMode(flash.display:String):void;
function get parent():DisplayObjectContainer;
function getBounds(String:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(flash.display:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(flash.display:Number):void;
function set accessibilityProperties(flash.display:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(flash.display:Boolean):void;
function get scaleX():Number;
function get scaleY():Number;
function get scrollRect():Rectangle;
function get mouseX():Number;
function get mouseY():Number;
function set height(flash.display:Number):void;
function set mask(flash.display:DisplayObject):void;
function getRect(String:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(flash.display:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(mx.core:IFlexDisplayObject/mx.core:IFlexDisplayObject:stage/get:DisplayObject):Boolean;
function set opaqueBackground(flash.display:Object):void;
function set visible(flash.display:Boolean):void;
function get mask():DisplayObject;
function set x(flash.display:Number):void;
function set y(flash.display:Number):void;
function get transform():Transform;
function set filters(flash.display:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(flash.display:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 5
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(C:\autobuild\3.2.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:Array):void;
function get isDocument():Boolean;
function set repeaters(C:\autobuild\3.2.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:Array):void;
function initializeRepeaterArrays(C:\autobuild\3.2.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(C:\autobuild\3.2.0\frameworks\projects\framework\src;mx\core;IRepeaterClient.as:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 6
//mx_internal (mx.core.mx_internal)
package mx.core {
public namespace mx_internal = "http://www.adobe.com/2006/flex/mx/internal";
}//package mx.core
Section 7
//SoundAsset (mx.core.SoundAsset)
package mx.core {
import flash.media.*;
public class SoundAsset extends Sound implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
public function SoundAsset(){
super();
}
}
}//package mx.core
Section 8
//NameUtil (mx.utils.NameUtil)
package mx.utils {
import flash.display.*;
import mx.core.*;
import flash.utils.*;
public class NameUtil {
mx_internal static const VERSION:String = "3.2.0.3958";
private static var counter:int = 0;
public function NameUtil(){
super();
}
public static function displayObjectToString(displayObject:DisplayObject):String{
var result:String;
var o:DisplayObject;
var s:String;
var indices:Array;
var displayObject = displayObject;
o = displayObject;
while (o != null) {
if (((((o.parent) && (o.stage))) && ((o.parent == o.stage)))){
break;
};
s = o.name;
if ((o is IRepeaterClient)){
indices = IRepeaterClient(o).instanceIndices;
if (indices){
s = (s + (("[" + indices.join("][")) + "]"));
};
};
result = ((result == null)) ? s : ((s + ".") + result);
o = o.parent;
};
//unresolved jump
var _slot1 = e;
return (result);
}
public static function createUniqueName(object:Object):String{
if (!object){
return (null);
};
var name:String = getQualifiedClassName(object);
var index:int = name.indexOf("::");
if (index != -1){
name = name.substr((index + 2));
};
var charCode:int = name.charCodeAt((name.length - 1));
if ((((charCode >= 48)) && ((charCode <= 57)))){
name = (name + "_");
};
return ((name + counter++));
}
}
}//package mx.utils
Section 9
//AddGraphic (objects.AddGraphic)
package objects {
import mx.core.*;
public function AddGraphic(x:uint, y:uint, txt:String):BitmapAsset{
var gfx:BitmapAsset = new (Mario.classGFX.AccessGFX(txt));
gfx.x = x;
gfx.y = y;
return (gfx);
}
}//package objects
Section 10
//Back (objects.Back)
package objects {
import mx.core.*;
public class Back {
public var gfx1:BitmapAsset;
public var gfx2:BitmapAsset;
public function Back(bit:uint){
super();
gfx1 = new (Mario.classGFX.AccessGFX(("back_" + bit)));
gfx2 = new (Mario.classGFX.AccessGFX(("back_" + bit)));
Mario.layerBack2.addChildAt(gfx1, 0);
Mario.layerBack2.addChildAt(gfx2, 0);
Update(0);
}
public function Update(myID:uint):void{
if (Player.pX > 0){
gfx1.x = -((((-(Mario.scrollX) + 200) / 5) % 400));
gfx2.x = (gfx1.x + 400);
} else {
gfx1.x = -(((((-(Mario.scrollX) + 200) / 5) + 4000) % 400));
gfx2.x = (gfx1.x + 400);
};
}
}
}//package objects
Section 11
//Background (objects.Background)
package objects {
import mx.core.*;
public class Background {
private var bX:Number;
private var bY:Number;
private var GFX:BitmapAsset;
private var parallel:Number;
public function Background(obX:int, obY:int, grafa:String, Par:Number=0){
super();
bX = obX;
bY = obY;
parallel = Par;
GFX = new (Mario.classGFX.AccessGFX(grafa));
GFX.x = (bX + ((-(Mario.scrollX) + 200) * parallel));
GFX.y = bY;
Mario.layerBack.addChild(GFX);
}
public function Update(myID:uint):void{
if (Mario.playerControllable){
GFX.x = (bX + (((-(Mario.scrollX) + 200) - bX) * parallel));
};
}
public function Reset(xX:int):void{
GFX.x = (bX + (((-(Mario.scrollX) + 200) - bX) * parallel));
}
}
}//package objects
Section 12
//BBeetle (objects.BBeetle)
package objects {
import flash.display.*;
import flash.media.*;
public class BBeetle extends Enemy {
private var waiter:uint;// = 0
private var Mode:uint;// = 0
private var frame:uint;// = 0
private var SFXStomp:Sound;
private var wait:uint;// = 0
private var GFX:Array;
private var fall:Boolean;// = false
private var num:uint;// = 0
public function BBeetle(Xpos:uint, Ypos:uint){
SFXStomp = new (Mario.classSFX.accessSFX("stompduck"));
GFX = new Array(6);
super();
eX = Xpos;
eY = Ypos;
eWid = 20;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 20;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_bbeetle_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_bbeetle_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("enemy_bbeetle_shell_1"));
GFX[3] = new (Mario.classGFX.AccessGFX("enemy_bbeetle_shell_2"));
GFX[4] = new (Mario.classGFX.AccessGFX("enemy_bbeetle_shell_3"));
GFX[5] = new (Mario.classGFX.AccessGFX("enemy_bbeetle_shell_4"));
GFX[0].x = (eX - 2);
GFX[0].y = (eY - 4);
Mario.layerFore.addChild(GFX[0]);
}
override public function Stomp(myID:uint):void{
if (Mode == 0){
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "200"));
this.Mode = 1;
Player.hitStomp = true;
Player.Bounce(eY);
this.makeShell();
num = 0;
waiter = 0;
if (Mario.sounds){
SFXStomp.play();
};
} else {
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "100"));
Mode = 1;
waiter = 0;
Player.hitStomp = true;
Player.Bounce(eY);
this.makeShell();
isShell = false;
num = 0;
if (Mario.sounds){
SFXStomp.play();
};
};
}
override public function FireballHit(myID:uint, dir:int):Boolean{
if (Mario.sounds){
SFXKick.play();
};
return (true);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
var hits:int;
var i:int;
if (active){
if (Mode == 0){
eX = (eX + dir);
if (dir > 0){
if (Mario.enemyBounce(myID, ((eX + eWid) - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
} else {
if (Mario.enemyBounce(myID, (eX - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 1){
fall = true;
};
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 5);
if (fall){
dir = ((Player.pX > eX)) ? 1 : -1;
fall = false;
};
};
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 2);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == 1)) ? 0 : 24);
GFX[frame].y = (eY - 4);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
if (Mode == 1){
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 5);
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if ((Player.pX - eX) > 0){
dir = -1;
} else {
dir = 1;
};
isShell = true;
wait = 0;
Mode = 2;
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "500"));
if (Mario.sounds){
SFXKick.play();
};
};
waiter++;
GFX[frame].x = ((eX - 2) + ((waiter > 150)) ? Math.sin((waiter * 2)) : 0);
GFX[frame].y = (eY - 2);
if (waiter > 250){
Mode = 0;
waiter = 0;
wait = 14;
dir = ((Player.pX > eX)) ? 1 : -1;
};
} else {
eX = (eX + (dir * 6));
hits = Mario.enemyShellHit(myID, eX, eY, eWid, eHei, dir);
if (hits < 0){
Fire((myID - Mario.decreaseI), -(dir));
};
i = Math.abs(hits);
while (i > 0) {
Mario.instEffects.push(new Points((eX + 10), (eY - 5), Mario.givePointShell(num)));
num++;
if (num == 8){
num = 0;
};
i--;
};
if (alive){
if (dir > 0){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (((Math.floor((eX / 25)) * 25) + 25) - eWid);
};
} else {
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = ((Math.floor((eX / 25)) * 25) + 25);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 5);
};
};
wait++;
if (wait == 3){
Mario.layerFore.removeChild(GFX[frame]);
frame = (2 + ((frame - 1) % 4));
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (eX - 2);
GFX[frame].y = (eY - 2);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (Mode == 3){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
Mode = 3;
};
};
};
};
} else {
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
private function makeShell():void{
Mario.layerFore.removeChild(GFX[frame]);
frame = 2;
GFX[frame].x = (eX - 2);
GFX[frame].y = (eY - 2);
Mario.layerFore.addChild(GFX[frame]);
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 2), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_bbeetle_shell_1")));
return (true);
}
}
}//package objects
Section 13
//Block (objects.Block)
package objects {
import flash.media.*;
public class Block {
var bX:Number;
var bY:Number;
var SFXBrick:Sound;
public function Block(){
SFXBrick = new (Mario.classSFX.accessSFX("brick"));
super();
}
public function Headbutt(myID:uint):void{
}
public function Update(myID:uint):void{
}
}
}//package objects
Section 14
//Bonus (objects.Bonus)
package objects {
import flash.display.*;
import flash.media.*;
public class Bonus extends Block {
private var SFXSprout:Sound;
private var invisible:Boolean;
private var wait:uint;// = 0
private var SFXCoin:Sound;
private var GFX:Array;
public var type:uint;
private var frame:uint;// = 0
private var seq:Number;// = -1
public function Bonus(Xpos:uint, Ypos:uint, typ:uint, inv:Boolean=false):void{
GFX = new Array(3);
SFXSprout = new (Mario.classSFX.accessSFX("sprout"));
SFXCoin = new (Mario.classSFX.accessSFX("coin"));
super();
invisible = inv;
bX = Xpos;
bY = Ypos;
type = typ;
if (type == 0){
GFX[0] = new (Mario.classGFX.AccessGFX("bonus_used"));
GFX[0].x = bX;
GFX[0].y = bY;
} else {
GFX[0] = new (Mario.classGFX.AccessGFX("bonus_bonus_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("bonus_bonus_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("bonus_bonus_3"));
GFX[3] = new (Mario.classGFX.AccessGFX("bonus_bonus_4"));
GFX[4] = new (Mario.classGFX.AccessGFX("bonus_bonus_5"));
GFX[0].x = (GFX[1].x = (GFX[2].x = (GFX[3].x = (GFX[4].x = bX))));
GFX[0].y = (GFX[1].y = (GFX[2].y = (GFX[3].y = (GFX[4].y = bY))));
};
if (!invisible){
Mario.layerWall.addChild(GFX[0]);
};
if (!invisible){
Mario.changeLevel((bX / 25), (bY / 25), "x");
};
}
override public function Headbutt(myID:uint):void{
if (type == 1){
Mario.Hud.Coins++;
Mario.Hud.RedrawCoins();
if (Mario.sounds){
SFXCoin.play();
};
Mario.instEffects.push(new Coin_Jump((bX + 5), (bY - 22)));
};
if (invisible){
Mario.changeLevel((bX / 25), (bY / 25), "x");
Player.pY = ((Math.floor((bY / 25)) * 25) + 25);
};
if (!invisible){
Mario.layerWall.removeChild(GFX[frame]);
};
GFX[0] = new (Mario.classGFX.AccessGFX("bonus_used"));
GFX[0].x = bX;
GFX[0].y = bY;
Mario.layerWall.addChild(GFX[0]);
frame = 0;
seq = Math.PI;
Mario.enemyHitFireball(bX, (bY - 2), 25, 2, Player.dir);
}
override public function Update(myID:uint):void{
if (seq == -1){
if (type > 0){
if (Player.hitHead){
if (Mario.playerCollide(bX, bY, 25, 26)){
Mario.headbuttSetDistance(myID, bX);
};
} else {
if (((((((invisible) && ((Player.gravity < 0)))) && (((Player.pY - Player.gravity) > (bY + 24))))) && (Mario.playerCollide(bX, bY, 25, 26)))){
Mario.headbuttSetDistance(myID, bX);
};
};
wait++;
if ((((wait == 6)) && (!(invisible)))){
Mario.layerWall.removeChild(GFX[frame]);
frame = ((frame + 1) % 3);
Mario.layerWall.addChild(GFX[frame]);
wait = 0;
};
};
} else {
if (seq > 0){
GFX[frame].y = (bY - (Math.sin(seq) * 10));
seq = (seq - (Math.PI / 10));
} else {
GFX[frame].y = bY;
switch (type){
case 2:
if (Player.pSize == 0){
Mario.instObjects.push(new Shroom(bX, bY));
} else {
Mario.instObjects.push(new Flower(bX, bY));
};
if (Mario.sounds){
SFXSprout.play();
};
break;
case 3:
Mario.instObjects.push(new KillShroom(bX, bY));
if (Mario.sounds){
SFXSprout.play();
};
break;
case 4:
Mario.instObjects.push(new LifeShroom(bX, bY));
if (Mario.sounds){
SFXSprout.play();
};
break;
case 5:
Mario.instObjects.push(new Star(bX, bY));
if (Mario.sounds){
SFXSprout.play();
};
break;
};
type = 0;
};
};
}
}
}//package objects
Section 15
//Bowser (objects.Bowser)
package objects {
import flash.media.*;
public class Bowser extends Enemy {
public var damageWait:uint;// = 0
public var hp:int;
private var SFXRadish:Sound;
public var hampau:uint;
public var ham:uint;
public var hammerer1:uint;// = 0
public var hammerer2:uint;// = 0
public var musicFundo:uint;// = 0
public var border:uint;
public var action:uint;// = 0
private var SFXBump:Sound;
public var firehp:uint;// = 6
public var fl:uint;
public var scroll:uint;// = 0
public var moveTo:uint;
private var SFXGrowl:Sound;
public var hamno:uint;
public var GFX:Array;
public var frameTime:uint;// = 0
public var waiter:uint;
private var SFXKill:Sound;
public var moveWait:uint;// = 0
private var SFXStomp:Sound;
public var frame:uint;// = 0
public function Bowser(x:uint, y:uint, borderx:uint, hape:uint, flame:uint, hammer:uint, hammerno:uint, hammerpause:uint){
GFX = new Array(4);
SFXBump = new (Mario.classSFX.accessSFX("bump"));
SFXStomp = new (Mario.classSFX.accessSFX("bowser_hit"));
SFXGrowl = new (Mario.classSFX.accessSFX("growl"));
SFXKill = new (Mario.classSFX.accessSFX("bowser_kill"));
SFXRadish = new (Mario.classSFX.accessSFX("radish"));
super();
GFX[0] = new (Mario.classGFX.AccessGFX("bowser_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("bowser_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("bowser_3"));
GFX[3] = new (Mario.classGFX.AccessGFX("bowser_4"));
fl = flame;
ham = hammer;
hamno = hammerno;
hampau = hammerpause;
border = borderx;
moveTo = (eX = x);
eWid = 40;
eHei = 46;
eY = y;
hp = hape;
Mario.layerFore.addChild(GFX[frame]);
}
private function changeFrame(fra:uint):void{
Mario.layerFore.removeChild(GFX[frame]);
frame = fra;
Mario.layerFore.addChild(GFX[frame]);
}
override public function Stomp(myID:uint):void{
if (damageWait == 0){
Player.Bounce(eY);
hp--;
damageWait = 120;
firehp = 6;
if (Mario.sounds){
SFXStomp.play();
};
};
}
private function gfxPosition():void{
dir = ((Player.pX > eX)) ? 1 : -1;
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 5) + ((dir == -1)) ? 50 : 0);
GFX[frame].y = (eY - 10);
GFX[frame].alpha = Math.abs(Math.cos(((damageWait * Math.PI) / 30)));
}
override public function Fire(myID:uint, dir:int):Boolean{
return (false);
}
override public function Update(myID:uint):void{
var radish:Fireball;
if (hp <= 0){
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
Mario.instEffects.push(new Enemy_Fall((eX - 5), (eY - 10), dir, GFX[frame]));
Mario.instObjects.push(new BowserKilled());
if (Mario.sounds){
SFXKill.play();
};
Mario.classSFX.Play(-1);
return;
};
if (musicFundo > 0){
musicFundo++;
if (musicFundo == 150){
if (Mario.music){
Mario.classSFX.Play(5);
};
};
};
if (scroll == 0){
if (Player.pX > (border - 200)){
scroll = 1;
Mario.checkPoint = Mario.levelid;
if (Mario.music){
musicFundo = 1;
Mario.classSFX.Play(4);
Mario.musika = 5;
};
Mario.scrollEdge = (Player.pX - 200);
Mario.centerScreen(Player.pX);
Mario.scrolling = false;
};
} else {
if (scroll == 1){
if (Mario.scrollEdge < border){
Mario.scrollEdge++;
Mario.centerScreen((Mario.scrollEdge + 200));
if ((Player.pX + Math.round((Player.speed / 100))) < (Mario.scrollEdge + 2)){
Player.pX = (Mario.scrollEdge + 2);
Player.speed = Math.max(0, Player.speed);
if (((Mario.playerControllable) && (((Mario.levelColl(((Player.pX + Player.pWid) - 1), Player.pY)) || (Mario.levelColl(((Player.pX + Player.pWid) - 1), ((Player.pY + Player.pHei) - 1))))))){
Mario.hitPlayer(true);
};
};
} else {
scroll = 2;
};
};
};
gravity = (gravity + (Mario.gravity / 3));
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
if (Math.random() < 0.05){
gravity = -4;
};
};
};
if ((((moveTo == eX)) && ((moveWait == 0)))){
switch (Math.floor((Math.random() * 2))){
case 0:
moveTo = ((border + 25) + Math.floor((Math.random() * 310)));
case 1:
moveWait = Math.floor((Math.random() * 40));
};
} else {
if (moveWait > 0){
moveWait--;
} else {
eX = (eX + (Mario.Sign((moveTo - eX)) * Math.min(2, Math.abs((moveTo - eX)))));
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) <= (eY + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
if (action == 0){
frameTime++;
if (frameTime > 15){
if (frame == 0){
changeFrame(1);
} else {
changeFrame(0);
};
frameTime = 0;
if ((Math.random() * 50) < (fl + ham)){
if ((Math.random() * fl) >= (Math.random() * ham)){
action = 1;
changeFrame(3);
waiter = 0;
} else {
action = 2;
changeFrame(3);
waiter = 0;
hammerer1 = hamno;
};
};
};
} else {
if (action == 1){
if (waiter < 80){
waiter++;
} else {
if (waiter == 80){
waiter++;
changeFrame(2);
if (Mario.sounds){
SFXGrowl.play();
};
if (Mario.levelid == 16){
Mario.instEffects.push(new BowserFlame(((eX + 5) + (20 * dir)), (eY + 10), dir, (((Player.pY + 30) - Player.pHei) + 40)));
Mario.instEffects.push(new BowserFlame(((eX + 5) + (20 * dir)), (eY + 10), dir, (((Player.pY + 30) - Player.pHei) - 40)));
};
Mario.instEffects.push(new BowserFlame(((eX + 5) + (20 * dir)), (eY + 10), dir, ((Player.pY + 30) - Player.pHei)));
} else {
if (waiter < 100){
waiter++;
} else {
if (waiter == 100){
changeFrame(0);
action = 0;
};
};
};
};
} else {
if (action == 2){
if (waiter < 80){
waiter++;
} else {
if (waiter == 80){
if (hammerer2 == 0){
if (hammerer1 > 0){
changeFrame(2);
radish = new Fireball(((eX + 5) + ((dir == 1)) ? 30 : 0), (eY + 10), dir, true);
radish.dir = (dir * 3);
radish.gravity = 0;
Mario.instObjects.push(radish);
if (Mario.sounds){
SFXRadish.play();
};
hammerer1--;
} else {
changeFrame(0);
action = 0;
};
hammerer2 = hampau;
} else {
hammerer2--;
};
} else {
if (waiter < 100){
waiter++;
} else {
if (waiter == 100){
changeFrame(0);
action = 0;
};
};
};
};
};
};
};
if (damageWait > 0){
damageWait--;
};
gfxPosition();
}
override public function FireballHit(myID:uint, dir:int):Boolean{
if (damageWait == 0){
firehp--;
if (firehp == 0){
hp--;
damageWait = 120;
firehp = 6;
};
};
if (Mario.sounds){
SFXBump.play();
};
return (true);
}
}
}//package objects
Section 16
//BowserFlame (objects.BowserFlame)
package objects {
public class BowserFlame extends Effect {
public var GFX:Array;
public var frame:uint;// = 0
public var eX:uint;
public var eY:uint;
public var newy:uint;
public var dir:int;
public function BowserFlame(x:uint, y:uint, dire:int, ny:uint){
GFX = new Array(3);
super();
GFX[0] = new (Mario.classGFX.AccessGFX("bowser_flame_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("bowser_flame_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("bowser_flame_3"));
eX = x;
eY = y;
dir = dire;
newy = ny;
GFX[0].scaleX = dir;
GFX[1].scaleX = dir;
GFX[2].scaleX = dir;
GFX[frame].x = (eX + ((dir == -1)) ? 41 : -16);
GFX[frame].y = (eY - 3);
Mario.layerFore.addChildAt(GFX[0], 0);
}
override public function Update(myID:uint):void{
timer++;
if (timer == 6){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 3);
Mario.layerFore.addChildAt(GFX[frame], 0);
timer = 0;
};
eX = (eX + (dir * 3));
if (eY != newy){
eY = (eY + (Mario.Sign((newy - eY)) * Math.min(2, Math.abs((newy - eY)))));
};
GFX[frame].x = (eX + ((dir == -1)) ? 41 : -16);
GFX[frame].y = (eY - 3);
if (Math.abs((eX - Player.pX)) > 500){
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEffect(myID);
};
if (Mario.playerCollide(eX, eY, 25, 17)){
Mario.hitPlayer();
};
}
}
}//package objects
Section 17
//BowserKilled (objects.BowserKilled)
package objects {
import flash.display.*;
import flash.media.*;
public class BowserKilled extends Obj {
public var timer:uint;// = 0
public var gfx:Sprite;
public var SFXComplete:Sound;
public function BowserKilled(){
SFXComplete = new (Mario.classSFX.accessSFX("level_complete"));
gfx = new Sprite();
super();
gfx.graphics.beginFill(0);
gfx.graphics.drawRect(0, 0, 400, 375);
gfx.graphics.endFill();
}
override public function Update(myID:uint):void{
timer++;
if (timer > 130){
if (Mario.levelid < 12){
SFXComplete.play();
Swap();
Mario.removeObject(myID);
} else {
if (timer == 131){
Mario.layerGover.addChild(gfx);
gfx.alpha = 0;
} else {
gfx.alpha = (gfx.alpha + 0.1);
if (gfx.alpha > 1){
Mario.levelid++;
Mario.clearLevel();
Mario.decreaseI = 1;
};
};
};
};
}
private function Swap():void{
Mario.playerControllable = false;
Mario.layerFore.removeChild(Player.GFX2);
Mario.instEffects.push(new PlayerFinish(Player.pX, Player.pY, Player.gravity, Player.speed, Player.frame));
if (Mario.music){
SFXComplete.play();
};
}
}
}//package objects
Section 18
//Brick (objects.Brick)
package objects {
import mx.core.*;
public class Brick extends Block {
private var GFX:BitmapAsset;
private var seq:Number;// = 0
public function Brick(Xpos:uint, Ypos:uint):void{
super();
bX = Xpos;
bY = Ypos;
var GFXclass:Class = Mario.classGFX.AccessGFX("bonus_brick");
GFX = new (GFXclass);
GFX.x = bX;
GFX.y = bY;
Mario.layerWall.addChild(GFX);
Mario.changeLevel((bX / 25), (bY / 25), "x");
}
override public function Update(myID:uint):void{
if (Player.hitHead){
if (Mario.playerCollide(bX, bY, 25, 26)){
Mario.headbuttSetDistance(myID, bX);
};
};
if (seq > 0){
GFX.y = (bY - (Math.sin(seq) * 10));
seq = (seq - (Math.PI / 10));
} else {
GFX.y = bY;
};
}
override public function Headbutt(myID:uint):void{
Mario.enemyHitFireball(bX, (bY - 2), 25, 2, Player.dir);
if (Player.pSize > 0){
Mario.layerWall.removeChild(GFX);
Mario.removeBlock(myID);
Mario.changeLevel((bX / 25), (bY / 25), " ");
Mario.instEffects.push(new Enemy_Fire(bX, bY, (Player.speed / 100), Mario.classGFX.AccessGFX("bonus_brick")));
if (Mario.sounds){
SFXBrick.play();
};
} else {
seq = Math.PI;
};
}
}
}//package objects
Section 19
//BrickMulti (objects.BrickMulti)
package objects {
import mx.core.*;
import flash.media.*;
public class BrickMulti extends Block {
private var coins:uint;// = 0
private var SFXCoin:Sound;
private var GFX:BitmapAsset;
private var seq:Number;// = 0
public function BrickMulti(Xpos:uint, Ypos:uint, coins:uint=5):void{
var GFXclass:Class;
SFXCoin = new (Mario.classSFX.accessSFX("coin"));
super();
bX = Xpos;
bY = Ypos;
this.coins = coins;
GFXclass = Mario.classGFX.AccessGFX("bonus_brick");
GFX = new (GFXclass);
GFX.x = bX;
GFX.y = bY;
Mario.layerWall.addChild(GFX);
Mario.changeLevel((bX / 25), (bY / 25), "x");
}
override public function Update(myID:uint):void{
if ((((coins > 0)) && (Player.hitHead))){
if (Mario.playerCollide(bX, bY, 25, 26)){
Mario.headbuttSetDistance(myID, bX);
};
};
if (seq > 0){
GFX.y = (bY - (Math.sin(seq) * 10));
seq = (seq - (Math.PI / 10));
} else {
GFX.y = bY;
};
}
override public function Headbutt(myID:uint):void{
var GFXclass:Class;
seq = Math.PI;
if (coins > 0){
Mario.enemyHitFireball(bX, (bY - 2), 25, 2, Player.dir);
Mario.Hud.Coins++;
Mario.Hud.RedrawCoins();
Mario.instEffects.push(new Coin_Jump((bX + 5), (bY - 22)));
coins = (coins - 1);
if (Mario.sounds){
SFXCoin.play();
};
if (coins == 0){
Mario.layerWall.removeChild(GFX);
GFXclass = Mario.classGFX.AccessGFX("bonus_used");
GFX = new (GFXclass);
GFX.x = bX;
GFX.y = bY;
Mario.layerWall.addChild(GFX);
};
};
}
}
}//package objects
Section 20
//Bullet (objects.Bullet)
package objects {
import flash.media.*;
public class Bullet extends Enemy {
private var SFX:Sound;
private var SFXStomp:Sound;
private var frame:uint;// = 0
private var wait:uint;// = 0
private var GFX:Array;
public function Bullet(x:uint, y:uint){
GFX = new Array(3);
SFXStomp = new (Mario.classSFX.accessSFX("stomp"));
SFX = new (Mario.classSFX.accessSFX("cannon"));
super();
eX = x;
eY = y;
dir = ((Player.pX > eX)) ? 3 : -3;
frame = Math.abs((-((wait / 8)) + 2));
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_bullet_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_bullet_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("enemy_bullet_3"));
GFX[frame].scaleX = (dir / 3);
GFX[frame].x = ((eX - 2) + ((dir > 0)) ? 0 : 25);
GFX[frame].y = (eY - 2);
Mario.layerFore.addChild(GFX[frame]);
if ((((eX > (Player.pX + 300))) || ((eX < (Player.pX - 300))))){
} else {
SFX.play();
};
}
override public function Stomp(myID:uint):void{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Player.hitStomp = true;
Player.Bounce(eY);
Mario.instEffects.push(new Enemy_Fall(eX, eY, Mario.Sign(dir), GFX[frame]));
if (Mario.sounds){
SFXStomp.play();
};
}
override public function Update(myID:uint):void{
wait++;
if ((wait % 8) == 0){
Mario.layerFore.removeChild(GFX[frame]);
frame = Math.abs((-((wait / 8)) + 2));
Mario.layerFore.addChild(GFX[frame]);
if (wait == 32){
wait = 0;
};
};
eX = (eX + dir);
GFX[frame].scaleX = (dir / 3);
GFX[frame].x = ((eX - 2) + ((dir > 0)) ? 0 : 25);
GFX[frame].y = (eY - 2);
if (Mario.playerCollide(eX, eY, 21, 21)){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
if ((((eX > (Player.pX + 300))) || ((eX < (Player.pX - 300))))){
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
};
}
override public function FireballHit(myID:uint, dir:int):Boolean{
return (false);
}
}
}//package objects
Section 21
//Cannon (objects.Cannon)
package objects {
import mx.core.*;
public class Cannon extends Obj {
private var GFX:BitmapAsset;
private var wait:uint;
public function Cannon(x:uint, y:uint){
super();
oX = x;
oY = y;
wait = (60 + Math.floor((Math.random() * 100)));
GFX = new (Mario.classGFX.AccessGFX("Wall_T"));
GFX.x = oX;
GFX.y = oY;
Mario.layerEffects.addChild(GFX);
Mario.changeLevel((oX / 25), (oY / 25), "x");
}
override public function Update(myID:uint):void{
wait--;
if (wait == 0){
if ((((Player.pX < (oX - 100))) || ((((Player.pX > (oX + 100))) && ((Math.abs((Player.pX - oX)) < 300)))))){
Mario.instEnemies.push(new Bullet((oX + 2), (oY + 3)));
};
wait = (60 + Math.floor((Math.random() * 100)));
};
}
}
}//package objects
Section 22
//Cloud (objects.Cloud)
package objects {
public class Cloud extends Effect {
private var GFX:Array;
private var frame:uint;// = 0
public function Cloud(x:uint, y:uint){
GFX = new Array(3);
super();
GFX[0] = new (Mario.classGFX.AccessGFX("back_cloud_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("back_cloud_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("back_cloud_3"));
GFX[0].x = (GFX[1].x = (GFX[2].x = x));
GFX[0].y = (GFX[1].y = (GFX[2].y = y));
Mario.layerEffects.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
timer++;
if (timer == 20){
Mario.layerEffects.removeChild(GFX[frame]);
frame = ((frame + 1) % 3);
Mario.layerEffects.addChild(GFX[frame]);
timer = 0;
};
}
}
}//package objects
Section 23
//Coin (objects.Coin)
package objects {
import flash.display.*;
import flash.media.*;
public class Coin extends Obj {
public var wait:uint;// = 0
private var SFXCoin:Sound;
private var GFX:Array;
public var frame:uint;// = 0
public function Coin(typeX:Number, typeY:Number){
GFX = new Array(3);
SFXCoin = new (Mario.classSFX.accessSFX("coin"));
super();
oX = (typeX + 4);
oY = (typeY + 2);
GFX[0] = new (Mario.classGFX.AccessGFX("object_coin_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("object_coin_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("object_coin_3"));
GFX[0].x = (GFX[1].x = (GFX[2].x = (oX - 4)));
GFX[0].y = (GFX[1].y = (GFX[2].y = (oY - 2)));
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
wait++;
if (wait == 4){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 3);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
if (Mario.playerCollide(oX, oY, 16, 22)){
Mario.Hud.Coins++;
Mario.Hud.RedrawCoins();
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeObject(myID);
if (Mario.sounds){
SFXCoin.play();
};
};
}
}
}//package objects
Section 24
//Coin_Boom (objects.Coin_Boom)
package objects {
import flash.display.*;
public class Coin_Boom extends Effect {
public var fX:Number;
public var fY:Number;
public var wait:uint;// = 0
public var GFX:Array;
public var frame:uint;// = 0
public function Coin_Boom(oX:Number, oY:Number){
GFX = new Array(3);
super();
fX = oX;
fY = oY;
GFX[0] = new (Mario.classGFX.AccessGFX("effect_coin_boom_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("effect_coin_boom_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("effect_coin_boom_3"));
GFX[0].x = fX;
GFX[0].y = fY;
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
fY = (fY + 0.2);
wait++;
if (wait == 8){
Mario.layerFore.removeChild(GFX[frame]);
frame++;
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = fX;
GFX[frame].y = fY;
GFX[frame].alpha = (1 - (((frame * 8) + wait) / 24));
if ((((frame == 2)) && ((wait == 7)))){
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 25
//Coin_Jump (objects.Coin_Jump)
package objects {
import mx.core.*;
public class Coin_Jump extends Effect {
public var fX:Number;
public var fY:Number;
public var speed:Number;// = 10
public var GFX:BitmapAsset;
public var frame:uint;// = 1
public function Coin_Jump(oX:Number, oY:Number){
super();
fX = oX;
fY = oY;
var GFXclass:Class = Mario.classGFX.AccessGFX("effect_coin_jump_1");
GFX = new (GFXclass);
GFX.x = fX;
GFX.y = fY;
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
frame = (((frame + 1) % 12) + 1);
fY = (fY - speed);
speed = (speed - Mario.gravity);
Mario.layerFore.removeChild(GFX);
var GFXclass:Class = Mario.classGFX.AccessGFX(("effect_coin_jump_" + Math.ceil((frame / 3))));
GFX = new (GFXclass);
GFX.x = fX;
GFX.y = fY;
Mario.layerFore.addChild(GFX);
if (speed < 2){
Mario.instEffects.push(new Points((fX + 7), (fY + 130), "200"));
Mario.instEffects.push(new Coin_Boom((fX - 10), fY));
Mario.layerFore.removeChild(GFX);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 26
//DeadMario (objects.DeadMario)
package objects {
import mx.core.*;
public class DeadMario extends Effect {
private var grav:Number;// = -5
private var fX:int;
private var fY:int;
private var GFX:BitmapAsset;
public function DeadMario(oX:int, oY:int){
super();
fX = oX;
fY = oY;
timer = 0;
GFX = new (Mario.classGFX.AccessGFX("object_mario_dead"));
GFX.x = fX;
GFX.y = fY;
Mario.layerEffects.addChild(GFX);
}
override public function Update(myID:uint):void{
timer++;
if (timer > 40){
fY = (fY + grav);
if (timer > 60){
grav = Math.min((grav + Mario.gravity), 5);
};
GFX.y = fY;
if (fY > ((Mario.levelHei * 25) + 150)){
Mario.removeEffect(myID);
Mario.layerEffects.removeChild(GFX);
if (Mario.Hud.Lives == 0){
Mario.instObjects.push(new GameOver());
} else {
Mario.Hud.Lives--;
Mario.clearLevel();
Mario.decreaseI = 1;
};
};
};
}
}
}//package objects
Section 27
//Effect (objects.Effect)
package objects {
public class Effect {
var timer:uint;
public function Effect(){
super();
}
public function Update(myID:uint):void{
}
}
}//package objects
Section 28
//Elevator (objects.Elevator)
package objects {
import mx.core.*;
public class Elevator extends Obj {
protected var grav:int;// = 0
protected var wid:uint;// = 25
protected var holds:Boolean;// = false
protected var GFX:BitmapAsset;
public function Elevator(x:uint, y:uint, wid:uint, graph:String){
super();
oX = x;
oY = y;
this.wid = wid;
GFX = new (Mario.classGFX.AccessGFX(graph));
GFX.x = oX;
GFX.y = oY;
Mario.layerWall.addChild(GFX);
}
override public function Update(myID:uint):void{
if (!holds){
if ((((((Player.pY + Player.pHei) - Player.gravity) < ((oY - grav) + 5))) && (Mario.playerCollide(oX, (oY - 2), wid, 7)))){
Player.elev = this;
holds = true;
Player.gravity = 0;
Player.pY = (oY - Player.pHei);
Player.ResetGraphic();
};
} else {
if (Mario.playerCollide(oX, (oY - 2), wid, 2)){
Player.gravity = 0;
Player.pY = (oY - Player.pHei);
Player.ResetGraphic();
} else {
this.free();
};
};
Act();
}
protected function Act():void{
}
public function free():void{
holds = false;
Player.elev = null;
}
}
}//package objects
Section 29
//ElevatorFall (objects.ElevatorFall)
package objects {
public class ElevatorFall extends Elevator {
private var timer:uint;// = 0
public function ElevatorFall(x:uint, y:uint, wid:uint, graph:String){
super(x, y, wid, graph);
}
override protected function Act():void{
if (((holds) || ((timer > 0)))){
timer++;
};
if (timer > 30){
grav = (grav + 0.2);
};
if (holds){
Player.pY = (Player.pY + Math.round(grav));
};
oY = (oY + Math.round(grav));
GFX.y = (oY - Math.round(grav));
}
override public function free():void{
super.free();
Player.gravity = grav;
}
}
}//package objects
Section 30
//ElevatorLoop (objects.ElevatorLoop)
package objects {
public class ElevatorLoop extends Elevator {
public function ElevatorLoop(x:uint, y:uint, wid:uint, graph:String, drspd:int){
super(x, y, wid, graph);
grav = drspd;
}
override protected function Act():void{
if (holds){
Player.pY = (Player.pY + Math.round(grav));
};
oY = (oY + Math.round(grav));
GFX.y = oY;
if (oY > 385){
oY = (oY - 400);
free();
} else {
if (oY < -25){
oY = (oY + 400);
free();
};
};
}
override public function free():void{
if (holds){
super.free();
Player.gravity = grav;
};
}
}
}//package objects
Section 31
//Enemy (objects.Enemy)
package objects {
import flash.media.*;
public class Enemy {
public var active:Boolean;// = false
public var bounce:Boolean;// = true
public var SFXKick:Sound;
public var alive:Boolean;// = true
public var eX:Number;
public var eY:Number;
public var gravity:Number;// = 0
public var dir:int;
public var eHei:uint;
public var eWid:uint;
public var stomped:Boolean;// = false
public var isShell:Boolean;// = false
public function Enemy(){
SFXKick = new (Mario.classSFX.accessSFX("kick"));
super();
}
public function Fire(myID:uint, dir:int):Boolean{
return (false);
}
public function Stomp(myID:uint):void{
}
public function Update(myID:uint):void{
}
public function FireballHit(myID:uint, dir:int):Boolean{
Fire(myID, dir);
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "200"));
if (Mario.sounds){
SFXKick.play();
};
return (true);
}
}
}//package objects
Section 32
//Enemy_Fall (objects.Enemy_Fall)
package objects {
import mx.core.*;
public class Enemy_Fall extends Effect {
public var fX:Number;
public var fY:Number;
public var moveY:Number;// = 0
public var GFX:BitmapAsset;
public function Enemy_Fall(oX:Number, oY:Number, dir:int, GFXclass:BitmapAsset){
super();
GFX = GFXclass;
fX = (oX - ((dir == -1)) ? -(GFX.width) : 0);
fY = (oY + GFX.height);
GFX.x = fX;
GFX.y = fY;
GFX.scaleY = -1;
GFX.scaleX = dir;
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
moveY = (moveY + Mario.gravity);
fY = (fY + moveY);
GFX.x = fX;
GFX.y = fY;
if (fY > ((Mario.levelHei * 25) + 20)){
Mario.layerFore.removeChild(GFX);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 33
//Enemy_Fire (objects.Enemy_Fire)
package objects {
import flash.display.*;
import mx.core.*;
public class Enemy_Fire extends Effect {
public var fX:Number;
public var fY:Number;
public var moveX:Number;
public var moveY:Number;
public var GFX:Sprite;
public function Enemy_Fire(oX:Number, oY:Number, dir:int, GFXclass:Class){
super();
moveX = dir;
moveY = -6;
var GFX2:BitmapAsset = new (GFXclass);
GFX2.x = (-(GFX2.width) / 2);
GFX2.y = (-(GFX2.height) / 2);
fX = (oX + (GFX2.width / 2));
fY = (oY + (GFX2.width / 2));
GFX = new Sprite();
GFX.x = fX;
GFX.y = fY;
GFX.addChild(GFX2);
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
fX = (fX + moveX);
moveY = (moveY + Mario.gravity);
fY = (fY + moveY);
GFX.x = fX;
GFX.y = fY;
GFX.rotation = (GFX.rotation + (moveX * 4));
if (fY > ((Mario.levelHei * 25) + 20)){
Mario.layerFore.removeChild(GFX);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 34
//Finish (objects.Finish)
package objects {
import mx.core.*;
import flash.media.*;
public class Finish {
public var GFXBack:BitmapAsset;
public var GFXBar:BitmapAsset;
public var GFXArr:BitmapAsset;
public var collected:Boolean;// = false
public var dir:int;// = 2
public var fY:int;
public var GFXFore:BitmapAsset;
public var bX:int;
public var bY:int;
public var fX:int;
public var SFXComplete:Sound;
public function Finish(obX:int, obY:int){
SFXComplete = new (Mario.classSFX.accessSFX("level_complete"));
super();
fX = obX;
fY = obY;
bX = (obX + 114);
bY = 0;
GFXArr = new (Mario.classGFX.AccessGFX("finish_4"));
GFXBack = new (Mario.classGFX.AccessGFX("finish_1"));
GFXFore = new (Mario.classGFX.AccessGFX("finish_2"));
GFXBar = new (Mario.classGFX.AccessGFX("finish_3"));
GFXArr.x = fX;
GFXArr.y = fY;
GFXBack.x = (fX + 100);
GFXBack.y = (fY - 200);
GFXFore.x = (fX + 150);
GFXFore.y = (fY - 200);
GFXBar.x = bX;
GFXBar.y = (fY - bY);
Mario.layerEffects.addChild(GFXArr);
Mario.layerWall.addChild(GFXBack);
Mario.layerEffects.addChild(GFXFore);
Mario.layerFore.addChild(GFXBar);
}
private function Swap():void{
Mario.playerControllable = false;
Mario.layerFore.removeChild(Player.GFX2);
Mario.instEffects.unshift(new PlayerFinish(Player.pX, Player.pY, Player.gravity, Player.speed, Player.frame));
Mario.classSFX.Play(-1);
if (Mario.music){
SFXComplete.play();
};
}
public function Update(myID:uint):void{
var czap:uint;
if (!collected){
bY = (bY + dir);
if (bY == 190){
dir = -2;
};
if (bY == 0){
dir = 2;
};
GFXBar.x = (bX + 2);
GFXBar.y = (fY - bY);
if (Mario.playerCollide(bX, (fY - bY), 37, 12)){
collected = true;
Mario.instEffects.push(new Enemy_Fire(bX, (fY - bY), 3, Mario.classGFX.AccessGFX("finish_3")));
Mario.layerFore.removeChild(GFXBar);
czap = Math.round(((bY * 6) / 190));
Mario.instEffects.push(new Points(bX, (fY - bY), Mario.givePointShell(czap)));
Swap();
} else {
if (Mario.playerCollide((fX + 20), (fY + 20), 500, 5)){
collected = true;
Swap();
};
};
};
}
}
}//package objects
Section 35
//Fire_Boom (objects.Fire_Boom)
package objects {
import flash.display.*;
import mx.core.*;
public class Fire_Boom extends Effect {
public var GFX:Sprite;
public function Fire_Boom(oX:Number, oY:Number){
super();
timer = 0;
var GFXclass:Class = Mario.classGFX.AccessGFX("effect_fire_boom");
var GFX2:BitmapAsset = new (GFXclass);
GFX2.x = -12.5;
GFX2.y = -12.5;
GFX = new Sprite();
GFX.x = oX;
GFX.y = oY;
GFX.addChild(GFX2);
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
timer++;
GFX.alpha = (1.5 - (timer / 10));
GFX.scaleX = (timer / 10);
GFX.scaleY = (timer / 10);
if (timer == 10){
Mario.layerFore.removeChild(GFX);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 36
//Fireball (objects.Fireball)
package objects {
import flash.display.*;
import mx.core.*;
import flash.media.*;
public class Fireball extends Obj {
public var hostile:Boolean;
public var oWid:uint;// = 10
public var dir:int;
public var gravity:Number;// = 0
public var GFX:Sprite;
private var SFXBump:Sound;
public var oHei:uint;// = 10
public function Fireball(typeX:int, typeY:int, obDir:Number, isHostile:Boolean=false){
SFXBump = new (Mario.classSFX.accessSFX("bump"));
super();
oX = typeX;
oY = typeY;
dir = (obDir * 6);
hostile = isHostile;
var GFXclass:Class = Mario.classGFX.AccessGFX("object_radish");
var GFX2:BitmapAsset = new (GFXclass);
GFX2.x = -6;
GFX2.y = -6;
GFX = new Sprite();
GFX.x = oX;
GFX.y = oY;
GFX.addChild(GFX2);
Mario.layerFore.addChild(GFX);
}
public function destroy(myID:uint):void{
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
if (!hostile){
Mario.radishNO--;
};
Mario.instEffects.push(new Fire_Boom(oX, oY));
}
override public function Update(myID:uint):void{
if (hostile){
if (Mario.playerCollide((oX - 4), (oY - 4), 9, 9)){
Mario.hitPlayer();
destroy(myID);
};
} else {
if (Mario.enemyHitFireball((oX - 4), (oY - 4), 9, 9, dir)){
destroy(myID);
return;
};
};
oX = (oX + dir);
if (((((Mario.levelColl((oX + (4 * Mario.Sign(dir))), (oY - 4))) || (Mario.levelColl((oX + (4 * Mario.Sign(dir))), (oY + 4))))) || ((oY > ((Mario.levelHei * 25) + 100))))){
destroy(myID);
return;
};
gravity = (gravity + Mario.gravity);
oY = (oY + gravity);
if (((Mario.levelColl((oX - 4), (oY + 4))) || (Mario.levelColl((oX + 4), (oY + 4))))){
gravity = -5;
oY = ((Math.floor(((oY + 5) / 25)) * 25) - 5);
};
GFX.x = oX;
GFX.y = oY;
GFX.rotation = (GFX.rotation + 10);
}
}
}//package objects
Section 37
//Fireplant (objects.Fireplant)
package objects {
import flash.display.*;
import mx.core.*;
import flash.media.*;
public class Fireplant extends Obj {
public var hostile:Boolean;
public var oWid:uint;// = 10
public var dir:Number;
public var gravity:Number;// = 0
public var GFX:Sprite;
private var SFXBump:Sound;
public var oHei:uint;// = 10
public function Fireplant(typeX:int, typeY:int, obDir:Number, grav:Number){
SFXBump = new (Mario.classSFX.accessSFX("bump"));
super();
oX = typeX;
oY = typeY;
dir = obDir;
gravity = grav;
var GFX2:BitmapAsset = new (Mario.classGFX.AccessGFX("object_radish"));
GFX2.x = -6;
GFX2.y = -6;
GFX = new Sprite();
GFX.x = oX;
GFX.y = oY;
GFX.addChild(GFX2);
Mario.layerFore.addChild(GFX);
}
public function destroy(myID:uint):void{
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
Mario.instEffects.push(new Fire_Boom(oX, oY));
}
override public function Update(myID:uint):void{
if (Mario.playerCollide((oX - 4), (oY - 4), 9, 9)){
Mario.hitPlayer();
destroy(myID);
return;
};
oX = (oX + dir);
oY = (oY + gravity);
gravity = (gravity + (Mario.gravity / 2));
if (Mario.levelColl(oX, oY)){
if (Mario.sounds){
SFXBump.play();
};
destroy(myID);
return;
};
GFX.x = oX;
GFX.y = oY;
GFX.rotation = (GFX.rotation + 10);
}
}
}//package objects
Section 38
//Flower (objects.Flower)
package objects {
import flash.display.*;
public class Flower extends Obj {
public var oWid:uint;// = 25
public var frame:uint;// = 0
public var wait:uint;// = 0
public var GFX:Array;
public var oHei:uint;// = 25
public var seq:Boolean;// = false
public function Flower(Xpos:uint, Ypos:uint){
GFX = new Array(4);
super();
oX = Xpos;
oY = Ypos;
GFX[0] = new (Mario.classGFX.AccessGFX("object_flower_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("object_flower_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("object_flower_3"));
GFX[3] = new (Mario.classGFX.AccessGFX("object_flower_4"));
GFX[0].x = oX;
GFX[0].y = oY;
Mario.layerHide.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
if (seq == false){
oY = (oY - 0.5);
if (Mario.levelColl((oX + 12), (oY + 24)) == false){
seq = true;
};
};
wait++;
if (wait == 2){
Mario.layerHide.removeChild(GFX[frame]);
frame = ((frame + 1) % 4);
Mario.layerHide.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = oX;
GFX[frame].y = oY;
if (seq){
if (Mario.playerCollide(oX, oY, oWid, oHei)){
Mario.instEffects.push(new Points((oX + 12), (oY - 5), "1000"));
Mario.playerBonus(1);
Mario.layerHide.removeChild(GFX[frame]);
Mario.removeObject(myID);
};
};
}
}
}//package objects
Section 39
//FlyGreen (objects.FlyGreen)
package objects {
import flash.display.*;
import flash.media.*;
public class FlyGreen extends Enemy {
private var wait:uint;// = 0
private var GFX:Array;
private var SFXStomp:Sound;
private var frame:uint;// = 0
public function FlyGreen(Xpos:uint, Ypos:uint){
GFX = new Array(2);
SFXStomp = new (Mario.classSFX.accessSFX("stompduck"));
super();
eX = Xpos;
eY = Ypos;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 21;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_fly_green_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_fly_green_2"));
GFX[0].x = (eX - 3);
GFX[0].y = (eY - 5);
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
if (active){
eX = (eX + dir);
if (dir > 0){
if (Mario.enemyBounce(myID, ((eX + eWid) - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
} else {
if (Mario.enemyBounce(myID, (eX - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
};
gravity = (gravity + (Mario.gravity / 2));
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = -4;
eY = ((Math.floor((eY / 25)) * 25) + 4);
};
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = (1 - frame);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == 1)) ? 0 : 24);
GFX[frame].y = (eY - 16);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) <= (eY + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 1), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_fly_green_1")));
return (true);
}
override public function Stomp(myID:uint):void{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEnemies.push(new TroopaGreen(eX, eY));
Player.hitStomp = true;
Player.Bounce(eY);
if (Mario.sounds){
SFXStomp.play();
};
}
}
}//package objects
Section 40
//FlyRed (objects.FlyRed)
package objects {
import flash.display.*;
import flash.media.*;
public class FlyRed extends Enemy {
private var SFXStomp:Sound;
private var frame:uint;// = 0
private var ydir:Number;
private var wait:uint;// = 0
private var starty:uint;
private var GFX:Array;
public function FlyRed(Xpos:uint, Ypos:uint){
GFX = new Array(2);
SFXStomp = new (Mario.classSFX.accessSFX("stompduck"));
super();
eX = Xpos;
eY = Ypos;
starty = eY;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
ydir = 0.1;
eHei = 21;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_fly_red_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_fly_red_2"));
GFX[0].x = (eX - 3);
GFX[0].y = (eY - 5);
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
if (active){
dir = ((Player.pX > eX)) ? 1 : -1;
gravity = (gravity + ydir);
eY = (eY + gravity);
gravity = ((gravity > 2)) ? 2 : ((gravity < -2)) ? -2 : gravity;
if (eY > (starty + 100)){
ydir = -0.1;
};
if (eY < starty){
ydir = 0.1;
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = (1 - frame);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == 1)) ? 0 : 24);
GFX[frame].y = (eY - 16);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) <= (eY + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
if (((((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))) || ((eX < 400)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
override public function Stomp(myID:uint):void{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEnemies.push(new TroopaRed(eX, eY));
Player.hitStomp = true;
Player.Bounce(eY);
if (Mario.sounds){
SFXStomp.play();
};
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 1), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_fly_red_1")));
return (true);
}
}
}//package objects
Section 41
//GameEnd (objects.GameEnd)
package objects {
import flash.display.*;
import mx.core.*;
import flash.media.*;
import flash.text.*;
import flash.geom.*;
public class GameEnd {
private var timer:Number;// = 0
private var txt:TextField;
private var GFXC:Class;
private var SFXJ:Sound;
private var kiss:Sprite;
private var GFXK:Class;
private var bar:Shape;
private var cX:Number;
private var cY:Number;// = 0
private var list:Array;
private var seq:uint;// = 0
private var GFXZ:Class;
private var st:BitmapAsset;
private var kifu:Boolean;// = false
private var Jebs:Class;
private var flash:Sprite;
private var castle:Sprite;
private var bar2:Shape;
public function GameEnd(){
GFXK = GameEnd_GFXK;
GFXC = GameEnd_GFXC;
GFXZ = GameEnd_GFXZ;
castle = new Sprite();
kiss = new Sprite();
flash = new Sprite();
bar = new Shape();
bar2 = new Shape();
list = new Array();
txt = new TextField();
Jebs = GameEnd_Jebs;
super();
st = new GFXZ();
st.x = (200 - (st.width / 2));
st.y = (275 - st.height);
SFXJ = new Jebs();
flash.graphics.beginFill(0xFFFFFF);
flash.graphics.drawRect(0, 0, 400, 375);
flash.graphics.endFill();
Mario.playerControllable = false;
Player.GFX2.alpha = 0;
Mario.Hud.GFX.alpha = 0;
var tem:BitmapAsset = new GFXK();
kiss.addChild(tem);
kiss.x = (200 - (kiss.width / 2));
kiss.y = 40;
tem = new GFXC();
castle.addChild(tem);
kiss.alpha = 0;
cX = (200 - (castle.width / 2));
castle.x = cX;
castle.y = cY;
Barer();
Mario.layerGover.addChild(st);
Mario.layerGover.addChild(castle);
Mario.layerGover.addChild(flash);
Mario.layerGover.addChild(kiss);
Mario.layerGover.addChild(bar);
Mario.layerGover.addChild(txt);
Mario.layerGover.addChild(bar2);
txt.textColor = 0xFFFFFF;
bar.alpha = 0;
bar2.alpha = 0;
flash.alpha = 0;
txt.scaleX = 1.5;
txt.x = 200;
txt.y = 309;
txt.scaleY = 1.5;
txt.autoSize = TextFieldAutoSize.CENTER;
txt.alpha = 0;
}
public function Update(myID:uint):void{
if (Mario.music == 0){
kifu = true;
} else {
if (kifu){
if (seq == 0){
Mario.classSFX.Play(7, 1);
} else {
Mario.classSFX.Play(8);
};
kifu = false;
};
};
if (seq == 0){
if (timer == 0){
Mario.classSFX.Play(7, 1);
};
cY = (cY - ((timer > 100)) ? ((timer - 100) / 135) : 0);
Mario.playerControllable = false;
Player.GFX2.alpha = 0;
Mario.Hud.GFX.alpha = 0;
castle.x = cX;
castle.y = cY;
timer = (timer + 1);
Mario.instEffects.push(new Fire_Boom((cX + (Math.random() * castle.width)), (castle.y + castle.height)));
if (cY < (-(castle.height) - 10)){
seq = 1;
timer = 2;
if (Mario.sounds){
SFXJ.play();
};
};
} else {
if (seq == 1){
flash.alpha = timer;
timer = (timer - 0.01);
if (timer <= 0){
Mario.classSFX.Play(8);
seq = 2;
timer = -0.5;
};
} else {
if (seq == 2){
timer = (timer + 0.01);
kiss.alpha = timer;
bar.alpha = timer;
if (timer >= 1){
bar2.alpha = 1;
timer = 0;
seq = 3;
txt.htmlText = "<p align='center'>New Super Mario\n2009 \nSoftendo.com Fangames</p>";
txt.x = (200 - (txt.width / 2));
};
} else {
if (seq == 3){
timer = (timer + 0.01);
bar2.alpha = (1 - (Math.sin(timer) * 4));
if (timer > Math.PI){
timer = 0;
seq = 4;
txt.htmlText = "<p align='center'>Congratulations \n Game was easy?\n Play more on fangame site </p>";
txt.x = (200 - (txt.width / 2));
};
} else {
if (seq == 4){
timer = (timer + 0.01);
bar2.alpha = (1 - (Math.sin(timer) * 4));
if (timer > Math.PI){
timer = 0;
seq = 5;
txt.htmlText = "<p align='center'>Music: Nintendo\nSound Effects: Nintendo, Public Domain\n </p>";
txt.x = (200 - (txt.width / 2));
};
} else {
if (seq == 5){
timer = (timer + 0.01);
bar2.alpha = (1 - (Math.sin(timer) * 4));
if (timer > Math.PI){
timer = 0;
seq = 6;
txt.scaleX = 2.5;
txt.scaleY = 2.5;
txt.htmlText = "<p align='center'>Thank You for Playing!</p>";
txt.x = (200 - (txt.width / 2));
txt.y = (txt.y + 10);
};
} else {
if (seq == 6){
timer = (timer + 0.005);
bar2.alpha = (1 - (Math.sin(timer) * 4));
if (timer > Math.PI){
Mario.clearLevel(false);
Mario.TScreen = new TitleScreen();
Mario.sequence = 4;
Mario.decreaseI = 1;
Mario.stepping = true;
};
};
};
};
};
};
};
};
}
public function Barer():void{
var fillType:String = GradientType.LINEAR;
var colors:Array = [0, 0];
var alphas:Array = [0, 1];
var ratios:Array = [0, 40];
var matr:Matrix = new Matrix();
matr.createGradientBox(400, 75, (Math.PI / 2));
var spreadMethod:String = SpreadMethod.PAD;
bar.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
bar.graphics.drawRect(0, 0, 400, 75);
bar.graphics.endFill();
bar.y = 300;
bar2.graphics.beginFill(0);
bar2.graphics.drawRect(0, 0, 400, 75);
bar2.graphics.endFill();
bar2.y = 315;
}
}
}//package objects
Section 42
//GameEnd_GFXC (objects.GameEnd_GFXC)
package objects {
import mx.core.*;
public class GameEnd_GFXC extends BitmapAsset {
}
}//package objects
Section 43
//GameEnd_GFXK (objects.GameEnd_GFXK)
package objects {
import mx.core.*;
public class GameEnd_GFXK extends BitmapAsset {
}
}//package objects
Section 44
//GameEnd_GFXZ (objects.GameEnd_GFXZ)
package objects {
import mx.core.*;
public class GameEnd_GFXZ extends BitmapAsset {
}
}//package objects
Section 45
//GameEnd_Jebs (objects.GameEnd_Jebs)
package objects {
import mx.core.*;
public class GameEnd_Jebs extends SoundAsset {
}
}//package objects
Section 46
//GameOver (objects.GameOver)
package objects {
import mx.core.*;
import flash.media.*;
public class GameOver extends Obj {
private var gfx2:BitmapAsset;
private var gfx3:BitmapAsset;
private var timer:uint;// = 0
private var gfx1:BitmapAsset;
private var SFXOver:Sound;
private var sel:uint;// = 0
public function GameOver(){
SFXOver = new (Mario.classSFX.accessSFX("gameover"));
super();
gfx1 = new (Mario.classGFX.AccessGFX("gameover"));
gfx2 = new (Mario.classGFX.AccessGFX("continue"));
gfx3 = new (Mario.classGFX.AccessGFX("quit"));
gfx1.x = ((400 / 2) - (gfx1.width / 2));
gfx1.y = ((375 / 2) - (gfx1.height / 2));
Mario.layerGover.addChild(gfx1);
Mario.checkPoint = 0;
SFXOver.play();
}
override public function Update(myID:uint):void{
timer++;
if (timer == 180){
gfx2.x = ((400 / 2) - (gfx2.width / 2));
gfx2.y = 230;
Mario.layerGover.addChild(gfx2);
gfx3.x = ((400 / 2) - (gfx3.width / 2));
gfx3.y = 250;
Mario.layerGover.addChild(gfx3);
};
if (timer > 180){
if (((Mario.isKeyPressed(1)) || (Mario.isKeyPressed(3)))){
sel = (1 - sel);
};
if (Mario.isKeyPressed(5)){
if (sel == 0){
Mario.Hud.Lives = 2;
Mario.Hud.Pnts = 0;
Mario.checkPoint = 0;
Mario.Hud.RedrawPnts();
Mario.levelid = Math.max((Mario.levelid - 1), (Math.floor((Mario.levelid / 4)) * 4));
Mario.clearLevel();
Mario.decreaseI = 1;
} else {
Mario.layerGover.removeChild(gfx1);
Mario.clearLevel(false);
Mario.TScreen = new TitleScreen();
Mario.sequence = 4;
Mario.decreaseI = 1;
Mario.stepping = true;
};
};
};
if (sel == 0){
gfx2.alpha = 1;
gfx3.alpha = 0.5;
} else {
gfx2.alpha = 0.5;
gfx3.alpha = 1;
};
}
}
}//package objects
Section 47
//GFX (objects.GFX)
package objects {
public class GFX {
private var GFX_EN_SHELL_RED_2:Class;
private var GFX_EN_SHELL_RED_3:Class;
private var GFX_EN_FLY_RED_1:Class;
private var GFX_EN_FLY_RED_2:Class;
private var GFX_EN_SHELL_RED_1:Class;
private var GFX_FONT_COIN_1:Class;
private var GFX_EN_SHELL_RED_4:Class;
private var GFX_FONT_COIN_3:Class;
private var GFX_OB_STAR_1:Class;
private var GFX_OB_STAR_2:Class;
private var GFX_OB_STAR_4:Class;
private var GFX_MARIO2_JUMP:Class;
private var GFX_OB_STAR_3:Class;
private var GFX_WALL_ca:Class;
private var GFX_FONT_COIN_2:Class;
private var GFX_FONT_WORLD:Class;
private var GFX_MARIO2_ENTER:Class;
private var GFX_FONT_X:Class;
private var GFX_EFF_GOOMBA_STOMPED:Class;
private var GFX_EFF_POINTS_2000:Class;
private var GFX_WALL_cb:Class;
private var GFX_WALL_c2:Class;
private var GFX_OB_FLOWER_1:Class;
private var GFX_OB_FLOWER_2:Class;
private var GFX_BACK_CLOUD_1:Class;
private var GFX_BACK_CLOUD_2:Class;
private var GFX_BACK_CLOUD_3:Class;
private var GFX_OB_FLOWER_3:Class;
private var GFX_EN_GOOMBA2:Class;
private var GFX_OB_FLOWER_4:Class;
private var GFX_MARIO2_WALK_1:Class;
private var GFX_MARIO2_WALK_2:Class;
private var GFX_MARIO2_WALK_3:Class;
private var GFX_FONT_LINE:Class;
private var GFX_MARIO2_BRAKE:Class;
private var GFX_OB_COIN_1:Class;
private var GFX_OB_COIN_3:Class;
private var GFX_OB_COIN_2:Class;
private var GFX_EN_SPINY_SHELL_2:Class;
private var GFX_MARIO1_ENTER:Class;
private var GFX_EN_SPINY_SHELL_1:Class;
private var GFX_EFF_FIRE_BOOM:Class;
private var GFX_EN_LAKITU_1:Class;
private var GFX_EN_LAKITU_2:Class;
private var GFX_EN_FLY_GREEN_1:Class;
private var GFX_EN_FLY_GREEN_2:Class;
private var GFX_OB_KILLSHROOM:Class;
private var GFX_EFF_HAMMER:Class;
private var GFX_BACK_HILL:Class;
private var GFX_BACK_LANTERN:Class;
private var GFX_BON_BRICK2:Class;
private var GFX_BON_BRICK3:Class;
private var GFX_EN_JUMPER_1:Class;
private var GFX_EN_JUMPER_2:Class;
private var GFX_EN_JUMPER_3:Class;
private var GFX_MARIO1_BRAKE:Class;
private var GFX_BACK_BACK_1:Class;
private var GFX_BACK_BACK_2:Class;
private var GFX_BACK_BACK_3:Class;
private var GFX_BACK_BACK_4:Class;
private var GFX_BACK_BACK_5:Class;
private var GFX_EFF_POINTS_5000:Class;
private var GFX_EN_SPINY_1:Class;
private var GFX_EN_SPINY_2:Class;
private var GFX_MARIO_DEAD:Class;
private var GFX_FINISH_1:Class;
private var GFX_FINISH_3:Class;
private var GFX_MARIO0_ENTER:Class;
private var GFX_FINISH_2:Class;
private var GFX_FINISH_4:Class;
private var GFX_EN_SHELL_GREEN_1:Class;
private var GFX_EN_SHELL_GREEN_2:Class;
private var GFX_EN_SHELL_GREEN_3:Class;
private var GFX_EN_SHELL_GREEN_4:Class;
private var GFX_BON_USED:Class;
private var GFX_EFF_POINTS_500:Class;
private var GFX_MARIO0_BRAKE:Class;
private var GFX_EN_PSTATIC_1:Class;
private var GFX_EN_PSTATIC_2:Class;
private var GFX_EN_PSTATIC_3:Class;
private var GFX_MARIO1_CROUCH:Class;
private var GFX_MARIO2_FIRE:Class;
private var GFX_OB_LIFESHROOM:Class;
private var GFX_LAVA_1:Class;
private var GFX_LAVA_2:Class;
private var GFX_LAVA_3:Class;
private var GFX_LAVA_4:Class;
private var GFX_LAVA_5:Class;
private var GFX_LAVA_6:Class;
private var GFX_LAVA_7:Class;
private var GFX_BACK_TREE_1:Class;
private var GFX_BACK_TREE_2:Class;
private var GFX_BACK_TREE_3:Class;
private var GFX_BACK_TREE_4:Class;
private var GFX_BACK_TREE_5:Class;
private var GFX_EN_KOOPA_GREEN_1:Class;
private var GFX_EN_KOOPA_GREEN_2:Class;
private var GFX_FONT_HEAD:Class;
private var GFX_EFF_POINTS_8000:Class;
private var GFX_EN_GOOMBA:Class;
private var GFX_EN_BBEETLE_SHELL_1:Class;
private var GFX_BACK_FOREST_1:Class;
private var GFX_EN_BBEETLE_SHELL_3:Class;
private var GFX_BACK_FOREST_3:Class;
private var GFX_BACK_FOREST_4:Class;
private var GFX_EN_BBEETLE_SHELL_2:Class;
private var GFX_BACK_FOREST_2:Class;
private var GFX_EN_BBEETLE_SHELL_4:Class;
private var GFX_BACK_HILL_BIG_22:Class;
private var GFX_BON_USED2:Class;
private var GFX_BON_USED3:Class;
private var GFX_BON_BRICK:Class;
private var GFX_BACK_GRASS_L1:Class;
private var GFX_BACK_GRASS_L2:Class;
private var GFX_WALL_2:Class;
private var GFX_EN_PFLAME_1:Class;
private var GFX_WALL_6:Class;
private var GFX_MARIO0_WALK_1:Class;
private var GFX_BACK_GRASS_L3:Class;
private var GFX_MARIO0_WALK_3:Class;
private var GFX_WALL_3:Class;
private var GFX_WALL_4:Class;
private var GFX_EN_PFLAME_2:Class;
private var GFX_BOWSER_1:Class;
private var GFX_BOWSER_2:Class;
private var GFX_BOWSER_3:Class;
private var GFX_BOWSER_4:Class;
private var GFX_WALL_B:Class;
private var GFX_WALL_7:Class;
private var GFX_WALL_0:Class;
private var GFX_Z_QUIT:Class;
private var GFX_EFF_GOOMBA_STOMPED2:Class;
private var GFX_EFF_POINTS_200:Class;
private var GFX_WALL_5:Class;
private var GFX_BACK_GRASS_M1:Class;
private var GFX_BACK_GRASS_M2:Class;
private var GFX_BACK_GRASS_M3:Class;
private var GFX_BOWSER_FLAME_1:Class;
private var GFX_BOWSER_FLAME_2:Class;
private var GFX_BOWSER_FLAME_3:Class;
private var GFX_WALL_E:Class;
private var GFX_WALL_G:Class;
private var GFX_WALL_H:Class;
private var GFX_Z_GAMEOVER:Class;
private var GFX_WALL_A:Class;
private var GFX_MARIO0_WALK_2:Class;
private var GFX_WALL_9:Class;
private var GFX_WALL_D:Class;
private var GFX_WALL_N:Class;
private var GFX_OB_RADISH:Class;
private var GFX_WALL_P:Class;
private var GFX_WALL_Q:Class;
private var GFX_WALL_a:Class;
private var GFX_WALL_b:Class;
private var GFX_WALL_c:Class;
private var GFX_BACK_TREE2_2:Class;
private var GFX_BACK_TREE2_3:Class;
private var GFX_BACK_TREE2_4:Class;
private var GFX_BACK_TREE2_5:Class;
private var GFX_WALL_h:Class;
private var GFX_MARIO0_JUMP:Class;
private var GFX_WALL_e:Class;
private var GFX_WALL_g:Class;
private var GFX_WALL_i:Class;
private var GFX_WALL_k:Class;
private var GFX_WALL_d:Class;
private var GFX_WALL_f:Class;
private var GFX_WALL_1:Class;
private var GFX_WALL_q:Class;
private var GFX_WALL_j:Class;
private var GFX_EFF_COIN_BOOM_1:Class;
private var GFX_EFF_COIN_BOOM_2:Class;
private var GFX_EFF_COIN_BOOM_3:Class;
private var GFX_WALL_n:Class;
private var GFX_WALL_8:Class;
private var GFX_WALL_p:Class;
private var GFX_WALL_y:Class;
private var GFX_WALL_r:Class;
private var GFX_WALL_s:Class;
private var GFX_EFF_POINTS_100:Class;
private var GFX_WALL_w:Class;
private var GFX_WALL_O:Class;
private var GFX_EN_FISH_2:Class;
private var GFX_WALL_R:Class;
private var GFX_MARIO2_CROUCH:Class;
private var GFX_WALL_u:Class;
private var GFX_WALL_l:Class;
private var GFX_EN_FISH_1:Class;
private var GFX_BACK_CLOUDS_1:Class;
private var GFX_BACK_CLOUDS_2:Class;
private var GFX_BACK_CLOUDS_3:Class;
private var GFX_BACK_CLOUDS_4:Class;
private var GFX_BACK_CLOUDS_5:Class;
private var GFX_BACK_CLOUDS_6:Class;
private var GFX_BACK_CLOUDS_7:Class;
private var GFX_BACK_CLOUDS_8:Class;
private var GFX_EN_MILL:Class;
private var GFX_BACK_HILL_BIG_222:Class;
private var GFX_OB_COIN_JUMP_1:Class;
private var GFX_WALL_v:Class;
private var GFX_WALL_m:Class;
private var GFX_OB_COIN_JUMP_2:Class;
private var GFX_OB_COIN_JUMP_3:Class;
private var GFX_OB_COIN_JUMP_4:Class;
private var GFX_WALL_I:Class;
private var GFX_WALL_t:Class;
private var GFX_WALL_K:Class;
private var GFX_WALL_M:Class;
private var GFX_EN_BULLET_1:Class;
private var GFX_EN_BULLET_2:Class;
private var GFX_EN_BULLET_3:Class;
private var GFX_WALL_T:Class;
private var GFX_WALL_U:Class;
private var GFX_WALL_F:Class;
private var GFX_WALL_J:Class;
private var GFX_WALL_x:Class;
private var GFX_WALL_L:Class;
private var GFX_WALL_z:Class;
private var GFX_OB_SHROOM:Class;
private var GFX_WALL_S:Class;
private var GFX_WALL_C:Class;
private var GFX_WALL_o:Class;
private var GFX_BACK_FENCE_1:Class;
private var GFX_BACK_FENCE_2:Class;
private var GFX_BACK_FENCE_3:Class;
private var GFX_FONT_TIME:Class;
private var GFX_BACK_GRASS_R1:Class;
private var GFX_BACK_GRASS_R2:Class;
private var GFX_BACK_GRASS_R3:Class;
private var GFX_BON_BONUS_1:Class;
private var GFX_BON_BONUS_2:Class;
private var GFX_BON_BONUS_3:Class;
private var GFX_BON_BONUS_4:Class;
private var GFX_BON_BONUS_5:Class;
private var GFX_EN_BBEETLE_1:Class;
private var GFX_EN_BBEETLE_2:Class;
private var GFX_BACK_COLUMN_1:Class;
private var GFX_BACK_COLUMN_2:Class;
private var GFX_BACK_COLUMN_3:Class;
private var GFX_BACK_COLUMN_4:Class;
private var GFX_EFF_ELEVATOR_1:Class;
private var GFX_EFF_ELEVATOR_2:Class;
private var GFX_EFF_ELEVATOR_4:Class;
private var GFX_MARIO1_WALK_1:Class;
private var GFX_MARIO1_WALK_2:Class;
private var GFX_EFF_ELEVATOR_3:Class;
private var GFX_EFF_POINTS_1UP:Class;
private var GFX_EN_KOOPA_RED_2:Class;
private var GFX_MARIO1_JUMP:Class;
private var GFX_EN_KOOPA_RED_1:Class;
private var GFX_MARIO1_WALK_3:Class;
private var GFX_Z_CONTINUE:Class;
private var GFX_FONT_MARIO:Class;
private var GFX_WALL_a0:Class;
private var GFX_WALL_a1:Class;
private var GFX_WALL_a2:Class;
private var GFX_WALL_a3:Class;
private var GFX_WALL_a4:Class;
private var GFX_WALL_a5:Class;
private var GFX_WALL_a6:Class;
private var GFX_BACK_FENCE2_1:Class;
private var GFX_BACK_FENCE2_2:Class;
private var GFX_BACK_FENCE2_3:Class;
private var GFX_WALL_a7:Class;
private var GFX_WALL_a8:Class;
private var GFX_WALL_a9:Class;
private var GFX_WALL_b0:Class;
private var GFX_WALL_b1:Class;
private var GFX_WALL_b2:Class;
private var GFX_WALL_b4:Class;
private var GFX_WALL_b5:Class;
private var GFX_WALL_b6:Class;
private var GFX_WALL_b7:Class;
private var GFX_WALL_b8:Class;
private var GFX_WALL_b9:Class;
private var GFX_WALL_b3:Class;
private var GFX_WALL_aa:Class;
private var GFX_BACK_HILL_BIG:Class;
private var GFX_EN_PPLANT_1:Class;
private var GFX_WALL_ab:Class;
private var GFX_WALL_c4:Class;
private var GFX_WALL_c5:Class;
private var GFX_EFF_POINTS_1000:Class;
private var GFX_WALL_c1:Class;
private var GFX_EN_PPLANT_2:Class;
private var GFX_FONT_0:Class;
private var GFX_FONT_1:Class;
private var GFX_EN_HAMMER_1:Class;
private var GFX_EN_HAMMER_2:Class;
private var GFX_FONT_4:Class;
private var GFX_FONT_5:Class;
private var GFX_FONT_6:Class;
private var GFX_FONT_7:Class;
private var GFX_FONT_8:Class;
private var GFX_FONT_2:Class;
private var GFX_FONT_3:Class;
private var GFX_WALL_c6:Class;
private var GFX_WALL_c8:Class;
private var GFX_WALL_c0:Class;
private var GFX_WALL_ba:Class;
private var GFX_FONT_9:Class;
private var GFX_WALL_c3:Class;
private var GFX_WALL_c7:Class;
private var GFX_WALL_c9:Class;
private var GFX_WALL_bb:Class;
public function GFX(){
GFX_BACK_BACK_1 = GFX_GFX_BACK_BACK_1;
GFX_BACK_BACK_2 = GFX_GFX_BACK_BACK_2;
GFX_BACK_BACK_3 = GFX_GFX_BACK_BACK_3;
GFX_BACK_BACK_4 = GFX_GFX_BACK_BACK_4;
GFX_BACK_BACK_5 = GFX_GFX_BACK_BACK_5;
GFX_BACK_CLOUD_1 = GFX_GFX_BACK_CLOUD_1;
GFX_BACK_CLOUD_2 = GFX_GFX_BACK_CLOUD_2;
GFX_BACK_CLOUD_3 = GFX_GFX_BACK_CLOUD_3;
GFX_BACK_CLOUDS_1 = GFX_GFX_BACK_CLOUDS_1;
GFX_BACK_CLOUDS_2 = GFX_GFX_BACK_CLOUDS_2;
GFX_BACK_CLOUDS_3 = GFX_GFX_BACK_CLOUDS_3;
GFX_BACK_CLOUDS_4 = GFX_GFX_BACK_CLOUDS_4;
GFX_BACK_CLOUDS_5 = GFX_GFX_BACK_CLOUDS_5;
GFX_BACK_CLOUDS_6 = GFX_GFX_BACK_CLOUDS_6;
GFX_BACK_CLOUDS_7 = GFX_GFX_BACK_CLOUDS_7;
GFX_BACK_CLOUDS_8 = GFX_GFX_BACK_CLOUDS_8;
GFX_BACK_COLUMN_1 = GFX_GFX_BACK_COLUMN_1;
GFX_BACK_COLUMN_2 = GFX_GFX_BACK_COLUMN_2;
GFX_BACK_COLUMN_3 = GFX_GFX_BACK_COLUMN_3;
GFX_BACK_COLUMN_4 = GFX_GFX_BACK_COLUMN_4;
GFX_BACK_FENCE_1 = GFX_GFX_BACK_FENCE_1;
GFX_BACK_FENCE_2 = GFX_GFX_BACK_FENCE_2;
GFX_BACK_FENCE_3 = GFX_GFX_BACK_FENCE_3;
GFX_BACK_FENCE2_1 = GFX_GFX_BACK_FENCE2_1;
GFX_BACK_FENCE2_2 = GFX_GFX_BACK_FENCE2_2;
GFX_BACK_FENCE2_3 = GFX_GFX_BACK_FENCE2_3;
GFX_BACK_FOREST_1 = GFX_GFX_BACK_FOREST_1;
GFX_BACK_FOREST_2 = GFX_GFX_BACK_FOREST_2;
GFX_BACK_FOREST_3 = GFX_GFX_BACK_FOREST_3;
GFX_BACK_FOREST_4 = GFX_GFX_BACK_FOREST_4;
GFX_BACK_GRASS_L1 = GFX_GFX_BACK_GRASS_L1;
GFX_BACK_GRASS_L2 = GFX_GFX_BACK_GRASS_L2;
GFX_BACK_GRASS_L3 = GFX_GFX_BACK_GRASS_L3;
GFX_BACK_GRASS_M1 = GFX_GFX_BACK_GRASS_M1;
GFX_BACK_GRASS_M2 = GFX_GFX_BACK_GRASS_M2;
GFX_BACK_GRASS_M3 = GFX_GFX_BACK_GRASS_M3;
GFX_BACK_GRASS_R1 = GFX_GFX_BACK_GRASS_R1;
GFX_BACK_GRASS_R2 = GFX_GFX_BACK_GRASS_R2;
GFX_BACK_GRASS_R3 = GFX_GFX_BACK_GRASS_R3;
GFX_BACK_HILL = GFX_GFX_BACK_HILL;
GFX_BACK_HILL_BIG = GFX_GFX_BACK_HILL_BIG;
GFX_BACK_HILL_BIG_22 = GFX_GFX_BACK_HILL_BIG_22;
GFX_BACK_HILL_BIG_222 = GFX_GFX_BACK_HILL_BIG_222;
GFX_BACK_LANTERN = GFX_GFX_BACK_LANTERN;
GFX_BACK_TREE_1 = GFX_GFX_BACK_TREE_1;
GFX_BACK_TREE_2 = GFX_GFX_BACK_TREE_2;
GFX_BACK_TREE_3 = GFX_GFX_BACK_TREE_3;
GFX_BACK_TREE_4 = GFX_GFX_BACK_TREE_4;
GFX_BACK_TREE_5 = GFX_GFX_BACK_TREE_5;
GFX_BACK_TREE2_2 = GFX_GFX_BACK_TREE2_2;
GFX_BACK_TREE2_3 = GFX_GFX_BACK_TREE2_3;
GFX_BACK_TREE2_4 = GFX_GFX_BACK_TREE2_4;
GFX_BACK_TREE2_5 = GFX_GFX_BACK_TREE2_5;
GFX_BON_BONUS_1 = GFX_GFX_BON_BONUS_1;
GFX_BON_BONUS_2 = GFX_GFX_BON_BONUS_2;
GFX_BON_BONUS_3 = GFX_GFX_BON_BONUS_3;
GFX_BON_BONUS_4 = GFX_GFX_BON_BONUS_4;
GFX_BON_BONUS_5 = GFX_GFX_BON_BONUS_5;
GFX_BON_BRICK = GFX_GFX_BON_BRICK;
GFX_BON_BRICK2 = GFX_GFX_BON_BRICK2;
GFX_BON_BRICK3 = GFX_GFX_BON_BRICK3;
GFX_BON_USED = GFX_GFX_BON_USED;
GFX_BON_USED2 = GFX_GFX_BON_USED2;
GFX_BON_USED3 = GFX_GFX_BON_USED3;
GFX_BOWSER_1 = GFX_GFX_BOWSER_1;
GFX_BOWSER_2 = GFX_GFX_BOWSER_2;
GFX_BOWSER_3 = GFX_GFX_BOWSER_3;
GFX_BOWSER_4 = GFX_GFX_BOWSER_4;
GFX_BOWSER_FLAME_1 = GFX_GFX_BOWSER_FLAME_1;
GFX_BOWSER_FLAME_2 = GFX_GFX_BOWSER_FLAME_2;
GFX_BOWSER_FLAME_3 = GFX_GFX_BOWSER_FLAME_3;
GFX_EFF_COIN_BOOM_1 = GFX_GFX_EFF_COIN_BOOM_1;
GFX_EFF_COIN_BOOM_2 = GFX_GFX_EFF_COIN_BOOM_2;
GFX_EFF_COIN_BOOM_3 = GFX_GFX_EFF_COIN_BOOM_3;
GFX_FINISH_1 = GFX_GFX_FINISH_1;
GFX_FINISH_2 = GFX_GFX_FINISH_2;
GFX_FINISH_3 = GFX_GFX_FINISH_3;
GFX_FINISH_4 = GFX_GFX_FINISH_4;
GFX_EFF_FIRE_BOOM = GFX_GFX_EFF_FIRE_BOOM;
GFX_EFF_GOOMBA_STOMPED = GFX_GFX_EFF_GOOMBA_STOMPED;
GFX_EFF_GOOMBA_STOMPED2 = GFX_GFX_EFF_GOOMBA_STOMPED2;
GFX_EFF_HAMMER = GFX_GFX_EFF_HAMMER;
GFX_EFF_POINTS_1UP = GFX_GFX_EFF_POINTS_1UP;
GFX_EFF_POINTS_100 = GFX_GFX_EFF_POINTS_100;
GFX_EFF_POINTS_200 = GFX_GFX_EFF_POINTS_200;
GFX_EFF_POINTS_500 = GFX_GFX_EFF_POINTS_500;
GFX_EFF_POINTS_1000 = GFX_GFX_EFF_POINTS_1000;
GFX_EFF_POINTS_2000 = GFX_GFX_EFF_POINTS_2000;
GFX_EFF_POINTS_5000 = GFX_GFX_EFF_POINTS_5000;
GFX_EFF_POINTS_8000 = GFX_GFX_EFF_POINTS_8000;
GFX_EFF_ELEVATOR_1 = GFX_GFX_EFF_ELEVATOR_1;
GFX_EFF_ELEVATOR_2 = GFX_GFX_EFF_ELEVATOR_2;
GFX_EFF_ELEVATOR_3 = GFX_GFX_EFF_ELEVATOR_3;
GFX_EFF_ELEVATOR_4 = GFX_GFX_EFF_ELEVATOR_4;
GFX_EN_BBEETLE_1 = GFX_GFX_EN_BBEETLE_1;
GFX_EN_BBEETLE_2 = GFX_GFX_EN_BBEETLE_2;
GFX_EN_BBEETLE_SHELL_1 = GFX_GFX_EN_BBEETLE_SHELL_1;
GFX_EN_BBEETLE_SHELL_2 = GFX_GFX_EN_BBEETLE_SHELL_2;
GFX_EN_BBEETLE_SHELL_3 = GFX_GFX_EN_BBEETLE_SHELL_3;
GFX_EN_BBEETLE_SHELL_4 = GFX_GFX_EN_BBEETLE_SHELL_4;
GFX_EN_BULLET_1 = GFX_GFX_EN_BULLET_1;
GFX_EN_BULLET_2 = GFX_GFX_EN_BULLET_2;
GFX_EN_BULLET_3 = GFX_GFX_EN_BULLET_3;
GFX_EN_FISH_1 = GFX_GFX_EN_FISH_1;
GFX_EN_FISH_2 = GFX_GFX_EN_FISH_2;
GFX_EN_FLY_GREEN_1 = GFX_GFX_EN_FLY_GREEN_1;
GFX_EN_FLY_GREEN_2 = GFX_GFX_EN_FLY_GREEN_2;
GFX_EN_FLY_RED_1 = GFX_GFX_EN_FLY_RED_1;
GFX_EN_FLY_RED_2 = GFX_GFX_EN_FLY_RED_2;
GFX_EN_GOOMBA = GFX_GFX_EN_GOOMBA;
GFX_EN_GOOMBA2 = GFX_GFX_EN_GOOMBA2;
GFX_EN_HAMMER_1 = GFX_GFX_EN_HAMMER_1;
GFX_EN_HAMMER_2 = GFX_GFX_EN_HAMMER_2;
GFX_EN_JUMPER_1 = GFX_GFX_EN_JUMPER_1;
GFX_EN_JUMPER_2 = GFX_GFX_EN_JUMPER_2;
GFX_EN_JUMPER_3 = GFX_GFX_EN_JUMPER_3;
GFX_EN_KOOPA_GREEN_1 = GFX_GFX_EN_KOOPA_GREEN_1;
GFX_EN_KOOPA_GREEN_2 = GFX_GFX_EN_KOOPA_GREEN_2;
GFX_EN_KOOPA_RED_1 = GFX_GFX_EN_KOOPA_RED_1;
GFX_EN_KOOPA_RED_2 = GFX_GFX_EN_KOOPA_RED_2;
GFX_EN_LAKITU_1 = GFX_GFX_EN_LAKITU_1;
GFX_EN_LAKITU_2 = GFX_GFX_EN_LAKITU_2;
GFX_EN_MILL = GFX_GFX_EN_MILL;
GFX_EN_PFLAME_1 = GFX_GFX_EN_PFLAME_1;
GFX_EN_PFLAME_2 = GFX_GFX_EN_PFLAME_2;
GFX_EN_PPLANT_1 = GFX_GFX_EN_PPLANT_1;
GFX_EN_PPLANT_2 = GFX_GFX_EN_PPLANT_2;
GFX_EN_PSTATIC_1 = GFX_GFX_EN_PSTATIC_1;
GFX_EN_PSTATIC_2 = GFX_GFX_EN_PSTATIC_2;
GFX_EN_PSTATIC_3 = GFX_GFX_EN_PSTATIC_3;
GFX_EN_SHELL_GREEN_1 = GFX_GFX_EN_SHELL_GREEN_1;
GFX_EN_SHELL_GREEN_2 = GFX_GFX_EN_SHELL_GREEN_2;
GFX_EN_SHELL_GREEN_3 = GFX_GFX_EN_SHELL_GREEN_3;
GFX_EN_SHELL_GREEN_4 = GFX_GFX_EN_SHELL_GREEN_4;
GFX_EN_SHELL_RED_1 = GFX_GFX_EN_SHELL_RED_1;
GFX_EN_SHELL_RED_2 = GFX_GFX_EN_SHELL_RED_2;
GFX_EN_SHELL_RED_3 = GFX_GFX_EN_SHELL_RED_3;
GFX_EN_SHELL_RED_4 = GFX_GFX_EN_SHELL_RED_4;
GFX_EN_SPINY_1 = GFX_GFX_EN_SPINY_1;
GFX_EN_SPINY_2 = GFX_GFX_EN_SPINY_2;
GFX_EN_SPINY_SHELL_1 = GFX_GFX_EN_SPINY_SHELL_1;
GFX_EN_SPINY_SHELL_2 = GFX_GFX_EN_SPINY_SHELL_2;
GFX_FONT_0 = GFX_GFX_FONT_0;
GFX_FONT_1 = GFX_GFX_FONT_1;
GFX_FONT_2 = GFX_GFX_FONT_2;
GFX_FONT_3 = GFX_GFX_FONT_3;
GFX_FONT_4 = GFX_GFX_FONT_4;
GFX_FONT_5 = GFX_GFX_FONT_5;
GFX_FONT_6 = GFX_GFX_FONT_6;
GFX_FONT_7 = GFX_GFX_FONT_7;
GFX_FONT_8 = GFX_GFX_FONT_8;
GFX_FONT_9 = GFX_GFX_FONT_9;
GFX_FONT_LINE = GFX_GFX_FONT_LINE;
GFX_FONT_COIN_1 = GFX_GFX_FONT_COIN_1;
GFX_FONT_COIN_2 = GFX_GFX_FONT_COIN_2;
GFX_FONT_COIN_3 = GFX_GFX_FONT_COIN_3;
GFX_FONT_HEAD = GFX_GFX_FONT_HEAD;
GFX_FONT_MARIO = GFX_GFX_FONT_MARIO;
GFX_FONT_TIME = GFX_GFX_FONT_TIME;
GFX_FONT_WORLD = GFX_GFX_FONT_WORLD;
GFX_FONT_X = GFX_GFX_FONT_X;
GFX_LAVA_1 = GFX_GFX_LAVA_1;
GFX_LAVA_2 = GFX_GFX_LAVA_2;
GFX_LAVA_3 = GFX_GFX_LAVA_3;
GFX_LAVA_4 = GFX_GFX_LAVA_4;
GFX_LAVA_5 = GFX_GFX_LAVA_5;
GFX_LAVA_6 = GFX_GFX_LAVA_6;
GFX_LAVA_7 = GFX_GFX_LAVA_7;
GFX_MARIO0_BRAKE = GFX_GFX_MARIO0_BRAKE;
GFX_MARIO0_ENTER = GFX_GFX_MARIO0_ENTER;
GFX_MARIO0_JUMP = GFX_GFX_MARIO0_JUMP;
GFX_MARIO0_WALK_1 = GFX_GFX_MARIO0_WALK_1;
GFX_MARIO0_WALK_2 = GFX_GFX_MARIO0_WALK_2;
GFX_MARIO0_WALK_3 = GFX_GFX_MARIO0_WALK_3;
GFX_MARIO1_BRAKE = GFX_GFX_MARIO1_BRAKE;
GFX_MARIO1_CROUCH = GFX_GFX_MARIO1_CROUCH;
GFX_MARIO1_ENTER = GFX_GFX_MARIO1_ENTER;
GFX_MARIO1_JUMP = GFX_GFX_MARIO1_JUMP;
GFX_MARIO1_WALK_1 = GFX_GFX_MARIO1_WALK_1;
GFX_MARIO1_WALK_2 = GFX_GFX_MARIO1_WALK_2;
GFX_MARIO1_WALK_3 = GFX_GFX_MARIO1_WALK_3;
GFX_MARIO2_BRAKE = GFX_GFX_MARIO2_BRAKE;
GFX_MARIO2_CROUCH = GFX_GFX_MARIO2_CROUCH;
GFX_MARIO2_ENTER = GFX_GFX_MARIO2_ENTER;
GFX_MARIO2_FIRE = GFX_GFX_MARIO2_FIRE;
GFX_MARIO2_JUMP = GFX_GFX_MARIO2_JUMP;
GFX_MARIO2_WALK_1 = GFX_GFX_MARIO2_WALK_1;
GFX_MARIO2_WALK_2 = GFX_GFX_MARIO2_WALK_2;
GFX_MARIO2_WALK_3 = GFX_GFX_MARIO2_WALK_3;
GFX_MARIO_DEAD = GFX_GFX_MARIO_DEAD;
GFX_OB_COIN_1 = GFX_GFX_OB_COIN_1;
GFX_OB_COIN_2 = GFX_GFX_OB_COIN_2;
GFX_OB_COIN_3 = GFX_GFX_OB_COIN_3;
GFX_OB_COIN_JUMP_1 = GFX_GFX_OB_COIN_JUMP_1;
GFX_OB_COIN_JUMP_2 = GFX_GFX_OB_COIN_JUMP_2;
GFX_OB_COIN_JUMP_3 = GFX_GFX_OB_COIN_JUMP_3;
GFX_OB_COIN_JUMP_4 = GFX_GFX_OB_COIN_JUMP_4;
GFX_OB_FLOWER_1 = GFX_GFX_OB_FLOWER_1;
GFX_OB_FLOWER_2 = GFX_GFX_OB_FLOWER_2;
GFX_OB_FLOWER_3 = GFX_GFX_OB_FLOWER_3;
GFX_OB_FLOWER_4 = GFX_GFX_OB_FLOWER_4;
GFX_OB_STAR_1 = GFX_GFX_OB_STAR_1;
GFX_OB_STAR_2 = GFX_GFX_OB_STAR_2;
GFX_OB_STAR_3 = GFX_GFX_OB_STAR_3;
GFX_OB_STAR_4 = GFX_GFX_OB_STAR_4;
GFX_OB_KILLSHROOM = GFX_GFX_OB_KILLSHROOM;
GFX_OB_LIFESHROOM = GFX_GFX_OB_LIFESHROOM;
GFX_OB_RADISH = GFX_GFX_OB_RADISH;
GFX_OB_SHROOM = GFX_GFX_OB_SHROOM;
GFX_Z_GAMEOVER = GFX_GFX_Z_GAMEOVER;
GFX_Z_CONTINUE = GFX_GFX_Z_CONTINUE;
GFX_Z_QUIT = GFX_GFX_Z_QUIT;
GFX_WALL_0 = GFX_GFX_WALL_0;
GFX_WALL_1 = GFX_GFX_WALL_1;
GFX_WALL_2 = GFX_GFX_WALL_2;
GFX_WALL_3 = GFX_GFX_WALL_3;
GFX_WALL_4 = GFX_GFX_WALL_4;
GFX_WALL_5 = GFX_GFX_WALL_5;
GFX_WALL_6 = GFX_GFX_WALL_6;
GFX_WALL_7 = GFX_GFX_WALL_7;
GFX_WALL_8 = GFX_GFX_WALL_8;
GFX_WALL_9 = GFX_GFX_WALL_9;
GFX_WALL_a = GFX_GFX_WALL_a;
GFX_WALL_b = GFX_GFX_WALL_b;
GFX_WALL_a0 = GFX_GFX_WALL_a0;
GFX_WALL_a1 = GFX_GFX_WALL_a1;
GFX_WALL_a2 = GFX_GFX_WALL_a2;
GFX_WALL_a3 = GFX_GFX_WALL_a3;
GFX_WALL_a4 = GFX_GFX_WALL_a4;
GFX_WALL_a5 = GFX_GFX_WALL_a5;
GFX_WALL_a6 = GFX_GFX_WALL_a6;
GFX_WALL_a7 = GFX_GFX_WALL_a7;
GFX_WALL_a8 = GFX_GFX_WALL_a8;
GFX_WALL_a9 = GFX_GFX_WALL_a9;
GFX_WALL_aa = GFX_GFX_WALL_aa;
GFX_WALL_ab = GFX_GFX_WALL_ab;
GFX_WALL_b0 = GFX_GFX_WALL_b0;
GFX_WALL_b1 = GFX_GFX_WALL_b1;
GFX_WALL_b2 = GFX_GFX_WALL_b2;
GFX_WALL_b3 = GFX_GFX_WALL_b3;
GFX_WALL_b4 = GFX_GFX_WALL_b4;
GFX_WALL_b5 = GFX_GFX_WALL_b5;
GFX_WALL_b6 = GFX_GFX_WALL_b6;
GFX_WALL_b7 = GFX_GFX_WALL_b7;
GFX_WALL_b8 = GFX_GFX_WALL_b8;
GFX_WALL_b9 = GFX_GFX_WALL_b9;
GFX_WALL_ba = GFX_GFX_WALL_ba;
GFX_WALL_bb = GFX_GFX_WALL_bb;
GFX_WALL_c0 = GFX_GFX_WALL_c0;
GFX_WALL_c1 = GFX_GFX_WALL_c1;
GFX_WALL_c2 = GFX_GFX_WALL_c2;
GFX_WALL_c3 = GFX_GFX_WALL_c3;
GFX_WALL_c4 = GFX_GFX_WALL_c4;
GFX_WALL_c5 = GFX_GFX_WALL_c5;
GFX_WALL_c6 = GFX_GFX_WALL_c6;
GFX_WALL_c7 = GFX_GFX_WALL_c7;
GFX_WALL_c8 = GFX_GFX_WALL_c8;
GFX_WALL_c9 = GFX_GFX_WALL_c9;
GFX_WALL_ca = GFX_GFX_WALL_ca;
GFX_WALL_cb = GFX_GFX_WALL_cb;
GFX_WALL_c = GFX_GFX_WALL_c;
GFX_WALL_d = GFX_GFX_WALL_d;
GFX_WALL_e = GFX_GFX_WALL_e;
GFX_WALL_f = GFX_GFX_WALL_f;
GFX_WALL_g = GFX_GFX_WALL_g;
GFX_WALL_h = GFX_GFX_WALL_h;
GFX_WALL_i = GFX_GFX_WALL_i;
GFX_WALL_j = GFX_GFX_WALL_j;
GFX_WALL_k = GFX_GFX_WALL_k;
GFX_WALL_l = GFX_GFX_WALL_l;
GFX_WALL_m = GFX_GFX_WALL_m;
GFX_WALL_n = GFX_GFX_WALL_n;
GFX_WALL_o = GFX_GFX_WALL_o;
GFX_WALL_p = GFX_GFX_WALL_p;
GFX_WALL_q = GFX_GFX_WALL_q;
GFX_WALL_r = GFX_GFX_WALL_r;
GFX_WALL_s = GFX_GFX_WALL_s;
GFX_WALL_t = GFX_GFX_WALL_t;
GFX_WALL_u = GFX_GFX_WALL_u;
GFX_WALL_v = GFX_GFX_WALL_v;
GFX_WALL_w = GFX_GFX_WALL_w;
GFX_WALL_x = GFX_GFX_WALL_x;
GFX_WALL_y = GFX_GFX_WALL_y;
GFX_WALL_z = GFX_GFX_WALL_z;
GFX_WALL_A = GFX_GFX_WALL_A;
GFX_WALL_B = GFX_GFX_WALL_B;
GFX_WALL_C = GFX_GFX_WALL_C;
GFX_WALL_D = GFX_GFX_WALL_D;
GFX_WALL_E = GFX_GFX_WALL_E;
GFX_WALL_F = GFX_GFX_WALL_F;
GFX_WALL_G = GFX_GFX_WALL_G;
GFX_WALL_H = GFX_GFX_WALL_H;
GFX_WALL_I = GFX_GFX_WALL_I;
GFX_WALL_J = GFX_GFX_WALL_J;
GFX_WALL_K = GFX_GFX_WALL_K;
GFX_WALL_L = GFX_GFX_WALL_L;
GFX_WALL_M = GFX_GFX_WALL_M;
GFX_WALL_N = GFX_GFX_WALL_N;
GFX_WALL_O = GFX_GFX_WALL_O;
GFX_WALL_P = GFX_GFX_WALL_P;
GFX_WALL_Q = GFX_GFX_WALL_Q;
GFX_WALL_R = GFX_GFX_WALL_R;
GFX_WALL_S = GFX_GFX_WALL_S;
GFX_WALL_T = GFX_GFX_WALL_T;
GFX_WALL_U = GFX_GFX_WALL_U;
super();
}
public function AccessGFX(name:String):Class{
if (Mario.levelGenre == 1){
switch (name){
case "Wall_0":
return (GFX_WALL_b0);
case "Wall_1":
return (GFX_WALL_b1);
case "Wall_2":
return (GFX_WALL_b2);
case "Wall_3":
return (GFX_WALL_b3);
case "Wall_4":
return (GFX_WALL_b4);
case "Wall_5":
return (GFX_WALL_b5);
case "Wall_6":
return (GFX_WALL_b6);
case "Wall_7":
return (GFX_WALL_b7);
case "Wall_8":
return (GFX_WALL_b8);
case "Wall_9":
return (GFX_WALL_b9);
case "Wall_a":
return (GFX_WALL_ba);
case "Wall_b":
return (GFX_WALL_bb);
case "enemy_goomba":
return (GFX_EN_GOOMBA2);
case "effect_goomba_stomped":
return (GFX_EFF_GOOMBA_STOMPED2);
case "bonus_brick":
return (GFX_BON_BRICK3);
case "bonus_used":
return (GFX_BON_USED2);
};
} else {
if (Mario.levelGenre == 2){
switch (name){
case "Wall_0":
return (GFX_WALL_c0);
case "Wall_1":
return (GFX_WALL_c1);
case "Wall_2":
return (GFX_WALL_c2);
case "Wall_3":
return (GFX_WALL_c3);
case "Wall_4":
return (GFX_WALL_c4);
case "Wall_5":
return (GFX_WALL_c5);
case "Wall_6":
return (GFX_WALL_c6);
case "Wall_7":
return (GFX_WALL_c7);
case "Wall_8":
return (GFX_WALL_c8);
case "Wall_9":
return (GFX_WALL_c9);
case "Wall_a":
return (GFX_WALL_ca);
case "Wall_b":
return (GFX_WALL_cb);
case "back_fence_1":
return (GFX_BACK_FENCE2_1);
case "back_fence_2":
return (GFX_BACK_FENCE2_2);
case "back_fence_3":
return (GFX_BACK_FENCE2_3);
case "back_tree_2":
return (GFX_BACK_TREE2_2);
case "back_tree_3":
return (GFX_BACK_TREE2_3);
case "back_tree_4":
return (GFX_BACK_TREE2_4);
case "back_tree_5":
return (GFX_BACK_TREE2_5);
};
} else {
if (Mario.levelGenre == 3){
switch (name){
case "Wall_0":
return (GFX_WALL_a0);
case "Wall_1":
return (GFX_WALL_a1);
case "Wall_2":
return (GFX_WALL_a2);
case "Wall_3":
return (GFX_WALL_a3);
case "Wall_4":
return (GFX_WALL_a4);
case "Wall_5":
return (GFX_WALL_a5);
case "Wall_6":
return (GFX_WALL_a6);
case "Wall_7":
return (GFX_WALL_a7);
case "Wall_8":
return (GFX_WALL_a8);
case "Wall_9":
return (GFX_WALL_a9);
case "Wall_a":
return (GFX_WALL_aa);
case "Wall_b":
return (GFX_WALL_ab);
case "enemy_goomba":
return (GFX_EN_GOOMBA2);
case "enemy_goomba_stomped":
return (GFX_EFF_GOOMBA_STOMPED2);
case "bonus_brick":
return (GFX_BON_BRICK2);
case "bonus_used":
return (GFX_BON_USED3);
};
};
};
};
switch (name){
case "back_1":
return (GFX_BACK_BACK_1);
case "back_2":
return (GFX_BACK_BACK_2);
case "back_3":
return (GFX_BACK_BACK_3);
case "back_4":
return (GFX_BACK_BACK_4);
case "back_5":
return (GFX_BACK_BACK_5);
case "back_cloud_1":
return (GFX_BACK_CLOUD_1);
case "back_cloud_2":
return (GFX_BACK_CLOUD_2);
case "back_cloud_3":
return (GFX_BACK_CLOUD_3);
case "back_clouds_1":
return (GFX_BACK_CLOUDS_1);
case "back_clouds_2":
return (GFX_BACK_CLOUDS_2);
case "back_clouds_3":
return (GFX_BACK_CLOUDS_3);
case "back_clouds_4":
return (GFX_BACK_CLOUDS_4);
case "back_clouds_5":
return (GFX_BACK_CLOUDS_5);
case "back_clouds_6":
return (GFX_BACK_CLOUDS_6);
case "back_clouds_7":
return (GFX_BACK_CLOUDS_7);
case "back_clouds_8":
return (GFX_BACK_CLOUDS_8);
case "back_column_1":
return (GFX_BACK_COLUMN_1);
case "back_column_2":
return (GFX_BACK_COLUMN_2);
case "back_column_3":
return (GFX_BACK_COLUMN_3);
case "back_column_4":
return (GFX_BACK_COLUMN_4);
case "back_fence_1":
return (GFX_BACK_FENCE_1);
case "back_fence_2":
return (GFX_BACK_FENCE_2);
case "back_fence_3":
return (GFX_BACK_FENCE_3);
case "back_forest_1":
return (GFX_BACK_FOREST_1);
case "back_forest_2":
return (GFX_BACK_FOREST_2);
case "back_forest_3":
return (GFX_BACK_FOREST_3);
case "back_forest_4":
return (GFX_BACK_FOREST_4);
case "back_grass_l1":
return (GFX_BACK_GRASS_L1);
case "back_grass_l2":
return (GFX_BACK_GRASS_L2);
case "back_grass_l3":
return (GFX_BACK_GRASS_L3);
case "back_grass_m1":
return (GFX_BACK_GRASS_M1);
case "back_grass_m2":
return (GFX_BACK_GRASS_M2);
case "back_grass_m3":
return (GFX_BACK_GRASS_M3);
case "back_grass_r1":
return (GFX_BACK_GRASS_R1);
case "back_grass_r2":
return (GFX_BACK_GRASS_R2);
case "back_grass_r3":
return (GFX_BACK_GRASS_R3);
case "back_hill":
return (GFX_BACK_HILL);
case "back_hill_big":
return (GFX_BACK_HILL_BIG);
case "back_hill_big_22":
return (GFX_BACK_HILL_BIG_22);
case "back_hill_big_222":
return (GFX_BACK_HILL_BIG_222);
case "back_lantern":
return (GFX_BACK_LANTERN);
case "back_tree_1":
return (GFX_BACK_TREE_1);
case "back_tree_2":
return (GFX_BACK_TREE_2);
case "back_tree_3":
return (GFX_BACK_TREE_3);
case "back_tree_4":
return (GFX_BACK_TREE_4);
case "back_tree_5":
return (GFX_BACK_TREE_5);
case "bonus_bonus_1":
return (GFX_BON_BONUS_1);
case "bonus_bonus_2":
return (GFX_BON_BONUS_2);
case "bonus_bonus_3":
return (GFX_BON_BONUS_3);
case "bonus_bonus_4":
return (GFX_BON_BONUS_4);
case "bonus_bonus_5":
return (GFX_BON_BONUS_5);
case "bonus_brick":
return (GFX_BON_BRICK);
case "bonus_used":
return (GFX_BON_USED);
case "bowser_1":
return (GFX_BOWSER_1);
case "bowser_2":
return (GFX_BOWSER_2);
case "bowser_3":
return (GFX_BOWSER_3);
case "bowser_4":
return (GFX_BOWSER_4);
case "bowser_flame_1":
return (GFX_BOWSER_FLAME_1);
case "bowser_flame_2":
return (GFX_BOWSER_FLAME_2);
case "bowser_flame_3":
return (GFX_BOWSER_FLAME_3);
case "effect_coin_boom_1":
return (GFX_EFF_COIN_BOOM_1);
case "effect_coin_boom_2":
return (GFX_EFF_COIN_BOOM_2);
case "effect_coin_boom_3":
return (GFX_EFF_COIN_BOOM_3);
case "finish_1":
return (GFX_FINISH_1);
case "finish_2":
return (GFX_FINISH_2);
case "finish_3":
return (GFX_FINISH_3);
case "finish_4":
return (GFX_FINISH_4);
case "effect_fire_boom":
return (GFX_EFF_FIRE_BOOM);
case "effect_goomba_stomped":
return (GFX_EFF_GOOMBA_STOMPED);
case "effect_hammer":
return (GFX_EFF_HAMMER);
case "effect_points_1up":
return (GFX_EFF_POINTS_1UP);
case "effect_points_100":
return (GFX_EFF_POINTS_100);
case "effect_points_200":
return (GFX_EFF_POINTS_200);
case "effect_points_500":
return (GFX_EFF_POINTS_500);
case "effect_points_1000":
return (GFX_EFF_POINTS_1000);
case "effect_points_2000":
return (GFX_EFF_POINTS_2000);
case "effect_points_5000":
return (GFX_EFF_POINTS_5000);
case "effect_points_8000":
return (GFX_EFF_POINTS_8000);
case "elevator_1":
return (GFX_EFF_ELEVATOR_1);
case "elevator_2":
return (GFX_EFF_ELEVATOR_2);
case "elevator_3":
return (GFX_EFF_ELEVATOR_3);
case "elevator_4":
return (GFX_EFF_ELEVATOR_4);
case "enemy_bbeetle_1":
return (GFX_EN_BBEETLE_1);
case "enemy_bbeetle_2":
return (GFX_EN_BBEETLE_2);
case "enemy_bbeetle_shell_1":
return (GFX_EN_BBEETLE_SHELL_1);
case "enemy_bbeetle_shell_2":
return (GFX_EN_BBEETLE_SHELL_2);
case "enemy_bbeetle_shell_3":
return (GFX_EN_BBEETLE_SHELL_3);
case "enemy_bbeetle_shell_4":
return (GFX_EN_BBEETLE_SHELL_4);
case "enemy_bullet_1":
return (GFX_EN_BULLET_1);
case "enemy_bullet_2":
return (GFX_EN_BULLET_2);
case "enemy_bullet_3":
return (GFX_EN_BULLET_3);
case "enemy_fly_green_1":
return (GFX_EN_FLY_GREEN_1);
case "enemy_fly_green_2":
return (GFX_EN_FLY_GREEN_2);
case "enemy_fly_red_1":
return (GFX_EN_FLY_RED_1);
case "enemy_fly_red_2":
return (GFX_EN_FLY_RED_2);
case "enemy_goomba":
return (GFX_EN_GOOMBA);
case "enemy_hammer_1":
return (GFX_EN_HAMMER_1);
case "enemy_hammer_2":
return (GFX_EN_HAMMER_2);
case "enemy_jumper_1":
return (GFX_EN_JUMPER_1);
case "enemy_jumper_2":
return (GFX_EN_JUMPER_2);
case "enemy_jumper_3":
return (GFX_EN_JUMPER_3);
case "enemy_koopa_green_1":
return (GFX_EN_KOOPA_GREEN_1);
case "enemy_koopa_green_2":
return (GFX_EN_KOOPA_GREEN_2);
case "enemy_koopa_red_1":
return (GFX_EN_KOOPA_RED_1);
case "enemy_koopa_red_2":
return (GFX_EN_KOOPA_RED_2);
case "enemy_lakitu_1":
return (GFX_EN_LAKITU_1);
case "enemy_lakitu_2":
return (GFX_EN_LAKITU_2);
case "enemy_mill":
return (GFX_EN_MILL);
case "enemy_pflame_1":
return (GFX_EN_PFLAME_1);
case "enemy_pflame_2":
return (GFX_EN_PFLAME_2);
case "enemy_pplant_1":
return (GFX_EN_PPLANT_1);
case "enemy_pplant_2":
return (GFX_EN_PPLANT_2);
case "enemy_pstatic_1":
return (GFX_EN_PSTATIC_1);
case "enemy_pstatic_2":
return (GFX_EN_PSTATIC_2);
case "enemy_pstatic_3":
return (GFX_EN_PSTATIC_3);
case "enemy_shell_green_1":
return (GFX_EN_SHELL_GREEN_1);
case "enemy_shell_green_2":
return (GFX_EN_SHELL_GREEN_2);
case "enemy_shell_green_3":
return (GFX_EN_SHELL_GREEN_3);
case "enemy_shell_green_4":
return (GFX_EN_SHELL_GREEN_4);
case "enemy_shell_red_1":
return (GFX_EN_SHELL_RED_1);
case "enemy_shell_red_2":
return (GFX_EN_SHELL_RED_2);
case "enemy_shell_red_3":
return (GFX_EN_SHELL_RED_3);
case "enemy_shell_red_4":
return (GFX_EN_SHELL_RED_4);
case "enemy_spiny_1":
return (GFX_EN_SPINY_1);
case "enemy_spiny_2":
return (GFX_EN_SPINY_2);
case "enemy_spiny_shell_1":
return (GFX_EN_SPINY_SHELL_1);
case "enemy_spiny_shell_2":
return (GFX_EN_SPINY_SHELL_2);
case "font_0":
return (GFX_FONT_0);
case "font_1":
return (GFX_FONT_1);
case "font_2":
return (GFX_FONT_2);
case "font_3":
return (GFX_FONT_3);
case "font_4":
return (GFX_FONT_4);
case "font_5":
return (GFX_FONT_5);
case "font_6":
return (GFX_FONT_6);
case "font_7":
return (GFX_FONT_7);
case "font_8":
return (GFX_FONT_8);
case "font_9":
return (GFX_FONT_9);
case "font_-":
return (GFX_FONT_LINE);
case "font_coin_1":
return (GFX_FONT_COIN_1);
case "font_coin_2":
return (GFX_FONT_COIN_2);
case "font_coin_3":
return (GFX_FONT_COIN_3);
case "font_head":
return (GFX_FONT_HEAD);
case "font_mario":
return (GFX_FONT_MARIO);
case "font_time":
return (GFX_FONT_TIME);
case "font_world":
return (GFX_FONT_WORLD);
case "font_x":
return (GFX_FONT_X);
case "lava_1":
return (GFX_LAVA_1);
case "lava_2":
return (GFX_LAVA_2);
case "lava_3":
return (GFX_LAVA_3);
case "lava_4":
return (GFX_LAVA_4);
case "lava_5":
return (GFX_LAVA_5);
case "lava_6":
return (GFX_LAVA_6);
case "lava_7":
return (GFX_LAVA_7);
case "object_mario0_crouch":
return (GFX_MARIO0_WALK_1);
case "object_mario0_walk_1":
return (GFX_MARIO0_WALK_1);
case "object_mario0_walk_2":
return (GFX_MARIO0_WALK_2);
case "object_mario0_walk_3":
return (GFX_MARIO0_WALK_3);
case "object_mario0_jump":
return (GFX_MARIO0_JUMP);
case "object_mario0_brake":
return (GFX_MARIO0_BRAKE);
case "object_mario1_walk_1":
return (GFX_MARIO1_WALK_1);
case "object_mario1_walk_2":
return (GFX_MARIO1_WALK_2);
case "object_mario1_walk_3":
return (GFX_MARIO1_WALK_3);
case "object_mario1_jump":
return (GFX_MARIO1_JUMP);
case "object_mario1_brake":
return (GFX_MARIO1_BRAKE);
case "object_mario1_crouch":
return (GFX_MARIO1_CROUCH);
case "object_mario2_walk_1":
return (GFX_MARIO2_WALK_1);
case "object_mario2_walk_2":
return (GFX_MARIO2_WALK_2);
case "object_mario2_walk_3":
return (GFX_MARIO2_WALK_3);
case "object_mario2_jump":
return (GFX_MARIO2_JUMP);
case "object_mario2_brake":
return (GFX_MARIO2_BRAKE);
case "object_mario2_crouch":
return (GFX_MARIO2_CROUCH);
case "object_mario2_fire":
return (GFX_MARIO2_FIRE);
case "object_mario_dead":
return (GFX_MARIO_DEAD);
case "object_mario0_enter":
return (GFX_MARIO0_ENTER);
case "object_mario1_enter":
return (GFX_MARIO1_ENTER);
case "object_mario2_enter":
return (GFX_MARIO2_ENTER);
case "object_coin_1":
return (GFX_OB_COIN_1);
case "object_coin_2":
return (GFX_OB_COIN_2);
case "object_coin_3":
return (GFX_OB_COIN_3);
case "effect_coin_jump_1":
return (GFX_OB_COIN_JUMP_1);
case "effect_coin_jump_2":
return (GFX_OB_COIN_JUMP_2);
case "effect_coin_jump_3":
return (GFX_OB_COIN_JUMP_3);
case "effect_coin_jump_4":
return (GFX_OB_COIN_JUMP_4);
case "object_flower_1":
return (GFX_OB_FLOWER_1);
case "object_flower_2":
return (GFX_OB_FLOWER_2);
case "object_flower_3":
return (GFX_OB_FLOWER_3);
case "object_flower_4":
return (GFX_OB_FLOWER_4);
case "object_star_1":
return (GFX_OB_STAR_1);
case "object_star_2":
return (GFX_OB_STAR_2);
case "object_star_3":
return (GFX_OB_STAR_3);
case "object_star_4":
return (GFX_OB_STAR_4);
case "object_killshroom":
return (GFX_OB_KILLSHROOM);
case "object_lifeshroom":
return (GFX_OB_LIFESHROOM);
case "object_radish":
return (GFX_OB_RADISH);
case "object_shroom":
return (GFX_OB_SHROOM);
case "continue":
return (GFX_Z_CONTINUE);
case "gameover":
return (GFX_Z_GAMEOVER);
case "quit":
return (GFX_Z_QUIT);
case "Wall_0":
return (GFX_WALL_0);
case "Wall_1":
return (GFX_WALL_1);
case "Wall_2":
return (GFX_WALL_2);
case "Wall_3":
return (GFX_WALL_3);
case "Wall_4":
return (GFX_WALL_4);
case "Wall_5":
return (GFX_WALL_5);
case "Wall_6":
return (GFX_WALL_6);
case "Wall_7":
return (GFX_WALL_7);
case "Wall_8":
return (GFX_WALL_8);
case "Wall_9":
return (GFX_WALL_9);
case "Wall_a":
return (GFX_WALL_a);
case "Wall_b":
return (GFX_WALL_b);
case "Wall_c":
return (GFX_WALL_c);
case "Wall_d":
return (GFX_WALL_d);
case "Wall_e":
return (GFX_WALL_e);
case "Wall_f":
return (GFX_WALL_f);
case "Wall_g":
return (GFX_WALL_g);
case "Wall_h":
return (GFX_WALL_h);
case "Wall_i":
return (GFX_WALL_i);
case "Wall_j":
return (GFX_WALL_j);
case "Wall_k":
return (GFX_WALL_k);
case "Wall_l":
return (GFX_WALL_l);
case "Wall_m":
return (GFX_WALL_m);
case "Wall_n":
return (GFX_WALL_n);
case "Wall_o":
return (GFX_WALL_o);
case "Wall_p":
return (GFX_WALL_p);
case "Wall_q":
return (GFX_WALL_q);
case "Wall_r":
return (GFX_WALL_r);
case "Wall_s":
return (GFX_WALL_s);
case "Wall_t":
return (GFX_WALL_t);
case "Wall_u":
return (GFX_WALL_u);
case "Wall_v":
return (GFX_WALL_v);
case "Wall_w":
return (GFX_WALL_w);
case "Wall_x":
return (GFX_WALL_x);
case "Wall_y":
return (GFX_WALL_y);
case "Wall_z":
return (GFX_WALL_z);
case "Wall_A":
return (GFX_WALL_A);
case "Wall_B":
return (GFX_WALL_B);
case "Wall_C":
return (GFX_WALL_C);
case "Wall_D":
return (GFX_WALL_D);
case "Wall_E":
return (GFX_WALL_E);
case "Wall_F":
return (GFX_WALL_F);
case "Wall_G":
return (GFX_WALL_G);
case "Wall_H":
return (GFX_WALL_H);
case "Wall_I":
return (GFX_WALL_I);
case "Wall_J":
return (GFX_WALL_J);
case "Wall_K":
return (GFX_WALL_K);
case "Wall_L":
return (GFX_WALL_L);
case "Wall_M":
return (GFX_WALL_M);
case "Wall_N":
return (GFX_WALL_N);
case "Wall_O":
return (GFX_WALL_O);
case "Wall_P":
return (GFX_WALL_P);
case "Wall_Q":
return (GFX_WALL_Q);
case "Wall_R":
return (GFX_WALL_R);
case "Wall_S":
return (GFX_WALL_S);
case "Wall_T":
return (GFX_WALL_T);
case "Wall_U":
return (GFX_WALL_U);
};
return (GFX_FONT_0);
}
}
}//package objects
Section 48
//GFX_GFX_BACK_BACK_1 (objects.GFX_GFX_BACK_BACK_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_BACK_1 extends BitmapAsset {
}
}//package objects
Section 49
//GFX_GFX_BACK_BACK_2 (objects.GFX_GFX_BACK_BACK_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_BACK_2 extends BitmapAsset {
}
}//package objects
Section 50
//GFX_GFX_BACK_BACK_3 (objects.GFX_GFX_BACK_BACK_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_BACK_3 extends BitmapAsset {
}
}//package objects
Section 51
//GFX_GFX_BACK_BACK_4 (objects.GFX_GFX_BACK_BACK_4)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_BACK_4 extends BitmapAsset {
}
}//package objects
Section 52
//GFX_GFX_BACK_BACK_5 (objects.GFX_GFX_BACK_BACK_5)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_BACK_5 extends BitmapAsset {
}
}//package objects
Section 53
//GFX_GFX_BACK_CLOUD_1 (objects.GFX_GFX_BACK_CLOUD_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUD_1 extends BitmapAsset {
}
}//package objects
Section 54
//GFX_GFX_BACK_CLOUD_2 (objects.GFX_GFX_BACK_CLOUD_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUD_2 extends BitmapAsset {
}
}//package objects
Section 55
//GFX_GFX_BACK_CLOUD_3 (objects.GFX_GFX_BACK_CLOUD_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUD_3 extends BitmapAsset {
}
}//package objects
Section 56
//GFX_GFX_BACK_CLOUDS_1 (objects.GFX_GFX_BACK_CLOUDS_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_1 extends BitmapAsset {
}
}//package objects
Section 57
//GFX_GFX_BACK_CLOUDS_2 (objects.GFX_GFX_BACK_CLOUDS_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_2 extends BitmapAsset {
}
}//package objects
Section 58
//GFX_GFX_BACK_CLOUDS_3 (objects.GFX_GFX_BACK_CLOUDS_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_3 extends BitmapAsset {
}
}//package objects
Section 59
//GFX_GFX_BACK_CLOUDS_4 (objects.GFX_GFX_BACK_CLOUDS_4)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_4 extends BitmapAsset {
}
}//package objects
Section 60
//GFX_GFX_BACK_CLOUDS_5 (objects.GFX_GFX_BACK_CLOUDS_5)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_5 extends BitmapAsset {
}
}//package objects
Section 61
//GFX_GFX_BACK_CLOUDS_6 (objects.GFX_GFX_BACK_CLOUDS_6)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_6 extends BitmapAsset {
}
}//package objects
Section 62
//GFX_GFX_BACK_CLOUDS_7 (objects.GFX_GFX_BACK_CLOUDS_7)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_7 extends BitmapAsset {
}
}//package objects
Section 63
//GFX_GFX_BACK_CLOUDS_8 (objects.GFX_GFX_BACK_CLOUDS_8)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_CLOUDS_8 extends BitmapAsset {
}
}//package objects
Section 64
//GFX_GFX_BACK_COLUMN_1 (objects.GFX_GFX_BACK_COLUMN_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_COLUMN_1 extends BitmapAsset {
}
}//package objects
Section 65
//GFX_GFX_BACK_COLUMN_2 (objects.GFX_GFX_BACK_COLUMN_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_COLUMN_2 extends BitmapAsset {
}
}//package objects
Section 66
//GFX_GFX_BACK_COLUMN_3 (objects.GFX_GFX_BACK_COLUMN_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_COLUMN_3 extends BitmapAsset {
}
}//package objects
Section 67
//GFX_GFX_BACK_COLUMN_4 (objects.GFX_GFX_BACK_COLUMN_4)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_COLUMN_4 extends BitmapAsset {
}
}//package objects
Section 68
//GFX_GFX_BACK_FENCE_1 (objects.GFX_GFX_BACK_FENCE_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FENCE_1 extends BitmapAsset {
}
}//package objects
Section 69
//GFX_GFX_BACK_FENCE_2 (objects.GFX_GFX_BACK_FENCE_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FENCE_2 extends BitmapAsset {
}
}//package objects
Section 70
//GFX_GFX_BACK_FENCE_3 (objects.GFX_GFX_BACK_FENCE_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FENCE_3 extends BitmapAsset {
}
}//package objects
Section 71
//GFX_GFX_BACK_FENCE2_1 (objects.GFX_GFX_BACK_FENCE2_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FENCE2_1 extends BitmapAsset {
}
}//package objects
Section 72
//GFX_GFX_BACK_FENCE2_2 (objects.GFX_GFX_BACK_FENCE2_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FENCE2_2 extends BitmapAsset {
}
}//package objects
Section 73
//GFX_GFX_BACK_FENCE2_3 (objects.GFX_GFX_BACK_FENCE2_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FENCE2_3 extends BitmapAsset {
}
}//package objects
Section 74
//GFX_GFX_BACK_FOREST_1 (objects.GFX_GFX_BACK_FOREST_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FOREST_1 extends BitmapAsset {
}
}//package objects
Section 75
//GFX_GFX_BACK_FOREST_2 (objects.GFX_GFX_BACK_FOREST_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FOREST_2 extends BitmapAsset {
}
}//package objects
Section 76
//GFX_GFX_BACK_FOREST_3 (objects.GFX_GFX_BACK_FOREST_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FOREST_3 extends BitmapAsset {
}
}//package objects
Section 77
//GFX_GFX_BACK_FOREST_4 (objects.GFX_GFX_BACK_FOREST_4)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_FOREST_4 extends BitmapAsset {
}
}//package objects
Section 78
//GFX_GFX_BACK_GRASS_L1 (objects.GFX_GFX_BACK_GRASS_L1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_L1 extends BitmapAsset {
}
}//package objects
Section 79
//GFX_GFX_BACK_GRASS_L2 (objects.GFX_GFX_BACK_GRASS_L2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_L2 extends BitmapAsset {
}
}//package objects
Section 80
//GFX_GFX_BACK_GRASS_L3 (objects.GFX_GFX_BACK_GRASS_L3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_L3 extends BitmapAsset {
}
}//package objects
Section 81
//GFX_GFX_BACK_GRASS_M1 (objects.GFX_GFX_BACK_GRASS_M1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_M1 extends BitmapAsset {
}
}//package objects
Section 82
//GFX_GFX_BACK_GRASS_M2 (objects.GFX_GFX_BACK_GRASS_M2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_M2 extends BitmapAsset {
}
}//package objects
Section 83
//GFX_GFX_BACK_GRASS_M3 (objects.GFX_GFX_BACK_GRASS_M3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_M3 extends BitmapAsset {
}
}//package objects
Section 84
//GFX_GFX_BACK_GRASS_R1 (objects.GFX_GFX_BACK_GRASS_R1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_R1 extends BitmapAsset {
}
}//package objects
Section 85
//GFX_GFX_BACK_GRASS_R2 (objects.GFX_GFX_BACK_GRASS_R2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_R2 extends BitmapAsset {
}
}//package objects
Section 86
//GFX_GFX_BACK_GRASS_R3 (objects.GFX_GFX_BACK_GRASS_R3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_GRASS_R3 extends BitmapAsset {
}
}//package objects
Section 87
//GFX_GFX_BACK_HILL (objects.GFX_GFX_BACK_HILL)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_HILL extends BitmapAsset {
}
}//package objects
Section 88
//GFX_GFX_BACK_HILL_BIG (objects.GFX_GFX_BACK_HILL_BIG)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_HILL_BIG extends BitmapAsset {
}
}//package objects
Section 89
//GFX_GFX_BACK_HILL_BIG_22 (objects.GFX_GFX_BACK_HILL_BIG_22)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_HILL_BIG_22 extends BitmapAsset {
}
}//package objects
Section 90
//GFX_GFX_BACK_HILL_BIG_222 (objects.GFX_GFX_BACK_HILL_BIG_222)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_HILL_BIG_222 extends BitmapAsset {
}
}//package objects
Section 91
//GFX_GFX_BACK_LANTERN (objects.GFX_GFX_BACK_LANTERN)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_LANTERN extends BitmapAsset {
}
}//package objects
Section 92
//GFX_GFX_BACK_TREE_1 (objects.GFX_GFX_BACK_TREE_1)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE_1 extends BitmapAsset {
}
}//package objects
Section 93
//GFX_GFX_BACK_TREE_2 (objects.GFX_GFX_BACK_TREE_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE_2 extends BitmapAsset {
}
}//package objects
Section 94
//GFX_GFX_BACK_TREE_3 (objects.GFX_GFX_BACK_TREE_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE_3 extends BitmapAsset {
}
}//package objects
Section 95
//GFX_GFX_BACK_TREE_4 (objects.GFX_GFX_BACK_TREE_4)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE_4 extends BitmapAsset {
}
}//package objects
Section 96
//GFX_GFX_BACK_TREE_5 (objects.GFX_GFX_BACK_TREE_5)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE_5 extends BitmapAsset {
}
}//package objects
Section 97
//GFX_GFX_BACK_TREE2_2 (objects.GFX_GFX_BACK_TREE2_2)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE2_2 extends BitmapAsset {
}
}//package objects
Section 98
//GFX_GFX_BACK_TREE2_3 (objects.GFX_GFX_BACK_TREE2_3)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE2_3 extends BitmapAsset {
}
}//package objects
Section 99
//GFX_GFX_BACK_TREE2_4 (objects.GFX_GFX_BACK_TREE2_4)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE2_4 extends BitmapAsset {
}
}//package objects
Section 100
//GFX_GFX_BACK_TREE2_5 (objects.GFX_GFX_BACK_TREE2_5)
package objects {
import mx.core.*;
public class GFX_GFX_BACK_TREE2_5 extends BitmapAsset {
}
}//package objects
Section 101
//GFX_GFX_BON_BONUS_1 (objects.GFX_GFX_BON_BONUS_1)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BONUS_1 extends BitmapAsset {
}
}//package objects
Section 102
//GFX_GFX_BON_BONUS_2 (objects.GFX_GFX_BON_BONUS_2)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BONUS_2 extends BitmapAsset {
}
}//package objects
Section 103
//GFX_GFX_BON_BONUS_3 (objects.GFX_GFX_BON_BONUS_3)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BONUS_3 extends BitmapAsset {
}
}//package objects
Section 104
//GFX_GFX_BON_BONUS_4 (objects.GFX_GFX_BON_BONUS_4)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BONUS_4 extends BitmapAsset {
}
}//package objects
Section 105
//GFX_GFX_BON_BONUS_5 (objects.GFX_GFX_BON_BONUS_5)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BONUS_5 extends BitmapAsset {
}
}//package objects
Section 106
//GFX_GFX_BON_BRICK (objects.GFX_GFX_BON_BRICK)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BRICK extends BitmapAsset {
}
}//package objects
Section 107
//GFX_GFX_BON_BRICK2 (objects.GFX_GFX_BON_BRICK2)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BRICK2 extends BitmapAsset {
}
}//package objects
Section 108
//GFX_GFX_BON_BRICK3 (objects.GFX_GFX_BON_BRICK3)
package objects {
import mx.core.*;
public class GFX_GFX_BON_BRICK3 extends BitmapAsset {
}
}//package objects
Section 109
//GFX_GFX_BON_USED (objects.GFX_GFX_BON_USED)
package objects {
import mx.core.*;
public class GFX_GFX_BON_USED extends BitmapAsset {
}
}//package objects
Section 110
//GFX_GFX_BON_USED2 (objects.GFX_GFX_BON_USED2)
package objects {
import mx.core.*;
public class GFX_GFX_BON_USED2 extends BitmapAsset {
}
}//package objects
Section 111
//GFX_GFX_BON_USED3 (objects.GFX_GFX_BON_USED3)
package objects {
import mx.core.*;
public class GFX_GFX_BON_USED3 extends BitmapAsset {
}
}//package objects
Section 112
//GFX_GFX_BOWSER_1 (objects.GFX_GFX_BOWSER_1)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_1 extends BitmapAsset {
}
}//package objects
Section 113
//GFX_GFX_BOWSER_2 (objects.GFX_GFX_BOWSER_2)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_2 extends BitmapAsset {
}
}//package objects
Section 114
//GFX_GFX_BOWSER_3 (objects.GFX_GFX_BOWSER_3)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_3 extends BitmapAsset {
}
}//package objects
Section 115
//GFX_GFX_BOWSER_4 (objects.GFX_GFX_BOWSER_4)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_4 extends BitmapAsset {
}
}//package objects
Section 116
//GFX_GFX_BOWSER_FLAME_1 (objects.GFX_GFX_BOWSER_FLAME_1)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_FLAME_1 extends BitmapAsset {
}
}//package objects
Section 117
//GFX_GFX_BOWSER_FLAME_2 (objects.GFX_GFX_BOWSER_FLAME_2)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_FLAME_2 extends BitmapAsset {
}
}//package objects
Section 118
//GFX_GFX_BOWSER_FLAME_3 (objects.GFX_GFX_BOWSER_FLAME_3)
package objects {
import mx.core.*;
public class GFX_GFX_BOWSER_FLAME_3 extends BitmapAsset {
}
}//package objects
Section 119
//GFX_GFX_EFF_COIN_BOOM_1 (objects.GFX_GFX_EFF_COIN_BOOM_1)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_COIN_BOOM_1 extends BitmapAsset {
}
}//package objects
Section 120
//GFX_GFX_EFF_COIN_BOOM_2 (objects.GFX_GFX_EFF_COIN_BOOM_2)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_COIN_BOOM_2 extends BitmapAsset {
}
}//package objects
Section 121
//GFX_GFX_EFF_COIN_BOOM_3 (objects.GFX_GFX_EFF_COIN_BOOM_3)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_COIN_BOOM_3 extends BitmapAsset {
}
}//package objects
Section 122
//GFX_GFX_EFF_ELEVATOR_1 (objects.GFX_GFX_EFF_ELEVATOR_1)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_ELEVATOR_1 extends BitmapAsset {
}
}//package objects
Section 123
//GFX_GFX_EFF_ELEVATOR_2 (objects.GFX_GFX_EFF_ELEVATOR_2)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_ELEVATOR_2 extends BitmapAsset {
}
}//package objects
Section 124
//GFX_GFX_EFF_ELEVATOR_3 (objects.GFX_GFX_EFF_ELEVATOR_3)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_ELEVATOR_3 extends BitmapAsset {
}
}//package objects
Section 125
//GFX_GFX_EFF_ELEVATOR_4 (objects.GFX_GFX_EFF_ELEVATOR_4)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_ELEVATOR_4 extends BitmapAsset {
}
}//package objects
Section 126
//GFX_GFX_EFF_FIRE_BOOM (objects.GFX_GFX_EFF_FIRE_BOOM)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_FIRE_BOOM extends BitmapAsset {
}
}//package objects
Section 127
//GFX_GFX_EFF_GOOMBA_STOMPED (objects.GFX_GFX_EFF_GOOMBA_STOMPED)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_GOOMBA_STOMPED extends BitmapAsset {
}
}//package objects
Section 128
//GFX_GFX_EFF_GOOMBA_STOMPED2 (objects.GFX_GFX_EFF_GOOMBA_STOMPED2)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_GOOMBA_STOMPED2 extends BitmapAsset {
}
}//package objects
Section 129
//GFX_GFX_EFF_HAMMER (objects.GFX_GFX_EFF_HAMMER)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_HAMMER extends BitmapAsset {
}
}//package objects
Section 130
//GFX_GFX_EFF_POINTS_100 (objects.GFX_GFX_EFF_POINTS_100)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_100 extends BitmapAsset {
}
}//package objects
Section 131
//GFX_GFX_EFF_POINTS_1000 (objects.GFX_GFX_EFF_POINTS_1000)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_1000 extends BitmapAsset {
}
}//package objects
Section 132
//GFX_GFX_EFF_POINTS_1UP (objects.GFX_GFX_EFF_POINTS_1UP)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_1UP extends BitmapAsset {
}
}//package objects
Section 133
//GFX_GFX_EFF_POINTS_200 (objects.GFX_GFX_EFF_POINTS_200)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_200 extends BitmapAsset {
}
}//package objects
Section 134
//GFX_GFX_EFF_POINTS_2000 (objects.GFX_GFX_EFF_POINTS_2000)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_2000 extends BitmapAsset {
}
}//package objects
Section 135
//GFX_GFX_EFF_POINTS_500 (objects.GFX_GFX_EFF_POINTS_500)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_500 extends BitmapAsset {
}
}//package objects
Section 136
//GFX_GFX_EFF_POINTS_5000 (objects.GFX_GFX_EFF_POINTS_5000)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_5000 extends BitmapAsset {
}
}//package objects
Section 137
//GFX_GFX_EFF_POINTS_8000 (objects.GFX_GFX_EFF_POINTS_8000)
package objects {
import mx.core.*;
public class GFX_GFX_EFF_POINTS_8000 extends BitmapAsset {
}
}//package objects
Section 138
//GFX_GFX_EN_BBEETLE_1 (objects.GFX_GFX_EN_BBEETLE_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BBEETLE_1 extends BitmapAsset {
}
}//package objects
Section 139
//GFX_GFX_EN_BBEETLE_2 (objects.GFX_GFX_EN_BBEETLE_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BBEETLE_2 extends BitmapAsset {
}
}//package objects
Section 140
//GFX_GFX_EN_BBEETLE_SHELL_1 (objects.GFX_GFX_EN_BBEETLE_SHELL_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BBEETLE_SHELL_1 extends BitmapAsset {
}
}//package objects
Section 141
//GFX_GFX_EN_BBEETLE_SHELL_2 (objects.GFX_GFX_EN_BBEETLE_SHELL_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BBEETLE_SHELL_2 extends BitmapAsset {
}
}//package objects
Section 142
//GFX_GFX_EN_BBEETLE_SHELL_3 (objects.GFX_GFX_EN_BBEETLE_SHELL_3)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BBEETLE_SHELL_3 extends BitmapAsset {
}
}//package objects
Section 143
//GFX_GFX_EN_BBEETLE_SHELL_4 (objects.GFX_GFX_EN_BBEETLE_SHELL_4)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BBEETLE_SHELL_4 extends BitmapAsset {
}
}//package objects
Section 144
//GFX_GFX_EN_BULLET_1 (objects.GFX_GFX_EN_BULLET_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BULLET_1 extends BitmapAsset {
}
}//package objects
Section 145
//GFX_GFX_EN_BULLET_2 (objects.GFX_GFX_EN_BULLET_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BULLET_2 extends BitmapAsset {
}
}//package objects
Section 146
//GFX_GFX_EN_BULLET_3 (objects.GFX_GFX_EN_BULLET_3)
package objects {
import mx.core.*;
public class GFX_GFX_EN_BULLET_3 extends BitmapAsset {
}
}//package objects
Section 147
//GFX_GFX_EN_FISH_1 (objects.GFX_GFX_EN_FISH_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_FISH_1 extends BitmapAsset {
}
}//package objects
Section 148
//GFX_GFX_EN_FISH_2 (objects.GFX_GFX_EN_FISH_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_FISH_2 extends BitmapAsset {
}
}//package objects
Section 149
//GFX_GFX_EN_FLY_GREEN_1 (objects.GFX_GFX_EN_FLY_GREEN_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_FLY_GREEN_1 extends BitmapAsset {
}
}//package objects
Section 150
//GFX_GFX_EN_FLY_GREEN_2 (objects.GFX_GFX_EN_FLY_GREEN_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_FLY_GREEN_2 extends BitmapAsset {
}
}//package objects
Section 151
//GFX_GFX_EN_FLY_RED_1 (objects.GFX_GFX_EN_FLY_RED_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_FLY_RED_1 extends BitmapAsset {
}
}//package objects
Section 152
//GFX_GFX_EN_FLY_RED_2 (objects.GFX_GFX_EN_FLY_RED_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_FLY_RED_2 extends BitmapAsset {
}
}//package objects
Section 153
//GFX_GFX_EN_GOOMBA (objects.GFX_GFX_EN_GOOMBA)
package objects {
import mx.core.*;
public class GFX_GFX_EN_GOOMBA extends BitmapAsset {
}
}//package objects
Section 154
//GFX_GFX_EN_GOOMBA2 (objects.GFX_GFX_EN_GOOMBA2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_GOOMBA2 extends BitmapAsset {
}
}//package objects
Section 155
//GFX_GFX_EN_HAMMER_1 (objects.GFX_GFX_EN_HAMMER_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_HAMMER_1 extends BitmapAsset {
}
}//package objects
Section 156
//GFX_GFX_EN_HAMMER_2 (objects.GFX_GFX_EN_HAMMER_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_HAMMER_2 extends BitmapAsset {
}
}//package objects
Section 157
//GFX_GFX_EN_JUMPER_1 (objects.GFX_GFX_EN_JUMPER_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_JUMPER_1 extends BitmapAsset {
}
}//package objects
Section 158
//GFX_GFX_EN_JUMPER_2 (objects.GFX_GFX_EN_JUMPER_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_JUMPER_2 extends BitmapAsset {
}
}//package objects
Section 159
//GFX_GFX_EN_JUMPER_3 (objects.GFX_GFX_EN_JUMPER_3)
package objects {
import mx.core.*;
public class GFX_GFX_EN_JUMPER_3 extends BitmapAsset {
}
}//package objects
Section 160
//GFX_GFX_EN_KOOPA_GREEN_1 (objects.GFX_GFX_EN_KOOPA_GREEN_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_KOOPA_GREEN_1 extends BitmapAsset {
}
}//package objects
Section 161
//GFX_GFX_EN_KOOPA_GREEN_2 (objects.GFX_GFX_EN_KOOPA_GREEN_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_KOOPA_GREEN_2 extends BitmapAsset {
}
}//package objects
Section 162
//GFX_GFX_EN_KOOPA_RED_1 (objects.GFX_GFX_EN_KOOPA_RED_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_KOOPA_RED_1 extends BitmapAsset {
}
}//package objects
Section 163
//GFX_GFX_EN_KOOPA_RED_2 (objects.GFX_GFX_EN_KOOPA_RED_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_KOOPA_RED_2 extends BitmapAsset {
}
}//package objects
Section 164
//GFX_GFX_EN_LAKITU_1 (objects.GFX_GFX_EN_LAKITU_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_LAKITU_1 extends BitmapAsset {
}
}//package objects
Section 165
//GFX_GFX_EN_LAKITU_2 (objects.GFX_GFX_EN_LAKITU_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_LAKITU_2 extends BitmapAsset {
}
}//package objects
Section 166
//GFX_GFX_EN_MILL (objects.GFX_GFX_EN_MILL)
package objects {
import mx.core.*;
public class GFX_GFX_EN_MILL extends BitmapAsset {
}
}//package objects
Section 167
//GFX_GFX_EN_PFLAME_1 (objects.GFX_GFX_EN_PFLAME_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PFLAME_1 extends BitmapAsset {
}
}//package objects
Section 168
//GFX_GFX_EN_PFLAME_2 (objects.GFX_GFX_EN_PFLAME_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PFLAME_2 extends BitmapAsset {
}
}//package objects
Section 169
//GFX_GFX_EN_PPLANT_1 (objects.GFX_GFX_EN_PPLANT_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PPLANT_1 extends BitmapAsset {
}
}//package objects
Section 170
//GFX_GFX_EN_PPLANT_2 (objects.GFX_GFX_EN_PPLANT_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PPLANT_2 extends BitmapAsset {
}
}//package objects
Section 171
//GFX_GFX_EN_PSTATIC_1 (objects.GFX_GFX_EN_PSTATIC_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PSTATIC_1 extends BitmapAsset {
}
}//package objects
Section 172
//GFX_GFX_EN_PSTATIC_2 (objects.GFX_GFX_EN_PSTATIC_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PSTATIC_2 extends BitmapAsset {
}
}//package objects
Section 173
//GFX_GFX_EN_PSTATIC_3 (objects.GFX_GFX_EN_PSTATIC_3)
package objects {
import mx.core.*;
public class GFX_GFX_EN_PSTATIC_3 extends BitmapAsset {
}
}//package objects
Section 174
//GFX_GFX_EN_SHELL_GREEN_1 (objects.GFX_GFX_EN_SHELL_GREEN_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_GREEN_1 extends BitmapAsset {
}
}//package objects
Section 175
//GFX_GFX_EN_SHELL_GREEN_2 (objects.GFX_GFX_EN_SHELL_GREEN_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_GREEN_2 extends BitmapAsset {
}
}//package objects
Section 176
//GFX_GFX_EN_SHELL_GREEN_3 (objects.GFX_GFX_EN_SHELL_GREEN_3)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_GREEN_3 extends BitmapAsset {
}
}//package objects
Section 177
//GFX_GFX_EN_SHELL_GREEN_4 (objects.GFX_GFX_EN_SHELL_GREEN_4)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_GREEN_4 extends BitmapAsset {
}
}//package objects
Section 178
//GFX_GFX_EN_SHELL_RED_1 (objects.GFX_GFX_EN_SHELL_RED_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_RED_1 extends BitmapAsset {
}
}//package objects
Section 179
//GFX_GFX_EN_SHELL_RED_2 (objects.GFX_GFX_EN_SHELL_RED_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_RED_2 extends BitmapAsset {
}
}//package objects
Section 180
//GFX_GFX_EN_SHELL_RED_3 (objects.GFX_GFX_EN_SHELL_RED_3)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_RED_3 extends BitmapAsset {
}
}//package objects
Section 181
//GFX_GFX_EN_SHELL_RED_4 (objects.GFX_GFX_EN_SHELL_RED_4)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SHELL_RED_4 extends BitmapAsset {
}
}//package objects
Section 182
//GFX_GFX_EN_SPINY_1 (objects.GFX_GFX_EN_SPINY_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SPINY_1 extends BitmapAsset {
}
}//package objects
Section 183
//GFX_GFX_EN_SPINY_2 (objects.GFX_GFX_EN_SPINY_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SPINY_2 extends BitmapAsset {
}
}//package objects
Section 184
//GFX_GFX_EN_SPINY_SHELL_1 (objects.GFX_GFX_EN_SPINY_SHELL_1)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SPINY_SHELL_1 extends BitmapAsset {
}
}//package objects
Section 185
//GFX_GFX_EN_SPINY_SHELL_2 (objects.GFX_GFX_EN_SPINY_SHELL_2)
package objects {
import mx.core.*;
public class GFX_GFX_EN_SPINY_SHELL_2 extends BitmapAsset {
}
}//package objects
Section 186
//GFX_GFX_FINISH_1 (objects.GFX_GFX_FINISH_1)
package objects {
import mx.core.*;
public class GFX_GFX_FINISH_1 extends BitmapAsset {
}
}//package objects
Section 187
//GFX_GFX_FINISH_2 (objects.GFX_GFX_FINISH_2)
package objects {
import mx.core.*;
public class GFX_GFX_FINISH_2 extends BitmapAsset {
}
}//package objects
Section 188
//GFX_GFX_FINISH_3 (objects.GFX_GFX_FINISH_3)
package objects {
import mx.core.*;
public class GFX_GFX_FINISH_3 extends BitmapAsset {
}
}//package objects
Section 189
//GFX_GFX_FINISH_4 (objects.GFX_GFX_FINISH_4)
package objects {
import mx.core.*;
public class GFX_GFX_FINISH_4 extends BitmapAsset {
}
}//package objects
Section 190
//GFX_GFX_FONT_0 (objects.GFX_GFX_FONT_0)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_0 extends BitmapAsset {
}
}//package objects
Section 191
//GFX_GFX_FONT_1 (objects.GFX_GFX_FONT_1)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_1 extends BitmapAsset {
}
}//package objects
Section 192
//GFX_GFX_FONT_2 (objects.GFX_GFX_FONT_2)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_2 extends BitmapAsset {
}
}//package objects
Section 193
//GFX_GFX_FONT_3 (objects.GFX_GFX_FONT_3)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_3 extends BitmapAsset {
}
}//package objects
Section 194
//GFX_GFX_FONT_4 (objects.GFX_GFX_FONT_4)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_4 extends BitmapAsset {
}
}//package objects
Section 195
//GFX_GFX_FONT_5 (objects.GFX_GFX_FONT_5)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_5 extends BitmapAsset {
}
}//package objects
Section 196
//GFX_GFX_FONT_6 (objects.GFX_GFX_FONT_6)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_6 extends BitmapAsset {
}
}//package objects
Section 197
//GFX_GFX_FONT_7 (objects.GFX_GFX_FONT_7)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_7 extends BitmapAsset {
}
}//package objects
Section 198
//GFX_GFX_FONT_8 (objects.GFX_GFX_FONT_8)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_8 extends BitmapAsset {
}
}//package objects
Section 199
//GFX_GFX_FONT_9 (objects.GFX_GFX_FONT_9)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_9 extends BitmapAsset {
}
}//package objects
Section 200
//GFX_GFX_FONT_COIN_1 (objects.GFX_GFX_FONT_COIN_1)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_COIN_1 extends BitmapAsset {
}
}//package objects
Section 201
//GFX_GFX_FONT_COIN_2 (objects.GFX_GFX_FONT_COIN_2)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_COIN_2 extends BitmapAsset {
}
}//package objects
Section 202
//GFX_GFX_FONT_COIN_3 (objects.GFX_GFX_FONT_COIN_3)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_COIN_3 extends BitmapAsset {
}
}//package objects
Section 203
//GFX_GFX_FONT_HEAD (objects.GFX_GFX_FONT_HEAD)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_HEAD extends BitmapAsset {
}
}//package objects
Section 204
//GFX_GFX_FONT_LINE (objects.GFX_GFX_FONT_LINE)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_LINE extends BitmapAsset {
}
}//package objects
Section 205
//GFX_GFX_FONT_MARIO (objects.GFX_GFX_FONT_MARIO)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_MARIO extends BitmapAsset {
}
}//package objects
Section 206
//GFX_GFX_FONT_TIME (objects.GFX_GFX_FONT_TIME)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_TIME extends BitmapAsset {
}
}//package objects
Section 207
//GFX_GFX_FONT_WORLD (objects.GFX_GFX_FONT_WORLD)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_WORLD extends BitmapAsset {
}
}//package objects
Section 208
//GFX_GFX_FONT_X (objects.GFX_GFX_FONT_X)
package objects {
import mx.core.*;
public class GFX_GFX_FONT_X extends BitmapAsset {
}
}//package objects
Section 209
//GFX_GFX_LAVA_1 (objects.GFX_GFX_LAVA_1)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_1 extends BitmapAsset {
}
}//package objects
Section 210
//GFX_GFX_LAVA_2 (objects.GFX_GFX_LAVA_2)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_2 extends BitmapAsset {
}
}//package objects
Section 211
//GFX_GFX_LAVA_3 (objects.GFX_GFX_LAVA_3)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_3 extends BitmapAsset {
}
}//package objects
Section 212
//GFX_GFX_LAVA_4 (objects.GFX_GFX_LAVA_4)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_4 extends BitmapAsset {
}
}//package objects
Section 213
//GFX_GFX_LAVA_5 (objects.GFX_GFX_LAVA_5)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_5 extends BitmapAsset {
}
}//package objects
Section 214
//GFX_GFX_LAVA_6 (objects.GFX_GFX_LAVA_6)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_6 extends BitmapAsset {
}
}//package objects
Section 215
//GFX_GFX_LAVA_7 (objects.GFX_GFX_LAVA_7)
package objects {
import mx.core.*;
public class GFX_GFX_LAVA_7 extends BitmapAsset {
}
}//package objects
Section 216
//GFX_GFX_MARIO_DEAD (objects.GFX_GFX_MARIO_DEAD)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO_DEAD extends BitmapAsset {
}
}//package objects
Section 217
//GFX_GFX_MARIO0_BRAKE (objects.GFX_GFX_MARIO0_BRAKE)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO0_BRAKE extends BitmapAsset {
}
}//package objects
Section 218
//GFX_GFX_MARIO0_ENTER (objects.GFX_GFX_MARIO0_ENTER)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO0_ENTER extends BitmapAsset {
}
}//package objects
Section 219
//GFX_GFX_MARIO0_JUMP (objects.GFX_GFX_MARIO0_JUMP)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO0_JUMP extends BitmapAsset {
}
}//package objects
Section 220
//GFX_GFX_MARIO0_WALK_1 (objects.GFX_GFX_MARIO0_WALK_1)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO0_WALK_1 extends BitmapAsset {
}
}//package objects
Section 221
//GFX_GFX_MARIO0_WALK_2 (objects.GFX_GFX_MARIO0_WALK_2)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO0_WALK_2 extends BitmapAsset {
}
}//package objects
Section 222
//GFX_GFX_MARIO0_WALK_3 (objects.GFX_GFX_MARIO0_WALK_3)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO0_WALK_3 extends BitmapAsset {
}
}//package objects
Section 223
//GFX_GFX_MARIO1_BRAKE (objects.GFX_GFX_MARIO1_BRAKE)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_BRAKE extends BitmapAsset {
}
}//package objects
Section 224
//GFX_GFX_MARIO1_CROUCH (objects.GFX_GFX_MARIO1_CROUCH)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_CROUCH extends BitmapAsset {
}
}//package objects
Section 225
//GFX_GFX_MARIO1_ENTER (objects.GFX_GFX_MARIO1_ENTER)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_ENTER extends BitmapAsset {
}
}//package objects
Section 226
//GFX_GFX_MARIO1_JUMP (objects.GFX_GFX_MARIO1_JUMP)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_JUMP extends BitmapAsset {
}
}//package objects
Section 227
//GFX_GFX_MARIO1_WALK_1 (objects.GFX_GFX_MARIO1_WALK_1)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_WALK_1 extends BitmapAsset {
}
}//package objects
Section 228
//GFX_GFX_MARIO1_WALK_2 (objects.GFX_GFX_MARIO1_WALK_2)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_WALK_2 extends BitmapAsset {
}
}//package objects
Section 229
//GFX_GFX_MARIO1_WALK_3 (objects.GFX_GFX_MARIO1_WALK_3)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO1_WALK_3 extends BitmapAsset {
}
}//package objects
Section 230
//GFX_GFX_MARIO2_BRAKE (objects.GFX_GFX_MARIO2_BRAKE)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_BRAKE extends BitmapAsset {
}
}//package objects
Section 231
//GFX_GFX_MARIO2_CROUCH (objects.GFX_GFX_MARIO2_CROUCH)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_CROUCH extends BitmapAsset {
}
}//package objects
Section 232
//GFX_GFX_MARIO2_ENTER (objects.GFX_GFX_MARIO2_ENTER)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_ENTER extends BitmapAsset {
}
}//package objects
Section 233
//GFX_GFX_MARIO2_FIRE (objects.GFX_GFX_MARIO2_FIRE)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_FIRE extends BitmapAsset {
}
}//package objects
Section 234
//GFX_GFX_MARIO2_JUMP (objects.GFX_GFX_MARIO2_JUMP)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_JUMP extends BitmapAsset {
}
}//package objects
Section 235
//GFX_GFX_MARIO2_WALK_1 (objects.GFX_GFX_MARIO2_WALK_1)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_WALK_1 extends BitmapAsset {
}
}//package objects
Section 236
//GFX_GFX_MARIO2_WALK_2 (objects.GFX_GFX_MARIO2_WALK_2)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_WALK_2 extends BitmapAsset {
}
}//package objects
Section 237
//GFX_GFX_MARIO2_WALK_3 (objects.GFX_GFX_MARIO2_WALK_3)
package objects {
import mx.core.*;
public class GFX_GFX_MARIO2_WALK_3 extends BitmapAsset {
}
}//package objects
Section 238
//GFX_GFX_OB_COIN_1 (objects.GFX_GFX_OB_COIN_1)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_1 extends BitmapAsset {
}
}//package objects
Section 239
//GFX_GFX_OB_COIN_2 (objects.GFX_GFX_OB_COIN_2)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_2 extends BitmapAsset {
}
}//package objects
Section 240
//GFX_GFX_OB_COIN_3 (objects.GFX_GFX_OB_COIN_3)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_3 extends BitmapAsset {
}
}//package objects
Section 241
//GFX_GFX_OB_COIN_JUMP_1 (objects.GFX_GFX_OB_COIN_JUMP_1)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_JUMP_1 extends BitmapAsset {
}
}//package objects
Section 242
//GFX_GFX_OB_COIN_JUMP_2 (objects.GFX_GFX_OB_COIN_JUMP_2)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_JUMP_2 extends BitmapAsset {
}
}//package objects
Section 243
//GFX_GFX_OB_COIN_JUMP_3 (objects.GFX_GFX_OB_COIN_JUMP_3)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_JUMP_3 extends BitmapAsset {
}
}//package objects
Section 244
//GFX_GFX_OB_COIN_JUMP_4 (objects.GFX_GFX_OB_COIN_JUMP_4)
package objects {
import mx.core.*;
public class GFX_GFX_OB_COIN_JUMP_4 extends BitmapAsset {
}
}//package objects
Section 245
//GFX_GFX_OB_FLOWER_1 (objects.GFX_GFX_OB_FLOWER_1)
package objects {
import mx.core.*;
public class GFX_GFX_OB_FLOWER_1 extends BitmapAsset {
}
}//package objects
Section 246
//GFX_GFX_OB_FLOWER_2 (objects.GFX_GFX_OB_FLOWER_2)
package objects {
import mx.core.*;
public class GFX_GFX_OB_FLOWER_2 extends BitmapAsset {
}
}//package objects
Section 247
//GFX_GFX_OB_FLOWER_3 (objects.GFX_GFX_OB_FLOWER_3)
package objects {
import mx.core.*;
public class GFX_GFX_OB_FLOWER_3 extends BitmapAsset {
}
}//package objects
Section 248
//GFX_GFX_OB_FLOWER_4 (objects.GFX_GFX_OB_FLOWER_4)
package objects {
import mx.core.*;
public class GFX_GFX_OB_FLOWER_4 extends BitmapAsset {
}
}//package objects
Section 249
//GFX_GFX_OB_KILLSHROOM (objects.GFX_GFX_OB_KILLSHROOM)
package objects {
import mx.core.*;
public class GFX_GFX_OB_KILLSHROOM extends BitmapAsset {
}
}//package objects
Section 250
//GFX_GFX_OB_LIFESHROOM (objects.GFX_GFX_OB_LIFESHROOM)
package objects {
import mx.core.*;
public class GFX_GFX_OB_LIFESHROOM extends BitmapAsset {
}
}//package objects
Section 251
//GFX_GFX_OB_RADISH (objects.GFX_GFX_OB_RADISH)
package objects {
import mx.core.*;
public class GFX_GFX_OB_RADISH extends BitmapAsset {
}
}//package objects
Section 252
//GFX_GFX_OB_SHROOM (objects.GFX_GFX_OB_SHROOM)
package objects {
import mx.core.*;
public class GFX_GFX_OB_SHROOM extends BitmapAsset {
}
}//package objects
Section 253
//GFX_GFX_OB_STAR_1 (objects.GFX_GFX_OB_STAR_1)
package objects {
import mx.core.*;
public class GFX_GFX_OB_STAR_1 extends BitmapAsset {
}
}//package objects
Section 254
//GFX_GFX_OB_STAR_2 (objects.GFX_GFX_OB_STAR_2)
package objects {
import mx.core.*;
public class GFX_GFX_OB_STAR_2 extends BitmapAsset {
}
}//package objects
Section 255
//GFX_GFX_OB_STAR_3 (objects.GFX_GFX_OB_STAR_3)
package objects {
import mx.core.*;
public class GFX_GFX_OB_STAR_3 extends BitmapAsset {
}
}//package objects
Section 256
//GFX_GFX_OB_STAR_4 (objects.GFX_GFX_OB_STAR_4)
package objects {
import mx.core.*;
public class GFX_GFX_OB_STAR_4 extends BitmapAsset {
}
}//package objects
Section 257
//GFX_GFX_WALL_0 (objects.GFX_GFX_WALL_0)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_0 extends BitmapAsset {
}
}//package objects
Section 258
//GFX_GFX_WALL_1 (objects.GFX_GFX_WALL_1)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_1 extends BitmapAsset {
}
}//package objects
Section 259
//GFX_GFX_WALL_2 (objects.GFX_GFX_WALL_2)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_2 extends BitmapAsset {
}
}//package objects
Section 260
//GFX_GFX_WALL_3 (objects.GFX_GFX_WALL_3)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_3 extends BitmapAsset {
}
}//package objects
Section 261
//GFX_GFX_WALL_4 (objects.GFX_GFX_WALL_4)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_4 extends BitmapAsset {
}
}//package objects
Section 262
//GFX_GFX_WALL_5 (objects.GFX_GFX_WALL_5)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_5 extends BitmapAsset {
}
}//package objects
Section 263
//GFX_GFX_WALL_6 (objects.GFX_GFX_WALL_6)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_6 extends BitmapAsset {
}
}//package objects
Section 264
//GFX_GFX_WALL_7 (objects.GFX_GFX_WALL_7)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_7 extends BitmapAsset {
}
}//package objects
Section 265
//GFX_GFX_WALL_8 (objects.GFX_GFX_WALL_8)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_8 extends BitmapAsset {
}
}//package objects
Section 266
//GFX_GFX_WALL_9 (objects.GFX_GFX_WALL_9)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_9 extends BitmapAsset {
}
}//package objects
Section 267
//GFX_GFX_WALL_A (objects.GFX_GFX_WALL_A)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_A extends BitmapAsset {
}
}//package objects
Section 268
//GFX_GFX_WALL_a (objects.GFX_GFX_WALL_a)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a extends BitmapAsset {
}
}//package objects
Section 269
//GFX_GFX_WALL_a0 (objects.GFX_GFX_WALL_a0)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a0 extends BitmapAsset {
}
}//package objects
Section 270
//GFX_GFX_WALL_a1 (objects.GFX_GFX_WALL_a1)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a1 extends BitmapAsset {
}
}//package objects
Section 271
//GFX_GFX_WALL_a2 (objects.GFX_GFX_WALL_a2)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a2 extends BitmapAsset {
}
}//package objects
Section 272
//GFX_GFX_WALL_a3 (objects.GFX_GFX_WALL_a3)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a3 extends BitmapAsset {
}
}//package objects
Section 273
//GFX_GFX_WALL_a4 (objects.GFX_GFX_WALL_a4)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a4 extends BitmapAsset {
}
}//package objects
Section 274
//GFX_GFX_WALL_a5 (objects.GFX_GFX_WALL_a5)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a5 extends BitmapAsset {
}
}//package objects
Section 275
//GFX_GFX_WALL_a6 (objects.GFX_GFX_WALL_a6)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a6 extends BitmapAsset {
}
}//package objects
Section 276
//GFX_GFX_WALL_a7 (objects.GFX_GFX_WALL_a7)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a7 extends BitmapAsset {
}
}//package objects
Section 277
//GFX_GFX_WALL_a8 (objects.GFX_GFX_WALL_a8)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a8 extends BitmapAsset {
}
}//package objects
Section 278
//GFX_GFX_WALL_a9 (objects.GFX_GFX_WALL_a9)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_a9 extends BitmapAsset {
}
}//package objects
Section 279
//GFX_GFX_WALL_aa (objects.GFX_GFX_WALL_aa)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_aa extends BitmapAsset {
}
}//package objects
Section 280
//GFX_GFX_WALL_ab (objects.GFX_GFX_WALL_ab)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_ab extends BitmapAsset {
}
}//package objects
Section 281
//GFX_GFX_WALL_B (objects.GFX_GFX_WALL_B)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_B extends BitmapAsset {
}
}//package objects
Section 282
//GFX_GFX_WALL_b (objects.GFX_GFX_WALL_b)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b extends BitmapAsset {
}
}//package objects
Section 283
//GFX_GFX_WALL_b0 (objects.GFX_GFX_WALL_b0)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b0 extends BitmapAsset {
}
}//package objects
Section 284
//GFX_GFX_WALL_b1 (objects.GFX_GFX_WALL_b1)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b1 extends BitmapAsset {
}
}//package objects
Section 285
//GFX_GFX_WALL_b2 (objects.GFX_GFX_WALL_b2)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b2 extends BitmapAsset {
}
}//package objects
Section 286
//GFX_GFX_WALL_b3 (objects.GFX_GFX_WALL_b3)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b3 extends BitmapAsset {
}
}//package objects
Section 287
//GFX_GFX_WALL_b4 (objects.GFX_GFX_WALL_b4)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b4 extends BitmapAsset {
}
}//package objects
Section 288
//GFX_GFX_WALL_b5 (objects.GFX_GFX_WALL_b5)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b5 extends BitmapAsset {
}
}//package objects
Section 289
//GFX_GFX_WALL_b6 (objects.GFX_GFX_WALL_b6)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b6 extends BitmapAsset {
}
}//package objects
Section 290
//GFX_GFX_WALL_b7 (objects.GFX_GFX_WALL_b7)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b7 extends BitmapAsset {
}
}//package objects
Section 291
//GFX_GFX_WALL_b8 (objects.GFX_GFX_WALL_b8)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b8 extends BitmapAsset {
}
}//package objects
Section 292
//GFX_GFX_WALL_b9 (objects.GFX_GFX_WALL_b9)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_b9 extends BitmapAsset {
}
}//package objects
Section 293
//GFX_GFX_WALL_ba (objects.GFX_GFX_WALL_ba)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_ba extends BitmapAsset {
}
}//package objects
Section 294
//GFX_GFX_WALL_bb (objects.GFX_GFX_WALL_bb)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_bb extends BitmapAsset {
}
}//package objects
Section 295
//GFX_GFX_WALL_c (objects.GFX_GFX_WALL_c)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c extends BitmapAsset {
}
}//package objects
Section 296
//GFX_GFX_WALL_C (objects.GFX_GFX_WALL_C)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_C extends BitmapAsset {
}
}//package objects
Section 297
//GFX_GFX_WALL_c0 (objects.GFX_GFX_WALL_c0)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c0 extends BitmapAsset {
}
}//package objects
Section 298
//GFX_GFX_WALL_c1 (objects.GFX_GFX_WALL_c1)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c1 extends BitmapAsset {
}
}//package objects
Section 299
//GFX_GFX_WALL_c2 (objects.GFX_GFX_WALL_c2)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c2 extends BitmapAsset {
}
}//package objects
Section 300
//GFX_GFX_WALL_c3 (objects.GFX_GFX_WALL_c3)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c3 extends BitmapAsset {
}
}//package objects
Section 301
//GFX_GFX_WALL_c4 (objects.GFX_GFX_WALL_c4)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c4 extends BitmapAsset {
}
}//package objects
Section 302
//GFX_GFX_WALL_c5 (objects.GFX_GFX_WALL_c5)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c5 extends BitmapAsset {
}
}//package objects
Section 303
//GFX_GFX_WALL_c6 (objects.GFX_GFX_WALL_c6)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c6 extends BitmapAsset {
}
}//package objects
Section 304
//GFX_GFX_WALL_c7 (objects.GFX_GFX_WALL_c7)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c7 extends BitmapAsset {
}
}//package objects
Section 305
//GFX_GFX_WALL_c8 (objects.GFX_GFX_WALL_c8)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c8 extends BitmapAsset {
}
}//package objects
Section 306
//GFX_GFX_WALL_c9 (objects.GFX_GFX_WALL_c9)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_c9 extends BitmapAsset {
}
}//package objects
Section 307
//GFX_GFX_WALL_ca (objects.GFX_GFX_WALL_ca)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_ca extends BitmapAsset {
}
}//package objects
Section 308
//GFX_GFX_WALL_cb (objects.GFX_GFX_WALL_cb)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_cb extends BitmapAsset {
}
}//package objects
Section 309
//GFX_GFX_WALL_d (objects.GFX_GFX_WALL_d)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_d extends BitmapAsset {
}
}//package objects
Section 310
//GFX_GFX_WALL_D (objects.GFX_GFX_WALL_D)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_D extends BitmapAsset {
}
}//package objects
Section 311
//GFX_GFX_WALL_E (objects.GFX_GFX_WALL_E)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_E extends BitmapAsset {
}
}//package objects
Section 312
//GFX_GFX_WALL_e (objects.GFX_GFX_WALL_e)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_e extends BitmapAsset {
}
}//package objects
Section 313
//GFX_GFX_WALL_F (objects.GFX_GFX_WALL_F)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_F extends BitmapAsset {
}
}//package objects
Section 314
//GFX_GFX_WALL_f (objects.GFX_GFX_WALL_f)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_f extends BitmapAsset {
}
}//package objects
Section 315
//GFX_GFX_WALL_G (objects.GFX_GFX_WALL_G)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_G extends BitmapAsset {
}
}//package objects
Section 316
//GFX_GFX_WALL_g (objects.GFX_GFX_WALL_g)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_g extends BitmapAsset {
}
}//package objects
Section 317
//GFX_GFX_WALL_H (objects.GFX_GFX_WALL_H)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_H extends BitmapAsset {
}
}//package objects
Section 318
//GFX_GFX_WALL_h (objects.GFX_GFX_WALL_h)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_h extends BitmapAsset {
}
}//package objects
Section 319
//GFX_GFX_WALL_I (objects.GFX_GFX_WALL_I)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_I extends BitmapAsset {
}
}//package objects
Section 320
//GFX_GFX_WALL_i (objects.GFX_GFX_WALL_i)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_i extends BitmapAsset {
}
}//package objects
Section 321
//GFX_GFX_WALL_J (objects.GFX_GFX_WALL_J)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_J extends BitmapAsset {
}
}//package objects
Section 322
//GFX_GFX_WALL_j (objects.GFX_GFX_WALL_j)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_j extends BitmapAsset {
}
}//package objects
Section 323
//GFX_GFX_WALL_K (objects.GFX_GFX_WALL_K)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_K extends BitmapAsset {
}
}//package objects
Section 324
//GFX_GFX_WALL_k (objects.GFX_GFX_WALL_k)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_k extends BitmapAsset {
}
}//package objects
Section 325
//GFX_GFX_WALL_L (objects.GFX_GFX_WALL_L)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_L extends BitmapAsset {
}
}//package objects
Section 326
//GFX_GFX_WALL_l (objects.GFX_GFX_WALL_l)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_l extends BitmapAsset {
}
}//package objects
Section 327
//GFX_GFX_WALL_m (objects.GFX_GFX_WALL_m)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_m extends BitmapAsset {
}
}//package objects
Section 328
//GFX_GFX_WALL_M (objects.GFX_GFX_WALL_M)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_M extends BitmapAsset {
}
}//package objects
Section 329
//GFX_GFX_WALL_n (objects.GFX_GFX_WALL_n)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_n extends BitmapAsset {
}
}//package objects
Section 330
//GFX_GFX_WALL_N (objects.GFX_GFX_WALL_N)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_N extends BitmapAsset {
}
}//package objects
Section 331
//GFX_GFX_WALL_o (objects.GFX_GFX_WALL_o)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_o extends BitmapAsset {
}
}//package objects
Section 332
//GFX_GFX_WALL_O (objects.GFX_GFX_WALL_O)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_O extends BitmapAsset {
}
}//package objects
Section 333
//GFX_GFX_WALL_P (objects.GFX_GFX_WALL_P)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_P extends BitmapAsset {
}
}//package objects
Section 334
//GFX_GFX_WALL_p (objects.GFX_GFX_WALL_p)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_p extends BitmapAsset {
}
}//package objects
Section 335
//GFX_GFX_WALL_q (objects.GFX_GFX_WALL_q)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_q extends BitmapAsset {
}
}//package objects
Section 336
//GFX_GFX_WALL_Q (objects.GFX_GFX_WALL_Q)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_Q extends BitmapAsset {
}
}//package objects
Section 337
//GFX_GFX_WALL_r (objects.GFX_GFX_WALL_r)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_r extends BitmapAsset {
}
}//package objects
Section 338
//GFX_GFX_WALL_R (objects.GFX_GFX_WALL_R)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_R extends BitmapAsset {
}
}//package objects
Section 339
//GFX_GFX_WALL_s (objects.GFX_GFX_WALL_s)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_s extends BitmapAsset {
}
}//package objects
Section 340
//GFX_GFX_WALL_S (objects.GFX_GFX_WALL_S)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_S extends BitmapAsset {
}
}//package objects
Section 341
//GFX_GFX_WALL_T (objects.GFX_GFX_WALL_T)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_T extends BitmapAsset {
}
}//package objects
Section 342
//GFX_GFX_WALL_t (objects.GFX_GFX_WALL_t)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_t extends BitmapAsset {
}
}//package objects
Section 343
//GFX_GFX_WALL_U (objects.GFX_GFX_WALL_U)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_U extends BitmapAsset {
}
}//package objects
Section 344
//GFX_GFX_WALL_u (objects.GFX_GFX_WALL_u)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_u extends BitmapAsset {
}
}//package objects
Section 345
//GFX_GFX_WALL_v (objects.GFX_GFX_WALL_v)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_v extends BitmapAsset {
}
}//package objects
Section 346
//GFX_GFX_WALL_w (objects.GFX_GFX_WALL_w)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_w extends BitmapAsset {
}
}//package objects
Section 347
//GFX_GFX_WALL_x (objects.GFX_GFX_WALL_x)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_x extends BitmapAsset {
}
}//package objects
Section 348
//GFX_GFX_WALL_y (objects.GFX_GFX_WALL_y)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_y extends BitmapAsset {
}
}//package objects
Section 349
//GFX_GFX_WALL_z (objects.GFX_GFX_WALL_z)
package objects {
import mx.core.*;
public class GFX_GFX_WALL_z extends BitmapAsset {
}
}//package objects
Section 350
//GFX_GFX_Z_CONTINUE (objects.GFX_GFX_Z_CONTINUE)
package objects {
import mx.core.*;
public class GFX_GFX_Z_CONTINUE extends BitmapAsset {
}
}//package objects
Section 351
//GFX_GFX_Z_GAMEOVER (objects.GFX_GFX_Z_GAMEOVER)
package objects {
import mx.core.*;
public class GFX_GFX_Z_GAMEOVER extends BitmapAsset {
}
}//package objects
Section 352
//GFX_GFX_Z_QUIT (objects.GFX_GFX_Z_QUIT)
package objects {
import mx.core.*;
public class GFX_GFX_Z_QUIT extends BitmapAsset {
}
}//package objects
Section 353
//Goomba (objects.Goomba)
package objects {
import mx.core.*;
import flash.media.*;
public class Goomba extends Enemy {
private var GFX:BitmapAsset;
private var SFXStomp:Sound;
private var frame:uint;// = 0
public function Goomba(Xpos:uint, Ypos:uint){
SFXStomp = new (Mario.classSFX.accessSFX("stomp"));
super();
eX = Xpos;
eY = Ypos;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 21;
var GFXclass:Class = Mario.classGFX.AccessGFX("enemy_goomba");
GFX = new (GFXclass);
GFX.x = ((eX - 2) + ((frame > 15)) ? 25 : 0);
GFX.y = (eY - 4);
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
if (active){
stomped = false;
eX = (eX + dir);
if (dir > 0){
if (Mario.enemyBounce(myID, ((eX + eWid) - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
} else {
if (Mario.enemyBounce(myID, eX, eY, 2, eHei) == false){
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
frame = ((frame + 1) % 30);
if (frame > 15){
GFX.scaleX = -1;
} else {
GFX.scaleX = 1;
};
GFX.x = ((eX - 2) + ((frame > 15)) ? 25 : 0);
GFX.y = (eY - 4);
} else {
if (((((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))) || (((Mario.scrollEdge + 400) > eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
override public function Stomp(myID:uint):void{
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "100"));
Player.hitStomp = true;
Player.Bounce(eY);
Mario.layerFore.removeChild(GFX);
Mario.removeEnemy(myID);
Mario.instEffects.push(new Goomba_Stomped(eX, eY));
if (Mario.sounds){
SFXStomp.play();
};
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX);
Mario.removeEnemy(myID);
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 4), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_goomba")));
return (true);
}
}
}//package objects
Section 354
//Goomba_Stomped (objects.Goomba_Stomped)
package objects {
import mx.core.*;
public class Goomba_Stomped extends Effect {
public var fX:Number;
public var fY:Number;
public var GFX:BitmapAsset;
public var gravity:Number;// = 0
public function Goomba_Stomped(oX:Number, oY:Number){
super();
timer = 50;
fX = oX;
fY = oY;
var GFXclass:Class = Mario.classGFX.AccessGFX("effect_goomba_stomped");
GFX = new (GFXclass);
GFX.x = (oX - 2);
GFX.y = (oY - 4);
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
timer--;
GFX.alpha = (timer / 25);
gravity = (gravity + Mario.gravity);
fY = (fY + Math.floor(gravity));
if (((Mario.levelColl(fX, (fY + 20))) || (Mario.levelColl((fX + 20), (fY + 20))))){
gravity = 0;
fY = ((Math.floor((fY / 25)) * 25) + 4);
};
GFX.x = (fX - 2);
GFX.y = (fY - 4);
if (timer == 0){
Mario.layerFore.removeChild(GFX);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 355
//Grass (objects.Grass)
package objects {
public class Grass extends Effect {
private var GFX:Array;
private var frame:uint;// = 0
public function Grass(x:uint, y:uint, pos:String="l"){
GFX = new Array(3);
super();
frame = Math.abs((-((timer / 20)) + 2));
GFX[0] = new (Mario.classGFX.AccessGFX((("back_grass_" + pos) + "1")));
GFX[1] = new (Mario.classGFX.AccessGFX((("back_grass_" + pos) + "2")));
GFX[2] = new (Mario.classGFX.AccessGFX((("back_grass_" + pos) + "3")));
GFX[0].x = (GFX[1].x = (GFX[2].x = x));
GFX[0].y = (GFX[1].y = (GFX[2].y = y));
Mario.layerWall.addChild(GFX[frame]);
}
override public function Update(myID:uint):void{
timer++;
if ((timer % 20) == 0){
Mario.layerWall.removeChild(GFX[frame]);
frame = Math.abs((-((timer / 20)) + 2));
if (timer == 80){
timer = 0;
};
Mario.layerWall.addChild(GFX[frame]);
};
}
}
}//package objects
Section 356
//Hammer (objects.Hammer)
package objects {
import flash.display.*;
import mx.core.*;
public class Hammer extends Obj {
private var waiter:uint;// = 0
private var movY:Number;// = 0
private var movX:Number;// = 0
private var Troopa:HammerTroopa;
private var GFX:Sprite;
public function Hammer(Troop:HammerTroopa){
GFX = new Sprite();
super();
Troopa = Troop;
var GFX2:BitmapAsset = new (Mario.classGFX.AccessGFX("effect_hammer"));
GFX2.x = -10;
GFX2.y = -6;
GFX.addChild(GFX2);
oY = 0;
oX = 0;
Mario.layerEffects.addChild(GFX);
}
public function SetPos():void{
if (Troopa.dir == 1){
if (Troopa.frame == 0){
GFX.rotation = 0;
GFX.x = (Troopa.eX + 16);
GFX.y = (Troopa.eY - 2);
} else {
GFX.rotation = 90;
GFX.x = (Troopa.eX + 28);
GFX.y = (Troopa.eY + 22);
};
} else {
if (Troopa.frame == 0){
GFX.rotation = 0;
GFX.x = (Troopa.eX + 2);
GFX.y = (Troopa.eY - 2);
} else {
GFX.rotation = -90;
GFX.x = (Troopa.eX - 8);
GFX.y = (Troopa.eY + 22);
};
};
}
override public function Update(myID:uint):void{
waiter++;
if (waiter < 30){
SetPos();
} else {
if (waiter == 30){
SetPos();
oX = (GFX.x - 4);
oY = (GFX.y - 4);
movX = ((Troopa.dir * (Math.random() + 1)) * 2);
movY = -(((Math.random() + 1) * 2));
} else {
oX = (oX + (movX / 2));
oY = (oY + movY);
GFX.rotation = (GFX.rotation + (movX / 2));
GFX.x = (oX + 4);
GFX.y = (oY + 4);
movY = (movY + (Mario.gravity / 2));
if (Mario.playerCollide(oX, oY, 8, 8)){
Mario.hitPlayer();
};
};
};
if ((((((oY > ((Mario.levelHei * 25) + 250))) || ((oY < -200)))) || ((((Troopa.dead == true)) && ((waiter < 100)))))){
Mario.removeObject(myID);
Mario.layerEffects.removeChild(GFX);
};
}
}
}//package objects
Section 357
//HammerTroopa (objects.HammerTroopa)
package objects {
import flash.display.*;
import flash.media.*;
public class HammerTroopa extends Enemy {
private var attacking:uint;// = 0
public var dead:Boolean;
public var frame:uint;// = 0
private var jump:uint;// = 0
private var gotox:uint;// = 0
private var startx:uint;// = 0
private var GFX:Array;
private var SFXStomp:Sound;
private var wait:uint;// = 0
private var radisher:Boolean;
public function HammerTroopa(Xpos:uint, Ypos:uint, radish:Boolean=false){
GFX = new Array(2);
SFXStomp = new (Mario.classSFX.accessSFX("stomp"));
super();
eX = Xpos;
eY = Ypos;
startx = Xpos;
gotox = Xpos;
radisher = radish;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 35;
dir = 1;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_hammer_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_hammer_2"));
GFX[0].x = ((eX - 2) + ((dir > 0)) ? 0 : 25);
GFX[0].y = (eY - 4);
Mario.layerFore.addChild(GFX[0]);
}
override public function Stomp(myID:uint):void{
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "100"));
Player.hitStomp = true;
dead = true;
Player.Bounce(eY);
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
Mario.instEffects.push(new Enemy_Fall((eX - 4), (eY - 3), dir, GFX[frame]));
if (Mario.sounds){
SFXStomp.play();
};
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
dead = true;
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 4), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_hammer_1")));
return (true);
}
override public function Update(myID:uint):void{
if (active){
if ((((jump == 0)) && ((gravity == 0)))){
switch (Math.floor((Math.random() * 50))){
case 0:
gravity = -2;
if (eY < 275){
jump = 40;
};
break;
case 25:
gravity = -6;
break;
};
};
if (eX == gotox){
if (Math.floor((Math.random() * 20)) == 0){
gotox = Math.round((startx + (150 * (Math.random() - 0.5))));
};
};
if (attacking > 0){
attacking--;
} else {
if (Math.random() < 0.03){
if (!radisher){
attacking = 40;
Mario.instObjects.push(new Hammer(this));
};
};
};
eX = (eX + Mario.Sign((gotox - eX)));
stomped = false;
gravity = (gravity + (Mario.gravity / 3));
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (jump > 0){
jump--;
};
if ((((gravity > 0)) && ((jump == 0)))){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((((eY + eHei) - 1) / 25)) * 25) - 35);
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) <= ((eY + 5) - gravity)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = (1 - frame);
Mario.layerFore.addChild(GFX[frame]);
dir = ((Player.pX > eX)) ? 1 : -1;
GFX[frame].scaleX = dir;
wait = 0;
if (frame == 0){
if (((((radisher) && ((attacking == 0)))) && ((Math.random() < 0.4)))){
attacking = 20;
Mario.instObjects.push(new Fireball((eX + 10), (eY + 10), (dir / 2), true));
};
};
};
GFX[frame].x = ((eX - 4) + ((dir > 0)) ? 0 : 25);
GFX[frame].y = (eY - 3);
} else {
if (((((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))) || (((Mario.scrollEdge + 400) > eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
}
}//package objects
Section 358
//Jumper (objects.Jumper)
package objects {
public class Jumper extends Enemy {
private var wait:uint;// = 0
private var horimov:Number;
private var GFX:Array;
private var frame:uint;// = 0
public function Jumper(x:uint, y:uint, hor:Number=0, grav:int=-10){
GFX = new Array(3);
super();
eX = x;
eY = y;
eWid = 19;
eHei = 21;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_jumper_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_jumper_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("enemy_jumper_3"));
gravity = grav;
horimov = hor;
GFX[0].x = (eX + 1);
GFX[0].y = (eY + 2);
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
eY = (eY + gravity);
eX = (eX + horimov);
gravity = (gravity + (Mario.gravity / 2));
wait++;
if (wait == 4){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 3);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (eX + 1);
GFX[frame].y = ((eY + 2) + ((gravity < 0)) ? 0 : 20);
GFX[frame].scaleY = ((gravity < 0)) ? 1 : -1;
if (Mario.playerCollide(eX, eY, eWid, eHei)){
Mario.hitPlayer();
};
if (eY > ((Mario.levelHei * 25) + 200)){
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
};
}
}
}//package objects
Section 359
//JumperThrower (objects.JumperThrower)
package objects {
public class JumperThrower extends Enemy {
private var waiter:uint;
private var amounter:uint;
private var sizeh:Number;
private var sizev:Number;
private var wait:uint;
private var pause:uint;
private var pauser:uint;
private var amount:uint;
public function JumperThrower(x:uint, y:uint, height:Number, width:Number, wai:uint, amo:uint, pau:uint){
super();
eX = x;
eY = y;
sizeh = width;
sizev = height;
wait = (waiter = wai);
amount = (amounter = amo);
pause = (pauser = pau);
}
override public function Update(myID:uint):void{
if (waiter > 0){
waiter--;
} else {
if (pauser > 0){
pauser--;
} else {
amounter = (amounter - 1);
pauser = pause;
Mario.instEnemies.push(new Jumper(eX, eY, (((Math.random() - 0.5) * 2) * sizeh), ((sizev - Math.random()) + Math.random())));
if (amounter == 0){
amounter = amount;
waiter = wait;
};
};
};
}
}
}//package objects
Section 360
//KillShroom (objects.KillShroom)
package objects {
import mx.core.*;
import flash.media.*;
public class KillShroom extends Obj {
public var oWid:uint;// = 21
private var SFX:Sound;
public var dir:int;
public var gravity:Number;// = 0
public var GFX:BitmapAsset;
public var oHei:uint;// = 21
public var seq:Boolean;// = false
public function KillShroom(Xpos:uint, Ypos:uint){
SFX = new (Mario.classSFX.accessSFX("life"));
super();
oX = Xpos;
oY = Ypos;
var GFXclass:Class = Mario.classGFX.AccessGFX("object_killshroom");
GFX = new (GFXclass);
GFX.x = oX;
GFX.y = oY;
Mario.layerHide.addChild(GFX);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
if (seq){
oX = (oX + dir);
if (dir > 0){
if (((Mario.levelColl(((oX + oWid) - 1), oY)) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
} else {
if (((Mario.levelColl(oX, oY)) || (Mario.levelColl(oX, ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
oY = (oY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(oX, ((oY + oHei) - 1))) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
gravity = 0;
oY = ((Math.floor((oY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(oX, oY, oWid, oHei)){
Mario.hitPlayer(true);
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
};
GFX.x = (oX - 2);
GFX.y = (oY - 4);
} else {
oY = (oY - 0.5);
GFX.x = oX;
GFX.y = oY;
if (Mario.levelColl((oX + 12), (oY + 24)) == false){
Mario.layerHide.removeChild(GFX);
oX = (oX + 2);
oY = (oY + 4);
GFXclass = Mario.classGFX.AccessGFX("object_killshroom");
GFX = new (GFXclass);
GFX.x = (oX - 2);
GFX.y = (oY - 4);
Mario.layerFore.addChild(GFX);
dir = (((Player.pX - oX) > 0)) ? 1 : -1;
seq = true;
};
};
if (oY > ((Mario.levelHei * 25) + 250)){
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
};
}
}
}//package objects
Section 361
//Lakitu (objects.Lakitu)
package objects {
import flash.display.*;
import flash.media.*;
public class Lakitu extends Enemy {
private var moveX:Number;// = 0
private var SFXStomp:Sound;
private var frame:uint;// = 0
private var SFXplu:Sound;
private var wait:uint;// = 0
private var GFX:Array;
public function Lakitu(Xpos:uint, Ypos:uint){
GFX = new Array(2);
SFXStomp = new (Mario.classSFX.accessSFX("stomp"));
SFXplu = new (Mario.classSFX.accessSFX("lakitu"));
super();
bounce = false;
eX = Xpos;
eY = Ypos;
eWid = 22;
eHei = 22;
gravity = -4;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_lakitu_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_lakitu_2"));
GFX[0].x = (eX - 2);
GFX[0].y = (eY - 12);
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
if ((Player.pX + (Player.speed / 10)) > eX){
moveX = Math.min((moveX + 0.3), 6);
} else {
moveX = Math.max((moveX - 0.3), -6);
};
eX = (eX + Math.round(moveX));
if (wait < 250){
wait++;
};
if (wait == 250){
if ((((((((Mario.levelColl(eX, (eY - 10)) == false)) && ((Mario.levelColl(eX, (eY + 10)) == false)))) && ((Mario.levelColl((eX + 20), (eY - 10)) == false)))) && ((Mario.levelColl((eX + 20), (eY + 10)) == false)))){
Mario.layerFore.removeChild(GFX[frame]);
frame = 0;
wait = 0;
if (Mario.levelid == 13){
wait = (50 + (Math.random() * 50));
};
Mario.layerFore.addChild(GFX[frame]);
SFXplu.play();
Mario.instEnemies.push(new SpinyShell(eX, (eY - 10)));
};
} else {
if (wait == 150){
Mario.layerFore.removeChild(GFX[frame]);
frame = 1;
Mario.layerFore.addChild(GFX[frame]);
};
};
GFX[frame].x = (eX - 2);
GFX[frame].y = (eY - 2);
if (((Mario.playerControllable) && (Mario.Collide(eX, eY, eWid, eHei, Player.pX, ((Player.pY + Player.pHei) - 1), Player.pWid, 1)))){
if (((Player.pY - Player.gravity) + Player.pHei) < (eY + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
};
};
}
override public function Stomp(myID:uint):void{
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "1000"));
Player.hitStomp = true;
Player.Bounce(eY);
Mario.instEffects.push(new Lakitu_Stomped(eX, eY));
eX = (eX + 3000);
if (Mario.sounds){
SFXStomp.play();
};
}
override public function Fire(myID:uint, dir:int):Boolean{
eX = (eX + 3000);
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 12), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_lakitu_1")));
return (true);
}
}
}//package objects
Section 362
//Lakitu_Stomped (objects.Lakitu_Stomped)
package objects {
import mx.core.*;
public class Lakitu_Stomped extends Effect {
public var fY:Number;
public var GFX:BitmapAsset;
public var gravity:Number;// = 0
public function Lakitu_Stomped(oX:Number, oY:Number){
super();
fY = (oY + 37);
var GFXclass:Class = Mario.classGFX.AccessGFX("enemy_lakitu_1");
GFX = new (GFXclass);
GFX.scaleY = -1;
GFX.x = oX;
GFX.y = fY;
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
gravity = (gravity + Mario.gravity);
fY = (fY + gravity);
GFX.y = fY;
if (fY > ((Mario.levelHei * 25) + 80)){
Mario.layerFore.removeChild(GFX);
Mario.removeEffect(myID);
};
}
}
}//package objects
Section 363
//Lantern (objects.Lantern)
package objects {
import flash.display.*;
import mx.core.*;
import flash.geom.*;
public class Lantern extends Effect {
public var eX:uint;
public var gfx1:BitmapAsset;
public var gfx2:Shape;
public function Lantern(x:uint, y:uint){
gfx2 = new Shape();
super();
gfx1 = new (Mario.classGFX.AccessGFX("back_lantern"));
var fillType:String = GradientType.RADIAL;
var colors:Array = [0xFFFFFF, 0xFFFFFF];
var alphas:Array = [0.8, 0];
var ratios:Array = [100, 0xFF];
var matr:Matrix = new Matrix();
matr.createGradientBox(100, 100, 0, -50, -50);
var spreadMethod:String = SpreadMethod.PAD;
gfx2.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
gfx2.graphics.drawCircle(0, 0, 50);
gfx2.graphics.endFill();
gfx1.x = (eX - (((-(Mario.scrollX) + 200) - eX) * 0.2));
gfx1.y = y;
gfx2.x = ((eX - (((-(Mario.scrollX) + 200) - eX) * 0.2)) + 9);
gfx2.y = (y + 22);
gfx2.blendMode = BlendMode.ADD;
Mario.layerBack2.addChildAt(gfx1, 0);
Mario.layerBack2.addChild(gfx2);
eX = x;
}
override public function Update(myID:uint):void{
gfx1.x = (eX - (((-(Mario.scrollX) + 200) - eX) * 0.2));
gfx2.x = ((eX - (((-(Mario.scrollX) + 200) - eX) * 0.2)) + 9);
if (Math.random() < 0.4){
gfx2.alpha = (0.8 + (Math.random() / 5));
gfx2.scaleX = (0.95 + (gfx2.alpha / 5));
gfx2.scaleY = gfx2.scaleX;
};
}
}
}//package objects
Section 364
//LastLevel (objects.LastLevel)
package objects {
public class LastLevel extends Obj {
public var shroom:Boolean;// = false
public var waiter:uint;// = 0
public function LastLevel(){
super();
}
override public function Update(myID:uint):void{
if ((((((shroom == false)) && (((waiter % 50) == 25)))) && ((Player.pSize == 0)))){
shroom = true;
Mario.instObjects.push(new Shroom(180, -25));
};
waiter++;
if (waiter == 360){
waiter = 0;
if (Player.pX > 200){
Mario.instEnemies.push(new Spiny(30, -25));
} else {
Mario.instEnemies.push(new Spiny(355, -25));
};
};
}
}
}//package objects
Section 365
//Lava (objects.Lava)
package objects {
public class Lava extends Obj {
public var wait:uint;// = 0
public var GFX:Array;
public var frame:uint;// = 0
public function Lava(x:uint, y:uint){
GFX = new Array(7);
super();
GFX[0] = new (Mario.classGFX.AccessGFX("lava_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("lava_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("lava_3"));
GFX[3] = new (Mario.classGFX.AccessGFX("lava_4"));
GFX[4] = new (Mario.classGFX.AccessGFX("lava_5"));
GFX[5] = new (Mario.classGFX.AccessGFX("lava_6"));
GFX[6] = new (Mario.classGFX.AccessGFX("lava_7"));
GFX[0].x = (GFX[1].x = (GFX[2].x = (GFX[3].x = (GFX[4].x = (GFX[5].x = (GFX[6].x = x))))));
GFX[0].y = (GFX[1].y = (GFX[2].y = (GFX[3].y = (GFX[4].y = (GFX[5].y = (GFX[6].y = y))))));
Mario.layerEffects.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
wait++;
if (wait == 12){
Mario.layerEffects.removeChild(GFX[frame]);
frame = ((frame + 1) % 7);
wait = 0;
Mario.layerEffects.addChild(GFX[frame]);
};
}
}
}//package objects
Section 366
//LifeShroom (objects.LifeShroom)
package objects {
import mx.core.*;
import flash.media.*;
public class LifeShroom extends Obj {
public var oWid:uint;// = 21
private var SFX:Sound;
public var dir:int;
public var gravity:Number;// = 0
public var GFX:BitmapAsset;
public var oHei:uint;// = 21
public var seq:Boolean;// = false
public function LifeShroom(Xpos:uint, Ypos:uint){
SFX = new (Mario.classSFX.accessSFX("life"));
super();
oX = Xpos;
oY = Ypos;
var GFXclass:Class = Mario.classGFX.AccessGFX("object_lifeshroom");
GFX = new (GFXclass);
GFX.x = oX;
GFX.y = oY;
Mario.layerHide.addChild(GFX);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
if (seq){
oX = (oX + dir);
if (dir > 0){
if (((Mario.levelColl(((oX + oWid) - 1), oY)) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
} else {
if (((Mario.levelColl(oX, oY)) || (Mario.levelColl(oX, ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
oY = (oY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(oX, ((oY + oHei) - 1))) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
gravity = 0;
oY = ((Math.floor((oY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(oX, oY, oWid, oHei)){
Mario.instEffects.push(new Points((oX + 10), (oY - 5), "1up"));
if (Mario.sounds){
SFX.play();
};
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
};
GFX.x = (oX - 2);
GFX.y = (oY - 4);
} else {
oY = (oY - 0.5);
GFX.x = oX;
GFX.y = oY;
if (Mario.levelColl((oX + 12), (oY + 24)) == false){
Mario.instEffects.push(new Points((oX + 10), (oY - 5), "1000"));
Mario.layerHide.removeChild(GFX);
oX = (oX + 2);
oY = (oY + 4);
GFXclass = Mario.classGFX.AccessGFX("object_lifeshroom");
GFX = new (GFXclass);
GFX.x = (oX - 2);
GFX.y = (oY - 4);
Mario.layerFore.addChild(GFX);
dir = (((Player.pX - oX) > 0)) ? 1 : -1;
seq = true;
};
};
if (oY > ((Mario.levelHei * 25) + 250)){
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
};
}
}
}//package objects
Section 367
//Loading (objects.Loading)
package objects {
import flash.events.*;
import flash.display.*;
import mx.core.*;
import flash.text.*;
import flash.net.*;
import flash.external.*;
import flash.utils.*;
public dynamic class Loading extends MovieClip {
public var app:Object;
public var rect:Sprite;
public var loaded:Boolean;// = false
public var txt:TextField;
private var GLOGO:Class;
public var gfx:Sprite;
public var logo:BitmapAsset;
public static var r2:Sprite;
public static var r3:Sprite;
public static var ad:Sprite = new Sprite();
public static var r1:Sprite;
public static var add:DisplayObject;
public static var locked:uint = 0;
public static var lc:LocalConnection = new LocalConnection();
public static var ts:Sprite;
public function Loading(){
GLOGO = Loading_GLOGO;
rect = new Sprite();
gfx = new Sprite();
txt = new TextField();
super();
ts = new Sprite();
ts.graphics.beginFill(0, 1);
ts.graphics.drawRect(100, 330, 200, 32);
ts.graphics.endFill();
ts.alpha = 0;
ts.buttonMode = true;
ts.addEventListener(MouseEvent.CLICK, function ():void{
gfx.removeChild(ad);
ts.buttonMode = false;
ad.removeChild(add);
});
var tt:TextField = new TextField();
tt.htmlText = "<p align='center'><font size='25'>Click to close Ad.</font></p>";
tt.width = 200;
tt.x = 100;
tt.height = 32;
tt.background = true;
tt.backgroundColor = 0;
tt.textColor = 0xFFFFFF;
tt.autoSize = TextFieldAutoSize.NONE;
tt.y = 330;
tt.borderColor = 0xEEEEEE;
tt.border = true;
stop();
r1 = new Sprite();
r1.graphics.beginFill(0xFFFFFF, 0.2);
r1.graphics.drawRect(12, 131, 374, 104);
r1.graphics.endFill();
r1.buttonMode = true;
r1.alpha = 0;
r1.addEventListener(MouseEvent.CLICK, function ():void{
openWindow("http://www.softendo.com", "_blank");
});
r1.addEventListener(MouseEvent.MOUSE_OVER, function ():void{
r1.alpha = 1;
});
r1.addEventListener(MouseEvent.MOUSE_OUT, function ():void{
r1.alpha = 0;
});
r2 = new Sprite();
r2.graphics.beginFill(0xFFFFFF, 0.2);
r2.graphics.drawRect(12, 250, 374, 45);
r2.graphics.endFill();
r2.buttonMode = true;
r2.alpha = 0;
r2.addEventListener(MouseEvent.CLICK, clickman);
r2.addEventListener(MouseEvent.MOUSE_OVER, function ():void{
r2.alpha = 1;
});
r2.addEventListener(MouseEvent.MOUSE_OUT, function ():void{
r2.alpha = 0;
});
r3 = new Sprite();
r3.graphics.beginFill(0xFFFFFF, 0.2);
r3.graphics.drawRect(127, 327, 150, 45);
r3.graphics.endFill();
r3.buttonMode = true;
r3.alpha = 0;
r3.addEventListener(MouseEvent.CLICK, function ():void{
openWindow("http://www.softendo.com", "_blank");
});
r3.addEventListener(MouseEvent.MOUSE_OVER, function ():void{
r3.alpha = 1;
});
r3.addEventListener(MouseEvent.MOUSE_OUT, function ():void{
r3.alpha = 0;
});
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
logo = new GLOGO();
logo.x = (200 - (logo.width / 2));
logo.y = 0;
rect.graphics.beginFill(0);
rect.graphics.drawRect(0, 0, 400, 375);
rect.graphics.endFill();
txt.y = 260;
txt.autoSize = TextFieldAutoSize.NONE;
txt.width = 250;
gfx.addChild(rect);
gfx.addChild(logo);
gfx.addChild(txt);
addChild(gfx);
txt.textColor = 0xFFFFFF;
txt.scaleX = 1;
txt.scaleY = 1;
var percent:Number = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
txt.htmlText = (("<p align='center'><font color='#FFFFFF' size='20'>" + (Math.floor((percent * 10000)) / 100)) + "%</font></p>");
txt.x = 75;
txt.selectable = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown2);
gfx.addChild(r1);
gfx.addChild(r2);
gfx.addChild(r3);
gfx.visible = false;
graphics.beginFill(0);
graphics.drawRect(0, 0, 400, 375);
showAll();
}
private function keyDown(e:KeyboardEvent):void{
if (app != null){
app.keyDown(e);
};
}
private function keyUp(e:KeyboardEvent):void{
if (app != null){
app.keyUp(e);
};
}
public function clickman(e:Event):void{
var mainClass:Class;
if (loaded){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
removeChild(gfx);
gfx.removeEventListener(MouseEvent.MOUSE_DOWN, clickman);
stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown2);
nextFrame();
mainClass = Class(getDefinitionByName("Mario"));
if (mainClass){
app = new (mainClass);
addChild((app as DisplayObject));
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
};
};
}
private function init():void{
var lc:LocalConnection = new LocalConnection();
txt.htmlText = "<p align='center'><font color='#FFFFFF' size='20'>Game Loaded. Click to play!</font></p>";
txt.x = 75;
loaded = true;
}
private function keyDown2(e:KeyboardEvent):void{
switch (locked){
case 0:
if (e.keyCode == 80){
locked = 1;
};
break;
case 1:
if (e.keyCode == 53){
locked = 2;
};
break;
case 2:
if (e.keyCode == 75){
locked = 3;
};
break;
case 3:
if (e.keyCode == 71){
locked = 4;
};
break;
case 4:
if (e.keyCode == 66){
locked = 5;
};
break;
case 5:
if (e.keyCode == 49){
locked = 6;
};
break;
};
}
public function onEnterFrame(event:Event):void{
var percent:Number;
if (((gfx.visible) && ((gfx.alpha < 1)))){
gfx.alpha = (gfx.alpha + 0.05);
};
if (loaded == true){
return;
};
if (framesLoaded == totalFrames){
init();
} else {
percent = (root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal);
txt.htmlText = (("<p align='center'><font color='#FFFFFF' size='20'>" + (Math.floor((percent * 10000)) / 100)) + "%</font></p>");
txt.x = 75;
};
}
private function showAll():void{
gfx.visible = true;
gfx.alpha = 0;
}
public static function openWindow(url:String, _window:String="", features:String=""):void{
var window:String;
navigateToURL(new URLRequest(url), window);
}
private static function getBrowserName():String{
var browser:String;
var browserAgent:String = ExternalInterface.call("function getBrowser(){return navigator.userAgent;}");
if (((!((browserAgent == null))) && ((browserAgent.indexOf("Firefox") >= 0)))){
browser = "Firefox";
} else {
if (((!((browserAgent == null))) && ((browserAgent.indexOf("Safari") >= 0)))){
browser = "Safari";
} else {
if (((!((browserAgent == null))) && ((browserAgent.indexOf("MSIE") >= 0)))){
browser = "IE";
} else {
if (((!((browserAgent == null))) && ((browserAgent.indexOf("Opera") >= 0)))){
browser = "Opera";
} else {
browser = "Undefined";
};
};
};
};
return (browser);
}
}
}//package objects
Section 368
//Loading_GLOGO (objects.Loading_GLOGO)
package objects {
import mx.core.*;
public class Loading_GLOGO extends BitmapAsset {
}
}//package objects
Section 369
//Logo2 (objects.Logo2)
package objects {
import flash.events.*;
import flash.display.*;
import mx.core.*;
import flash.net.*;
public class Logo2 {
public var GFX:Sprite;
public var timer:int;
public var GFX2:BitmapAsset;
private var LOGO:Class;
public function Logo2(){
LOGO = Logo2_LOGO;
GFX = new Sprite();
super();
GFX2 = new LOGO();
GFX.graphics.beginFill(112);
GFX.graphics.drawRect(0, 0, 400, 375);
GFX.graphics.endFill();
GFX2.alpha = 0;
GFX.addChild(GFX2);
GFX.buttonMode = true;
GFX.addEventListener(MouseEvent.CLICK, function ():void{
navigateToURL(new URLRequest("http://www.softendo.com"), "_blank");
});
}
public function Update():void{
timer++;
if (timer < 380){
GFX2.alpha = Math.min((GFX2.alpha + 0.05), 1);
} else {
GFX2.alpha = (GFX2.alpha - 0.1);
};
}
}
}//package objects
Section 370
//Logo2_LOGO (objects.Logo2_LOGO)
package objects {
import mx.core.*;
public class Logo2_LOGO extends BitmapAsset {
}
}//package objects
Section 371
//MakeLevel (objects.MakeLevel)
package objects {
public function MakeLevel(id:uint):void{
switch (id){
case 0:
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.generateBackground(0);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " ";
Mario.level[7] = " ";
Mario.level[8] = " ";
Mario.level[9] = " MM ";
Mario.level[10] = " M cdddddddde M MMM ";
Mario.level[11] = " MM fggggggggh MM 01 MMMM ";
Mario.level[12] = " MMM MMMMMMMMMM MMM 23 MMMMM ";
Mario.level[13] = " MMMM MMMM 23 MMMMMM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddddddddddddddddde cddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(4900, 0, "back_clouds_8", 0.790000021));
Mario.instEffects.push(new Background(2850, 0, "back_clouds_8", 0.730000019));
Mario.instEffects.push(new Background(1325, 0, "back_clouds_8", 0.780000031));
Mario.instEffects.push(new Background(425, 0, "back_clouds_8", 0.680000007));
Mario.instEffects.push(new Background(300, 0, "back_hill_big", 0.700000048));
Mario.instEffects.push(new Background(1325, 0, "back_hill_big", 0.730000019));
Mario.instEffects.push(new Background(2450, 0, "back_hill_big", 0.610000014));
Mario.instEffects.push(new Background(3075, 0, "back_hill_big", 0.620000005));
Mario.instEffects.push(new Background(4275, 0, "back_hill_big", 0.780000031));
Mario.instEffects.push(new Background(5925, 0, "back_hill_big", 0.850000024));
Mario.instEffects.push(new Background(5725, 0, "back_hill", 0.420000017));
Mario.instEffects.push(new Background(5150, 0, "back_hill", 0.530000031));
Mario.instEffects.push(new Background(4075, 0, "back_hill", 0.350000024));
Mario.instEffects.push(new Background(2925, 0, "back_hill", 0.330000013));
Mario.instEffects.push(new Background(1800, 0, "back_hill", 0.420000017));
Mario.instEffects.push(new Background(850, 0, "back_hill", 0.320000023));
Mario.instEffects.push(new Background(100, 0, "back_hill", 0.5));
Mario.instEffects.push(new Background(150, 200, "back_clouds_4", 0.460000008));
Mario.instEffects.push(new Background(525, 50, "back_clouds_4", 0.620000005));
Mario.instEffects.push(new Background(3250, 50, "back_clouds_4", 0.540000021));
Mario.instEffects.push(new Background(3850, 175, "back_clouds_4", 0.569999993));
Mario.instEffects.push(new Background(6075, 175, "back_clouds_4", 0.560000002));
Mario.instEffects.push(new Background(5175, 0, "back_clouds_4", 0.600000024));
Mario.instEffects.push(new Background(4075, 50, "back_clouds_2", 0.270000011));
Mario.instEffects.push(new Background(1950, 125, "back_clouds_2", 0.270000011));
Mario.instEffects.push(new Background(1225, 75, "back_clouds_2", 0.360000014));
Mario.instEffects.push(new Background(125, 0, "back_clouds_2", 0.200000003));
Mario.instEffects.push(new Background(800, 125, "back_clouds_1", 0.289999992));
Mario.instEffects.push(new Background(2375, 0, "back_clouds_1", 0.100000001));
Mario.instEffects.push(new Background(2975, 100, "back_clouds_1", 0.289999992));
Mario.instEffects.push(new Background(3500, 0, "back_clouds_1", 0.239999995));
Mario.instEffects.push(new Background(5125, 125, "back_clouds_1", 0.219999999));
Mario.instEffects.push(new Cloud(4850, 50));
Mario.instEffects.push(new Cloud(4350, 125));
Mario.instEffects.push(new Cloud(3850, 75));
Mario.instEffects.push(new Cloud(3225, 125));
Mario.instEffects.push(new Cloud(2800, 25));
Mario.instEffects.push(new Cloud(2175, 100));
Mario.instEffects.push(new Cloud(1675, 25));
Mario.instEffects.push(new Cloud(1225, 200));
Mario.instEffects.push(new Cloud(1050, 100));
Mario.instEffects.push(new Cloud(500, 200));
Mario.instEffects.push(new Cloud(50, 100));
Mario.instObjects.push(new Coin(4450, 200));
Mario.instObjects.push(new Coin(4425, 200));
Mario.instObjects.push(new Coin(4400, 200));
Mario.instObjects.push(new Coin(4375, 200));
Mario.instObjects.push(new Coin(4350, 200));
Mario.instObjects.push(new Coin(4125, 200));
Mario.instObjects.push(new Coin(4100, 200));
Mario.instObjects.push(new Coin(4075, 200));
Mario.instObjects.push(new Coin(4050, 200));
Mario.instObjects.push(new Coin(4025, 200));
Mario.instEffects.push(new Grass(3900, 325, "l"));
Mario.instEffects.push(new Grass(4000, 325, "r"));
Mario.instEffects.push(new Grass(3975, 325, "m"));
Mario.instEffects.push(new Grass(3950, 325, "m"));
Mario.instEffects.push(new Grass(3925, 325, "m"));
Mario.layerWall.addChild(AddGraphic(3625, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3775, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3750, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3725, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3700, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3675, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3650, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3275, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3275, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3275, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3275, 325, "back_tree_1"));
Mario.instEffects.push(new Grass(3200, 325, "r"));
Mario.instEffects.push(new Grass(3175, 325, "m"));
Mario.instEffects.push(new Grass(3150, 325, "l"));
Mario.layerWall.addChild(AddGraphic(3050, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3000, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2950, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(2950, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2200, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2175, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2100, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2075, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2050, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1375, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1575, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1550, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1525, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1500, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1475, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1450, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1425, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1400, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1375, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(1375, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(1375, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(1375, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(1375, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
Mario.instObjects.push(new Coin(2950, 200));
Mario.instObjects.push(new Coin(3225, 200));
Mario.instObjects.push(new Coin(3525, 175));
Mario.instObjects.push(new Coin(3475, 250));
Mario.instObjects.push(new Coin(2600, 125));
Mario.instObjects.push(new Coin(2575, 125));
Mario.instObjects.push(new Coin(2625, 150));
Mario.instObjects.push(new Coin(2550, 150));
Mario.instObjects.push(new Coin(2575, 150));
Mario.instObjects.push(new Coin(2600, 150));
Mario.instObjects.push(new Coin(2150, 200));
Mario.instObjects.push(new Coin(2075, 200));
Mario.instObjects.push(new Coin(1725, 100));
Mario.instObjects.push(new Coin(1600, 100));
Mario.instObjects.push(new Coin(1750, 100));
Mario.instObjects.push(new Coin(1775, 100));
Mario.instObjects.push(new Coin(1575, 100));
Mario.instObjects.push(new Coin(1550, 100));
Mario.instObjects.push(new Coin(1475, 175));
Mario.instObjects.push(new Coin(1675, 200));
Mario.instObjects.push(new Coin(1650, 200));
Mario.instObjects.push(new Coin(1725, 250));
Mario.instObjects.push(new Coin(1700, 225));
Mario.instObjects.push(new Coin(1625, 225));
Mario.instObjects.push(new Coin(1600, 250));
Mario.instObjects.push(new Coin(1850, 175));
Mario.layerWall.addChild(AddGraphic(125, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(125, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(125, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2250, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2250, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2250, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(1925, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(1925, 325, "back_tree_1"));
Mario.instEffects.push(new Grass(1825, 325, "m"));
Mario.instEffects.push(new Grass(1850, 325, "r"));
Mario.instEffects.push(new Grass(1800, 325, "m"));
Mario.instEffects.push(new Grass(1775, 325, "l"));
Mario.layerWall.addChild(AddGraphic(2450, 225, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2725, 225, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2700, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2675, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2650, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2625, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2600, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2575, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2550, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2525, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2500, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2475, 225, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1000, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1175, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1100, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1075, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1050, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1025, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(425, 325, "r"));
Mario.instEffects.push(new Grass(400, 325, "m"));
Mario.instEffects.push(new Grass(375, 325, "m"));
Mario.instEffects.push(new Grass(350, 325, "m"));
Mario.instEffects.push(new Grass(325, 325, "m"));
Mario.instEffects.push(new Grass(300, 325, "m"));
Mario.instEffects.push(new Grass(275, 325, "l"));
Mario.instEffects.push(new Grass(775, 325, "r"));
Mario.instEffects.push(new Grass(750, 325, "m"));
Mario.instEffects.push(new Grass(725, 325, "m"));
Mario.instEffects.push(new Grass(700, 325, "m"));
Mario.instEffects.push(new Grass(675, 325, "l"));
Mario.instEffects.push(new Grass(850, 325, "l"));
Mario.instEffects.push(new Grass(925, 325, "r"));
Mario.instEffects.push(new Grass(900, 325, "m"));
Mario.instEffects.push(new Grass(875, 325, "m"));
Mario.instObjects.push(new Coin(125, 250));
Mario.instObjects.push(new Coin(325, 250));
Mario.instObjects.push(new Coin(225, 250));
Mario.instBlocks.push(new Brick(150, 250));
Mario.instBlocks.push(new Brick(175, 250));
Mario.instBlocks.push(new Brick(275, 250));
Mario.instBlocks.push(new Brick(300, 250));
Player.ResetPlayer(75, 325);
Mario.instBlocks.push(new Bonus(200, 250, 1));
Mario.instBlocks.push(new Brick(1500, 250));
Mario.instBlocks.push(new Brick(1475, 250));
Mario.instBlocks.push(new Brick(1450, 250));
Mario.instBlocks.push(new Brick(1850, 250));
Mario.instBlocks.push(new Brick(1875, 250));
Mario.instBlocks.push(new Brick(1525, 150));
Mario.instBlocks.push(new Brick(1550, 150));
Mario.instBlocks.push(new Brick(1575, 150));
Mario.instBlocks.push(new Brick(1600, 150));
Mario.instBlocks.push(new Brick(1625, 150));
Mario.instBlocks.push(new Brick(1650, 150));
Mario.instBlocks.push(new Brick(1675, 150));
Mario.instBlocks.push(new Brick(1700, 150));
Mario.instBlocks.push(new Brick(1725, 150));
Mario.instBlocks.push(new Brick(1750, 150));
Mario.instBlocks.push(new Brick(1775, 150));
Mario.instBlocks.push(new Brick(1800, 150));
Mario.instBlocks.push(new Bonus(2025, 250, 1));
Mario.instBlocks.push(new Bonus(2050, 250, 1));
Mario.instBlocks.push(new Bonus(2100, 250, 1));
Mario.instBlocks.push(new Bonus(2125, 250, 1));
Mario.instBlocks.push(new Brick(2075, 250));
Mario.instBlocks.push(new Brick(2150, 250));
Mario.instBlocks.push(new Bonus(2175, 250, 1));
Mario.instBlocks.push(new Brick(2000, 250));
Mario.instBlocks.push(new Brick(2225, 250));
Mario.instBlocks.push(new Bonus(2200, 250, 2));
Mario.instBlocks.push(new Bonus(250, 250, 2));
Mario.instBlocks.push(new BrickMulti(1825, 250));
Mario.instBlocks.push(new Brick(3225, 250));
Mario.instBlocks.push(new Brick(3250, 250));
Mario.instBlocks.push(new BrickMulti(3200, 250));
Mario.instBlocks.push(new Brick(2975, 250));
Mario.instBlocks.push(new Brick(2950, 250));
Mario.instBlocks.push(new Brick(2925, 250));
Mario.instEnemies.push(new Goomba(400, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instObjects.push(new Finish(4825, 325));
Mario.instEnemies.push(new Goomba(900, 325));
Mario.instEnemies.push(new Goomba(1475, 225));
Mario.instEnemies.push(new Goomba(1575, 125));
Mario.instEnemies.push(new Goomba(1675, 125));
Mario.instEnemies.push(new Goomba(2000, 225));
Mario.instEnemies.push(new Goomba(1875, 325));
Mario.instEnemies.push(new Goomba(2400, 225));
Mario.instEnemies.push(new Goomba(2925, 325));
Mario.instEnemies.push(new Goomba(3075, 250));
Mario.instEnemies.push(new Goomba(3575, 200));
Mario.instEnemies.push(new Goomba(3850, 325));
Mario.instEnemies.push(new Goomba(4175, 325));
Mario.instEnemies.push(new Goomba(4575, 325));
Mario.instEnemies.push(new Goomba(4625, 325));
Mario.instEnemies.push(new Goomba(4675, 325));
Mario.instEnemies.push(new FlyGreen(975, 250));
Mario.instEnemies.push(new Goomba(2625, 225));
Mario.instEnemies.push(new Goomba(3250, 325));
Mario.instBlocks.push(new Brick(4025, 225));
Mario.instBlocks.push(new Brick(4050, 225));
Mario.instBlocks.push(new Brick(4075, 225));
Mario.instBlocks.push(new Brick(4100, 225));
Mario.instBlocks.push(new Brick(4450, 225));
Mario.instBlocks.push(new Brick(4425, 225));
Mario.instBlocks.push(new Brick(4400, 225));
Mario.instBlocks.push(new Brick(4375, 225));
Mario.instBlocks.push(new Brick(4350, 225));
Mario.instBlocks.push(new Brick(4125, 225));
break;
case 1:
Mario.generateBackground(1);
Mario.levelGenre = 1;
Mario.musika = 1;
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " 01 ";
Mario.level[7] = " M23M ";
Mario.level[8] = " 01 MM23MM ";
Mario.level[9] = " 23 MMM23MMM ";
Mario.level[10] = " 01 23 M MMMM23MMMM ";
Mario.level[11] = " 01 23 23 MM 01 01 23 ";
Mario.level[12] = " 23 23 23 MMM 23 23 01 M M 01 23 ";
Mario.level[13] = " 23 23 23 MMMM 23 23 23 MM MM 23 23 ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(325, 0, "back_clouds_8", 0.910000026));
Mario.instEffects.push(new Background(1100, 0, "back_clouds_8", 0.770000041));
Mario.instEffects.push(new Background(5525, 0, "back_clouds_8", 0.790000021));
Mario.instEffects.push(new Background(950, 175, "back_forest_4", 0.959999979));
Mario.instEffects.push(new Background(0, 0, "back_hill_big", 0.710000038));
Mario.instEffects.push(new Background(775, 0, "back_hill_big", 0.800000012));
Mario.instEffects.push(new Background(1675, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(2725, 0, "back_hill_big", 0.639999986));
Mario.instEffects.push(new Background(5225, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(5850, 0, "back_hill", 0.610000014));
Mario.instEffects.push(new Background(5275, 0, "back_hill", 0.379999995));
Mario.instEffects.push(new Background(4750, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(3525, 0, "back_hill", 0.5));
Mario.instEffects.push(new Background(2100, 0, "back_hill", 0.350000024));
Mario.instEffects.push(new Background(1000, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(100, 0, "back_hill", 0.460000008));
Mario.instEffects.push(new Background(5575, 25, "back_clouds_4", 0.610000014));
Mario.instEffects.push(new Background(4600, 125, "back_clouds_4", 0.460000008));
Mario.instEffects.push(new Background(3900, 0, "back_clouds_4", 0.689999998));
Mario.instEffects.push(new Background(2875, 75, "back_clouds_4", 0.400000006));
Mario.instEffects.push(new Background(2550, 75, "back_clouds_1", 0.280000001));
Mario.instEffects.push(new Background(900, 0, "back_clouds_1", 0.230000004));
Mario.instEffects.push(new Background(225, 75, "back_clouds_1", 0.209999993));
Mario.instObjects.push(new Coin(925, 325));
Mario.instObjects.push(new Coin(925, 300));
Mario.instObjects.push(new Coin(925, 275));
Mario.instObjects.push(new Coin(925, 250));
Mario.instObjects.push(new Coin(1400, 325));
Mario.instObjects.push(new Coin(1400, 300));
Mario.instObjects.push(new Coin(1400, 275));
Mario.instObjects.push(new Coin(1400, 250));
Mario.instObjects.push(new Coin(1975, 225));
Mario.instObjects.push(new Coin(1950, 225));
Mario.instObjects.push(new Coin(1925, 225));
Mario.instObjects.push(new Coin(1900, 225));
Mario.instObjects.push(new Coin(1875, 225));
Mario.instObjects.push(new Coin(2975, 175));
Mario.instObjects.push(new Coin(2950, 175));
Mario.instObjects.push(new Coin(3450, 200));
Mario.instObjects.push(new Coin(3425, 200));
Mario.instObjects.push(new Coin(3325, 200));
Mario.instObjects.push(new Coin(3400, 200));
Mario.instObjects.push(new Coin(3375, 200));
Mario.instObjects.push(new Coin(3350, 200));
Mario.instObjects.push(new Coin(4475, 275));
Mario.instObjects.push(new Coin(4500, 275));
Mario.instObjects.push(new Coin(4525, 275));
Mario.instObjects.push(new Coin(4550, 275));
Mario.instObjects.push(new Coin(4575, 275));
Mario.instObjects.push(new Coin(4575, 300));
Mario.instObjects.push(new Coin(4550, 300));
Mario.instObjects.push(new Coin(4525, 300));
Mario.instObjects.push(new Coin(4500, 300));
Mario.instObjects.push(new Coin(4475, 300));
Mario.instObjects.push(new Coin(4400, 275));
Mario.instObjects.push(new Coin(4375, 275));
Mario.instObjects.push(new Coin(4350, 275));
Mario.instObjects.push(new Coin(4325, 275));
Mario.instObjects.push(new Coin(4300, 275));
Mario.instObjects.push(new Coin(4300, 300));
Mario.instObjects.push(new Coin(4325, 300));
Mario.instObjects.push(new Coin(4350, 300));
Mario.instObjects.push(new Coin(4375, 300));
Mario.instObjects.push(new Coin(4400, 300));
Mario.layerWall.addChild(AddGraphic(400, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(1450, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(2125, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(2700, 175, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3175, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3750, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(4750, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(4750, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(3750, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(3175, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2700, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2700, 225, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2700, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2700, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2125, 225, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2125, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(2125, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(1450, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(400, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(400, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(400, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(1450, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(2125, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(2700, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3175, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3750, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(4750, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(4750, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3750, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3175, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2700, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2125, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(1450, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(400, 325, "back_tree_1"));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.330000013));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.0700000003));
Mario.instEffects.push(new Cloud(1000, 150));
Mario.instEffects.push(new Cloud(1475, 50));
Mario.instEffects.push(new Cloud(4125, 50));
Mario.instEffects.push(new Cloud(3875, 125));
Mario.instEffects.push(new Cloud(3575, 50));
Mario.instEffects.push(new Cloud(3150, 125));
Mario.instEffects.push(new Cloud(2650, 125));
Mario.instEffects.push(new Cloud(2825, 50));
Mario.instEffects.push(new Cloud(2350, 150));
Mario.instEffects.push(new Cloud(2275, 50));
Mario.instEffects.push(new Cloud(1925, 150));
Mario.instEffects.push(new Cloud(1100, 25));
Mario.instEffects.push(new Cloud(500, 100));
Mario.instEffects.push(new Cloud(100, 50));
Mario.layerWall.addChild(AddGraphic(125, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(125, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(125, 325, "back_tree_1"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(5275, 325));
Mario.instBlocks.push(new Bonus(200, 275, 5));
Mario.instBlocks.push(new Brick(225, 275));
Mario.instBlocks.push(new Brick(250, 275));
Mario.instBlocks.push(new Brick(275, 275));
Mario.instBlocks.push(new Brick(175, 275));
Mario.instBlocks.push(new Brick(150, 275));
Mario.instBlocks.push(new Bonus(300, 275, 4));
Mario.instBlocks.push(new Brick(325, 275));
Mario.instBlocks.push(new Brick(4575, 250));
Mario.instBlocks.push(new Brick(4600, 250));
Mario.instBlocks.push(new Brick(4300, 250));
Mario.instBlocks.push(new Brick(4275, 250));
Mario.instBlocks.push(new Brick(4250, 250));
Mario.instBlocks.push(new Bonus(4225, 250, 2));
Mario.instBlocks.push(new Bonus(4175, 250, 1));
Mario.instBlocks.push(new Bonus(4200, 250, 1));
Mario.instBlocks.push(new Bonus(4625, 250, 1));
Mario.instBlocks.push(new Bonus(4650, 250, 1));
Mario.instBlocks.push(new Bonus(4675, 250, 1));
Mario.instEnemies.push(new Goomba(575, 325));
Mario.instEnemies.push(new Goomba(700, 325));
Mario.instEnemies.push(new Goomba(1025, 325));
Mario.instEnemies.push(new Goomba(1100, 325));
Mario.instEnemies.push(new FlyRed(1500, 200));
Mario.instEnemies.push(new FlyGreen(2025, 300));
Mario.instEnemies.push(new FlyGreen(2200, 275));
Mario.instEnemies.push(new Goomba(2550, 325));
Mario.instEnemies.push(new Goomba(2600, 325));
Mario.instEnemies.push(new Goomba(2850, 325));
Mario.instEnemies.push(new Goomba(3100, 325));
Mario.instEnemies.push(new Goomba(3350, 275));
Mario.instEnemies.push(new Goomba(3550, 325));
Mario.instEnemies.push(new Goomba(4400, 150));
Mario.instEnemies.push(new Goomba(4625, 225));
Mario.instEnemies.push(new Goomba(4950, 325));
Mario.instEnemies.push(new TroopaGreen(4175, 325));
Mario.instEnemies.push(new TroopaGreen(4250, 325));
Mario.instEnemies.push(new TroopaGreen(4325, 325));
Mario.instEnemies.push(new TroopaGreen(4275, 225));
Mario.instEnemies.push(new TroopaGreen(3825, 325));
Mario.instEnemies.push(new TroopaGreen(3250, 325));
Mario.instEnemies.push(new TroopaGreen(2675, 325));
Mario.instEnemies.push(new TroopaGreen(1900, 325));
Mario.instEnemies.push(new TroopaGreen(800, 325));
Mario.instEnemies.push(new TroopaGreen(525, 325));
Mario.instEnemies.push(new PPlant(625, 250));
Mario.instEnemies.push(new PPlant(875, 225));
Mario.instEnemies.push(new PPlant(2325, 250));
Mario.instEnemies.push(new PPlant(3625, 275));
Mario.instEnemies.push(new PPlant(4425, 125));
break;
case 2:
Mario.generateBackground(0);
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.level[0] = " M ";
Mario.level[1] = " M ";
Mario.level[2] = " M ";
Mario.level[3] = " 01 01 M ";
Mario.level[4] = " 23 23 01 01 M ";
Mario.level[5] = " 01 23 01 23 23 23 M ";
Mario.level[6] = " 01 01 23 01 01 23 23 23 23 23 M ";
Mario.level[7] = " 23 23 23 23 23 M23 23 23 23 23 M ";
Mario.level[8] = " 23 MMMMMM M23 23 23 23 23 23 M23M M23M M ";
Mario.level[9] = " 01 23 MMMMMM MMMMMMMMM 23 23 23 01 01 M 23 23 M M M M M M M MM23MM MM23MM MM ";
Mario.level[10] = " 23 MMMMMM MMMMMMMMM M 23 23 M M 23 23 23 23 23 MMM23MMM MMM23MMM MMM ";
Mario.level[11] = " 23 MMMMMM 23 23 23 23 23 23 23 23 23 ";
Mario.level[12] = " 23 23 23 23 M23 23 M23 23 23 23 ";
Mario.level[13] = " 23 23 23 23 MM23 23 MM23 23 23 23 ";
Mario.level[14] = "cdddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(325, 0, "back_clouds_8", 0.910000026));
Mario.instEffects.push(new Background(1100, 0, "back_clouds_8", 0.770000041));
Mario.instEffects.push(new Background(5525, 0, "back_clouds_8", 0.790000021));
Mario.instEffects.push(new Background(950, 175, "back_forest_4", 0.959999979));
Mario.instEffects.push(new Background(0, 0, "back_hill_big", 0.710000038));
Mario.instEffects.push(new Background(775, 0, "back_hill_big", 0.800000012));
Mario.instEffects.push(new Background(1675, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(2725, 0, "back_hill_big", 0.639999986));
Mario.instEffects.push(new Background(5225, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(5850, 0, "back_hill", 0.610000014));
Mario.instEffects.push(new Background(5275, 0, "back_hill", 0.379999995));
Mario.instEffects.push(new Background(4750, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(3525, 0, "back_hill", 0.5));
Mario.instEffects.push(new Background(2100, 0, "back_hill", 0.350000024));
Mario.instEffects.push(new Background(1000, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(100, 0, "back_hill", 0.460000008));
Mario.instEffects.push(new Background(5575, 25, "back_clouds_4", 0.610000014));
Mario.instEffects.push(new Background(4600, 125, "back_clouds_4", 0.460000008));
Mario.instEffects.push(new Background(3900, 0, "back_clouds_4", 0.689999998));
Mario.instEffects.push(new Background(2875, 75, "back_clouds_4", 0.400000006));
Mario.instEffects.push(new Background(2550, 75, "back_clouds_1", 0.280000001));
Mario.instEffects.push(new Background(900, 0, "back_clouds_1", 0.230000004));
Mario.instEffects.push(new Background(225, 75, "back_clouds_1", 0.209999993));
Mario.instEffects.push(new Grass(4125, 325, "r"));
Mario.instEffects.push(new Grass(4250, 325, "r"));
Mario.instEffects.push(new Grass(3825, 325, "r"));
Mario.instEffects.push(new Grass(3800, 325, "m"));
Mario.instEffects.push(new Grass(4100, 325, "m"));
Mario.instEffects.push(new Grass(4225, 325, "m"));
Mario.instEffects.push(new Grass(4200, 325, "l"));
Mario.instEffects.push(new Grass(4075, 325, "l"));
Mario.instEffects.push(new Grass(3775, 325, "l"));
Mario.instEffects.push(new Grass(3100, 325, "l"));
Mario.instEffects.push(new Grass(3125, 325, "m"));
Mario.instEffects.push(new Grass(3150, 325, "m"));
Mario.instEffects.push(new Grass(3175, 325, "m"));
Mario.instEffects.push(new Grass(3200, 325, "m"));
Mario.instEffects.push(new Grass(3225, 325, "m"));
Mario.instEffects.push(new Grass(3250, 325, "r"));
Mario.instEffects.push(new Grass(2250, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "r"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "m"));
Mario.instEffects.push(new Grass(2550, 325, "m"));
Mario.instEffects.push(new Grass(2225, 325, "m"));
Mario.instEffects.push(new Grass(2200, 325, "m"));
Mario.instEffects.push(new Grass(2175, 325, "m"));
Mario.instEffects.push(new Grass(2150, 325, "m"));
Mario.instEffects.push(new Grass(2125, 325, "m"));
Mario.instEffects.push(new Grass(2100, 325, "m"));
Mario.instEffects.push(new Grass(2075, 325, "m"));
Mario.instEffects.push(new Grass(2050, 325, "m"));
Mario.instEffects.push(new Grass(2525, 325, "l"));
Mario.instEffects.push(new Grass(2025, 325, "l"));
Mario.instEffects.push(new Grass(1400, 325, "l"));
Mario.instEffects.push(new Grass(1550, 325, "r"));
Mario.instEffects.push(new Grass(1525, 325, "m"));
Mario.instEffects.push(new Grass(1500, 325, "m"));
Mario.instEffects.push(new Grass(1475, 325, "m"));
Mario.instEffects.push(new Grass(1450, 325, "m"));
Mario.instEffects.push(new Grass(1425, 325, "m"));
Mario.instObjects.push(new Coin(400, 175));
Mario.instObjects.push(new Coin(375, 175));
Mario.instObjects.push(new Coin(350, 175));
Mario.instObjects.push(new Coin(350, 150));
Mario.instObjects.push(new Coin(375, 150));
Mario.instObjects.push(new Coin(400, 150));
Mario.instObjects.push(new Coin(575, 25));
Mario.instObjects.push(new Coin(550, 25));
Mario.instObjects.push(new Coin(525, 25));
Mario.instObjects.push(new Coin(1325, 100));
Mario.instObjects.push(new Coin(1300, 100));
Mario.instObjects.push(new Coin(1275, 100));
Mario.instObjects.push(new Coin(1325, 75));
Mario.instObjects.push(new Coin(1300, 75));
Mario.instObjects.push(new Coin(1275, 75));
Mario.instObjects.push(new Coin(1850, 225));
Mario.instObjects.push(new Coin(1475, 225));
Mario.instObjects.push(new Coin(2400, 275));
Mario.instObjects.push(new Coin(2400, 250));
Mario.instObjects.push(new Coin(2400, 225));
Mario.instObjects.push(new Coin(2400, 200));
Mario.instObjects.push(new Coin(2275, 275));
Mario.instObjects.push(new Coin(2325, 275));
Mario.instObjects.push(new Coin(2325, 250));
Mario.instObjects.push(new Coin(2325, 225));
Mario.instObjects.push(new Coin(2325, 200));
Mario.instObjects.push(new Coin(3475, 300));
Mario.instObjects.push(new Coin(3475, 275));
Mario.instObjects.push(new Coin(3475, 250));
Mario.instObjects.push(new Coin(3475, 225));
Mario.instObjects.push(new Coin(3475, 200));
Mario.instObjects.push(new Coin(3475, 175));
Mario.instObjects.push(new Coin(3475, 150));
Mario.instObjects.push(new Coin(3475, 125));
Mario.instObjects.push(new Coin(3475, 100));
Mario.instObjects.push(new Coin(4025, 125));
Mario.instObjects.push(new Coin(4025, 150));
Mario.instObjects.push(new Coin(4025, 175));
Mario.instObjects.push(new Coin(3925, 125));
Mario.instObjects.push(new Coin(3925, 150));
Mario.instObjects.push(new Coin(3925, 175));
Mario.instObjects.push(new Coin(3825, 125));
Mario.instObjects.push(new Coin(3825, 150));
Mario.instObjects.push(new Coin(3825, 175));
Mario.instObjects.push(new Coin(3725, 125));
Mario.instObjects.push(new Coin(3725, 150));
Mario.instObjects.push(new Coin(3725, 175));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.439999998));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.129999995));
Mario.instEffects.push(new Cloud(5475, 75));
Mario.instEffects.push(new Cloud(5125, 100));
Mario.instEffects.push(new Cloud(4475, 75));
Mario.instEffects.push(new Cloud(3800, 0));
Mario.instEffects.push(new Cloud(3100, 25));
Mario.instEffects.push(new Cloud(2925, 100));
Mario.instEffects.push(new Cloud(2575, 25));
Mario.instEffects.push(new Cloud(2025, 125));
Mario.instEffects.push(new Cloud(1950, 0));
Mario.instEffects.push(new Cloud(1350, 0));
Mario.instEffects.push(new Cloud(325, 0));
Mario.instEffects.push(new Cloud(775, 300));
Mario.layerWall.addChild(AddGraphic(125, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(125, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(125, 325, "back_tree_1"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(5275, 325));
Mario.instEnemies.push(new PPlant(175, 200));
Mario.instEnemies.push(new PPlant(625, 125));
Mario.instEnemies.push(new PPlant(1125, 100));
Mario.instEnemies.push(new PPlant(1550, 125));
Mario.instEnemies.push(new PPlant(1750, 125));
Mario.instEnemies.push(new PPlant(2350, 50));
Mario.instEnemies.push(new PPlant(2775, 200));
Mario.instEnemies.push(new PPlant(3425, 50));
Mario.instEnemies.push(new PPlant(3325, 100));
Mario.instEnemies.push(new PPlant(4275, 75));
Mario.instEnemies.push(new PPlant(4750, 75));
Mario.instEnemies.push(new Goomba(400, 225));
Mario.instEnemies.push(new Goomba(450, 125));
Mario.instEnemies.push(new TroopaRed(725, 175));
Mario.instEnemies.push(new TroopaRed(975, 200));
Mario.instEnemies.push(new TroopaRed(1350, 325));
Mario.instEnemies.push(new TroopaRed(1925, 325));
Mario.instEnemies.push(new TroopaRed(2175, 325));
Mario.instEnemies.push(new TroopaRed(2575, 325));
Mario.instEnemies.push(new Goomba(2700, 200));
Mario.instEnemies.push(new Goomba(2950, 325));
Mario.instEnemies.push(new Goomba(3175, 325));
Mario.instEnemies.push(new Goomba(3250, 200));
Mario.instEnemies.push(new Goomba(3075, 325));
Mario.instEnemies.push(new Goomba(3525, 200));
Mario.instEnemies.push(new Goomba(4025, 200));
Mario.instEnemies.push(new Goomba(4225, 200));
Mario.instEnemies.push(new Goomba(4475, 325));
Mario.instEnemies.push(new Goomba(4600, 325));
Mario.instEnemies.push(new Goomba(4725, 175));
Mario.instEnemies.push(new Goomba(4800, 175));
Mario.instEnemies.push(new Goomba(4975, 200));
Mario.instEnemies.push(new Goomba(3825, 200));
Mario.instEnemies.push(new Goomba(3675, 325));
Mario.instEnemies.push(new Spiny(3975, 325));
Mario.instBlocks.push(new Bonus(950, 75, 1));
Mario.instBlocks.push(new Bonus(975, 75, 1));
Mario.instBlocks.push(new Bonus(1000, 75, 1));
Mario.instBlocks.push(new Bonus(1500, 250, 1));
Mario.instBlocks.push(new Bonus(1525, 250, 1));
Mario.instBlocks.push(new Bonus(1900, 250, 1));
Mario.instBlocks.push(new Bonus(1875, 250, 1));
Mario.instBlocks.push(new Bonus(1825, 250, 2));
break;
case 3:
Mario.generateBackground(0);
Mario.levelGenre = 0;
Mario.musika = 2;
Mario.level[0] = " 23 23 23 23 MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[1] = " 23 23 23 23 MM R MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[2] = " 23 23 23 23 MM R MM MMMMMMM ";
Mario.level[3] = " 01 23 23 23 23 MM R MM MMMMMM ";
Mario.level[4] = " 23 23 23 23 23 MM R MM MMMMM ";
Mario.level[5] = " 23 23 23 23 45 MM MMMMMMMMMMMMM R MM MMMMMMMMMMMMMMM MMMM ";
Mario.level[6] = " 23 23 23 23 MM MMMMMMMMMMMMM R MM M MMM ";
Mario.level[7] = " 23 45 23 23 MM MM R MM M MM ";
Mario.level[8] = " 23 23 23 MM MMMMMMMMMMMMMMMM MMMMM M MM ";
Mario.level[9] = " 23 23 23 MM MMMMMMMMMMMMMMMM MMMMM MMM MMMMMMMMM MMMMMMMMMMMMMMM ";
Mario.level[10] = " 23 23 23 M 01 M 01 M MM MMMMMMM MMMMMM MMM MMMMM MMMMMMMMM zzzzzz MM MM ";
Mario.level[11] = " 45 01 45 45 MM 23 MM 23 MM MM MMMMMMM MMMMMM MM MMMMM MMMMMMMMM MM MM ";
Mario.level[12] = " 23 MMM 23 MMM 23 MMM MM MMMMMM MM MM MM ";
Mario.level[13] = " 23 MMMM 23 MMMM 23 MMMM MM MMMMMM MM MM MM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cddddddddddddddddddddMM MMddddddddddddddddddddddddddddddddddddddddddddddddddddddd ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(25, 100, "back_clouds_8", 0.910000026));
Mario.instEffects.push(new Background(325, 0, "back_clouds_8", 0.910000026));
Mario.instEffects.push(new Background(1100, 0, "back_clouds_8", 0.770000041));
Mario.instEffects.push(new Background(5525, 0, "back_clouds_8", 0.790000021));
Mario.instEffects.push(new Background(950, 175, "back_forest_4", 0.959999979));
Mario.instEffects.push(new Background(0, 0, "back_hill_big", 0.710000038));
Mario.instEffects.push(new Background(775, 0, "back_hill_big", 0.800000012));
Mario.instEffects.push(new Background(1675, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(2725, 0, "back_hill_big", 0.639999986));
Mario.instEffects.push(new Background(5225, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(5850, 0, "back_hill", 0.610000014));
Mario.instEffects.push(new Background(5275, 0, "back_hill", 0.379999995));
Mario.instEffects.push(new Background(4750, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(3525, 0, "back_hill", 0.5));
Mario.instEffects.push(new Background(2100, 0, "back_hill", 0.350000024));
Mario.instEffects.push(new Background(1000, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(100, 0, "back_hill", 0.460000008));
Mario.instEffects.push(new Background(5575, 25, "back_clouds_4", 0.610000014));
Mario.instEffects.push(new Background(4600, 125, "back_clouds_4", 0.460000008));
Mario.instEffects.push(new Background(3900, 0, "back_clouds_4", 0.689999998));
Mario.instEffects.push(new Background(2875, 75, "back_clouds_4", 0.400000006));
Mario.instEffects.push(new Background(2550, 75, "back_clouds_1", 0.280000001));
Mario.instEffects.push(new Background(900, 0, "back_clouds_1", 0.230000004));
Mario.instEffects.push(new Background(225, 75, "back_clouds_1", 0.209999993));
Mario.instEffects.push(new Background(4325, 0, "back_hill_big_222", 0.569999986));
Mario.instEffects.push(new Background(3550, 0, "back_hill_big_222", 0.570000012));
Mario.instEffects.push(new Background(2850, 0, "back_hill_big_222", 0.580000033));
Mario.instEffects.push(new Background(2100, 0, "back_hill_big_222", 0.590000033));
Mario.instEffects.push(new Cloud(5625, 150));
Mario.instEffects.push(new Cloud(5450, 0));
Mario.instEffects.push(new Cloud(5125, 125));
Mario.instEffects.push(new Cloud(1875, 100));
Mario.instEffects.push(new Cloud(750, 50));
Mario.instObjects.push(new Coin(500, 275));
Mario.instObjects.push(new Coin(525, 275));
Mario.instObjects.push(new Coin(550, 275));
Mario.instObjects.push(new Coin(575, 275));
Mario.instObjects.push(new Coin(600, 275));
Mario.instObjects.push(new Coin(625, 275));
Mario.instObjects.push(new Coin(775, 275));
Mario.instObjects.push(new Coin(800, 275));
Mario.instObjects.push(new Coin(825, 275));
Mario.instObjects.push(new Coin(850, 275));
Mario.instObjects.push(new Coin(875, 275));
Mario.instObjects.push(new Coin(900, 275));
Mario.instObjects.push(new Coin(1475, 250));
Mario.instObjects.push(new Coin(1450, 250));
Mario.instObjects.push(new Coin(1425, 250));
Mario.instObjects.push(new Coin(1375, 275));
Mario.instObjects.push(new Coin(1375, 250));
Mario.instObjects.push(new Coin(1400, 250));
Mario.instObjects.push(new Coin(1400, 275));
Mario.instObjects.push(new Coin(1425, 275));
Mario.instObjects.push(new Coin(1450, 275));
Mario.instObjects.push(new Coin(1475, 275));
Mario.instObjects.push(new Coin(2300, 325));
Mario.instObjects.push(new Coin(2275, 325));
Mario.instObjects.push(new Coin(2250, 325));
Mario.instObjects.push(new Coin(2225, 325));
Mario.instObjects.push(new Coin(2200, 325));
Mario.instObjects.push(new Coin(2200, 300));
Mario.instObjects.push(new Coin(2225, 300));
Mario.instObjects.push(new Coin(2250, 300));
Mario.instObjects.push(new Coin(2275, 300));
Mario.instObjects.push(new Coin(2300, 300));
Mario.instObjects.push(new Coin(3100, 275));
Mario.instObjects.push(new Coin(3075, 275));
Mario.instObjects.push(new Coin(3050, 275));
Mario.instObjects.push(new Coin(3025, 275));
Mario.instObjects.push(new Coin(3000, 275));
Mario.instObjects.push(new Coin(2950, 125));
Mario.instObjects.push(new Coin(2975, 125));
Mario.instObjects.push(new Coin(3000, 125));
Mario.instObjects.push(new Coin(3025, 125));
Mario.instObjects.push(new Coin(3050, 125));
Mario.instObjects.push(new Coin(3725, 150));
Mario.instObjects.push(new Coin(3700, 150));
Mario.instObjects.push(new Coin(3675, 150));
Mario.instObjects.push(new Coin(3650, 150));
Mario.instObjects.push(new Coin(3625, 150));
Mario.instEffects.push(new Grass(925, 325, "r"));
Mario.instEffects.push(new Grass(900, 325, "m"));
Mario.instEffects.push(new Grass(875, 325, "m"));
Mario.instEffects.push(new Grass(850, 325, "m"));
Mario.instEffects.push(new Grass(825, 325, "m"));
Mario.instEffects.push(new Grass(800, 325, "m"));
Mario.instEffects.push(new Grass(775, 325, "m"));
Mario.instEffects.push(new Grass(750, 325, "l"));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.410000026));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.159999996));
Mario.instEffects.push(new Cloud(1475, 50));
Mario.instEffects.push(new Cloud(2650, 125));
Mario.instEffects.push(new Cloud(2350, 150));
Mario.instEffects.push(new Cloud(1100, 25));
Mario.instEffects.push(new Cloud(500, 100));
Mario.instEffects.push(new Cloud(100, 50));
Mario.layerWall.addChild(AddGraphic(125, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(125, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(125, 325, "back_tree_1"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(5275, 325));
Mario.instEnemies.push(new PPlant(250, 300, -1));
Mario.instEnemies.push(new PPlant(425, 200, -1));
Mario.instEnemies.push(new PPlant(675, 300, -1));
Mario.instEnemies.push(new PPlant(975, 300, -1));
Mario.instEnemies.push(new PPlant(1300, 150, -1));
Mario.instEnemies.push(new PPlant(2525, 175, -1));
Mario.instEnemies.push(new PPlant(3475, 300, -1));
Mario.instEnemies.push(new PPlant(2800, 100));
Mario.instEnemies.push(new PPlant(3150, 175));
Mario.instEnemies.push(new PPlant(1750, 225));
Mario.instEnemies.push(new TroopaRed(525, 325));
Mario.instEnemies.push(new TroopaRed(575, 325));
Mario.instEnemies.push(new FlyGreen(800, 275));
Mario.instEnemies.push(new FlyGreen(900, 225));
Mario.instEnemies.push(new FlyGreen(1200, 175));
Mario.instEnemies.push(new FlyGreen(1575, 175));
Mario.instEnemies.push(new Goomba(1850, 325));
Mario.instEnemies.push(new Goomba(1925, 325));
Mario.instEnemies.push(new Goomba(2050, 225));
Mario.instEnemies.push(new Goomba(2225, 225));
Mario.instEnemies.push(new Goomba(2300, 225));
Mario.instEnemies.push(new Goomba(2625, 100));
Mario.instEnemies.push(new Goomba(2700, 100));
Mario.instEnemies.push(new Goomba(2975, 325));
Mario.instEnemies.push(new Goomba(3175, 325));
Mario.instEnemies.push(new Goomba(3275, 325));
Mario.instEnemies.push(new FlyGreen(3900, 175));
Mario.instEnemies.push(new FlyGreen(2875, 300));
Mario.instEnemies.push(new FlyGreen(2275, 150));
Mario.instEnemies.push(new FlyGreen(4625, 75));
Mario.instEnemies.push(new FlyGreen(4700, 175));
Mario.instEnemies.push(new FlyGreen(4775, 300));
Mario.instEnemies.push(new FlyGreen(4475, 275));
Mario.instBlocks.push(new Bonus(225, 275, 2));
Mario.instBlocks.push(new Bonus(2675, 250, 1));
Mario.instBlocks.push(new Bonus(2925, 125, 1));
Mario.instBlocks.push(new Bonus(2950, 100, 1));
Mario.instBlocks.push(new Bonus(2975, 100, 1));
Mario.instBlocks.push(new Bonus(3000, 100, 1));
Mario.instBlocks.push(new Bonus(3025, 100, 1));
Mario.instBlocks.push(new Bonus(3050, 100, 1));
Mario.instBlocks.push(new Bonus(3075, 125, 1));
Mario.instBlocks.push(new Bonus(3375, 225, 1));
Mario.instBlocks.push(new Bonus(3400, 225, 1));
Mario.instEnemies.push(new FlyGreen(3450, 175));
Mario.instEnemies.push(new FlyGreen(3875, 325));
Mario.instObjects.push(new Mill(3250, 250, 120, 1));
Mario.instObjects.push(new Mill(3650, 225, 120, 1));
Mario.instObjects.push(new Mill(4150, 275, 120, 1));
Mario.instObjects.push(new Mill(4825, 250, 120, 1));
Mario.instObjects.push(new Mill(4500, 150, 120, 1));
break;
case 4:
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.generateBackground(0);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " cdde ";
Mario.level[5] = " fggh ";
Mario.level[6] = " fggh ";
Mario.level[7] = " fggh ";
Mario.level[8] = " M fggh ";
Mario.level[9] = " M fggh ";
Mario.level[10] = " M M fggh M M ";
Mario.level[11] = "ddddde cdddddde M cddddddddddde fggh cde M 01 M MM ";
Mario.level[12] = "gggggh fgggggghcddddddddde cdddddddefgggggggggggh fgghcddddddddddddddddddddddde cde fgh cdddde MM ";
Mario.level[13] = "gggggh fgggggghfggggggggghcdddddddddde cdddddefggggggghfgggggggggggh fgghfgggggggggggggggggggggggh fgh fgh cde fggggh cde cdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddde";
Mario.level[14] = "gggggh fgggggghfggggggggghfgggggggggghcddddddddddddddefggggghfggggggghfgggggggggggh fgghfgggggggggggggggggggggggh fgh fgh fgh fggggh fgh fggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggh";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(50, 225);
Mario.instEffects.push(new Background(325, 0, "back_clouds_8", 0.910000026));
Mario.instEffects.push(new Background(1100, 0, "back_clouds_8", 0.770000041));
Mario.instEffects.push(new Background(5525, 0, "back_clouds_8", 0.790000021));
Mario.instEffects.push(new Background(950, 175, "back_forest_4", 0.959999979));
Mario.instEffects.push(new Background(0, 0, "back_hill_big", 0.710000038));
Mario.instEffects.push(new Background(775, 0, "back_hill_big", 0.800000012));
Mario.instEffects.push(new Background(1675, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(2725, 0, "back_hill_big", 0.639999986));
Mario.instEffects.push(new Background(5225, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(5850, 0, "back_hill", 0.610000014));
Mario.instEffects.push(new Background(5275, 0, "back_hill", 0.379999995));
Mario.instEffects.push(new Background(4750, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(3525, 0, "back_hill", 0.5));
Mario.instEffects.push(new Background(2100, 0, "back_hill", 0.350000024));
Mario.instEffects.push(new Background(1000, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(100, 0, "back_hill", 0.460000008));
Mario.instEffects.push(new Background(5575, 25, "back_clouds_4", 0.610000014));
Mario.instEffects.push(new Background(4600, 125, "back_clouds_4", 0.460000008));
Mario.instEffects.push(new Background(3900, 0, "back_clouds_4", 0.689999998));
Mario.instEffects.push(new Background(2875, 75, "back_clouds_4", 0.400000006));
Mario.instEffects.push(new Background(2550, 75, "back_clouds_1", 0.280000001));
Mario.instEffects.push(new Background(900, 0, "back_clouds_1", 0.230000004));
Mario.instEffects.push(new Background(225, 75, "back_clouds_1", 0.209999993));
Mario.layerWall.addChild(AddGraphic(6050, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6025, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6000, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5975, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5950, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5925, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5900, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5875, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5850, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5825, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5800, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5775, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5750, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5725, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5700, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5675, 300, "back_fence_2"));
Mario.instEffects.push(new Cloud(5725, 50));
Mario.instEffects.push(new Cloud(5625, 150));
Mario.instEffects.push(new Cloud(5350, 75));
Mario.instEffects.push(new Cloud(5175, 150));
Mario.instEffects.push(new Cloud(4925, 50));
Mario.instEffects.push(new Cloud(4625, 125));
Mario.instEffects.push(new Cloud(4350, 75));
Mario.instEffects.push(new Cloud(4075, 175));
Mario.instEffects.push(new Cloud(3875, 25));
Mario.instEffects.push(new Cloud(3525, 100));
Mario.instEffects.push(new Cloud(3400, 200));
Mario.instEffects.push(new Cloud(3200, 50));
Mario.instEffects.push(new Cloud(2975, 125));
Mario.instEffects.push(new Cloud(2600, 50));
Mario.instEffects.push(new Cloud(2375, 175));
Mario.instEffects.push(new Cloud(2025, 75));
Mario.instEffects.push(new Cloud(1800, 125));
Mario.instEffects.push(new Cloud(1475, 25));
Mario.instEffects.push(new Cloud(1150, 125));
Mario.instEffects.push(new Cloud(725, 75));
Mario.instEffects.push(new Cloud(450, 125));
Mario.instEffects.push(new Cloud(75, 50));
Mario.layerWall.addChild(AddGraphic(5250, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(5100, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(4700, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(4225, 125, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3700, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(2825, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(1850, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(650, 175, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(600, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(250, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(250, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(650, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(650, 225, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(1850, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(1850, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(3700, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(4225, 150, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(4225, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(4225, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(5100, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(5250, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(4700, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(4225, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3700, 200, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(2825, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(1850, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(650, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(600, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(250, 200, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(1450, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(3650, 225, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(5550, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(5550, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5100, 300, "back_tree_1"));
Mario.instEffects.push(new Grass(5175, 300, "l"));
Mario.instEffects.push(new Grass(5425, 300, "l"));
Mario.instEffects.push(new Grass(5225, 300, "r"));
Mario.instEffects.push(new Grass(5500, 300, "r"));
Mario.layerWall.addChild(AddGraphic(5250, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5250, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4700, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4700, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4225, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4225, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4225, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3650, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3700, 225, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3700, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2825, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2825, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(1850, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(1450, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(950, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(650, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(600, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(250, 225, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(250, 250, "back_tree_1"));
Mario.instEffects.push(new Grass(0, 250, "l"));
Mario.instEffects.push(new Grass(750, 300, "l"));
Mario.instEffects.push(new Grass(1125, 325, "l"));
Mario.instEffects.push(new Grass(1450, 300, "l"));
Mario.instEffects.push(new Grass(1875, 250, "l"));
Mario.instEffects.push(new Grass(3025, 275, "l"));
Mario.instEffects.push(new Grass(3200, 275, "l"));
Mario.instEffects.push(new Grass(3500, 275, "l"));
Mario.instEffects.push(new Grass(4575, 300, "l"));
Mario.instEffects.push(new Grass(4725, 300, "l"));
Mario.instEffects.push(new Grass(4800, 300, "r"));
Mario.instEffects.push(new Grass(4625, 300, "r"));
Mario.instEffects.push(new Grass(3550, 275, "r"));
Mario.instEffects.push(new Grass(3275, 275, "r"));
Mario.instEffects.push(new Grass(3100, 275, "r"));
Mario.instEffects.push(new Grass(1950, 250, "r"));
Mario.instEffects.push(new Grass(1575, 300, "r"));
Mario.instEffects.push(new Grass(1175, 325, "r"));
Mario.instEffects.push(new Grass(800, 300, "r"));
Mario.instEffects.push(new Grass(50, 250, "r"));
Mario.instEffects.push(new Grass(25, 250, "m"));
Mario.instEffects.push(new Grass(775, 300, "m"));
Mario.instEffects.push(new Grass(1150, 325, "m"));
Mario.instEffects.push(new Grass(1475, 300, "m"));
Mario.instEffects.push(new Grass(1500, 300, "m"));
Mario.instEffects.push(new Grass(1525, 300, "m"));
Mario.instEffects.push(new Grass(1550, 300, "m"));
Mario.instEffects.push(new Grass(1925, 250, "m"));
Mario.instEffects.push(new Grass(1900, 250, "m"));
Mario.instEffects.push(new Grass(3050, 275, "m"));
Mario.instEffects.push(new Grass(3075, 275, "m"));
Mario.instEffects.push(new Grass(3225, 275, "m"));
Mario.instEffects.push(new Grass(3250, 275, "m"));
Mario.instEffects.push(new Grass(3525, 275, "m"));
Mario.instEffects.push(new Grass(4600, 300, "m"));
Mario.instEffects.push(new Grass(4750, 300, "m"));
Mario.instEffects.push(new Grass(4775, 300, "m"));
Mario.instEffects.push(new Grass(5200, 300, "m"));
Mario.instEffects.push(new Grass(5450, 300, "m"));
Mario.instEffects.push(new Grass(5475, 300, "m"));
Mario.layerWall.addChild(AddGraphic(5550, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(5275, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4850, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4400, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3775, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3325, 275, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2850, 275, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2675, 75, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2000, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1625, 275, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1225, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1025, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(825, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(475, 275, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(275, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(450, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(575, 275, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1000, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1100, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1775, 275, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2100, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2750, 75, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3000, 275, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3400, 275, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3875, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(4550, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5400, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5650, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5625, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5600, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5575, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5375, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5350, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5325, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5300, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5025, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5000, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4975, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4950, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4925, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4900, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4875, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4525, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4500, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4475, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4450, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4425, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3850, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3800, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3825, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3350, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3375, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2700, 75, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2725, 75, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2975, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2950, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2925, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2900, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2875, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2025, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2050, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2075, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1750, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1725, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1700, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1675, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1650, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1050, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1075, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1250, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1275, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1300, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1325, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1350, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1375, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1400, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(975, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(925, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(900, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(875, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(850, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(500, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(525, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(550, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(425, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(400, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(375, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(350, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(325, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(300, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(50, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(150, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(75, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(100, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(125, 250, "back_fence_2"));
Mario.instObjects.push(new Coin(4625, 200));
Mario.instObjects.push(new Coin(4550, 200));
Mario.instObjects.push(new Coin(3675, 200));
Mario.instObjects.push(new Coin(3225, 200));
Mario.instObjects.push(new Coin(3050, 200));
Mario.instObjects.push(new Coin(2275, 50));
Mario.instObjects.push(new Coin(2300, 50));
Mario.instObjects.push(new Coin(2325, 50));
Mario.instObjects.push(new Coin(2550, 325));
Mario.instObjects.push(new Coin(2525, 325));
Mario.instObjects.push(new Coin(2500, 325));
Mario.instObjects.push(new Coin(2550, 125));
Mario.instObjects.push(new Coin(2525, 125));
Mario.instObjects.push(new Coin(2500, 125));
Mario.instObjects.push(new Coin(2325, 225));
Mario.instObjects.push(new Coin(2300, 225));
Mario.instObjects.push(new Coin(2275, 225));
Mario.instObjects.push(new Coin(1950, 200));
Mario.instObjects.push(new Coin(2000, 200));
Mario.instObjects.push(new Coin(2050, 200));
Mario.instObjects.push(new Coin(1300, 175));
Mario.instObjects.push(new Coin(1125, 175));
Mario.instObjects.push(new Coin(700, 200));
Mario.instObjects.push(new Coin(375, 100));
Mario.instObjects.push(new Coin(300, 100));
Mario.instObjects.push(new ElevatorLoop(2275, 275, 75, "elevator_3", 1));
Mario.instObjects.push(new ElevatorLoop(2275, 100, 75, "elevator_3", 1));
Mario.instObjects.push(new ElevatorLoop(2500, 175, 75, "elevator_3", 1));
Mario.instObjects.push(new ElevatorLoop(2500, 0, 75, "elevator_3", 1));
Mario.instBlocks.push(new Brick(1200, 250));
Mario.instBlocks.push(new Brick(1225, 250));
Mario.instBlocks.push(new Brick(1275, 250));
Mario.instBlocks.push(new Brick(1150, 250));
Mario.instBlocks.push(new Brick(1125, 250));
Mario.instBlocks.push(new Brick(1675, 200));
Mario.instBlocks.push(new Brick(2125, 100));
Mario.instBlocks.push(new Brick(3175, 200));
Mario.instBlocks.push(new Brick(3150, 200));
Mario.instBlocks.push(new Brick(2925, 200));
Mario.instBlocks.push(new Brick(3325, 200));
Mario.instBlocks.push(new Brick(4075, 125));
Mario.instBlocks.push(new Brick(4475, 200));
Mario.instBlocks.push(new Brick(4500, 200));
Mario.instObjects.push(new Finish(5150, 300));
Mario.instBlocks.push(new Brick(4725, 200));
Mario.instBlocks.push(new Bonus(1175, 250, 1));
Mario.instBlocks.push(new Bonus(1250, 250, 1));
Mario.instBlocks.push(new Bonus(1325, 250, 1));
Mario.instBlocks.push(new Bonus(1100, 250, 1));
Mario.instBlocks.push(new Bonus(700, 150, 1));
Mario.instBlocks.push(new Bonus(300, 150, 1));
Mario.instBlocks.push(new Bonus(375, 150, 1));
Mario.instBlocks.push(new Bonus(1675, 100, 1));
Mario.instBlocks.push(new Bonus(2800, 200, 1));
Mario.instBlocks.push(new Bonus(3300, 200, 1));
Mario.instBlocks.push(new Bonus(3525, 200, 1));
Mario.instBlocks.push(new Bonus(4025, 125, 1));
Mario.instBlocks.push(new Bonus(3975, 125, 1));
Mario.instBlocks.push(new Bonus(4050, 125, 1));
Mario.instBlocks.push(new Bonus(4675, 200, 1));
Mario.instBlocks.push(new Bonus(4000, 125, 2));
Mario.instBlocks.push(new Bonus(2800, 100, 5));
Mario.instBlocks.push(new Bonus(2100, 200, 1, true));
Mario.instBlocks.push(new BrickMulti(1300, 250));
Mario.instBlocks.push(new BrickMulti(2950, 200));
Mario.instBlocks.push(new BrickMulti(3950, 125));
Mario.instEnemies.push(new FlyRed(175, 100));
Mario.instEnemies.push(new FlyGreen(625, 275));
Mario.instEnemies.push(new FlyGreen(1425, 300));
Mario.instEnemies.push(new FlyGreen(1600, 275));
Mario.instEnemies.push(new FlyGreen(1825, 250));
Mario.instEnemies.push(new Spiny(1250, 225));
Mario.instEnemies.push(new Spiny(1175, 225));
Mario.instEnemies.push(new Spiny(700, 125));
Mario.instEnemies.push(new Goomba(400, 250));
Mario.instEnemies.push(new Goomba(375, 250));
Mario.instEnemies.push(new Goomba(350, 250));
Mario.instEnemies.push(new PPlant(4000, 250));
Mario.instEnemies.push(new Goomba(1225, 325));
Mario.instEnemies.push(new Goomba(1200, 325));
Mario.instEnemies.push(new FlyGreen(2800, 75));
Mario.instEnemies.push(new Spiny(3125, 275));
Mario.instEnemies.push(new Spiny(3200, 275));
Mario.instEnemies.push(new TroopaRed(3675, 250));
Mario.instEnemies.push(new TroopaRed(4225, 300));
Mario.instEnemies.push(new TroopaRed(4675, 300));
Mario.instBlocks.push(new Brick(4700, 200));
Mario.instEnemies.push(new Spiny(4550, 300));
Mario.instEnemies.push(new Spiny(4800, 300));
Mario.instEnemies.push(new Spiny(4950, 300));
break;
case 5:
Mario.levelGenre = 0;
Mario.musika = 1;
Mario.generateBackground(0);
Mario.level[0] = " M M M M M M M M ";
Mario.level[1] = " M M M M M M M M ";
Mario.level[2] = " M M M M M M M M ";
Mario.level[3] = " MMMMMMMMMMMM MMMMMMMMMMM MMMMMMM MMMMMMMMMMM ";
Mario.level[4] = " ";
Mario.level[5] = " MMMM ";
Mario.level[6] = " M M M ";
Mario.level[7] = " M M MM ";
Mario.level[8] = " MMMM M M MMM ";
Mario.level[9] = " M M M M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[10] = "cddddddddddddddde MMMMMMMM MMMMMMMMMMM MMMMMMMMMMMMM MMMMMMMMMMMM MMMMMMMMMMM MMMMMMM M M M M M M ";
Mario.level[11] = "ggggggggggggggggh M M M M M M M M M M M M M M M M M M ";
Mario.level[12] = "ggggggggggggggggh M M M M M M M M M M M M M M M M MMMMMMMMMMM M M ";
Mario.level[13] = "ggggggggggggggggh M M M M M M M M M M M M M M M M M M M M ";
Mario.level[14] = "ggggggggggggggggh M M M M M M M M M M M M M M M M M M M M ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(0, 200, "back_hill_big", 0.800000012));
Mario.instEffects.push(new Background(325, 0, "back_clouds_8", 0.910000026));
Mario.instEffects.push(new Background(1100, 0, "back_clouds_8", 0.770000041));
Mario.instEffects.push(new Background(5525, 0, "back_clouds_8", 0.790000021));
Mario.instEffects.push(new Background(950, 175, "back_forest_4", 0.959999979));
Mario.instEffects.push(new Background(0, 0, "back_hill_big", 0.710000038));
Mario.instEffects.push(new Background(775, 0, "back_hill_big", 0.800000012));
Mario.instEffects.push(new Background(1675, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(2725, 0, "back_hill_big", 0.639999986));
Mario.instEffects.push(new Background(5225, 0, "back_hill_big", 0.600000024));
Mario.instEffects.push(new Background(5850, 0, "back_hill", 0.610000014));
Mario.instEffects.push(new Background(5275, 0, "back_hill", 0.379999995));
Mario.instEffects.push(new Background(4750, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(3525, 0, "back_hill", 0.5));
Mario.instEffects.push(new Background(2100, 0, "back_hill", 0.350000024));
Mario.instEffects.push(new Background(1000, 0, "back_hill", 0.360000014));
Mario.instEffects.push(new Background(100, 0, "back_hill", 0.460000008));
Mario.instEffects.push(new Background(5575, 25, "back_clouds_4", 0.610000014));
Mario.instEffects.push(new Background(4600, 125, "back_clouds_4", 0.460000008));
Mario.instEffects.push(new Background(3900, 0, "back_clouds_4", 0.689999998));
Mario.instEffects.push(new Background(2875, 75, "back_clouds_4", 0.400000006));
Mario.instEffects.push(new Background(2550, 75, "back_clouds_1", 0.280000001));
Mario.instEffects.push(new Background(900, 0, "back_clouds_1", 0.230000004));
Mario.instEffects.push(new Background(225, 75, "back_clouds_1", 0.209999993));
Mario.instEffects.push(new Background(5175, 0, "back_hill_big_222", 0.75999999));
Mario.instEffects.push(new Lantern(5275, 100));
Mario.instEffects.push(new Lantern(5200, 100));
Mario.instEffects.push(new Lantern(5075, 100));
Mario.instEffects.push(new Lantern(4475, 100));
Mario.instEffects.push(new Lantern(4200, 100));
Mario.instEffects.push(new Lantern(4025, 100));
Mario.instEffects.push(new Lantern(3600, 100));
Mario.instEffects.push(new Lantern(3700, 100));
Mario.instEffects.push(new Background(5775, 0, "back_hill_big_222", 0.739999986));
Mario.instEffects.push(new Background(4475, 0, "back_hill_big_222", 0.700000012));
Mario.instEffects.push(new Background(3850, 0, "back_hill_big_222", 0.760000033));
Mario.instEffects.push(new Background(3125, 0, "back_hill_big_222", 0.790000033));
Mario.instEffects.push(new Cloud(5400, 0));
Mario.instEffects.push(new Cloud(5625, 75));
Mario.instEffects.push(new Cloud(6000, 0));
Mario.instEffects.push(new Cloud(6000, 275));
Mario.instEffects.push(new Cloud(5625, 300));
Mario.instEffects.push(new Cloud(5450, 250));
Mario.instEffects.push(new Cloud(5050, 0));
Mario.instEffects.push(new Cloud(4575, 0));
Mario.instEffects.push(new Cloud(4000, 275));
Mario.instEffects.push(new Cloud(3575, 0));
Mario.instEffects.push(new Cloud(3375, 50));
Mario.instEffects.push(new Cloud(3250, 0));
Mario.instEffects.push(new Cloud(3050, 25));
Mario.instEffects.push(new Cloud(2000, 75));
Mario.instEffects.push(new Cloud(2700, 25));
Mario.instEffects.push(new Cloud(2450, 325));
Mario.instEffects.push(new Cloud(1650, 0));
Mario.instEffects.push(new Cloud(1500, 75));
Mario.instEffects.push(new Cloud(875, 50));
Mario.instEffects.push(new Cloud(325, 75));
Mario.instEffects.push(new Cloud(0, 25));
Mario.instObjects.push(new Coin(75, 150));
Mario.instObjects.push(new Coin(100, 150));
Mario.instObjects.push(new Coin(125, 150));
Mario.instObjects.push(new Coin(150, 150));
Mario.instObjects.push(new Coin(175, 150));
Mario.instObjects.push(new Coin(200, 150));
Mario.instObjects.push(new Coin(200, 125));
Mario.instObjects.push(new Coin(175, 125));
Mario.instObjects.push(new Coin(150, 125));
Mario.instObjects.push(new Coin(125, 125));
Mario.instObjects.push(new Coin(100, 125));
Mario.instObjects.push(new Coin(75, 125));
Mario.instObjects.push(new ElevatorLoop(500, 250, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(1150, 250, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(700, 325, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(1325, 350, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(1150, 50, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(500, 50, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(700, 150, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(1325, 150, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(1850, 250, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(1850, 100, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2050, 175, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2050, 25, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2050, 300, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2225, 100, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2225, 275, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2400, 175, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2575, 275, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2575, 100, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2700, 175, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2875, 50, 100, "elevator_4", 1));
Mario.instObjects.push(new ElevatorLoop(2875, 250, 100, "elevator_4", 1));
Mario.instObjects.push(new Finish(5900, 200));
Mario.instEnemies.push(new Spiny(5700, 175));
Mario.instEnemies.push(new Spiny(5625, 200));
Mario.instEnemies.push(new Spiny(5525, 200));
Mario.instEnemies.push(new FlyRed(1275, 175));
Mario.instEnemies.push(new FlyRed(2000, 175));
Mario.instEnemies.push(new FlyRed(2175, 175));
Mario.instEnemies.push(new FlyRed(2350, 75));
Mario.instEnemies.push(new FlyRed(2375, 275));
Mario.instEnemies.push(new FlyRed(2500, 75));
Mario.instEnemies.push(new FlyRed(2675, 225));
Mario.instEnemies.push(new FlyRed(2825, 100));
Mario.instEnemies.push(new FlyRed(2550, 225));
Mario.instEnemies.push(new FlyRed(2825, 250));
Mario.instEnemies.push(new FlyRed(2975, 175));
Mario.instEnemies.push(new FlyRed(3000, 275));
Mario.instEnemies.push(new FlyRed(3425, 250));
Mario.instEnemies.push(new FlyRed(3475, 175));
Mario.instEnemies.push(new FlyRed(3850, 150));
Mario.instEnemies.push(new FlyRed(3925, 250));
Mario.instEnemies.push(new FlyRed(3900, 175));
Mario.instEnemies.push(new FlyRed(4275, 250));
Mario.instEnemies.push(new FlyRed(4375, 175));
Mario.instEnemies.push(new FlyRed(4325, 150));
Mario.instEnemies.push(new FlyRed(4600, 225));
Mario.instEnemies.push(new FlyRed(4750, 150));
Mario.instEnemies.push(new FlyRed(4950, 175));
Mario.instEnemies.push(new FlyRed(4900, 250));
Mario.instEnemies.push(new FlyRed(5000, 275));
Mario.instEnemies.push(new FlyRed(5300, 250));
Mario.instEnemies.push(new FlyRed(5350, 200));
Mario.instEnemies.push(new FlyRed(5400, 150));
Mario.instEnemies.push(new TroopaRed(5075, 275));
Mario.instEnemies.push(new TroopaRed(5225, 275));
Mario.instEnemies.push(new TroopaRed(5150, 275));
Mario.instEnemies.push(new TroopaRed(4825, 100));
Mario.instEnemies.push(new TroopaRed(4500, 225));
Mario.instEnemies.push(new TroopaRed(4175, 225));
Mario.instEnemies.push(new TroopaRed(4100, 225));
Mario.instEnemies.push(new TroopaRed(3750, 225));
Mario.instEnemies.push(new TroopaRed(3625, 225));
Mario.instEnemies.push(new TroopaRed(3575, 225));
Mario.instEnemies.push(new TroopaRed(3075, 225));
Mario.instEnemies.push(new TroopaRed(3325, 225));
Mario.instEnemies.push(new TroopaRed(3200, 225));
Mario.instEnemies.push(new TroopaRed(1725, 225));
Mario.instEnemies.push(new TroopaRed(1550, 225));
Mario.instEnemies.push(new TroopaRed(1625, 225));
Mario.instEnemies.push(new TroopaRed(1025, 225));
Mario.instEnemies.push(new TroopaRed(925, 225));
Player.ResetPlayer(50, 225);
Mario.instBlocks.push(new Bonus(3225, 125, 2));
break;
case 6:
Mario.generateBackground(1);
Mario.levelGenre = 1;
Mario.musika = 2;
Mario.level[0] = " MMMMM MMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[1] = " MMMM MMMM M M ";
Mario.level[2] = " MMM MMM MM M M ";
Mario.level[3] = " MM MM MM MM M M ";
Mario.level[4] = " M M MM M M ";
Mario.level[5] = " M M ";
Mario.level[6] = " M MM MM M MMMMMMMMMMMMMM M T ";
Mario.level[7] = " MM MM MM M M M M M S M M M ";
Mario.level[8] = " MM M M M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[9] = " M M M MM MM M M M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[10] = " MM M MM MM MM MM M M M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[11] = " MMM MMM MM MMMMMMMMMMMMMM M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[12] = " MMMM M MMMM M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[13] = " MMMMM MMMMM M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[14] = "MMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(5825, 0, "back_hill_big_222", 0.820000052));
Mario.instEffects.push(new Background(5200, 0, "back_hill_big_222", 0.550000012));
Mario.instEffects.push(new Background(4550, 0, "back_hill_big_222", 0.689999998));
Mario.instEffects.push(new Background(3950, 0, "back_hill_big_222", 0.629999995));
Mario.instEffects.push(new Background(3350, 0, "back_hill_big_222", 0.670000017));
Mario.instEffects.push(new Background(2825, 0, "back_hill_big_222", 0.75999999));
Mario.instEffects.push(new Background(2100, 0, "back_hill_big_222", 0.639999986));
Mario.instEffects.push(new Background(1450, 0, "back_hill_big_222", 0.800000012));
Mario.instEffects.push(new Background(775, 0, "back_hill_big_222", 0.590000033));
Mario.instEffects.push(new Background(0, 0, "back_hill_big_222", 0.590000033));
Mario.instObjects.push(new Coin(4675, 100));
Mario.instObjects.push(new Coin(4650, 100));
Mario.instObjects.push(new Coin(4625, 100));
Mario.instObjects.push(new Coin(4600, 100));
Mario.instObjects.push(new Coin(4575, 100));
Mario.instObjects.push(new Coin(4550, 100));
Mario.instObjects.push(new Coin(4525, 100));
Mario.instObjects.push(new Coin(4500, 100));
Mario.instObjects.push(new Coin(4475, 100));
Mario.instObjects.push(new Coin(3875, 250));
Mario.instObjects.push(new Coin(3850, 250));
Mario.instObjects.push(new Coin(3825, 250));
Mario.instObjects.push(new Coin(3800, 250));
Mario.instObjects.push(new Coin(3775, 250));
Mario.instObjects.push(new Coin(3750, 250));
Mario.instObjects.push(new Coin(3725, 250));
Mario.instObjects.push(new Coin(3700, 250));
Mario.instObjects.push(new Coin(2825, 75));
Mario.instObjects.push(new Coin(2850, 75));
Mario.instObjects.push(new Coin(2875, 75));
Mario.instObjects.push(new Coin(2875, 100));
Mario.instObjects.push(new Coin(2850, 100));
Mario.instObjects.push(new Coin(2825, 100));
Mario.instObjects.push(new Coin(1475, 0));
Mario.instObjects.push(new Coin(1500, 0));
Mario.instObjects.push(new Coin(1550, 25));
Mario.instObjects.push(new Coin(1550, 0));
Mario.instObjects.push(new Coin(1525, 0));
Mario.instObjects.push(new Coin(1525, 25));
Mario.instObjects.push(new Coin(1500, 25));
Mario.instObjects.push(new Coin(1475, 25));
Mario.instObjects.push(new Coin(1475, 50));
Mario.instObjects.push(new Coin(1500, 50));
Mario.instObjects.push(new Coin(1525, 50));
Mario.instObjects.push(new Coin(1550, 50));
Mario.instObjects.push(new Coin(1550, 75));
Mario.instObjects.push(new Coin(1525, 75));
Mario.instObjects.push(new Coin(1500, 75));
Mario.instObjects.push(new Coin(1475, 75));
Mario.instObjects.push(new Coin(850, 175));
Mario.instObjects.push(new Coin(850, 200));
Mario.instObjects.push(new Coin(850, 225));
Mario.instObjects.push(new Coin(675, 225));
Mario.instObjects.push(new Coin(675, 250));
Mario.instObjects.push(new Coin(675, 275));
Mario.instObjects.push(new Coin(425, 150));
Mario.instObjects.push(new Coin(425, 175));
Mario.instObjects.push(new Coin(425, 200));
Mario.instObjects.push(new Coin(550, 75));
Mario.instObjects.push(new Coin(550, 100));
Mario.instObjects.push(new Coin(550, 125));
Mario.instEffects.push(new Lantern(2100, 25));
Mario.instEffects.push(new Lantern(2225, 175));
Mario.instEffects.push(new Lantern(2975, 25));
Mario.instEffects.push(new Lantern(3525, 25));
Mario.instEffects.push(new Lantern(5400, 25));
Mario.instEffects.push(new Lantern(5125, 25));
Mario.instEffects.push(new Lantern(4775, 25));
Mario.instEffects.push(new Lantern(4575, 25));
Mario.instEffects.push(new Lantern(3950, 25));
Mario.instEffects.push(new Lantern(3375, 25));
Mario.instEffects.push(new Lantern(2850, 25));
Mario.instEffects.push(new Lantern(2575, 275));
Mario.instEffects.push(new Lantern(2200, 25));
Mario.instEffects.push(new Lantern(1925, 125));
Mario.instEffects.push(new Lantern(1825, 225));
Mario.instEffects.push(new Lantern(1650, 300));
Mario.instEffects.push(new Lantern(1325, 100));
Mario.instEffects.push(new Lantern(925, 125));
Mario.instEffects.push(new Lantern(550, 175));
Mario.instEffects.push(new Lantern(425, 250));
Mario.instEffects.push(new Lantern(300, 125));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(5275, 325));
Mario.instObjects.push(new Lava(325, 350));
Mario.instObjects.push(new Lava(350, 350));
Mario.instObjects.push(new Lava(375, 350));
Mario.instObjects.push(new Lava(400, 350));
Mario.instObjects.push(new Lava(425, 350));
Mario.instObjects.push(new Lava(450, 350));
Mario.instObjects.push(new Lava(475, 350));
Mario.instObjects.push(new Lava(500, 350));
Mario.instObjects.push(new Lava(525, 350));
Mario.instObjects.push(new Lava(550, 350));
Mario.instObjects.push(new Lava(575, 350));
Mario.instObjects.push(new Lava(600, 350));
Mario.instObjects.push(new Lava(625, 350));
Mario.instObjects.push(new Lava(650, 350));
Mario.instObjects.push(new Lava(675, 350));
Mario.instObjects.push(new Lava(700, 350));
Mario.instObjects.push(new Lava(725, 350));
Mario.instObjects.push(new Lava(750, 350));
Mario.instObjects.push(new Lava(775, 350));
Mario.instObjects.push(new Lava(800, 350));
Mario.instObjects.push(new Lava(825, 350));
Mario.instObjects.push(new Lava(850, 350));
Mario.instObjects.push(new Lava(875, 350));
Mario.instObjects.push(new Lava(900, 350));
Mario.instEnemies.push(new PPlant(175, 325));
Mario.instEnemies.push(new PPlant(275, 225));
Mario.instEnemies.push(new PPlant(1050, 325));
Mario.instEnemies.push(new PPlant(1175, 325));
Mario.instEnemies.push(new PPlant(1300, 325));
Mario.instEnemies.push(new PPlant(1275, 200, -1));
Mario.instEnemies.push(new PPlant(1275, 125));
Mario.instEnemies.push(new PPlant(1300, 25));
Mario.instEnemies.push(new PPlant(1400, 200));
Mario.instEnemies.push(new PPlant(1550, 125));
Mario.instEnemies.push(new PPlant(1775, 325));
Mario.instEnemies.push(new PPlant(2000, 325));
Mario.instEnemies.push(new FlyRed(1725, 125));
Mario.instEnemies.push(new TroopaRed(2325, 250));
Mario.instEnemies.push(new TroopaRed(2250, 250));
Mario.instEnemies.push(new TroopaRed(2175, 250));
Mario.instEnemies.push(new TroopaRed(2175, 125));
Mario.instEnemies.push(new TroopaRed(2275, 125));
Mario.instEnemies.push(new TroopaRed(2425, 125));
Mario.instEnemies.push(new Goomba(2125, 325));
Mario.instEnemies.push(new Goomba(2250, 325));
Mario.instEnemies.push(new Goomba(2575, 325));
Mario.instEnemies.push(new TroopaRed(2800, 175));
Mario.instEnemies.push(new TroopaRed(2850, 175));
Mario.instEnemies.push(new TroopaRed(2900, 175));
Mario.instEnemies.push(new TroopaRed(3725, 325));
Mario.instEnemies.push(new TroopaRed(3775, 325));
Mario.instEnemies.push(new TroopaRed(3825, 325));
Mario.instEnemies.push(new TroopaRed(4125, 175));
Mario.instEnemies.push(new TroopaRed(4225, 175));
Mario.instEnemies.push(new TroopaRed(4300, 175));
Mario.instEnemies.push(new Spiny(3150, 175));
Mario.instEnemies.push(new Spiny(3275, 175));
Mario.instEnemies.push(new Spiny(3350, 175));
Mario.instEnemies.push(new Spiny(4425, 175));
Mario.instEnemies.push(new Spiny(4525, 175));
Mario.instEnemies.push(new Spiny(4650, 175));
Mario.instEnemies.push(new Spiny(4875, 175));
Mario.instEnemies.push(new TroopaGreen(4775, 150));
Mario.instObjects.push(new Cannon(3500, 150));
Mario.instBlocks.push(new Bonus(0, 225, 1));
Mario.instBlocks.push(new Bonus(25, 225, 1));
Mario.instBlocks.push(new Bonus(50, 225, 1));
Mario.instBlocks.push(new Bonus(550, 0, 1));
Mario.instBlocks.push(new Bonus(1175, 250, 1));
Mario.instBlocks.push(new Bonus(1525, 175, 1));
Mario.instBlocks.push(new Bonus(1600, 175, 1));
Mario.instBlocks.push(new Bonus(1850, 200, 1));
Mario.instBlocks.push(new Bonus(2025, 275, 1));
Mario.instEnemies.push(new PStatic(1900, 50));
Mario.instEnemies.push(new PStatic(1925, 50));
Mario.instObjects.push(new Mill(2075, 250, 120, 1));
Mario.instObjects.push(new Mill(2425, 175, 120, 1));
Mario.instObjects.push(new Mill(2550, 25, 120, 1));
Mario.instObjects.push(new Mill(1675, 225, 120, 1));
break;
case 7:
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " ";
Mario.level[7] = " ";
Mario.level[8] = " ";
Mario.level[9] = " ";
Mario.level[10] = " ";
Mario.level[11] = "dddddddddddddddddddddddddddddddd";
Mario.level[12] = "gggggggggggggggggggggggggggggggg";
Mario.level[13] = "gggggggggggggggggggggggggggggggg";
Mario.level[14] = "gggggggggggggggggggggggggggggggg";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(0, 0);
Mario.playerControllable = false;
Player.GFX2.alpha = 0;
Mario.Hud.GFX.alpha = 0;
Mario.instEffects.push(new Cloud(375, 0));
Mario.instEffects.push(new Cloud(325, 75));
Mario.instEffects.push(new Cloud(150, 25));
Mario.instEffects.push(new Cloud(25, 50));
Mario.layerWall.addChild(AddGraphic(200, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(100, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(250, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(275, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(300, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(325, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(350, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(375, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(175, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(150, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(125, 250, "back_fence_2"));
Mario.instEffects.push(new Grass(250, 250, "r"));
Mario.instEffects.push(new Grass(225, 250, "m"));
Mario.instEffects.push(new Grass(200, 250, "l"));
Mario.instEffects.push(new Grass(100, 250, "r"));
Mario.instEffects.push(new Grass(75, 250, "m"));
Mario.instEffects.push(new Grass(50, 250, "m"));
Mario.instEffects.push(new Grass(25, 250, "l"));
Mario.layerWall.addChild(AddGraphic(375, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(375, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(375, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(375, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(375, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(300, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(300, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(300, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(25, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(25, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(25, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(25, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(25, 250, "back_tree_1"));
Mario.instObjects.push(new GameEnd());
Mario.musika = 13;
break;
case 8:
Mario.generateBackground(1);
Mario.levelGenre = 1;
Mario.musika = 1;
Mario.instObjects.push(new GameEnd());
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " ";
Mario.level[7] = " ";
Mario.level[8] = " ";
Mario.level[9] = " ";
Mario.level[10] = " ";
Mario.level[11] = "MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[12] = " ";
Mario.level[13] = " ";
Mario.level[14] = " ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(75, 225);
Mario.instObjects.push(new Finish(2350, 250));
Mario.instEffects.push(new Back(1));
break;
case 9:
Mario.levelGenre = 2;
Mario.musika = 0;
Mario.generateBackground(1);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " M M ";
Mario.level[7] = " M M ";
Mario.level[8] = " M M ";
Mario.level[9] = " 01 M M ";
Mario.level[10] = " M MM 23 M M ";
Mario.level[11] = " M 01 23 M M M M M M M M M M M M M M ";
Mario.level[12] = " M 23 23 M M MM M M M M M M M M M M ";
Mario.level[13] = " M 23 23 M M 01 MM M M M M M M M M M M ";
Mario.level[14] = "xxxxxxxy wxxxxxxxxxxxy wy wxxxxxxxxxxxxy wxxxxxxxxxy wxxxxxxy wxy wy wxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy wy wxy wxy wxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy M M M M M M M M M M M M M M wxy wxxxxxxxxxxxxxxxxxxxxxxxxx";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(75, 250);
Mario.instEffects.push(new Cloud(8400, 50));
Mario.instEffects.push(new Cloud(8175, 100));
Mario.instEffects.push(new Cloud(8050, 175));
Mario.instEffects.push(new Cloud(7925, 0));
Mario.instEffects.push(new Cloud(7675, 125));
Mario.instEffects.push(new Cloud(7550, 50));
Mario.instEffects.push(new Cloud(7325, 150));
Mario.instEffects.push(new Cloud(7200, 75));
Mario.instEffects.push(new Cloud(6975, 150));
Mario.instEffects.push(new Cloud(6725, 25));
Mario.instEffects.push(new Cloud(6375, 100));
Mario.instEffects.push(new Cloud(6150, 150));
Mario.instEffects.push(new Cloud(5950, 25));
Mario.instEffects.push(new Cloud(5650, 100));
Mario.instEffects.push(new Cloud(5400, 125));
Mario.instEffects.push(new Cloud(5100, 25));
Mario.instEffects.push(new Cloud(4850, 100));
Mario.instEffects.push(new Cloud(4500, 175));
Mario.instEffects.push(new Cloud(4350, 50));
Mario.instEffects.push(new Cloud(4100, 100));
Mario.instEffects.push(new Cloud(3950, 175));
Mario.instEffects.push(new Cloud(3725, 50));
Mario.instEffects.push(new Cloud(3575, 150));
Mario.instEffects.push(new Cloud(3350, 25));
Mario.instEffects.push(new Cloud(3100, 150));
Mario.instEffects.push(new Cloud(3000, 25));
Mario.instEffects.push(new Cloud(2800, 75));
Mario.instEffects.push(new Cloud(2600, 175));
Mario.instEffects.push(new Cloud(2325, 50));
Mario.instEffects.push(new Cloud(1950, 150));
Mario.instEffects.push(new Cloud(1775, 50));
Mario.instEffects.push(new Cloud(1450, 100));
Mario.instEffects.push(new Cloud(1175, 50));
Mario.instEffects.push(new Cloud(900, 125));
Mario.instEffects.push(new Cloud(675, 200));
Mario.instEffects.push(new Cloud(350, 75));
Mario.layerWall.addChild(AddGraphic(8275, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(8425, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(8400, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8375, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8350, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8325, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8300, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(8275, 325, "r"));
Mario.instEffects.push(new Grass(8250, 325, "m"));
Mario.instEffects.push(new Grass(8225, 325, "m"));
Mario.instEffects.push(new Grass(8200, 325, "l"));
Mario.layerWall.addChild(AddGraphic(7850, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(7850, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(7900, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(8175, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(8150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8100, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8075, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8050, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7975, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7950, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7925, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7625, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7600, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(7675, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(7650, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(6850, 325, "r"));
Mario.instEffects.push(new Grass(6825, 325, "m"));
Mario.instEffects.push(new Grass(6800, 325, "m"));
Mario.instEffects.push(new Grass(6775, 325, "m"));
Mario.instEffects.push(new Grass(6750, 325, "l"));
Mario.layerWall.addChild(AddGraphic(6725, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(6725, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6725, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6700, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(6700, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6700, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6700, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(6700, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6525, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(6625, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6600, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6575, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6550, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(6475, 325, "r"));
Mario.instEffects.push(new Grass(6450, 325, "m"));
Mario.instEffects.push(new Grass(0x1919, 325, "m"));
Mario.instEffects.push(new Grass(0x1900, 325, "m"));
Mario.instEffects.push(new Grass(6375, 325, "m"));
Mario.instEffects.push(new Grass(6350, 325, "l"));
Mario.layerWall.addChild(AddGraphic(6300, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6275, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6050, 125, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(6050, 150, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6050, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6050, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6050, 225, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6050, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(6050, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6050, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6050, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5975, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(6000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5925, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5900, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5850, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5825, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5775, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5750, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5700, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5675, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(5600, 325, "r"));
Mario.instEffects.push(new Grass(5575, 325, "m"));
Mario.instEffects.push(new Grass(5550, 325, "m"));
Mario.instEffects.push(new Grass(5525, 325, "m"));
Mario.instEffects.push(new Grass(5500, 325, "m"));
Mario.instEffects.push(new Grass(5475, 325, "l"));
Mario.layerWall.addChild(AddGraphic(5100, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(5100, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(5100, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(5100, 325, "back_tree_1"));
Mario.instEffects.push(new Grass(5350, 325, "r"));
Mario.instEffects.push(new Grass(5325, 325, "m"));
Mario.instEffects.push(new Grass(5300, 325, "m"));
Mario.instEffects.push(new Grass(5275, 325, "l"));
Mario.layerWall.addChild(AddGraphic(5225, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5200, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5175, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5125, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(5050, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4975, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4950, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4925, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4900, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4875, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4850, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4600, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(4600, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(4600, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4625, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4775, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4750, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4725, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4700, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4675, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4650, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(4425, 325, "r"));
Mario.instEffects.push(new Grass(4400, 325, "m"));
Mario.instEffects.push(new Grass(4375, 325, "l"));
Mario.layerWall.addChild(AddGraphic(4225, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(4225, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3950, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4025, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3975, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3675, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3750, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3725, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3700, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3750, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3750, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3750, 325, "back_tree_1"));
Mario.instEffects.push(new Grass(3650, 325, "r"));
Mario.instEffects.push(new Grass(3600, 325, "m"));
Mario.instEffects.push(new Grass(3625, 325, "m"));
Mario.instEffects.push(new Grass(3575, 325, "l"));
Mario.layerWall.addChild(AddGraphic(3450, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(3450, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3075, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3000, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3400, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3375, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3350, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3325, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3300, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3275, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3050, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(3125, 325, "l"));
Mario.instEffects.push(new Grass(3175, 325, "r"));
Mario.instEffects.push(new Grass(3150, 325, "m"));
Mario.layerWall.addChild(AddGraphic(3200, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3200, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3200, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(3100, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3100, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3100, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(3100, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(3100, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2825, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(2850, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(2850, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2825, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2825, 325, "back_tree_1"));
Mario.instEffects.push(new Grass(2650, 325, "r"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "l"));
Mario.instEffects.push(new Grass(2425, 325, "r"));
Mario.instEffects.push(new Grass(2400, 325, "m"));
Mario.instEffects.push(new Grass(2375, 325, "m"));
Mario.instEffects.push(new Grass(2350, 325, "l"));
Mario.layerWall.addChild(AddGraphic(1800, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1875, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1850, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1825, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(1900, 325, "l"));
Mario.instEffects.push(new Grass(2000, 325, "r"));
Mario.instEffects.push(new Grass(1975, 325, "m"));
Mario.instEffects.push(new Grass(1950, 325, "m"));
Mario.instEffects.push(new Grass(1925, 325, "m"));
Mario.instObjects.push(new Coin(750, 250));
Mario.instObjects.push(new Coin(725, 250));
Mario.instObjects.push(new Coin(1550, 175));
Mario.instObjects.push(new Coin(1575, 175));
Mario.instObjects.push(new Coin(1350, 175));
Mario.instObjects.push(new Coin(1300, 175));
Mario.instObjects.push(new Coin(1250, 175));
Mario.instObjects.push(new Coin(3375, 250));
Mario.instObjects.push(new Coin(3400, 250));
Mario.instObjects.push(new Coin(3400, 225));
Mario.instObjects.push(new Coin(3375, 225));
Mario.instObjects.push(new Coin(3425, 75));
Mario.instObjects.push(new Coin(3350, 75));
Mario.instObjects.push(new Coin(3250, 75));
Mario.instObjects.push(new Coin(3250, 100));
Mario.instObjects.push(new Coin(3350, 50));
Mario.instObjects.push(new Coin(3425, 50));
Mario.instObjects.push(new Coin(3525, 100));
Mario.instObjects.push(new Coin(3525, 75));
Mario.instObjects.push(new Coin(4400, 250));
Mario.instObjects.push(new Coin(4200, 250));
Mario.instObjects.push(new Coin(4000, 250));
Mario.instObjects.push(new Coin(3975, 250));
Mario.instObjects.push(new Coin(5200, 200));
Mario.instObjects.push(new Coin(5100, 200));
Mario.instObjects.push(new Coin(5000, 200));
Mario.instObjects.push(new Coin(7550, 275));
Mario.instObjects.push(new Coin(7500, 275));
Mario.instObjects.push(new Coin(7450, 275));
Mario.instObjects.push(new Coin(7400, 275));
Mario.instObjects.push(new Coin(7350, 275));
Mario.instObjects.push(new Coin(7300, 275));
Mario.instObjects.push(new Coin(7250, 275));
Mario.instObjects.push(new Coin(7200, 275));
Mario.instObjects.push(new Coin(7150, 275));
Mario.instObjects.push(new Coin(7100, 275));
Mario.instObjects.push(new Coin(7050, 275));
Mario.instObjects.push(new Coin(7000, 275));
Mario.instObjects.push(new Coin(6950, 275));
Mario.instObjects.push(new Coin(6900, 275));
Mario.instObjects.push(new Coin(6300, 325));
Mario.instObjects.push(new Coin(6275, 325));
Mario.instObjects.push(new Coin(6200, 325));
Mario.instObjects.push(new Coin(6225, 325));
Mario.instObjects.push(new Coin(6125, 325));
Mario.instObjects.push(new Coin(6150, 325));
Mario.instObjects.push(new Coin(6075, 325));
Mario.instObjects.push(new Coin(6050, 325));
Mario.instObjects.push(new Coin(6000, 325));
Mario.instObjects.push(new Coin(5975, 325));
Mario.instObjects.push(new Coin(5900, 325));
Mario.instObjects.push(new Coin(5925, 325));
Mario.instObjects.push(new Coin(5850, 325));
Mario.instObjects.push(new Coin(5825, 325));
Mario.instObjects.push(new Coin(5775, 325));
Mario.instObjects.push(new Coin(5750, 325));
Mario.instObjects.push(new Coin(5675, 325));
Mario.instObjects.push(new Coin(5700, 325));
Mario.layerWall.addChild(AddGraphic(175, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(175, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(175, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(725, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(775, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(750, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(125, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(100, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(75, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(50, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(25, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(0, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(325, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(325, 325, "back_tree_1"));
Mario.instEffects.push(new Grass(425, 325, "l"));
Mario.instEffects.push(new Grass(500, 325, "r"));
Mario.instEffects.push(new Grass(475, 325, "m"));
Mario.instEffects.push(new Grass(450, 325, "m"));
Mario.layerWall.addChild(AddGraphic(925, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(950, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(975, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1050, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1075, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1100, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1175, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1200, 325, "back_fence_2"));
Mario.instBlocks.push(new Bonus(1250, 250, 0));
Mario.instBlocks.push(new Bonus(1275, 250, 0));
Mario.instBlocks.push(new Bonus(1300, 250, 0));
Mario.instBlocks.push(new Bonus(1325, 250, 0));
Mario.instBlocks.push(new Bonus(1350, 250, 0));
Mario.instBlocks.push(new Bonus(1375, 250, 0));
Mario.instEnemies.push(new Lakitu(225, 50));
Mario.instEnemies.push(new PFlame(2250, 200));
Mario.instEnemies.push(new PPlant(2050, 250));
Mario.instEnemies.push(new PFlame(4800, 300));
Mario.instObjects.push(new Finish(7900, 325));
Mario.instBlocks.push(new Bonus(7875, 250, 0));
Mario.instBlocks.push(new BrickMulti(3350, 100));
Mario.instBlocks.push(new BrickMulti(3425, 100));
Mario.instBlocks.push(new Bonus(3400, 200, 3, true));
Mario.instBlocks.push(new Bonus(3375, 200, 5, true));
Mario.instBlocks.push(new Brick(2050, 175));
Mario.instBlocks.push(new Bonus(1850, 250, 1));
Mario.instBlocks.push(new Bonus(5000, 250, 1));
Mario.instBlocks.push(new Bonus(5100, 250, 1));
Mario.instBlocks.push(new Bonus(5200, 250, 1));
Mario.instBlocks.push(new Brick(5025, 250));
Mario.instBlocks.push(new Brick(4975, 250));
Mario.instBlocks.push(new Brick(5075, 250));
Mario.instBlocks.push(new Brick(5175, 250));
Mario.instBlocks.push(new Brick(5225, 250));
Mario.instBlocks.push(new BrickMulti(5125, 250));
Mario.instEnemies.push(new FlyGreen(6750, 325));
Mario.instEnemies.push(new BBeetle(5100, 325));
Mario.instEnemies.push(new Goomba(5150, 325));
Mario.instEnemies.push(new Goomba(5050, 325));
Mario.instEnemies.push(new Goomba(3175, 325));
Mario.instEffects.push(new Back(5));
break;
case 10:
Mario.levelGenre = 2;
Mario.musika = 0;
Mario.generateBackground(1);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " 23 ";
Mario.level[4] = " 23 ";
Mario.level[5] = " 23 ";
Mario.level[6] = " 23 01 ";
Mario.level[7] = " 23 23 ";
Mario.level[8] = " S S S 23 23 ";
Mario.level[9] = " S R S R S S R 23 23 ";
Mario.level[10] = " MQQQQM MQQQQQQQQQQQQQM M MQQQQM MQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQM MQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQM 23 ";
Mario.level[11] = " 23 ";
Mario.level[12] = " 23 ";
Mario.level[13] = " 23 ";
Mario.level[14] = " wxxxxxxxxxxxxxxxxxxxxxxxy M wxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxy";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(5800, 175));
Mario.instObjects.push(new Coin(5800, 200));
Mario.instObjects.push(new Coin(5225, 225));
Mario.instObjects.push(new Coin(5225, 200));
Mario.instObjects.push(new Coin(5225, 300));
Mario.instObjects.push(new Coin(5225, 275));
Mario.instObjects.push(new Coin(5225, 250));
Mario.instObjects.push(new Coin(4900, 25));
Mario.instObjects.push(new Coin(4925, 25));
Mario.instObjects.push(new Coin(5075, 200));
Mario.instObjects.push(new Coin(5025, 200));
Mario.instObjects.push(new Coin(4225, 225));
Mario.instObjects.push(new Coin(4175, 225));
Mario.instObjects.push(new Coin(3775, 225));
Mario.instObjects.push(new Coin(3475, 225));
Mario.instObjects.push(new Coin(3525, 225));
Mario.instObjects.push(new Coin(3725, 225));
Mario.instObjects.push(new Coin(3150, 225));
Mario.instObjects.push(new Coin(3100, 225));
Mario.instObjects.push(new Coin(2825, 225));
Mario.instObjects.push(new Coin(2775, 225));
Mario.instObjects.push(new Coin(2450, 225));
Mario.instObjects.push(new Coin(2400, 225));
Mario.instObjects.push(new Coin(2150, 225));
Mario.instObjects.push(new Coin(2100, 225));
Mario.instObjects.push(new Coin(1825, 225));
Mario.instObjects.push(new Coin(1775, 225));
Mario.instObjects.push(new Coin(1525, 225));
Mario.instObjects.push(new Coin(1500, 225));
Mario.instObjects.push(new Coin(1250, 225));
Mario.instObjects.push(new Coin(850, 100));
Mario.instObjects.push(new Coin(850, 125));
Mario.instObjects.push(new Coin(600, 225));
Mario.instObjects.push(new Coin(550, 225));
Mario.layerWall.addChild(AddGraphic(6225, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(6225, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(6225, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(6225, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5875, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(6200, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6175, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6150, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6100, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6075, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6050, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5975, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5950, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5925, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5900, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5750, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(5825, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5800, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5775, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5075, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(5075, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(5075, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4875, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(5000, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(4975, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4950, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4925, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4900, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(5325, 325, "r"));
Mario.instEffects.push(new Grass(5300, 325, "m"));
Mario.instEffects.push(new Grass(5275, 325, "l"));
Mario.layerWall.addChild(AddGraphic(4725, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4800, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(4750, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4775, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5125, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(5125, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4850, 275, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(4850, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(4850, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(4850, 325, "back_tree_1"));
Player.ResetPlayer(125, 200);
Mario.instObjects.push(new Cannon(575, 200));
Mario.instObjects.push(new Cannon(850, 175));
Mario.instObjects.push(new Cannon(1225, 200));
Mario.instObjects.push(new Cannon(1800, 175));
Mario.instObjects.push(new Cannon(2125, 225));
Mario.instObjects.push(new Cannon(2425, 200));
Mario.instObjects.push(new Cannon(2800, 225));
Mario.instObjects.push(new Cannon(3125, 200));
Mario.instObjects.push(new Cannon(3500, 225));
Mario.instObjects.push(new Cannon(3750, 175));
Mario.instObjects.push(new Cannon(4200, 225));
Mario.instEnemies.push(new Spiny(1325, 225));
Mario.instEnemies.push(new Spiny(1375, 225));
Mario.instEnemies.push(new Spiny(1425, 225));
Mario.instEnemies.push(new Spiny(1600, 225));
Mario.instEnemies.push(new Spiny(1650, 225));
Mario.instEnemies.push(new Spiny(1700, 225));
Mario.instEnemies.push(new Spiny(2000, 225));
Mario.instEnemies.push(new Spiny(1950, 225));
Mario.instEnemies.push(new Spiny(2350, 225));
Mario.instEnemies.push(new Spiny(2300, 225));
Mario.instEnemies.push(new Spiny(2550, 225));
Mario.instEnemies.push(new Spiny(2600, 225));
Mario.instEnemies.push(new Spiny(3250, 225));
Mario.instEnemies.push(new Spiny(3300, 225));
Mario.instEnemies.push(new Spiny(3650, 225));
Mario.instEnemies.push(new Spiny(4025, 225));
Mario.instEnemies.push(new Spiny(3975, 225));
Mario.instEnemies.push(new FlyRed(3025, 100));
Mario.instEnemies.push(new FlyRed(1150, 75));
Mario.instEnemies.push(new FlyRed(900, 200));
Mario.instEnemies.push(new FlyRed(800, 125));
Mario.instEnemies.push(new FlyRed(350, 175));
Mario.instEnemies.push(new FlyRed(300, 225));
Mario.instEnemies.push(new FlyRed(250, 100));
Mario.instEnemies.push(new HammerTroopa(5050, 325));
Mario.instBlocks.push(new Brick(5000, 250));
Mario.instBlocks.push(new Brick(5025, 250));
Mario.instBlocks.push(new Brick(5050, 250));
Mario.instBlocks.push(new Brick(5075, 250));
Mario.instBlocks.push(new Brick(5025, 150));
Mario.instBlocks.push(new Brick(5050, 150));
Mario.instBlocks.push(new Brick(5100, 150));
Mario.instBlocks.push(new Bonus(5100, 250, 0));
Mario.instBlocks.push(new Bonus(5000, 150, 0));
Mario.instBlocks.push(new Bonus(5125, 150, 0));
Mario.instBlocks.push(new Bonus(5150, 150, 0));
Mario.instBlocks.push(new Bonus(4975, 250, 0));
Mario.instBlocks.push(new Bonus(4950, 250, 0));
Mario.instBlocks.push(new Bonus(4925, 50, 0));
Mario.instBlocks.push(new Bonus(4900, 50, 0));
Mario.instBlocks.push(new Bonus(4925, 250, 0));
Mario.instBlocks.push(new Bonus(4900, 250, 0));
Mario.instBlocks.push(new BrickMulti(5075, 150));
Mario.instBlocks.push(new Bonus(4875, 250, 2, true));
Mario.instBlocks.push(new Bonus(4875, 125, 4, true));
Mario.instObjects.push(new Finish(5850, 325));
Mario.instBlocks.push(new Bonus(5800, 250, 0));
Mario.instEnemies.push(new PPlant(5175, 125));
Mario.instEnemies.push(new Goomba(5125, 125));
Mario.instEnemies.push(new Goomba(5075, 125));
Mario.instEnemies.push(new Goomba(5025, 125));
Mario.instEffects.push(new Back(5));
break;
case 11:
Mario.levelGenre = 3;
Mario.musika = 2;
Mario.level[0] = "BABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB ABABABABABABABABABABABABABABABABABABABABABABABABABABABCABABABABABABABABABABABABABABABABABABH";
Mario.level[1] = " AB H";
Mario.level[2] = " PD H";
Mario.level[3] = " AB H";
Mario.level[4] = " CP EFFFG H";
Mario.level[5] = " AB HIIILG H";
Mario.level[6] = " PDU HIIIILG H";
Mario.level[7] = " S 01 01 01 S AB HIIIIILG H";
Mario.level[8] = " UUUUUUUUU UUUUUUUUU EFFFG UUUUUUUUUUUUUUUUUUUUUUUUUUUUUU EFFFG C HIIIIIILG H";
Mario.level[9] = " EFFGS HIIIJ UUUUUUUUUUUUUUUUUUUUUUUUUUUU HIIIJ AB UHIIIIIIILFFFFFFFGOOOOOOOOOOOOOOOOH";
Mario.level[10] = "FFG EFFFKIILG HIIIJ 45 45 45 HIIIJ HIIIIIIIIIIIIIIIJ H";
Mario.level[11] = "IILG EKIIIIIIIJ EFFFG HIIILG EKIIIJ HIIIIIIIIIIIIIIIJ H";
Mario.level[12] = "IIILFFFFG EFFFKIIIIIIIIJ EKIIIJ 01 HIIIIJ HIIIIJUUUUUUUUUUUHIIIIIIIIIIIIIIIJ H";
Mario.level[13] = "IIIIIIIIJ HIIIIIIIIIIIILFFKIIIIJ 23 HIIIILG EKIIIIJ HIIIIIIIIIIIIIIIJ H";
Mario.level[14] = "IIIIIIIIJ HIIIIIIIIIIIIIIIIIIIIJ EG HIIIIILFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFKIIIIIJ HIIIIIIIIIIIIIIIJ H";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(((Mario.checkPoint == 11)) ? (178 * 25) : 25, 75);
Mario.instObjects.push(new Coin(4425, 250));
Mario.instObjects.push(new Coin(4325, 175));
Mario.instObjects.push(new Coin(3850, 75));
Mario.instObjects.push(new Coin(3825, 75));
Mario.instObjects.push(new Coin(3350, 75));
Mario.instObjects.push(new Coin(3325, 75));
Mario.instObjects.push(new Coin(3575, 75));
Mario.instObjects.push(new Coin(3600, 75));
Mario.instObjects.push(new Coin(3600, 100));
Mario.instObjects.push(new Coin(3575, 100));
Mario.instObjects.push(new Coin(2250, 325));
Mario.instObjects.push(new Coin(2225, 325));
Mario.instObjects.push(new Coin(2225, 275));
Mario.instObjects.push(new Coin(2250, 275));
Mario.instObjects.push(new Coin(2250, 300));
Mario.instObjects.push(new Coin(2225, 300));
Mario.instObjects.push(new Coin(1950, 50));
Mario.instObjects.push(new Coin(1900, 50));
Mario.instObjects.push(new Coin(1375, 25));
Mario.instObjects.push(new Coin(1700, 25));
Mario.instObjects.push(new Coin(1525, 50));
Mario.instObjects.push(new Coin(1550, 50));
Mario.instObjects.push(new Coin(1525, 75));
Mario.instObjects.push(new Coin(1525, 100));
Mario.instObjects.push(new Coin(1525, 125));
Mario.instObjects.push(new Coin(1550, 125));
Mario.instObjects.push(new Coin(1550, 100));
Mario.instObjects.push(new Coin(1550, 75));
Mario.instObjects.push(new Coin(1200, 50));
Mario.instObjects.push(new Coin(1175, 50));
Mario.instObjects.push(new Coin(1125, 50));
Mario.instObjects.push(new Coin(1100, 50));
Mario.instObjects.push(new Coin(750, 275));
Mario.instObjects.push(new Coin(725, 275));
Mario.instObjects.push(new Coin(725, 300));
Mario.instObjects.push(new Coin(750, 300));
Mario.instObjects.push(new Coin(150, 175));
Mario.instObjects.push(new Coin(150, 200));
Mario.instObjects.push(new Coin(400, 250));
Mario.instObjects.push(new Coin(425, 250));
Mario.instObjects.push(new Coin(525, 200));
Mario.instObjects.push(new Coin(550, 200));
Mario.instObjects.push(new ElevatorFall(1500, 200, 100, "elevator_4"));
Mario.instObjects.push(new ElevatorLoop(2225, 200, 50, "elevator_2", -3));
Mario.instObjects.push(new ElevatorFall(2575, 200, 50, "elevator_2"));
Mario.instObjects.push(new ElevatorFall(2825, 200, 25, "elevator_1"));
Mario.instObjects.push(new Mill(4300, 200, 130, 2, 50));
Mario.instEnemies.push(new PFlame(3825, 150));
Mario.instEnemies.push(new PFlame(3575, 150));
Mario.instEnemies.push(new PFlame(3325, 150));
Mario.instEnemies.push(new PPlant(3325, 275, -1));
Mario.instEnemies.push(new PPlant(3575, 275, -1));
Mario.instEnemies.push(new PPlant(3825, 275, -1));
Mario.instBlocks.push(new Bonus(3600, 25, 1, true));
Mario.instBlocks.push(new Bonus(3575, 25, 1, true));
Mario.instBlocks.push(new Bonus(3625, 125, 4, true));
Mario.instObjects.push(new Cannon(3250, 150));
Mario.instObjects.push(new Cannon(3925, 150));
Mario.instObjects.push(new Cannon(3675, 175));
Mario.instObjects.push(new Cannon(3500, 175));
Mario.instEnemies.push(new Spiny(3725, 325));
Mario.instEnemies.push(new Spiny(3475, 325));
Mario.instEnemies.push(new HammerTroopa(1150, 175, true));
Mario.instObjects.push(new Cannon(700, 200));
Mario.instBlocks.push(new Brick(1100, 75));
Mario.instBlocks.push(new Brick(1175, 75));
Mario.instBlocks.push(new Brick(1200, 75));
Mario.instBlocks.push(new Brick(1900, 100));
Mario.instBlocks.push(new Brick(1925, 100));
Mario.instBlocks.push(new Brick(1950, 100));
Mario.instBlocks.push(new Bonus(1975, 100, 1));
Mario.instBlocks.push(new Bonus(1875, 100, 0));
Mario.instBlocks.push(new Bonus(1150, 75, 1, true));
Mario.instBlocks.push(new Bonus(1225, 75, 0));
Mario.instBlocks.push(new Bonus(1075, 75, 0));
Mario.instEnemies.push(new PFlame(1525, 275));
Mario.instObjects.push(new Lava(925, 350));
Mario.instObjects.push(new Lava(950, 350));
Mario.instObjects.push(new Lava(975, 350));
Mario.instObjects.push(new Lava(1000, 350));
Mario.instObjects.push(new Lava(1025, 350));
Mario.instObjects.push(new Lava(1050, 350));
Mario.instObjects.push(new Lava(1075, 350));
Mario.instObjects.push(new Lava(1100, 350));
Mario.instObjects.push(new Lava(1125, 350));
Mario.instObjects.push(new Lava(1150, 350));
Mario.instObjects.push(new Lava(1175, 350));
Mario.instObjects.push(new Lava(1200, 350));
Mario.instObjects.push(new Lava(1225, 350));
Mario.instObjects.push(new Lava(1250, 350));
Mario.instObjects.push(new Lava(1275, 350));
Mario.instObjects.push(new Lava(1300, 350));
Mario.instObjects.push(new Lava(1325, 350));
Mario.instObjects.push(new Lava(1350, 350));
Mario.instObjects.push(new Lava(1375, 350));
Mario.instObjects.push(new Lava(1400, 350));
Mario.instObjects.push(new Lava(1425, 350));
Mario.instObjects.push(new Lava(1450, 350));
Mario.instObjects.push(new Lava(1475, 350));
Mario.instObjects.push(new Lava(1500, 350));
Mario.instObjects.push(new Lava(1575, 350));
Mario.instObjects.push(new Lava(1600, 350));
Mario.instObjects.push(new Lava(1625, 350));
Mario.instObjects.push(new Lava(1650, 350));
Mario.instObjects.push(new Lava(1675, 350));
Mario.instObjects.push(new Lava(1700, 350));
Mario.instObjects.push(new Lava(1725, 350));
Mario.instObjects.push(new Lava(1750, 350));
Mario.instObjects.push(new Lava(1775, 350));
Mario.instObjects.push(new Lava(1800, 350));
Mario.instObjects.push(new Lava(1825, 350));
Mario.instObjects.push(new Lava(1850, 350));
Mario.instObjects.push(new Lava(1875, 350));
Mario.instObjects.push(new Lava(1900, 350));
Mario.instObjects.push(new Lava(1925, 350));
Mario.instObjects.push(new Lava(1950, 350));
Mario.instObjects.push(new Lava(1975, 350));
Mario.instObjects.push(new Lava(2000, 350));
Mario.instObjects.push(new Lava(2025, 350));
Mario.instObjects.push(new Lava(2050, 350));
Mario.instObjects.push(new Lava(2075, 350));
Mario.instObjects.push(new Lava(2100, 350));
Mario.instObjects.push(new Lava(2125, 350));
Mario.instObjects.push(new Lava(2150, 350));
Mario.instObjects.push(new Lava(2175, 350));
Mario.instObjects.push(new Lava(2200, 350));
Mario.instObjects.push(new Lava(2225, 350));
Mario.instObjects.push(new Lava(2250, 350));
Mario.instObjects.push(new Lava(2275, 350));
Mario.instObjects.push(new Lava(2300, 350));
Mario.instObjects.push(new Lava(2325, 350));
Mario.instObjects.push(new Lava(2350, 350));
Mario.instObjects.push(new Lava(2375, 350));
Mario.instObjects.push(new Lava(2400, 350));
Mario.instObjects.push(new Lava(2425, 350));
Mario.instObjects.push(new Lava(2450, 350));
Mario.instObjects.push(new Lava(2475, 350));
Mario.instObjects.push(new Lava(2500, 350));
Mario.instObjects.push(new Lava(2525, 350));
Mario.instObjects.push(new Lava(2550, 350));
Mario.instObjects.push(new Lava(2575, 350));
Mario.instObjects.push(new Lava(2600, 350));
Mario.instObjects.push(new Lava(2625, 350));
Mario.instObjects.push(new Lava(2650, 350));
Mario.instObjects.push(new Lava(2675, 350));
Mario.instObjects.push(new Lava(2700, 350));
Mario.instObjects.push(new Lava(2725, 350));
Mario.instObjects.push(new Lava(2750, 350));
Mario.instObjects.push(new Lava(2775, 350));
Mario.instObjects.push(new Lava(2800, 350));
Mario.instObjects.push(new Lava(2825, 350));
Mario.instObjects.push(new Lava(2850, 350));
Mario.instObjects.push(new Lava(2875, 350));
Mario.instObjects.push(new Lava(2900, 350));
Mario.instObjects.push(new Lava(2925, 350));
Mario.instObjects.push(new Lava(2950, 350));
Mario.instObjects.push(new Lava(2975, 350));
Mario.instObjects.push(new Lava(3000, 350));
Mario.instObjects.push(new Lava(4175, 350));
Mario.instObjects.push(new Lava(4200, 350));
Mario.instObjects.push(new Lava(4225, 350));
Mario.instObjects.push(new Lava(4250, 350));
Mario.instObjects.push(new Lava(4275, 350));
Mario.instObjects.push(new Lava(4300, 350));
Mario.instObjects.push(new Lava(4325, 350));
Mario.instObjects.push(new Lava(4350, 350));
Mario.instObjects.push(new Lava(4375, 350));
Mario.instObjects.push(new Lava(4400, 350));
Mario.instObjects.push(new Lava(4425, 350));
Mario.instObjects.push(new Lava(4875, 350));
Mario.instObjects.push(new Lava(4900, 350));
Mario.instObjects.push(new Lava(4925, 350));
Mario.instObjects.push(new Lava(4950, 350));
Mario.instObjects.push(new Lava(4975, 350));
Mario.instObjects.push(new Lava(5000, 350));
Mario.instObjects.push(new Lava(5025, 350));
Mario.instObjects.push(new Lava(5050, 350));
Mario.instObjects.push(new Lava(5075, 350));
Mario.instObjects.push(new Lava(5100, 350));
Mario.instObjects.push(new Lava(5125, 350));
Mario.instObjects.push(new Lava(5150, 350));
Mario.instObjects.push(new Lava(5175, 350));
Mario.instObjects.push(new Lava(5200, 350));
Mario.instObjects.push(new Lava(5225, 350));
Mario.instObjects.push(new Lava(5250, 350));
Mario.instBlocks.push(new Bonus(3550, 125, 1, true));
Mario.instBlocks.push(new Bonus(4175, 200, 2, true));
Mario.instEnemies.push(new TroopaRed(1875, 175));
Mario.instEnemies.push(new TroopaRed(1975, 175));
Mario.instEnemies.push(new FlyRed(1700, 125));
Mario.instEnemies.push(new FlyRed(1375, 150));
Mario.instEnemies.push(new Spiny(650, 200));
Mario.instEnemies.push(new Spiny(625, 200));
Mario.instEnemies.push(new FlyGreen(850, 250));
Mario.instEnemies.push(new JumperThrower(5075, 350, -9, 0, 180, 1, 0));
Mario.instBlocks.push(new Brick(4075, 100));
Mario.instBlocks.push(new Brick(4100, 100));
Mario.instBlocks.push(new BrickMulti(4125, 100));
Mario.instBlocks.push(new Brick(3075, 100));
Mario.instBlocks.push(new Brick(3050, 100));
Mario.instBlocks.push(new Brick(3100, 100));
Mario.instBlocks.push(new BrickMulti(1125, 75));
Mario.instEnemies.push(new Bowser((202 * 25), 75, (195 * 25), 6, 10, 5, 3, 20));
Mario.instEffects.push(new Back(3));
break;
case 12:
Mario.levelGenre = 1;
Mario.musika = 1;
Mario.level[0] = "N ";
Mario.level[1] = "N ";
Mario.level[2] = "N ";
Mario.level[3] = "N ";
Mario.level[4] = "N NN N01N ";
Mario.level[5] = "N N23N S ";
Mario.level[6] = "N N S N23N R ";
Mario.level[7] = "N N01N NNNN NNNN23NNNN NNNN ";
Mario.level[8] = "N N N S N23N N N N 23 N 6778 ";
Mario.level[9] = "N N S R N23N N N N 23 N 9aab ";
Mario.level[10] = "N N Nrrrrrrrrs01qrrrrrrrrN NNNN NNNN NNNN NNNN NNNN23NNNN NNNN NNNN 23 NNNN NNNNNNN N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N qs ";
Mario.level[11] = "N qrrrrs N N Nuuuuuuuuv23tuuuuuuuuN N N N N N N N N N 23 N N 23 N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N N tv ";
Mario.level[12] = "N tuuuuvqrs N NN NuuuuuuuuvqstuuuuuuuuN N N N N N N N N N 23 N N 23 N N N N N N N N N N N N N N N N N tv ";
Mario.level[13] = "N tuuuuvtuvqs N N NN NNNNNNNNNNNNNNNNNNNNNN NNNN NNNN NNNN NNNN NNNN 23 NNNN 23 NNNN N N N N N N tvqrrrrrrrrrrrrrrrrrrrrrrrrrrs";
Mario.level[14] = "Nqrrrrrs tuuuuvtuvtvN N 23 23 N tvtuuuuuuuuuuuuuuuuuuuuuuuuuuv";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(100, 25);
Mario.instObjects.push(new Coin(6550, 225));
Mario.instObjects.push(new Coin(6575, 225));
Mario.instObjects.push(new Coin(6575, 200));
Mario.instObjects.push(new Coin(6550, 200));
Mario.instObjects.push(new Coin(6525, 200));
Mario.instObjects.push(new Coin(6525, 225));
Mario.instObjects.push(new Coin(6450, 225));
Mario.instObjects.push(new Coin(6475, 225));
Mario.instObjects.push(new Coin(6475, 200));
Mario.instObjects.push(new Coin(6450, 200));
Mario.instObjects.push(new Coin(0x1919, 200));
Mario.instObjects.push(new Coin(0x1919, 225));
Mario.instObjects.push(new Coin(5950, 225));
Mario.instObjects.push(new Coin(5950, 200));
Mario.instObjects.push(new Coin(5700, 225));
Mario.instObjects.push(new Coin(5700, 200));
Mario.instObjects.push(new Coin(5450, 225));
Mario.instObjects.push(new Coin(5450, 200));
Mario.instObjects.push(new Coin(5425, 200));
Mario.instObjects.push(new Coin(5475, 200));
Mario.instObjects.push(new Coin(5675, 200));
Mario.instObjects.push(new Coin(5725, 200));
Mario.instObjects.push(new Coin(5975, 225));
Mario.instObjects.push(new Coin(5975, 200));
Mario.instObjects.push(new Coin(5925, 200));
Mario.instObjects.push(new Coin(5925, 225));
Mario.instObjects.push(new Coin(5725, 225));
Mario.instObjects.push(new Coin(5675, 225));
Mario.instObjects.push(new Coin(5425, 225));
Mario.instObjects.push(new Coin(5475, 225));
Mario.instObjects.push(new Coin(4875, 300));
Mario.instObjects.push(new Coin(4500, 225));
Mario.instObjects.push(new Coin(4275, 300));
Mario.instObjects.push(new Coin(3975, 300));
Mario.instObjects.push(new Coin(3825, 300));
Mario.instObjects.push(new Coin(3675, 300));
Mario.instObjects.push(new Coin(3525, 300));
Mario.instObjects.push(new Coin(700, 150));
Mario.instObjects.push(new Coin(1125, 25));
Mario.instObjects.push(new Coin(1925, 200));
Mario.instObjects.push(new Coin(1700, 200));
Mario.instObjects.push(new Coin(2575, 200));
Mario.instObjects.push(new Coin(2550, 200));
Mario.instObjects.push(new Coin(3000, 225));
Mario.instObjects.push(new Coin(2975, 225));
Mario.instObjects.push(new Coin(2975, 200));
Mario.instObjects.push(new Coin(3000, 200));
Mario.instObjects.push(new Coin(3000, 150));
Mario.instObjects.push(new Coin(2975, 150));
Mario.instObjects.push(new Coin(2975, 175));
Mario.instObjects.push(new Coin(3000, 175));
Mario.instObjects.push(new Coin(5100, 150));
Mario.instObjects.push(new Coin(5200, 150));
Mario.instObjects.push(new Coin(5300, 150));
Mario.instObjects.push(new Coin(5400, 150));
Mario.instObjects.push(new Coin(5500, 150));
Mario.instObjects.push(new Coin(5600, 150));
Mario.instObjects.push(new Coin(5700, 150));
Mario.instObjects.push(new Coin(5800, 150));
Mario.instObjects.push(new Coin(5900, 150));
Mario.instObjects.push(new Coin(6000, 150));
Mario.instObjects.push(new Coin(6100, 150));
Mario.instObjects.push(new Coin(6200, 150));
Mario.instObjects.push(new Coin(6300, 150));
Mario.instObjects.push(new Coin(0x1900, 150));
Mario.instObjects.push(new Coin(6500, 150));
Mario.instObjects.push(new Coin(6600, 150));
Mario.instObjects.push(new Coin(6700, 150));
Mario.instObjects.push(new Coin(6800, 150));
Mario.layerWall.addChild(AddGraphic(7475, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(7450, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7425, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7400, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7375, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7350, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7325, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(7000, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(7050, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(7025, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7100, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(7300, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(7275, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7250, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7225, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7200, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7175, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7150, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7125, 300, "back_fence_2"));
Mario.instEffects.push(new Lantern(125, 100));
Mario.instEffects.push(new Lantern(300, 150));
Mario.instEffects.push(new Lantern(500, 75));
Mario.instEffects.push(new Lantern(725, 175));
Mario.instEffects.push(new Lantern(975, 100));
Mario.instEffects.push(new Lantern(1150, 200));
Mario.instEffects.push(new Lantern(1350, 50));
Mario.instEffects.push(new Lantern(1675, 75));
Mario.instEffects.push(new Lantern(1825, 175));
Mario.instEffects.push(new Lantern(2025, 100));
Mario.instEffects.push(new Lantern(2350, 200));
Mario.instEffects.push(new Lantern(2500, 75));
Mario.instEffects.push(new Lantern(2850, 150));
Mario.instEffects.push(new Lantern(3075, 50));
Mario.instEffects.push(new Lantern(3275, 75));
Mario.instEffects.push(new Lantern(3550, 150));
Mario.instEffects.push(new Lantern(3850, 75));
Mario.instEffects.push(new Lantern(4275, 150));
Mario.instEffects.push(new Lantern(4400, 50));
Mario.instEffects.push(new Lantern(4875, 150));
Mario.instEffects.push(new Lantern(5225, 100));
Mario.instEffects.push(new Lantern(5625, 150));
Mario.instEffects.push(new Lantern(5975, 50));
Mario.instEffects.push(new Lantern(6325, 125));
Mario.instEffects.push(new Lantern(6800, 75));
Mario.instEffects.push(new Lantern(7150, 175));
Mario.instEffects.push(new Lantern(7325, 75));
Mario.instObjects.push(new Finish(7075, 300));
Mario.instEnemies.push(new PFlame(2975, 225));
Mario.instEnemies.push(new PFlame(4100, 150));
Mario.instEnemies.push(new PFlame(4625, 75));
Mario.instEnemies.push(new FlyGreen(5950, 225));
Mario.instEnemies.push(new FlyGreen(6450, 225));
Mario.instEnemies.push(new FlyGreen(6550, 225));
Mario.instEnemies.push(new FlyGreen(5700, 225));
Mario.instEnemies.push(new FlyGreen(5450, 225));
Mario.instEnemies.push(new Spiny(2925, 225));
Mario.instEnemies.push(new Spiny(3050, 225));
Mario.instEnemies.push(new Spiny(3175, 225));
Mario.instEnemies.push(new Spiny(2800, 225));
Mario.instObjects.push(new Cannon(2725, 225));
Mario.instObjects.push(new Cannon(3250, 225));
Mario.instObjects.push(new Cannon(3600, 200));
Mario.instObjects.push(new Cannon(3900, 175));
Mario.instObjects.push(new Cannon(4325, 225));
Mario.instObjects.push(new Cannon(4425, 125));
Mario.instObjects.push(new Cannon(4675, 75));
Mario.instObjects.push(new Cannon(5025, 100));
Mario.instObjects.push(new Cannon(4800, 225));
Mario.instBlocks.push(new Brick(325, 175));
Mario.instBlocks.push(new Brick(375, 175));
Mario.instBlocks.push(new Brick(300, 175));
Mario.instBlocks.push(new BrickMulti(350, 175));
Mario.instBlocks.push(new Bonus(2800, 150, 1));
Mario.instBlocks.push(new Bonus(3500, 250, 1, true));
Mario.instBlocks.push(new Bonus(3650, 250, 1, true));
Mario.instBlocks.push(new Bonus(3800, 250, 1, true));
Mario.instBlocks.push(new Bonus(3950, 250, 1, true));
Mario.instBlocks.push(new Bonus(4250, 250, 1, true));
Mario.instBlocks.push(new Bonus(4475, 175, 4, true));
Mario.instBlocks.push(new Bonus(4850, 250, 2, true));
Mario.instBlocks.push(new Bonus(3175, 150, 1));
Mario.instEffects.push(new Back(1));
break;
case 13:
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.generateBackground(0);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " ";
Mario.level[7] = " ijlm ";
Mario.level[8] = " ijkkkkklm ijlm M M M M M M M M M M M M ijkkkkklm MM MM ijkkkklm ijklm np ";
Mario.level[9] = " nooooop np nooooop MM 01 01 MM noooop nop np ijlm ";
Mario.level[10] = " nooooop np nooooop MM 23 MM MM 23 MM noooop nop np np ";
Mario.level[11] = " nooooop ijlm np nooooop MM 23 MM MM 23 MM noooop ijlm ijkkkkklm nop np np ";
Mario.level[12] = " nooooop np np nooooop MM 23 MM MM 23 MM noooop np nooooop nop np np ijkkkklm ";
Mario.level[13] = " nooooop ijkkkkkkkkkkkkklm np np nooooop MM 23 MM MM 23 MM noooop np nooooop nop np np noooop cddddddddddddddddddddddddddddde";
Mario.level[14] = " nooooop nooooooooooooop np np nooooop MM 23 MM MM 23 MM noooop np nooooop nop np np noooop fgggggggggggggggggggggggggggggh";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(1400, 250, "back_column_4", 0.910000026));
Mario.instEffects.push(new Background(4300, 75, "back_column_1", 0.889999986));
Mario.instEffects.push(new Background(425, 100, "back_column_1", 0.860000014));
Mario.instEffects.push(new Background(3175, 75, "back_column_1", 0.840000033));
Mario.instEffects.push(new Background(6050, 175, "back_column_4", 0.800000012));
Mario.instEffects.push(new Background(25, 75, "back_column_4", 0.790000021));
Mario.instEffects.push(new Background(5050, 200, "back_column_1", 0.790000021));
Mario.instEffects.push(new Background(5675, 150, "back_column_1", 0.780000031));
Mario.instEffects.push(new Background(825, 150, "back_column_4", 0.770000041));
Mario.instEffects.push(new Background(2150, 100, "back_column_4", 0.75999999));
Mario.instEffects.push(new Background(5400, 50, "back_column_1", 0.730000019));
Mario.instEffects.push(new Background(1225, 200, "back_column_1", 0.730000019));
Mario.instEffects.push(new Background(5925, 75, "back_column_1", 0.680000007));
Mario.instEffects.push(new Background(2975, 175, "back_column_4", 0.660000026));
Mario.instEffects.push(new Background(3475, 125, "back_column_4", 0.650000036));
Mario.instEffects.push(new Background(2375, 50, "back_column_1", 0.640000045));
Mario.instEffects.push(new Background(4625, 125, "back_column_1", 0.640000045));
Mario.instEffects.push(new Background(3875, 200, "back_column_1", 0.600000024));
Mario.instEffects.push(new Background(3075, 175, "back_column_3", 0.590000033));
Mario.instEffects.push(new Background(600, 200, "back_column_2", 0.570000052));
Mario.instEffects.push(new Background(4725, 75, "back_column_3", 0.530000031));
Mario.instEffects.push(new Background(275, 225, "back_column_3", 0.50999999));
Mario.instEffects.push(new Background(5550, 50, "back_column_3", 0.480000019));
Mario.instEffects.push(new Background(6200, 225, "back_column_3", 0.460000008));
Mario.instEffects.push(new Background(1150, 50, "back_column_2", 0.470000029));
Mario.instEffects.push(new Background(3650, 200, "back_column_2", 0.450000018));
Mario.instEffects.push(new Background(2625, 50, "back_column_2", 0.450000018));
Mario.instEffects.push(new Background(1800, 150, "back_column_2", 0.430000007));
Mario.instEffects.push(new Background(4500, 25, "back_column_2", 0.390000015));
Mario.instEffects.push(new Background(1525, 75, "back_column_3", 0.360000014));
Mario.instEffects.push(new Background(5825, 150, "back_column_2", 0.330000013));
Mario.instEffects.push(new Background(4950, 125, "back_column_2", 0.320000023));
Mario.instEffects.push(new Background(150, 150, "back_column_2", 0.320000023));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.300000012));
Mario.layerWall.addChild(AddGraphic(5925, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(6300, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6275, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6250, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6225, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6200, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6175, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6150, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6125, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6100, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6075, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6050, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6025, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6000, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5975, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5950, 300, "back_fence_2"));
Mario.instEffects.push(new Grass(5850, 300, "r"));
Mario.instEffects.push(new Grass(5825, 300, "m"));
Mario.instEffects.push(new Grass(5800, 300, "m"));
Mario.instEffects.push(new Grass(5775, 300, "l"));
Mario.instObjects.push(new Coin(5300, 150));
Mario.instObjects.push(new Coin(5300, 125));
Mario.instObjects.push(new Coin(5275, 125));
Mario.instObjects.push(new Coin(5275, 150));
Mario.instObjects.push(new Coin(5175, 100));
Mario.instObjects.push(new Coin(5175, 75));
Mario.instObjects.push(new Coin(5150, 75));
Mario.instObjects.push(new Coin(5150, 100));
Mario.instObjects.push(new Coin(4750, 200));
Mario.instObjects.push(new Coin(4750, 175));
Mario.instObjects.push(new Coin(4725, 175));
Mario.instObjects.push(new Coin(4725, 200));
Mario.instObjects.push(new Coin(4625, 175));
Mario.instObjects.push(new Coin(4600, 175));
Mario.instObjects.push(new Coin(4600, 200));
Mario.instObjects.push(new Coin(4625, 200));
Mario.instObjects.push(new Coin(4375, 175));
Mario.instObjects.push(new Coin(4400, 175));
Mario.instObjects.push(new Coin(4400, 200));
Mario.instObjects.push(new Coin(4375, 200));
Mario.instObjects.push(new Coin(3450, 200));
Mario.instObjects.push(new Coin(3450, 225));
Mario.instObjects.push(new Coin(3300, 125));
Mario.instObjects.push(new Coin(3300, 150));
Mario.instObjects.push(new Coin(3225, 75));
Mario.instObjects.push(new Coin(3225, 100));
Mario.instObjects.push(new Coin(3175, 225));
Mario.instObjects.push(new Coin(3175, 200));
Mario.instObjects.push(new Coin(3050, 100));
Mario.instObjects.push(new Coin(3050, 125));
Mario.instObjects.push(new Coin(3000, 225));
Mario.instObjects.push(new Coin(3000, 250));
Mario.instObjects.push(new Coin(2900, 175));
Mario.instObjects.push(new Coin(2900, 200));
Mario.instObjects.push(new Coin(2800, 100));
Mario.instObjects.push(new Coin(2800, 125));
Mario.instObjects.push(new Coin(2725, 150));
Mario.instObjects.push(new Coin(2725, 175));
Mario.instObjects.push(new Coin(2650, 200));
Mario.instObjects.push(new Coin(2650, 225));
Mario.instObjects.push(new Coin(2550, 125));
Mario.instObjects.push(new Coin(2550, 150));
Mario.instObjects.push(new Coin(1300, 125));
Mario.instObjects.push(new Coin(1300, 150));
Mario.instObjects.push(new Coin(1200, 125));
Mario.instObjects.push(new Coin(1200, 150));
Mario.instObjects.push(new Coin(1750, 150));
Mario.instObjects.push(new Coin(1750, 125));
Mario.instObjects.push(new Coin(1650, 125));
Mario.instObjects.push(new Coin(1650, 150));
Mario.instObjects.push(new Coin(625, 100));
Mario.instObjects.push(new Coin(675, 100));
Mario.instObjects.push(new Coin(475, 100));
Mario.instObjects.push(new Coin(525, 100));
Mario.instObjects.push(new Coin(650, 75));
Mario.instObjects.push(new Coin(650, 100));
Mario.instObjects.push(new Coin(500, 75));
Mario.instObjects.push(new Coin(500, 100));
Mario.instObjects.push(new Coin(650, 125));
Mario.instObjects.push(new Coin(500, 125));
Player.ResetPlayer(125, 175);
Mario.instEnemies.push(new Lakitu(125, 25));
Mario.instEnemies.push(new FlyRed(2650, 275));
Mario.instEnemies.push(new FlyRed(2550, 200));
Mario.instEnemies.push(new FlyRed(2725, 225));
Mario.instEnemies.push(new FlyRed(2800, 175));
Mario.instEnemies.push(new FlyRed(2900, 250));
Mario.instEnemies.push(new FlyRed(3000, 300));
Mario.instEnemies.push(new FlyRed(3050, 175));
Mario.instEnemies.push(new FlyRed(3175, 275));
Mario.instEnemies.push(new FlyRed(3225, 150));
Mario.instEnemies.push(new FlyRed(3300, 200));
Mario.instEnemies.push(new FlyRed(3450, 275));
Mario.instEnemies.push(new Spiny(4200, 175));
Mario.instEnemies.push(new Spiny(1975, 175));
Mario.instEnemies.push(new Spiny(700, 300));
Mario.instEnemies.push(new TroopaRed(400, 300));
Mario.instEnemies.push(new TroopaRed(750, 300));
Mario.instEnemies.push(new HammerTroopa(625, 300, true));
Mario.instEnemies.push(new Spiny(450, 300));
Mario.instEnemies.push(new Spiny(525, 300));
Mario.instEnemies.push(new FlyGreen(1700, 175));
Mario.instEnemies.push(new FlyGreen(1600, 175));
Mario.instEnemies.push(new FlyGreen(1500, 175));
Mario.instEnemies.push(new PStatic(1550, 175));
Mario.instEnemies.push(new PFlame(3775, 200));
Mario.instEnemies.push(new PFlame(2225, 200));
Mario.instEnemies.push(new PStatic(4400, 250));
Mario.instEnemies.push(new PStatic(4375, 250));
Mario.instEnemies.push(new PStatic(4600, 250));
Mario.instEnemies.push(new PStatic(4625, 250));
Mario.instEnemies.push(new PStatic(4750, 250));
Mario.instEnemies.push(new PStatic(4725, 250));
Mario.instEnemies.push(new PStatic(5300, 200));
Mario.instEnemies.push(new PStatic(5150, 150));
Mario.instEnemies.push(new PStatic(5175, 150));
Mario.instEnemies.push(new PStatic(5275, 200));
Mario.instEnemies.push(new FlyGreen(5600, 275));
Mario.instEnemies.push(new Goomba(5850, 300));
Mario.instEnemies.push(new Goomba(5900, 300));
Mario.instEnemies.push(new Goomba(5875, 300));
Mario.instObjects.push(new Finish(5825, 300));
Mario.instBlocks.push(new Brick(500, 200));
Mario.instBlocks.push(new Brick(675, 200));
Mario.instBlocks.push(new Brick(650, 200));
Mario.instBlocks.push(new Brick(475, 200));
Mario.instEnemies.push(new FlyGreen(1450, 175));
Mario.instEnemies.push(new FlyGreen(1350, 175));
Mario.instEnemies.push(new FlyGreen(1250, 175));
Mario.instEnemies.push(new PStatic(1400, 175));
Mario.instBlocks.push(new Bonus(925, 175, 1));
Mario.instBlocks.push(new Bonus(1125, 100, 1));
Mario.instBlocks.push(new Bonus(625, 200, 3));
Mario.instBlocks.push(new Bonus(525, 200, 3));
Mario.instBlocks.push(new Bonus(900, 175, 3));
Mario.instBlocks.push(new Bonus(1100, 100, 0));
Mario.instBlocks.push(new Brick(1875, 100));
Mario.instBlocks.push(new Brick(1925, 100));
Mario.instBlocks.push(new Bonus(1900, 100, 5));
Mario.instEnemies.push(new Spiny(4925, 175));
Mario.instEnemies.push(new Spiny(4875, 175));
Mario.instEnemies.push(new Spiny(5550, 275));
Mario.instEnemies.push(new Spiny(5475, 275));
Mario.instEffects.push(new Back(2));
break;
case 14:
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.generateBackground(0);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " M MMMMM M ";
Mario.level[6] = " ";
Mario.level[7] = " ";
Mario.level[8] = " ";
Mario.level[9] = " MMM M MMM ";
Mario.level[10] = " S 01 ";
Mario.level[11] = " R 23 ";
Mario.level[12] = " R 23 ";
Mario.level[13] = "cdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddde01cdddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddde cddddddddddddddddddddddddddddde";
Mario.level[14] = "fggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggh23fggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggh fgggggggggggggggggggggggggggggh";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Cloud(4700, 50));
Mario.instEffects.push(new Cloud(4300, 150));
Mario.instEffects.push(new Cloud(3275, 50));
Mario.instEffects.push(new Cloud(2700, 100));
Mario.instEffects.push(new Cloud(450, 25));
Mario.instEffects.push(new Cloud(1325, 75));
Mario.instEffects.push(new Cloud(2175, 50));
Mario.instEffects.push(new Background(150, 125, "back_clouds_8", 0.810000002));
Mario.instEffects.push(new Background(4300, 25, "back_hill_big", 0.689999998));
Mario.instEffects.push(new Background(1550, 150, "back_clouds_4", 0.519999981));
Mario.instEffects.push(new Background(2900, 200, "back_clouds_6", 0.480000019));
Mario.instEffects.push(new Background(2425, 125, "back_clouds_2", 0.320000023));
Mario.instEffects.push(new Background(3625, 100, "back_clouds_3", 0.0500000007));
Mario.layerWall.addChild(AddGraphic(100, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(100, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(300, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(0, 250, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(0, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(0, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(100, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(300, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(225, 225, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(225, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(225, 175, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(450, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(450, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(225, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(225, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(225, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(450, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(450, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(625, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(825, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(800, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(775, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(750, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(725, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(700, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(675, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(650, 300, "back_fence_2"));
Mario.instEffects.push(new Grass(500, 300, "l"));
Mario.instEffects.push(new Grass(575, 300, "r"));
Mario.instEffects.push(new Grass(550, 300, "m"));
Mario.instEffects.push(new Grass(525, 300, "m"));
Mario.instEffects.push(new Grass(300, 300, "l"));
Mario.instEffects.push(new Grass(400, 300, "r"));
Mario.instEffects.push(new Grass(375, 300, "m"));
Mario.instEffects.push(new Grass(350, 300, "m"));
Mario.instEffects.push(new Grass(325, 300, "m"));
Mario.instEffects.push(new Grass(125, 300, "l"));
Mario.instEffects.push(new Grass(175, 300, "r"));
Mario.instEffects.push(new Grass(150, 300, "m"));
Mario.layerWall.addChild(AddGraphic(1025, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1175, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1050, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1075, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1100, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1125, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1150, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1425, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1225, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1250, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1275, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1300, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1325, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1350, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1375, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1400, 300, "back_fence_2"));
Mario.instEffects.push(new Grass(1500, 300, "l"));
Mario.instEffects.push(new Grass(1625, 300, "r"));
Mario.instEffects.push(new Grass(1525, 300, "m"));
Mario.instEffects.push(new Grass(1550, 300, "m"));
Mario.instEffects.push(new Grass(1575, 300, "m"));
Mario.instEffects.push(new Grass(1600, 300, "m"));
Mario.layerWall.addChild(AddGraphic(1700, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1825, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1725, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1750, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1775, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1800, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1850, 250, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(1850, 225, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(1850, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(1850, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(1950, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(1950, 300, "back_tree_1"));
Mario.instEffects.push(new Grass(2125, 300, "r"));
Mario.instEffects.push(new Grass(2100, 300, "m"));
Mario.instEffects.push(new Grass(2075, 300, "m"));
Mario.instEffects.push(new Grass(2050, 300, "m"));
Mario.instEffects.push(new Grass(2025, 300, "l"));
Mario.layerWall.addChild(AddGraphic(2575, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2225, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2250, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2275, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2300, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2325, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2350, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2375, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2425, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2450, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2475, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2500, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2525, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2550, 300, "back_fence_2"));
Mario.instEffects.push(new Grass(2825, 300, "r"));
Mario.instEffects.push(new Grass(2800, 300, "m"));
Mario.instEffects.push(new Grass(2775, 300, "m"));
Mario.instEffects.push(new Grass(2725, 300, "m"));
Mario.instEffects.push(new Grass(2750, 300, "m"));
Mario.instEffects.push(new Grass(2700, 300, "l"));
Mario.layerWall.addChild(AddGraphic(2675, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(2675, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(2675, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3050, 300, "back_fence_1"));
Mario.instEffects.push(new Grass(2975, 300, "r"));
Mario.instEffects.push(new Grass(2950, 300, "m"));
Mario.instEffects.push(new Grass(2925, 300, "m"));
Mario.instEffects.push(new Grass(2900, 300, "l"));
Mario.layerWall.addChild(AddGraphic(3150, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3125, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3100, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3075, 300, "back_fence_2"));
Mario.instObjects.push(new Coin(1750, 250));
Mario.instObjects.push(new Coin(1775, 250));
Mario.instObjects.push(new Coin(50, 100));
Mario.instObjects.push(new Coin(50, 125));
Mario.instObjects.push(new Coin(500, 75));
Mario.instObjects.push(new Coin(350, 75));
Mario.instObjects.push(new Coin(350, 175));
Mario.instObjects.push(new Coin(500, 175));
Mario.instObjects.push(new Coin(1175, 225));
Mario.instObjects.push(new Coin(1200, 250));
Mario.instObjects.push(new Coin(1150, 250));
Mario.instObjects.push(new Coin(1175, 250));
Mario.instObjects.push(new Coin(1200, 275));
Mario.instObjects.push(new Coin(1150, 275));
Mario.instObjects.push(new Coin(1275, 275));
Mario.instObjects.push(new Coin(1275, 250));
Mario.instObjects.push(new Coin(1350, 275));
Mario.instObjects.push(new Coin(1350, 250));
Mario.instObjects.push(new Coin(1450, 225));
Mario.instObjects.push(new Coin(1425, 225));
Mario.instObjects.push(new Coin(1425, 250));
Mario.instObjects.push(new Coin(1450, 250));
Mario.instObjects.push(new Coin(1075, 250));
Mario.instObjects.push(new Coin(1075, 225));
Mario.instObjects.push(new Coin(850, 250));
Mario.instObjects.push(new Coin(850, 225));
Mario.instObjects.push(new Coin(1050, 200));
Mario.instObjects.push(new Coin(875, 200));
Mario.instObjects.push(new Coin(1025, 200));
Mario.instObjects.push(new Coin(1000, 200));
Mario.instObjects.push(new Coin(900, 200));
Mario.instObjects.push(new Coin(925, 200));
Mario.instObjects.push(new Coin(925, 225));
Mario.instObjects.push(new Coin(900, 225));
Mario.instObjects.push(new Coin(875, 225));
Mario.instObjects.push(new Coin(875, 250));
Mario.instObjects.push(new Coin(1050, 250));
Mario.instObjects.push(new Coin(1050, 225));
Mario.instObjects.push(new Coin(1025, 225));
Mario.instObjects.push(new Coin(1000, 225));
Mario.instObjects.push(new Coin(1325, 250));
Mario.instObjects.push(new Coin(1325, 225));
Mario.instObjects.push(new Coin(1300, 225));
Mario.instObjects.push(new Coin(1300, 250));
Mario.layerWall.addChild(AddGraphic(3375, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3350, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3325, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3300, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3275, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3400, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(3400, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3225, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3225, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3225, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4325, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3550, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(3575, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3600, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3625, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3650, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3675, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3700, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3725, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3750, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3775, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3800, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3825, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3850, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3875, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3900, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3925, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3950, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3975, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4000, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4025, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4050, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4075, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4100, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4125, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4150, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4175, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4200, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4225, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4250, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4275, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4300, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5025, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5000, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4975, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4850, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4950, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4925, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4900, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4875, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4825, 300, "back_fence_1"));
Mario.instEffects.push(new Grass(4750, 300, "r"));
Mario.instEffects.push(new Grass(4725, 300, "m"));
Mario.instEffects.push(new Grass(4700, 300, "m"));
Mario.instEffects.push(new Grass(4675, 300, "m"));
Mario.instEffects.push(new Grass(4650, 300, "l"));
Mario.instObjects.push(new Cannon(50, 225));
Player.ResetPlayer(50, 175);
Mario.instEnemies.push(new HammerTroopa(425, 300));
Mario.instEnemies.push(new HammerTroopa(425, 100));
Mario.instEnemies.push(new Spiny(700, 300));
Mario.instEnemies.push(new Spiny(750, 300));
Mario.instEnemies.push(new Spiny(800, 300));
Mario.instEnemies.push(new PFlame(950, 225));
Mario.instEnemies.push(new PStatic(1000, 300));
Mario.instEnemies.push(new PStatic(1025, 300));
Mario.instEnemies.push(new PStatic(900, 300));
Mario.instEnemies.push(new PStatic(925, 300));
Mario.instEnemies.push(new PStatic(1050, 300));
Mario.instEnemies.push(new PStatic(875, 300));
Mario.instEnemies.push(new PStatic(850, 300));
Mario.instEnemies.push(new PStatic(1075, 300));
Mario.instEnemies.push(new PStatic(1150, 300));
Mario.instEnemies.push(new PStatic(1175, 300));
Mario.instEnemies.push(new PStatic(1200, 300));
Mario.instEnemies.push(new PStatic(1275, 300));
Mario.instEnemies.push(new PStatic(1300, 300));
Mario.instEnemies.push(new PStatic(1325, 300));
Mario.instEnemies.push(new PStatic(1350, 300));
Mario.instEnemies.push(new PStatic(1425, 300));
Mario.instEnemies.push(new PStatic(1450, 300));
Mario.instEnemies.push(new Spiny(1650, 300));
Mario.instEnemies.push(new Spiny(1700, 300));
Mario.instEnemies.push(new PFlame(1750, 300));
Mario.instEnemies.push(new HammerTroopa(2075, 300, true));
Mario.instEnemies.push(new Goomba(3900, 300));
Mario.instEnemies.push(new Goomba(3800, 300));
Mario.instEnemies.push(new Spiny(3875, 300));
Mario.instEnemies.push(new Spiny(3825, 300));
Mario.instEnemies.push(new Spiny(3975, 300));
Mario.instEnemies.push(new Spiny(4025, 300));
Mario.instEnemies.push(new Goomba(3950, 300));
Mario.instEnemies.push(new Goomba(4000, 300));
Mario.instEnemies.push(new Goomba(4050, 300));
Mario.instEnemies.push(new Goomba(3925, 300));
Mario.instEnemies.push(new Goomba(3775, 300));
Mario.instEnemies.push(new Goomba(3700, 300));
Mario.instEnemies.push(new Goomba(3675, 300));
Mario.instEnemies.push(new Goomba(3625, 300));
Mario.instEnemies.push(new Goomba(3600, 300));
Mario.instEnemies.push(new Goomba(4075, 300));
Mario.instEnemies.push(new Goomba(4100, 300));
Mario.instEnemies.push(new Goomba(4175, 300));
Mario.instEnemies.push(new Goomba(4200, 300));
Mario.instEnemies.push(new Goomba(4225, 300));
Mario.instEnemies.push(new Goomba(4250, 300));
Mario.instEnemies.push(new Spiny(3850, 300));
Mario.instEnemies.push(new Spiny(3725, 300));
Mario.instEnemies.push(new Spiny(3750, 300));
Mario.instEnemies.push(new Spiny(3650, 300));
Mario.instEnemies.push(new Spiny(4125, 300));
Mario.instEnemies.push(new Spiny(4150, 300));
Mario.instEnemies.push(new TroopaRed(4325, 300));
Mario.instObjects.push(new Finish(4600, 300));
Mario.instBlocks.push(new Brick(3175, 125));
Mario.instBlocks.push(new BrickMulti(3525, 125));
Mario.instBlocks.push(new Bonus(2875, 125, 0));
Mario.instBlocks.push(new Bonus(2200, 125, 0));
Mario.instBlocks.push(new Bonus(2600, 125, 3));
Mario.instBlocks.push(new Bonus(500, 125, 1));
Mario.instBlocks.push(new Bonus(450, 225, 2));
Mario.instBlocks.push(new Bonus(350, 125, 1));
Mario.instBlocks.push(new Bonus(400, 225, 1));
Mario.instObjects.push(new Cannon(2200, 300));
Mario.instObjects.push(new Cannon(2200, 275));
Mario.instObjects.push(new Cannon(2200, 250));
Mario.instObjects.push(new Cannon(2200, 225));
Mario.instObjects.push(new Cannon(2400, 300));
Mario.instObjects.push(new Cannon(2600, 225));
Mario.instObjects.push(new Cannon(2600, 250));
Mario.instObjects.push(new Cannon(2600, 275));
Mario.instObjects.push(new Cannon(2600, 300));
Mario.instObjects.push(new Cannon(2875, 225));
Mario.instObjects.push(new Cannon(2875, 250));
Mario.instObjects.push(new Cannon(2875, 275));
Mario.instObjects.push(new Cannon(2875, 300));
Mario.instObjects.push(new Cannon(3025, 300));
Mario.instObjects.push(new Cannon(3175, 225));
Mario.instObjects.push(new Cannon(3175, 250));
Mario.instObjects.push(new Cannon(3175, 275));
Mario.instObjects.push(new Cannon(3175, 300));
Mario.instObjects.push(new Cannon(3525, 225));
Mario.instObjects.push(new Cannon(3525, 250));
Mario.instObjects.push(new Cannon(3525, 275));
Mario.instObjects.push(new Cannon(3525, 300));
Mario.instEffects.push(new Back(4));
break;
case 15:
Mario.musika = 2;
Mario.levelGenre = 3;
Mario.level[0] = "ABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB";
Mario.level[1] = " CD ";
Mario.level[2] = " AB ";
Mario.level[3] = " CD ";
Mario.level[4] = " EG ";
Mario.level[5] = " HJ ";
Mario.level[6] = " HJ ";
Mario.level[7] = " HJ ";
Mario.level[8] = " HJ ";
Mario.level[9] = " HJ ";
Mario.level[10] = "G HJ ";
Mario.level[11] = "LG U U U HJ 01 01 01 U U U U U U U U U U 01 ";
Mario.level[12] = "ILFFFFFFFFFFFFFFFFFFFFFFFFG EFFFFFFFFFFFFFFFFFFFFG EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFG 23 ";
Mario.level[13] = "IIIIIIIIIIIIIIIIIIIIIIIIIILFFFFFFFFFFFFFFFKIIIIIIIIIIIIIIIIIIIILFFFFFFFFFFFFFFKIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ EFFG ";
Mario.level[14] = "IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ HIIJ ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(500, 275));
Mario.instObjects.push(new Coin(250, 275));
Mario.instObjects.push(new Coin(450, 275));
Mario.instObjects.push(new Coin(400, 275));
Mario.instObjects.push(new Coin(350, 275));
Mario.instObjects.push(new Coin(300, 275));
Mario.instObjects.push(new Coin(275, 275));
Mario.instObjects.push(new Coin(325, 275));
Mario.instObjects.push(new Coin(375, 275));
Mario.instObjects.push(new Coin(425, 275));
Mario.instObjects.push(new Coin(475, 275));
Mario.instObjects.push(new Coin(1475, 225));
Mario.instObjects.push(new Coin(1475, 250));
Mario.instObjects.push(new Coin(1450, 250));
Mario.instObjects.push(new Coin(1450, 225));
Mario.instObjects.push(new Coin(1375, 225));
Mario.instObjects.push(new Coin(1375, 250));
Mario.instObjects.push(new Coin(1350, 250));
Mario.instObjects.push(new Coin(1350, 225));
Mario.instObjects.push(new Coin(1275, 225));
Mario.instObjects.push(new Coin(1275, 250));
Mario.instObjects.push(new Coin(1250, 225));
Mario.instObjects.push(new Coin(1250, 250));
Mario.instObjects.push(new Coin(1150, 225));
Mario.instObjects.push(new Coin(1175, 225));
Mario.instObjects.push(new Coin(1175, 250));
Mario.instObjects.push(new Coin(1150, 250));
Mario.instObjects.push(new Coin(825, 275));
Mario.instObjects.push(new Coin(825, 250));
Mario.instObjects.push(new Coin(900, 275));
Mario.instObjects.push(new Coin(900, 250));
Mario.instObjects.push(new Coin(1825, 275));
Mario.instObjects.push(new Coin(1825, 250));
Mario.instObjects.push(new Coin(1725, 250));
Mario.instObjects.push(new Coin(1725, 275));
Mario.instObjects.push(new Coin(2350, 175));
Mario.instObjects.push(new Coin(2325, 175));
Mario.instObjects.push(new Coin(2250, 175));
Mario.instObjects.push(new Coin(2225, 175));
Mario.instObjects.push(new Coin(2150, 175));
Mario.instObjects.push(new Coin(2125, 175));
Player.ResetPlayer(25, 275);
Mario.instEnemies.push(new Spiny(275, 275));
Mario.instEnemies.push(new Spiny(325, 275));
Mario.instEnemies.push(new Spiny(375, 275));
Mario.instEnemies.push(new Spiny(425, 275));
Mario.instEnemies.push(new Spiny(475, 275));
Mario.instEnemies.push(new HammerTroopa(825, 275));
Mario.instEnemies.push(new HammerTroopa(900, 275));
Mario.instEnemies.push(new PStatic(1150, 275));
Mario.instEnemies.push(new PStatic(1175, 275));
Mario.instEnemies.push(new PStatic(1250, 275));
Mario.instEnemies.push(new PStatic(1275, 275));
Mario.instEnemies.push(new PStatic(1350, 275));
Mario.instEnemies.push(new PStatic(1375, 275));
Mario.instEnemies.push(new PStatic(1450, 275));
Mario.instEnemies.push(new PStatic(1475, 275));
Mario.instEnemies.push(new HammerTroopa(1725, 275, true));
Mario.instEnemies.push(new HammerTroopa(1825, 275, true));
Mario.instEnemies.push(new PFlame(2125, 250));
Mario.instEnemies.push(new PFlame(2325, 250));
Mario.instObjects.push(new ElevatorFall(1975, 200, 25, "elevator_1"));
Mario.instEnemies.push(new PFlame(2225, 250));
Mario.instEnemies.push(new PStatic(4875, 300));
Mario.instEnemies.push(new PStatic(4950, 300));
Mario.instObjects.push(new Cannon(1100, 250));
Mario.instObjects.push(new Cannon(1100, 225));
Mario.instObjects.push(new Cannon(1525, 250));
Mario.instObjects.push(new Cannon(1525, 225));
Mario.instBlocks.push(new Bonus(25, 150, 2, true));
Mario.instBlocks.push(new Bonus(1075, 100, 4, true));
Mario.instObjects.push(new Lava(2725, 350));
Mario.instObjects.push(new Lava(2750, 350));
Mario.instObjects.push(new Lava(2775, 350));
Mario.instObjects.push(new Lava(2800, 350));
Mario.instObjects.push(new Lava(2825, 350));
Mario.instObjects.push(new Lava(2850, 350));
Mario.instObjects.push(new Lava(2875, 350));
Mario.instObjects.push(new Lava(2900, 350));
Mario.instObjects.push(new Lava(2925, 350));
Mario.instObjects.push(new Lava(2950, 350));
Mario.instObjects.push(new Lava(2975, 350));
Mario.instObjects.push(new Lava(3000, 350));
Mario.instObjects.push(new Lava(3025, 350));
Mario.instObjects.push(new Lava(3050, 350));
Mario.instObjects.push(new Lava(3075, 350));
Mario.instObjects.push(new Lava(3100, 350));
Mario.instObjects.push(new Lava(3125, 350));
Mario.instObjects.push(new Lava(3150, 350));
Mario.instObjects.push(new Lava(3175, 350));
Mario.instObjects.push(new Lava(3200, 350));
Mario.instObjects.push(new Lava(3225, 350));
Mario.instObjects.push(new Lava(3250, 350));
Mario.instObjects.push(new Lava(3275, 350));
Mario.instObjects.push(new Lava(3300, 350));
Mario.instObjects.push(new Lava(3325, 350));
Mario.instObjects.push(new Lava(3350, 350));
Mario.instObjects.push(new Lava(3375, 350));
Mario.instObjects.push(new Lava(3400, 350));
Mario.instObjects.push(new Lava(3425, 350));
Mario.instObjects.push(new Lava(3450, 350));
Mario.instObjects.push(new Lava(3475, 350));
Mario.instObjects.push(new Lava(3500, 350));
Mario.instObjects.push(new Lava(3525, 350));
Mario.instObjects.push(new Lava(3550, 350));
Mario.instObjects.push(new Lava(3575, 350));
Mario.instObjects.push(new Lava(3600, 350));
Mario.instObjects.push(new Lava(3625, 350));
Mario.instObjects.push(new Lava(3650, 350));
Mario.instObjects.push(new Lava(3675, 350));
Mario.instObjects.push(new Lava(3700, 350));
Mario.instObjects.push(new Lava(3725, 350));
Mario.instObjects.push(new Lava(3750, 350));
Mario.instObjects.push(new Lava(3775, 350));
Mario.instObjects.push(new Lava(3800, 350));
Mario.instObjects.push(new Lava(3825, 350));
Mario.instObjects.push(new Lava(3850, 350));
Mario.instObjects.push(new Lava(3875, 350));
Mario.instObjects.push(new Lava(3900, 350));
Mario.instObjects.push(new Lava(3925, 350));
Mario.instObjects.push(new Lava(3950, 350));
Mario.instObjects.push(new Lava(3975, 350));
Mario.instObjects.push(new Lava(4000, 350));
Mario.instObjects.push(new Lava(4025, 350));
Mario.instObjects.push(new Lava(4050, 350));
Mario.instObjects.push(new Lava(4075, 350));
Mario.instObjects.push(new Lava(4100, 350));
Mario.instObjects.push(new Lava(4125, 350));
Mario.instObjects.push(new Lava(4150, 350));
Mario.instObjects.push(new Lava(4175, 350));
Mario.instObjects.push(new Lava(4200, 350));
Mario.instObjects.push(new Lava(4225, 350));
Mario.instObjects.push(new Lava(4250, 350));
Mario.instObjects.push(new Lava(4275, 350));
Mario.instObjects.push(new Lava(4300, 350));
Mario.instObjects.push(new Lava(4325, 350));
Mario.instObjects.push(new Lava(4350, 350));
Mario.instObjects.push(new Lava(4375, 350));
Mario.instObjects.push(new Lava(4400, 350));
Mario.instObjects.push(new Lava(4425, 350));
Mario.instObjects.push(new Lava(4450, 350));
Mario.instObjects.push(new Lava(4475, 350));
Mario.instObjects.push(new Lava(4500, 350));
Mario.instObjects.push(new Lava(4525, 350));
Mario.instObjects.push(new Lava(4550, 350));
Mario.instObjects.push(new Lava(4575, 350));
Mario.instObjects.push(new Lava(4600, 350));
Mario.instObjects.push(new Lava(4625, 350));
Mario.instObjects.push(new Lava(4650, 350));
Mario.instObjects.push(new Lava(4675, 350));
Mario.instObjects.push(new Lava(4700, 350));
Mario.instObjects.push(new Lava(4725, 350));
Mario.instObjects.push(new Lava(4750, 350));
Mario.instObjects.push(new Lava(4775, 350));
Mario.instObjects.push(new Lava(4800, 350));
Mario.instObjects.push(new Lava(4825, 350));
Mario.instObjects.push(new Lava(4850, 350));
Mario.instObjects.push(new Lava(4975, 350));
Mario.instObjects.push(new Lava(5000, 350));
Mario.instObjects.push(new Lava(5025, 350));
Mario.instObjects.push(new Lava(5050, 350));
Mario.instObjects.push(new Lava(5075, 350));
Mario.instObjects.push(new Lava(5100, 350));
Mario.instObjects.push(new Lava(5125, 350));
Mario.instObjects.push(new Lava(5150, 350));
Mario.instObjects.push(new Lava(5175, 350));
Mario.instObjects.push(new Lava(5200, 350));
Mario.instObjects.push(new Lava(5225, 350));
Mario.instObjects.push(new Lava(5250, 350));
Mario.instObjects.push(new Lava(5275, 350));
Mario.instObjects.push(new Lava(5300, 350));
Mario.instObjects.push(new Lava(5325, 350));
Mario.instObjects.push(new Lava(5350, 350));
Mario.instObjects.push(new Lava(5375, 350));
Mario.instObjects.push(new Lava(5400, 350));
Mario.instObjects.push(new Lava(5425, 350));
Mario.instObjects.push(new Lava(5450, 350));
Mario.instObjects.push(new Lava(5475, 350));
Mario.instObjects.push(new Lava(5500, 350));
Mario.instObjects.push(new Lava(5525, 350));
Mario.instObjects.push(new Lava(5550, 350));
Mario.instObjects.push(new Lava(5575, 350));
Mario.instObjects.push(new Lava(5600, 350));
Mario.instObjects.push(new Lava(5625, 350));
Mario.instObjects.push(new Lava(5650, 350));
Mario.instObjects.push(new Lava(5675, 350));
Mario.instObjects.push(new Lava(5700, 350));
Mario.instObjects.push(new Lava(5725, 350));
Mario.instObjects.push(new Lava(5750, 350));
Mario.instObjects.push(new Pipein((197 * 25), (11 * 25), (195 * 25), (11 * 25), 1, 4));
Mario.instEffects.push(new Back(3));
break;
case 16:
Mario.levelGenre = 3;
Mario.level[0] = "D C45D C45D CM";
Mario.level[1] = " M";
Mario.level[2] = " M";
Mario.level[3] = " M";
Mario.level[4] = " M";
Mario.level[5] = " M";
Mario.level[6] = " M";
Mario.level[7] = " O O M";
Mario.level[8] = " M";
Mario.level[9] = " M";
Mario.level[10] = " M";
Mario.level[11] = " OOOOOOOOOOOOOO M";
Mario.level[12] = " M";
Mario.level[13] = " M";
Mario.level[14] = " M";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Lantern(350, 125));
Mario.instEffects.push(new Lantern(25, 125));
Mario.instEffects.push(new Lantern(250, 50));
Mario.instEffects.push(new Lantern(125, 50));
Mario.instObjects.push(new Lava(0, 350));
Mario.instObjects.push(new Lava(25, 350));
Mario.instObjects.push(new Lava(50, 350));
Mario.instObjects.push(new Lava(75, 350));
Mario.instObjects.push(new Lava(100, 350));
Mario.instObjects.push(new Lava(125, 350));
Mario.instObjects.push(new Lava(150, 350));
Mario.instObjects.push(new Lava(175, 350));
Mario.instObjects.push(new Lava(200, 350));
Mario.instObjects.push(new Lava(225, 350));
Mario.instObjects.push(new Lava(250, 350));
Mario.instObjects.push(new Lava(275, 350));
Mario.instObjects.push(new Lava(300, 350));
Mario.instObjects.push(new Lava(325, 350));
Mario.instObjects.push(new Lava(350, 350));
Mario.instObjects.push(new Lava(375, 350));
Player.ResetPlayer(200, 0);
Mario.instEnemies.push(new Bowser(350, 200, 0, 9, 15, 15, 15, 5));
Mario.instEffects.push(new Back(3));
Mario.instObjects.push(new LastLevel());
break;
case 17:
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " ";
Mario.level[7] = " ";
Mario.level[8] = " ";
Mario.level[9] = " ";
Mario.level[10] = " ";
Mario.level[11] = "dddddddddddddddd";
Mario.level[12] = "gggggggggggggggg";
Mario.level[13] = "gggggggggggggggg";
Mario.level[14] = "gggggggggggggggg";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Player.ResetPlayer(0, 0);
Mario.playerControllable = false;
Player.GFX2.alpha = 0;
Mario.Hud.GFX.alpha = 0;
Mario.instEffects.push(new Cloud(375, 0));
Mario.instEffects.push(new Cloud(325, 75));
Mario.instEffects.push(new Cloud(150, 25));
Mario.instEffects.push(new Cloud(25, 50));
Mario.layerWall.addChild(AddGraphic(200, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(100, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(250, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(275, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(300, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(325, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(350, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(375, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(175, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(150, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(125, 250, "back_fence_2"));
Mario.instEffects.push(new Grass(250, 250, "r"));
Mario.instEffects.push(new Grass(225, 250, "m"));
Mario.instEffects.push(new Grass(200, 250, "l"));
Mario.instEffects.push(new Grass(100, 250, "r"));
Mario.instEffects.push(new Grass(75, 250, "m"));
Mario.instEffects.push(new Grass(50, 250, "m"));
Mario.instEffects.push(new Grass(25, 250, "l"));
Mario.layerWall.addChild(AddGraphic(375, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(375, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(375, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(375, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(375, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(300, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(300, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(300, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(25, 150, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(25, 175, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(25, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(25, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(25, 250, "back_tree_1"));
Mario.instObjects.push(new GameEnd());
Mario.musika = 13;
break;
};
if (Mario.levelid < 7){
Mario.sequence = 0;
Mario.self.waitScreen();
};
Mario.stepping = true;
}
}//package objects
Section 372
//Mill (objects.Mill)
package objects {
import flash.display.*;
import mx.core.*;
public class Mill extends Obj {
public var moment:Number;
public var dist:uint;
public var speed:Number;
public var GFX:Sprite;
public var millX:Number;
public var millY:Number;
private static const PI:Number = 3.14159265358979;
public function Mill(x:uint, y:uint, dis:uint, spd:Number, mom:Number=0){
GFX = new Sprite();
super();
oX = (x + 12);
oY = (y + 12);
dist = dis;
speed = ((PI / 240) * spd);
moment = mom;
setPos();
var wall:BitmapAsset = new (Mario.classGFX.AccessGFX("Wall_P"));
wall.x = x;
wall.y = y;
Mario.layerWall.addChild(wall);
var GFX2:BitmapAsset = new (Mario.classGFX.AccessGFX("enemy_mill"));
GFX2.x = -12.5;
GFX2.y = -12.5;
GFX.addChild(GFX2);
GFX.x = (millX + 11);
GFX.y = (millY + 11);
Mario.layerEffects.addChild(GFX);
Mario.changeLevel((x / 25), (y / 25), "x");
}
private function setPos():void{
millX = ((oX + (Math.cos(moment) * dist)) - 11);
millY = ((oY + (Math.sin(moment) * dist)) - 11);
}
override public function Update(myID:uint):void{
moment = (moment + speed);
setPos();
GFX.x = (millX + 11);
GFX.y = (millY + 11);
if (Mario.playerCollide(millX, millY, 23, 23)){
Mario.hitPlayer();
};
}
}
}//package objects
Section 373
//Obj (objects.Obj)
package objects {
public class Obj {
var oX:Number;
var oY:Number;
public function Obj(){
super();
}
public function Update(myID:uint):void{
}
}
}//package objects
Section 374
//Pauser (objects.Pauser)
package objects {
import flash.display.*;
import flash.media.*;
public class Pauser {
private var shade:Shape;
public function Pauser(){
shade = new Shape();
super();
shade.graphics.beginFill(0, 0.5);
shade.graphics.drawRect(0, 0, 400, 375);
shade.graphics.endFill();
Mario.layerGover.addChild(shade);
SoundMixer.soundTransform = new SoundTransform(0.3, 0);
}
public function kill():void{
Mario.layerGover.removeChild(shade);
SoundMixer.soundTransform = new SoundTransform(1, 0);
}
}
}//package objects
Section 375
//PFlame (objects.PFlame)
package objects {
import flash.display.*;
public class PFlame extends Enemy {
private var GFX:Array;
private var timer:uint;// = 0
private var wait:uint;// = 0
private var frame:uint;// = 0
public function PFlame(Xpos:uint, Ypos:uint, d:int=1){
GFX = new Array(2);
super();
bounce = false;
eX = (Xpos + 14);
eY = Ypos;
eWid = 20;
dir = d;
eHei = 32;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_pflame_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_pflame_2"));
GFX[0].x = (eX - 2);
GFX[0].y = ((eY - 2) + ((dir == -1)) ? 38 : 0);
GFX[0].scaleY = (GFX[1].scaleY = dir);
Mario.layerHide.addChild(GFX[0]);
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerHide.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
return (true);
}
override public function Update(myID:uint):void{
if (active){
if (dir == 1){
if (timer < 100){
timer++;
} else {
if (timer == 100){
if (((((Player.pX - eX) < -72)) || (((Player.pX - eX) > 50)))){
timer = 101;
};
} else {
if (timer == 101){
eY--;
if (Mario.levelColl(eX, ((eY + eHei) - 1)) == false){
timer = 102;
};
} else {
if (timer == 105){
eY++;
if (Mario.levelColl(eX, (eY - 3))){
timer = 0;
};
};
};
};
};
} else {
if (timer < 100){
timer++;
} else {
if (timer == 100){
if (((((Player.pX - eX) < -72)) || (((Player.pX - eX) > 50)))){
timer = 101;
};
} else {
if (timer == 101){
eY++;
if (Mario.levelColl(eX, eY) == false){
timer = 102;
};
} else {
if (timer == 105){
eY--;
if (Mario.levelColl(eX, ((eY + eHei) + 3))){
timer = 0;
};
};
};
};
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
Mario.hitPlayer();
};
wait++;
if (wait == 15){
Mario.layerHide.removeChild(GFX[frame]);
frame = (1 - frame);
if (frame == 0){
if ((((timer >= 102)) && ((timer < 105)))){
timer++;
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
if (dir == 1){
Mario.instObjects.push(new Fireplant((eX + 10), (eY + 5), ((Mario.Sign((Player.pX - eX)) * 4) * Math.random()), -6));
} else {
Mario.instObjects.push(new Fireplant((eX + 10), (eY + 30), ((Mario.Sign((Player.pX - eX)) * 4) * Math.random()), 1));
};
};
};
};
Mario.layerHide.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (eX - 2);
GFX[frame].y = ((eY - 2) + ((dir == -1)) ? 38 : 0);
} else {
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
active = true;
timer = 100;
};
};
}
}
}//package objects
Section 376
//Pipein (objects.Pipein)
package objects {
import mx.core.*;
import flash.media.*;
public class Pipein {
public var oX:int;
public var oY:int;
public var lockX:uint;// = 0
public var obje:PlayerPiper;
public var backid:uint;// = 0
public var scroll:Boolean;
public var endX:int;
public var endY:int;
public var seq:int;// = 0
public var dirout:int;
public var SFXPupupu:Sound;
public var dirin:int;
public static var BGon:Boolean = false;
public static var BG:BitmapAsset;
public function Pipein(obX:int, obY:int, eX:int, eY:int, dri:int, dro:int, Bid:uint=0, scroll:Boolean=true, lX:uint=0){
SFXPupupu = new (Mario.classSFX.accessSFX("powerdown"));
super();
backid = Bid;
this.scroll = scroll;
lockX = lX;
oX = obX;
oY = obY;
endX = eX;
endY = eY;
dirin = dri;
dirout = dro;
}
public function Leave():void{
if (Mario.sounds){
SFXPupupu.play();
};
switch (dirout){
case 0:
Player.pX = endX;
obje = new PlayerPiper(Player.pX, endY, 1, 0, false, scroll);
break;
case 1:
Player.pX = (endX - 12);
obje = new PlayerPiper(Player.pX, (endY - Player.pHei), 0, 1, false, scroll);
break;
case 2:
Player.pX = endX;
obje = new PlayerPiper(Player.pX, endY, -1, 0, false, scroll);
break;
case 3:
Player.pX = (endX - 12);
obje = new PlayerPiper((endX - 12), endY, 0, -1, false, scroll);
break;
case 4:
Mario.playerControllable = true;
Mario.levelid++;
Mario.clearLevel();
Mario.decreaseI = 1;
};
if (backid == 0){
if (BGon){
Mario.layerPipe.removeChild(BG);
BGon = false;
};
} else {
if (BGon){
Mario.layerPipe.removeChild(BG);
BGon = false;
};
BG = new (Mario.classGFX.AccessGFX(("back_" + backid)));
Mario.layerPipe.addChild(BG);
BGon = true;
};
if (scroll){
Mario.scrolling = true;
Mario.centerScreen(Player.pX);
} else {
Mario.scrolling = false;
Mario.layerHide.x = -(lockX);
Mario.layerWall.x = -(lockX);
Mario.layerFore.x = -(lockX);
Mario.layerEffects.x = -(lockX);
};
seq = 31;
}
public function Update(myID:uint):void{
switch (seq){
case 0:
if (Mario.playerCollide((oX - 2), (oY - 2), 6, 6)){
if (Mario.isKeyDown(dirin)){
if (Player.crouch){
Player.pHei = 45;
Player.pY = (Player.pY - 21);
Player.crouch = 0;
};
Enter();
};
};
break;
case 1:
if (obje.completed){
Mario.layerHide.removeChild(obje.GFX);
seq = 2;
} else {
obje.Update();
};
break;
case 30:
Leave();
break;
case 31:
if (obje.completed){
seq = 0;
Player.ResetPlayer(obje.pX, obje.pY);
Mario.playerControllable = true;
Mario.layerHide.removeChild(obje.GFX);
} else {
obje.Update();
};
break;
default:
seq++;
};
}
public function Enter():void{
Mario.playerControllable = false;
Mario.layerFore.removeChild(Player.GFX2);
Mario.Hud.debugtext.text = String(dirin);
if (Mario.sounds){
SFXPupupu.play();
};
switch (dirin){
case 0:
obje = new PlayerPiper((oX - 12), (oY - Player.pHei), 1, 0, true);
break;
case 1:
Player.pX = (oX - 12);
obje = new PlayerPiper(Player.pX, (oY - Player.pHei), 0, 1, true);
break;
case 2:
obje = new PlayerPiper((oX - 12), (oY - Player.pHei), -1, 0, true);
break;
case 3:
Player.pX = (oX - 12);
obje = new PlayerPiper(Player.pX, (oY - Player.pHei), 0, -1, true);
break;
};
if (Mario.scrolling){
Mario.centerScreen(Player.pX);
};
seq = 1;
}
}
}//package objects
Section 377
//Player (objects.Player)
package objects {
import flash.display.*;
import mx.core.*;
import flash.media.*;
import flash.geom.*;
public class Player {
private var JUMP:Boolean;// = false
public var SFXKick:Sound;
private var SFXJump:Sound;
private var SFXBump:Sound;
private var SFXRadish:Sound;
public static const PLAYER_MAXSPEED:Number = 356;
public static const PLAYER_SPEED:Number = 16;
public static var hitStomp:Boolean = false;
public static var dir:int = 1;
public static var SFXDeath:Sound = new (Mario.classSFX.accessSFX("death"));
;
public static var pSize:uint = 0;
public static var hitHead:Boolean = false;
public static var elev:Elevator;
public static var trans:ColorTransform = new ColorTransform();
public static var sequenceFrame:uint = 0;
public static var crouch:uint = 0;
public static var SFXPowerup:Sound = new (Mario.classSFX.accessSFX("powerup"));
;
public static var sequence:int = 0;
public static var pWid:uint = 22;
public static var speed:Number = 0;
public static var gravity:Number = 0;
public static var SFXPowerdown:Sound = new (Mario.classSFX.accessSFX("powerdown"));
;
public static var GFX:BitmapAsset;
private static var jumper:uint = 0;
private static var maxJumper:uint = 0;
private static var seq:uint = 0;
public static var pX:int;
public static var pY:int;
public static var frame:uint = 0;
public static var fired:uint = 0;
public static var shield:uint = 0;
public static var GFX2:Sprite = new Sprite();
public static var pHei:uint = 24;
public static var starred:uint = 0;
public function Player(iX:Number, iY:Number):void{
SFXJump = new (Mario.classSFX.accessSFX("jump"));
SFXRadish = new (Mario.classSFX.accessSFX("radish"));
SFXBump = new (Mario.classSFX.accessSFX("bump"));
SFXKick = new (Mario.classSFX.accessSFX("kick"));
super();
pX = iX;
pY = iY;
var GFXclass:Class = Mario.classGFX.AccessGFX("object_mario0_walk_1");
GFX = new (GFXclass);
GFX.x = (pX - 2);
GFX.y = (pY - 3);
GFX2.addChild(GFX);
Mario.layerFore.addChild(GFX2);
}
public function Update():void{
var GFXclass:Class;
seq = 0;
if (pSize > 0){
if (Mario.isKeyDown(1)){
if (crouch == 0){
pHei = 24;
pY = (pY + 21);
crouch = 1;
};
} else {
if ((((crouch == 1)) && (((Mario.levelColl(pX, (pY + pHei))) || (Mario.levelColl(((pX + pWid) - 1), (pY + pHei))))))){
pHei = 45;
pY = (pY - 21);
crouch = 2;
};
};
} else {
crouch = 0;
};
if (crouch == 0){
if (Mario.isKeyDown(0)){
dir = 1;
if (speed > -10){
if (speed < PLAYER_MAXSPEED){
speed = (speed + PLAYER_SPEED);
};
} else {
dir = -1;
seq = 1;
speed = (speed + (PLAYER_SPEED * 3));
};
} else {
if (Mario.isKeyDown(2)){
dir = -1;
if (speed < 10){
if (speed > -(PLAYER_MAXSPEED)){
speed = (speed - PLAYER_SPEED);
};
} else {
dir = 1;
seq = 1;
speed = (speed - (PLAYER_SPEED * 3));
};
} else {
if (speed > 2){
speed = (speed - PLAYER_SPEED);
} else {
if (speed < -2){
speed = (speed + PLAYER_SPEED);
};
};
};
};
} else {
if ((((Mario.levelColl(pX, (pY + pHei)) == false)) && ((Mario.levelColl(((pX + pWid) - 1), (pY + pHei)) == false)))){
if (Mario.isKeyDown(0)){
dir = 1;
if (speed > -10){
if (speed < PLAYER_MAXSPEED){
speed = (speed + PLAYER_SPEED);
};
} else {
dir = -1;
seq = 1;
speed = (speed + (PLAYER_SPEED * 3));
};
} else {
if (Mario.isKeyDown(2)){
dir = -1;
if (speed < 10){
if (speed > -(PLAYER_MAXSPEED)){
speed = (speed - PLAYER_SPEED);
};
} else {
dir = 1;
seq = 1;
speed = (speed - (PLAYER_SPEED * 3));
};
} else {
if (speed > 2){
speed = (speed - (PLAYER_SPEED / 2));
} else {
if (speed < -2){
speed = (speed + (PLAYER_SPEED / 2));
};
};
};
};
} else {
if (Mario.isKeyDown(0)){
dir = 1;
} else {
if (Mario.isKeyDown(2)){
dir = -1;
};
};
if (speed > 2){
speed = (speed - PLAYER_SPEED);
} else {
if (speed < -2){
speed = (speed + PLAYER_SPEED);
};
};
};
};
if (Mario.isKeyPressed(3)){
JUMP = true;
} else {
if (!Mario.isKeyDown(3)){
JUMP = false;
};
};
if (((((Mario.isKeyPressed(3)) || (JUMP))) && (((((!((elev == null))) || (Mario.levelColl(pX, ((pY + pHei) + 1))))) || (Mario.levelColl(((pX + pWid) - 1), ((pY + pHei) + 1))))))){
gravity = -7;
jumper = 1;
JUMP = false;
maxJumper = ((12 - 3) + Math.min(3, Math.abs((speed / 100))));
if (elev){
elev.free();
};
if (Mario.sounds){
SFXJump.play();
};
};
if (((((Mario.isKeyDown(3)) && ((jumper < maxJumper)))) && ((jumper > 0)))){
jumper++;
gravity = -7;
} else {
jumper = 20;
};
if (crouch < 2){
pX = (pX + Math.round((speed / 100)));
if (speed > 0){
if (((((Mario.levelColl(((pX + pWid) - 1), pY)) || (Mario.levelColl(((pX + pWid) - 1), ((pY + pHei) - 1))))) || (Mario.levelColl(((pX + pWid) - 1), (pY + ((pHei - 1) / 2)))))){
speed = 0;
pX = (((Math.floor((pX / 25)) * 25) + 25) - pWid);
};
} else {
if (((((Mario.levelColl(pX, pY)) || (Mario.levelColl(pX, ((pY + pHei) - 1))))) || (Mario.levelColl(pX, (pY + ((pHei - 1) / 2)))))){
speed = 0;
pX = ((Math.floor((pX / 25)) * 25) + 25);
};
};
if (gravity > 10){
gravity = 10;
};
if ((((((elev == null)) && ((Mario.levelColl(pX, (pY + pHei)) == false)))) && ((Mario.levelColl(((pX + pWid) - 1), (pY + pHei)) == false)))){
gravity = (gravity + Mario.gravity);
seq = 2;
} else {
if (gravity >= 0){
gravity = 0;
};
};
pY = (pY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(pX, ((pY + pHei) - 1))) || (Mario.levelColl(((pX + pWid) - 1), ((pY + pHei) - 1))))){
jumper = 0;
gravity = 0;
pY = ((Math.floor((pY / 25)) * 25) + ((crouch == 0)) ? ((pSize > 0)) ? 5 : 1 : 1);
seq = 0;
};
} else {
if (((Mario.levelColl(pX, pY)) || (Mario.levelColl(((pX + pWid) - 1), pY)))){
jumper = 0;
gravity = 0;
Player.hitHead = true;
if (Mario.sounds){
SFXBump.play();
};
pY = ((Math.floor((pY / 25)) * 25) + 25);
};
};
} else {
if (((((((Mario.levelColl(pX, ((pY + pHei) - 1))) || (Mario.levelColl(((pX + pWid) - 1), pY)))) || (Mario.levelColl(((pX + pWid) - 1), ((pY + pHei) - 1))))) || (Mario.levelColl(pX, pY)))){
pX = (pX + 2);
} else {
crouch = 0;
};
};
var size:uint = pSize;
var visible:uint;
if (sequence != 0){
sequenceFrame--;
if ((sequenceFrame % 2) == 1){
switch (sequence){
case -2:
size = 2;
break;
case -1:
size = 1;
break;
case 1:
size = 0;
break;
case 2:
size = 1;
break;
};
};
if (sequenceFrame == 0){
sequence = 0;
};
} else {
if (shield > 0){
visible = (shield % 2);
shield--;
};
};
if (crouch == 1){
GFXclass = Mario.classGFX.AccessGFX((("object_mario" + size) + "_crouch"));
} else {
if ((((((pSize == 2)) && (Mario.isKeyPressed(5)))) && ((Mario.radishNO < 2)))){
Mario.instObjects.push(new Fireball((pX + ((dir == 1)) ? 22 : 0), (pY + 10), dir));
Mario.radishNO++;
if (Mario.sounds){
SFXRadish.play();
};
GFXclass = Mario.classGFX.AccessGFX("object_mario2_fire");
fired = 4;
} else {
if (fired > 0){
GFXclass = Mario.classGFX.AccessGFX("object_mario2_fire");
fired--;
} else {
switch (seq){
case 0:
frame = (((frame + Math.abs((speed / 3))) % 1367) + 1);
if (Math.abs(speed) < 10){
frame = 400;
};
GFXclass = Mario.classGFX.AccessGFX(((("object_mario" + String(size)) + "_walk_") + String(Math.ceil((frame / 456)))));
break;
case 1:
GFXclass = Mario.classGFX.AccessGFX((("object_mario" + String(size)) + "_brake"));
break;
case 2:
GFXclass = Mario.classGFX.AccessGFX((("object_mario" + String(size)) + "_jump"));
break;
};
};
};
};
GFX2.removeChild(GFX);
GFX = new (GFXclass);
GFX.scaleX = dir;
GFX.x = ((pX - ((dir == -1)) ? -25 : 3) + (visible * 1000));
GFX.y = ((pY - 3) - ((((pSize == 0)) || ((crouch == 1)))) ? 21 : 0);
if (starred > 0){
Player.hitStomp = true;
Mario.enemyStarHit(pX, pY, pWid, pHei, dir);
if ((((starred > 100)) || (((starred % 5) == 0)))){
trans.greenOffset = ((Math.random() - 0.5) * 400);
trans.redOffset = ((Math.random() - 0.5) * 400);
trans.blueOffset = ((Math.random() - 0.5) * 0);
};
starred--;
if (starred == 0){
Mario.classSFX.Play(Mario.musika);
};
} else {
trans.greenOffset = 0;
trans.redOffset = 0;
trans.blueOffset = 0;
};
GFX2.transform.colorTransform = trans;
GFX2.addChild(GFX);
if (pY > ((Mario.levelHei * 25) + 25)){
Mario.hitPlayer(true);
};
if (Mario.scrolling){
Mario.scrollX = Math.min((200 - Player.pX), -(Mario.scrollEdge));
};
}
public static function CeilPull():void{
var kY:uint;
if (((Mario.levelColl(pX, pY)) || (Mario.levelColl(((pX + pWid) - 1), pY)))){
kY = ((Math.floor((pY / 25)) * 25) + 25);
if (((Mario.levelColl(pX, ((kY + pHei) - 1))) || (Mario.levelColl(((pX + pWid) - 1), ((kY + pHei) - 1))))){
crouch = 2;
} else {
pY = kY;
};
};
}
public static function starMe():void{
starred = 400;
Mario.classSFX.Play(3);
}
public static function Reset():void{
Player.hitStomp = false;
Player.hitHead = false;
}
public static function Bounce(enemyY:int):void{
Player.pY = (enemyY - Player.pHei);
Player.gravity = -7;
Player.jumper = 1;
CeilPull();
GFX.x = (pX - ((dir == -1)) ? -25 : 3);
GFX.y = ((pY - 3) - ((((pSize == 0)) || ((crouch == 1)))) ? 21 : 0);
}
public static function Falls():Boolean{
if (Player.gravity > 1){
return (true);
};
return (false);
}
public static function ResetGraphic():void{
GFX.scaleX = dir;
GFX.x = (pX - ((dir == -1)) ? -25 : 3);
GFX.y = ((pY - 3) - ((((pSize == 0)) || ((crouch == 1)))) ? 21 : 0);
}
public static function ResetPlayer(xX:Number, xY:Number):void{
pX = xX;
pY = xY;
speed = 0;
gravity = 0;
jumper = 0;
GFX.x = (pX - ((dir == -1)) ? -25 : 3);
GFX.y = ((pY - 3) - ((((pSize == 0)) || ((crouch == 1)))) ? 21 : 0);
if (((Mario.levelColl(pX, ((pY + pHei) - 1))) || (Mario.levelColl(((pX + pWid) - 1), ((pY + pHei) - 1))))){
Player.pY = (Player.pY - 25);
};
Mario.layerFore.addChild(GFX2);
}
}
}//package objects
Section 378
//PlayerFinish (objects.PlayerFinish)
package objects {
import mx.core.*;
import flash.media.*;
public class PlayerFinish {
public const PLAYER_SPEED:Number = 12;
public var GFX:BitmapAsset;
private var timer:int;// = 0
public var speed:Number;// = 0
public var pX:int;
private var SFXPoint:Sound;
private var frame:uint;// = 0
private var gravity:Number;// = 0
public var pY:int;
public function PlayerFinish(iX:Number, iY:Number, grav:Number, spd:Number, frm:uint):void{
SFXPoint = new (Mario.classSFX.accessSFX("points"));
super();
pX = iX;
pY = iY;
speed = spd;
frame = frm;
gravity = grav;
if (Player.crouch > 0){
Player.pHei = (Player.pHei + 25);
pY = (pY - 21);
};
if (((Mario.levelColl(pX, (pY + Player.pHei))) || (Mario.levelColl((pX + Player.pWid), (pY + Player.pHei))))){
GFX = new (Mario.classGFX.AccessGFX(((("object_mario" + String(Player.pSize)) + "_walk_") + String(Math.ceil((frame / 456))))));
} else {
GFX = new (Mario.classGFX.AccessGFX((("object_mario" + Player.pSize) + "_jump")));
};
GFX.x = (pX - 3);
GFX.y = ((pY - 3) - ((Player.pSize == 0)) ? 21 : 0);
Mario.layerFore.addChild(GFX);
}
public function Update(myID:uint):void{
Mario.classSFX.Play();
if (speed > 200){
speed = (speed - PLAYER_SPEED);
} else {
if (speed < 185){
speed = (speed + PLAYER_SPEED);
};
};
pX = (pX + Math.round((speed / 100)));
Mario.layerFore.removeChild(GFX);
if ((((Mario.levelColl(pX, (pY + Player.pHei)) == false)) && ((Mario.levelColl((pX + Player.pWid), (pY + Player.pHei)) == false)))){
gravity = (gravity + Mario.gravity);
pY = (pY + gravity);
frame = 400;
GFX = new (Mario.classGFX.AccessGFX((("object_mario" + Player.pSize) + "_jump")));
} else {
pY = ((Math.floor((pY / 25)) * 25) + ((Player.pSize > 0)) ? 5 : 1);
frame = (((frame + Math.abs((speed / 3))) % 1367) + 1);
GFX = new (Mario.classGFX.AccessGFX(((("object_mario" + String(Player.pSize)) + "_walk_") + String(Math.ceil((frame / 456))))));
};
GFX.x = (pX - 3);
GFX.y = ((pY - 3) - ((Player.pSize == 0)) ? 21 : 0);
Mario.layerFore.addChild(GFX);
if (timer > 150){
if (Mario.Hud.Time > 0){
Mario.Hud.Time--;
Mario.Hud.Pnts = (Mario.Hud.Pnts + 100);
};
if (Mario.Hud.Time > 4){
Mario.Hud.Time = (Mario.Hud.Time - 4);
if (Mario.sounds){
SFXPoint.play();
};
Mario.Hud.Pnts = (Mario.Hud.Pnts + 20);
};
Mario.Hud.RedrawPnts();
Mario.Hud.RedrawTime();
if (Mario.Hud.Time == 0){
timer++;
};
if (timer == 450){
Mario.levelid++;
Mario.clearLevel();
};
} else {
timer++;
};
}
}
}//package objects
Section 379
//PlayerPiper (objects.PlayerPiper)
package objects {
import mx.core.*;
public class PlayerPiper {
public var GFX:BitmapAsset;
public var moveX:int;
public var pX:int;
public var pY:int;
public var completed:Boolean;// = false
public var moveY:int;
public var gX:int;// = 0
public var enter:Boolean;
public var gY:int;// = 0
private var lock:Boolean;
public function PlayerPiper(peX:int, peY:int, mX:int, mY:int, en:Boolean, l:Boolean=false){
super();
pX = peX;
pY = peY;
lock = l;
moveX = mX;
moveY = mY;
enter = en;
if (moveX != 0){
GFX = new (Mario.classGFX.AccessGFX((("object_mario" + String(Player.pSize)) + "_walk_3")));
gX = ((mX > 0)) ? 0 : 25;
gY = ((Player.pSize > 0)) ? 0 : -21;
pY = (pY - ((Player.pSize > 0)) ? 21 : 0);
GFX.scaleX = mX;
} else {
GFX = new (Mario.classGFX.AccessGFX((("object_mario" + String(Player.pSize)) + "_enter")));
gY = ((Player.pSize > 0)) ? 0 : -21;
};
GFX.x = (pX + gX);
GFX.y = (pY + gY);
Mario.layerHide.addChild(GFX);
}
public function Update():void{
pX = (pX + moveX);
pY = (pY + moveY);
GFX.x = (pX + gX);
GFX.y = (pY + gY);
if (enter){
if (((((((Mario.levelColl(pX, pY)) && (Mario.levelColl(((pX + Player.pWid) - 1), pY)))) && (Mario.levelColl(pX, ((pY + Player.pHei) - 1))))) && (Mario.levelColl(((pX + Player.pWid) - 1), ((pY + Player.pHei) - 1))))){
completed = true;
};
} else {
if ((((((((Mario.levelColl(pX, pY) == false)) && ((Mario.levelColl(((pX + Player.pWid) - 1), pY) == false)))) && ((Mario.levelColl(pX, ((pY + Player.pHei) - 1)) == false)))) && ((Mario.levelColl(((pX + Player.pWid) - 1), ((pY + Player.pHei) - 1)) == false)))){
completed = true;
};
};
if (lock){
Mario.centerScreen(pX);
};
}
}
}//package objects
Section 380
//Points (objects.Points)
package objects {
import mx.core.*;
public class Points extends Effect {
private var GFX:BitmapAsset;
private var fY:int;
public function Points(oX:Number, oY:Number, numb:String){
super();
fY = oY;
var GFXclass:Class = Mario.classGFX.AccessGFX(("effect_points_" + numb));
GFX = new (GFXclass);
GFX.x = Math.floor((oX - (GFX.width / 2)));
GFX.y = fY;
Mario.layerEffects.addChild(GFX);
timer = 120;
switch (numb){
case "100":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 100);
Mario.Hud.RedrawPnts();
break;
case "200":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 200);
Mario.Hud.RedrawPnts();
break;
case "500":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 500);
Mario.Hud.RedrawPnts();
break;
case "1000":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 1000);
Mario.Hud.RedrawPnts();
break;
case "2000":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 2000);
Mario.Hud.RedrawPnts();
break;
case "5000":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 5000);
Mario.Hud.RedrawPnts();
break;
case "8000":
Mario.Hud.Pnts = (Mario.Hud.Pnts + 8000);
Mario.Hud.RedrawPnts();
break;
case "1up":
Mario.Hud.Lives++;
Mario.Hud.RedrawPnts();
break;
};
}
override public function Update(myID:uint):void{
fY = (fY - 1);
timer--;
GFX.y = fY;
GFX.alpha = (timer / 30);
if (timer == 0){
Mario.removeEffect(myID);
Mario.layerEffects.removeChild(GFX);
};
}
}
}//package objects
Section 381
//PPlant (objects.PPlant)
package objects {
import flash.display.*;
public class PPlant extends Enemy {
private var GFX:Array;
private var timer:uint;// = 0
private var wait:uint;// = 0
private var frame:uint;// = 0
public function PPlant(Xpos:uint, Ypos:uint, d:int=1){
GFX = new Array(2);
super();
bounce = false;
eX = (Xpos + 14);
eY = Ypos;
eWid = 20;
dir = d;
eHei = 32;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_pplant_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_pplant_2"));
GFX[0].x = (eX - 2);
GFX[0].y = ((eY - 2) + ((dir == -1)) ? 38 : 0);
GFX[0].scaleY = (GFX[1].scaleY = dir);
Mario.layerHide.addChild(GFX[0]);
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerHide.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
return (true);
}
override public function Update(myID:uint):void{
if (active){
if (dir == 1){
if (timer < 100){
timer++;
} else {
if (timer == 100){
if (((((Player.pX - eX) < -72)) || (((Player.pX - eX) > 50)))){
timer = 101;
};
} else {
if (timer == 101){
eY--;
if (Mario.levelColl(eX, ((eY + eHei) - 1)) == false){
timer = 102;
};
} else {
if (timer < 160){
timer++;
} else {
if (timer == 160){
eY++;
if (Mario.levelColl(eX, (eY - 3))){
timer = 0;
};
};
};
};
};
};
} else {
if (timer < 100){
timer++;
} else {
if (timer == 100){
if (((((Player.pX - eX) < -72)) || (((Player.pX - eX) > 50)))){
timer = 101;
};
} else {
if (timer == 101){
eY++;
if (Mario.levelColl(eX, eY) == false){
timer = 102;
};
} else {
if (timer < 160){
timer++;
} else {
if (timer == 160){
eY--;
if (Mario.levelColl(eX, ((eY + eHei) + 3))){
timer = 0;
};
};
};
};
};
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
Mario.hitPlayer();
};
wait++;
if (wait == 15){
Mario.layerHide.removeChild(GFX[frame]);
frame = (1 - frame);
Mario.layerHide.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (eX - 2);
GFX[frame].y = ((eY - 2) + ((dir == -1)) ? 38 : 0);
} else {
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
active = true;
timer = 100;
};
};
}
}
}//package objects
Section 382
//PStatic (objects.PStatic)
package objects {
public class PStatic extends Enemy {
private var wait:uint;// = 0
private var GFX:Array;
private var frame:uint;// = 0
public function PStatic(x:uint, y:uint){
GFX = new Array(3);
super();
eX = x;
eY = y;
frame = Math.abs((-((wait / 4)) + 2));
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_pstatic_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_pstatic_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("enemy_pstatic_3"));
GFX[0].x = (GFX[1].x = (GFX[2].x = x));
GFX[0].y = (GFX[1].y = (GFX[2].y = y));
Mario.layerWall.addChild(GFX[frame]);
}
override public function Update(myID:uint):void{
wait++;
if ((wait % 4) == 0){
Mario.layerWall.removeChild(GFX[frame]);
frame = Math.abs((-((wait / 4)) + 2));
if (wait == 16){
wait = 0;
};
Mario.layerWall.addChild(GFX[frame]);
};
if (Mario.playerCollide((eX + 2), (eY + 2), 21, 21)){
Mario.hitPlayer();
};
}
override public function Fire(myID:uint, dir:int):Boolean{
return (false);
}
override public function FireballHit(myID:uint, dir:int):Boolean{
return (false);
}
}
}//package objects
Section 383
//SFX (objects.SFX)
package objects {
import flash.media.*;
public class SFX {
private var SFX_MUS1:Class;
private var SFX_MUS2:Class;
private var SFX_BOWSERHIT:Class;
private var SFX_MUS6:Class;
private var SFX_MUS4:Class;
private var SFX_MUS5:Class;
private var SFX_MUS9:Class;
private var SFX_MUS3:Class;
private var SFX_HURRY:Class;
private var SFX_SPROUT:Class;
public var Musics:Array;
private var SFX_LIFE:Class;
private var SFX_CANNON:Class;
private var SFX_MUS8:Class;
private var SFX_DEATH:Class;
private var SFX_MUS7:Class;
private var SFX_POWERDOWN:Class;
private var SFX_COIN:Class;
private var SFX_STOMP2:Class;
public var playingMus:SoundChannel;
private var SFX_GROWL:Class;
private var SFX_BRICK:Class;
private var SFX_JUMP:Class;
private var SFX_BOWSERKILL:Class;
private var SFX_FIREBALL:Class;
private var SFX_BUMP:Class;
private var SFX_LEVEL_COMPLETE:Class;
private var SFX_STOMP:Class;
private var SFX_GAMEOVER:Class;
private var SFX_POWERUP:Class;
private var SFX_KICK:Class;
private var SFX_LAKITU:Class;
private var SFX_POINTS:Class;
public function SFX(){
Musics = new Array(6);
SFX_BOWSERHIT = SFX_SFX_BOWSERHIT;
SFX_BOWSERKILL = SFX_SFX_BOWSERKILL;
SFX_BRICK = SFX_SFX_BRICK;
SFX_BUMP = SFX_SFX_BUMP;
SFX_CANNON = SFX_SFX_CANNON;
SFX_COIN = SFX_SFX_COIN;
SFX_DEATH = SFX_SFX_DEATH;
SFX_FIREBALL = SFX_SFX_FIREBALL;
SFX_GAMEOVER = SFX_SFX_GAMEOVER;
SFX_GROWL = SFX_SFX_GROWL;
SFX_HURRY = SFX_SFX_HURRY;
SFX_JUMP = SFX_SFX_JUMP;
SFX_KICK = SFX_SFX_KICK;
SFX_LAKITU = SFX_SFX_LAKITU;
SFX_LEVEL_COMPLETE = SFX_SFX_LEVEL_COMPLETE;
SFX_LIFE = SFX_SFX_LIFE;
SFX_POINTS = SFX_SFX_POINTS;
SFX_POWERDOWN = SFX_SFX_POWERDOWN;
SFX_POWERUP = SFX_SFX_POWERUP;
SFX_SPROUT = SFX_SFX_SPROUT;
SFX_STOMP = SFX_SFX_STOMP;
SFX_STOMP2 = SFX_SFX_STOMP2;
SFX_MUS1 = SFX_SFX_MUS1;
SFX_MUS2 = SFX_SFX_MUS2;
SFX_MUS3 = SFX_SFX_MUS3;
SFX_MUS4 = SFX_SFX_MUS4;
SFX_MUS5 = SFX_SFX_MUS5;
SFX_MUS6 = SFX_SFX_MUS6;
SFX_MUS7 = SFX_SFX_MUS7;
SFX_MUS8 = SFX_SFX_MUS8;
SFX_MUS9 = SFX_SFX_MUS9;
super();
Musics[0] = new SFX_MUS1();
Musics[1] = new SFX_MUS2();
Musics[2] = new SFX_MUS3();
Musics[3] = new SFX_MUS4();
Musics[4] = new SFX_MUS5();
Musics[5] = new SFX_MUS6();
Musics[6] = new SFX_MUS7();
Musics[7] = new SFX_MUS8();
Musics[8] = new SFX_MUS9();
}
public function accessSFX(text:String):Class{
switch (text){
case "bowser_hit":
return (SFX_BOWSERHIT);
case "bowser_kill":
return (SFX_BOWSERKILL);
case "brick":
return (SFX_BRICK);
case "bump":
return (SFX_BUMP);
case "coin":
return (SFX_COIN);
case "cannon":
return (SFX_CANNON);
case "death":
return (SFX_DEATH);
case "radish":
return (SFX_FIREBALL);
case "gameover":
return (SFX_GAMEOVER);
case "growl":
return (SFX_GROWL);
case "hurry":
return (SFX_HURRY);
case "jump":
return (SFX_JUMP);
case "kick":
return (SFX_KICK);
case "lakitu":
return (SFX_LAKITU);
case "level_complete":
return (SFX_LEVEL_COMPLETE);
case "life":
return (SFX_LIFE);
case "points":
return (SFX_POINTS);
case "powerdown":
return (SFX_POWERDOWN);
case "powerup":
return (SFX_POWERUP);
case "sprout":
return (SFX_SPROUT);
case "stomp":
return (SFX_STOMP);
case "stompduck":
return (SFX_STOMP2);
};
return (new Class());
}
public function Play(music:int=-1, loops:uint=100):void{
if (playingMus != null){
playingMus.stop();
};
if (Mario.music == false){
return;
};
if (music > -1){
playingMus = Musics[music].play(0, loops);
};
}
}
}//package objects
Section 384
//SFX_SFX_BOWSERHIT (objects.SFX_SFX_BOWSERHIT)
package objects {
import mx.core.*;
public class SFX_SFX_BOWSERHIT extends SoundAsset {
}
}//package objects
Section 385
//SFX_SFX_BOWSERKILL (objects.SFX_SFX_BOWSERKILL)
package objects {
import mx.core.*;
public class SFX_SFX_BOWSERKILL extends SoundAsset {
}
}//package objects
Section 386
//SFX_SFX_BRICK (objects.SFX_SFX_BRICK)
package objects {
import mx.core.*;
public class SFX_SFX_BRICK extends SoundAsset {
}
}//package objects
Section 387
//SFX_SFX_BUMP (objects.SFX_SFX_BUMP)
package objects {
import mx.core.*;
public class SFX_SFX_BUMP extends SoundAsset {
}
}//package objects
Section 388
//SFX_SFX_CANNON (objects.SFX_SFX_CANNON)
package objects {
import mx.core.*;
public class SFX_SFX_CANNON extends SoundAsset {
}
}//package objects
Section 389
//SFX_SFX_COIN (objects.SFX_SFX_COIN)
package objects {
import mx.core.*;
public class SFX_SFX_COIN extends SoundAsset {
}
}//package objects
Section 390
//SFX_SFX_DEATH (objects.SFX_SFX_DEATH)
package objects {
import mx.core.*;
public class SFX_SFX_DEATH extends SoundAsset {
}
}//package objects
Section 391
//SFX_SFX_FIREBALL (objects.SFX_SFX_FIREBALL)
package objects {
import mx.core.*;
public class SFX_SFX_FIREBALL extends SoundAsset {
}
}//package objects
Section 392
//SFX_SFX_GAMEOVER (objects.SFX_SFX_GAMEOVER)
package objects {
import mx.core.*;
public class SFX_SFX_GAMEOVER extends SoundAsset {
}
}//package objects
Section 393
//SFX_SFX_GROWL (objects.SFX_SFX_GROWL)
package objects {
import mx.core.*;
public class SFX_SFX_GROWL extends SoundAsset {
}
}//package objects
Section 394
//SFX_SFX_HURRY (objects.SFX_SFX_HURRY)
package objects {
import mx.core.*;
public class SFX_SFX_HURRY extends SoundAsset {
}
}//package objects
Section 395
//SFX_SFX_JUMP (objects.SFX_SFX_JUMP)
package objects {
import mx.core.*;
public class SFX_SFX_JUMP extends SoundAsset {
}
}//package objects
Section 396
//SFX_SFX_KICK (objects.SFX_SFX_KICK)
package objects {
import mx.core.*;
public class SFX_SFX_KICK extends SoundAsset {
}
}//package objects
Section 397
//SFX_SFX_LAKITU (objects.SFX_SFX_LAKITU)
package objects {
import mx.core.*;
public class SFX_SFX_LAKITU extends SoundAsset {
}
}//package objects
Section 398
//SFX_SFX_LEVEL_COMPLETE (objects.SFX_SFX_LEVEL_COMPLETE)
package objects {
import mx.core.*;
public class SFX_SFX_LEVEL_COMPLETE extends SoundAsset {
}
}//package objects
Section 399
//SFX_SFX_LIFE (objects.SFX_SFX_LIFE)
package objects {
import mx.core.*;
public class SFX_SFX_LIFE extends SoundAsset {
}
}//package objects
Section 400
//SFX_SFX_MUS1 (objects.SFX_SFX_MUS1)
package objects {
import mx.core.*;
public class SFX_SFX_MUS1 extends SoundAsset {
}
}//package objects
Section 401
//SFX_SFX_MUS2 (objects.SFX_SFX_MUS2)
package objects {
import mx.core.*;
public class SFX_SFX_MUS2 extends SoundAsset {
}
}//package objects
Section 402
//SFX_SFX_MUS3 (objects.SFX_SFX_MUS3)
package objects {
import mx.core.*;
public class SFX_SFX_MUS3 extends SoundAsset {
}
}//package objects
Section 403
//SFX_SFX_MUS4 (objects.SFX_SFX_MUS4)
package objects {
import mx.core.*;
public class SFX_SFX_MUS4 extends SoundAsset {
}
}//package objects
Section 404
//SFX_SFX_MUS5 (objects.SFX_SFX_MUS5)
package objects {
import mx.core.*;
public class SFX_SFX_MUS5 extends SoundAsset {
}
}//package objects
Section 405
//SFX_SFX_MUS6 (objects.SFX_SFX_MUS6)
package objects {
import mx.core.*;
public class SFX_SFX_MUS6 extends SoundAsset {
}
}//package objects
Section 406
//SFX_SFX_MUS7 (objects.SFX_SFX_MUS7)
package objects {
import mx.core.*;
public class SFX_SFX_MUS7 extends SoundAsset {
}
}//package objects
Section 407
//SFX_SFX_MUS8 (objects.SFX_SFX_MUS8)
package objects {
import mx.core.*;
public class SFX_SFX_MUS8 extends SoundAsset {
}
}//package objects
Section 408
//SFX_SFX_MUS9 (objects.SFX_SFX_MUS9)
package objects {
import mx.core.*;
public class SFX_SFX_MUS9 extends SoundAsset {
}
}//package objects
Section 409
//SFX_SFX_POINTS (objects.SFX_SFX_POINTS)
package objects {
import mx.core.*;
public class SFX_SFX_POINTS extends SoundAsset {
}
}//package objects
Section 410
//SFX_SFX_POWERDOWN (objects.SFX_SFX_POWERDOWN)
package objects {
import mx.core.*;
public class SFX_SFX_POWERDOWN extends SoundAsset {
}
}//package objects
Section 411
//SFX_SFX_POWERUP (objects.SFX_SFX_POWERUP)
package objects {
import mx.core.*;
public class SFX_SFX_POWERUP extends SoundAsset {
}
}//package objects
Section 412
//SFX_SFX_SPROUT (objects.SFX_SFX_SPROUT)
package objects {
import mx.core.*;
public class SFX_SFX_SPROUT extends SoundAsset {
}
}//package objects
Section 413
//SFX_SFX_STOMP (objects.SFX_SFX_STOMP)
package objects {
import mx.core.*;
public class SFX_SFX_STOMP extends SoundAsset {
}
}//package objects
Section 414
//SFX_SFX_STOMP2 (objects.SFX_SFX_STOMP2)
package objects {
import mx.core.*;
public class SFX_SFX_STOMP2 extends SoundAsset {
}
}//package objects
Section 415
//Shroom (objects.Shroom)
package objects {
import mx.core.*;
public class Shroom extends Obj {
public var oWid:uint;// = 21
public var dir:int;
public var gravity:Number;// = 0
public var GFX:BitmapAsset;
public var oHei:uint;// = 21
public var seq:Boolean;// = false
public function Shroom(Xpos:uint, Ypos:int){
super();
oX = Xpos;
oY = Ypos;
var GFXclass:Class = Mario.classGFX.AccessGFX("object_shroom");
GFX = new (GFXclass);
GFX.x = oX;
GFX.y = oY;
Mario.layerHide.addChild(GFX);
}
override public function Update(myID:uint):void{
var GFXclass:Class;
if (seq){
oX = (oX + dir);
if (dir > 0){
if (((Mario.levelColl(((oX + oWid) - 1), oY)) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
} else {
if (((Mario.levelColl(oX, oY)) || (Mario.levelColl(oX, ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
oY = (oY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(oX, ((oY + oHei) - 1))) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
gravity = 0;
oY = ((Math.floor((oY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(oX, oY, oWid, oHei)){
Mario.playerBonus(0);
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
};
GFX.x = (oX - 2);
GFX.y = (oY - 4);
} else {
oY = (oY - 0.5);
GFX.x = oX;
GFX.y = oY;
if (Mario.levelColl((oX + 12), (oY + 24)) == false){
Mario.instEffects.push(new Points((oX + 10), (oY - 5), "1000"));
Mario.layerHide.removeChild(GFX);
oX = (oX + 2);
oY = (oY + 4);
GFXclass = Mario.classGFX.AccessGFX("object_shroom");
GFX = new (GFXclass);
GFX.x = (oX - 2);
GFX.y = (oY - 4);
Mario.layerFore.addChild(GFX);
dir = (((Player.pX - oX) > 0)) ? 1 : -1;
seq = true;
};
};
if (oY > ((Mario.levelHei * 25) + 250)){
Mario.layerFore.removeChild(GFX);
Mario.removeObject(myID);
};
}
}
}//package objects
Section 416
//Spiny (objects.Spiny)
package objects {
import flash.display.*;
public class Spiny extends Enemy {
private var wait:uint;// = 0
private var GFX:Array;
private var fall:Boolean;// = false
private var frame:uint;// = 0
public function Spiny(Xpos:uint, Ypos:int){
GFX = new Array(2);
super();
eX = Xpos;
eY = Ypos;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 21;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_spiny_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_spiny_2"));
GFX[0].x = (eX - 3);
GFX[0].y = (eY - 4);
Mario.layerFore.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
if (active){
stomped = false;
eX = (eX + dir);
if (dir > 0){
if (Mario.enemyBounce(myID, ((eX + eWid) - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
} else {
if (Mario.enemyBounce(myID, (eX - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 1){
fall = true;
};
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
if (fall){
dir = ((Player.pX > eX)) ? 1 : -1;
fall = false;
};
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
Mario.hitPlayer();
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = (1 - frame);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == -1)) ? 25 : 0);
GFX[frame].y = (eY - 4);
} else {
if (((((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))) || (((Mario.scrollEdge + 400) > eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 4), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_spiny_1")));
return (true);
}
}
}//package objects
Section 417
//SpinyShell (objects.SpinyShell)
package objects {
import flash.display.*;
import mx.core.*;
public class SpinyShell extends Enemy {
private var GFX:Sprite;
public function SpinyShell(Xpos:uint, Ypos:uint){
GFX = new Sprite();
super();
eX = Xpos;
eY = Ypos;
eWid = 21;
eHei = 21;
gravity = -2;
var GFX2:BitmapAsset = new (Mario.classGFX.AccessGFX("enemy_spiny_shell_1"));
GFX2.x = (-(GFX2.width) / 2);
GFX2.y = (-(GFX2.height) / 2);
GFX.addChild(GFX2);
GFX.x = (eX + 10);
GFX.y = (eY + 10);
Mario.layerFore.addChild(GFX);
}
override public function Update(myID:uint):void{
gravity = (gravity + (Mario.gravity / 2));
eY = (eY + gravity);
gravity = Math.min(20, gravity);
GFX.rotation = (GFX.rotation + 6);
GFX.x = (eX + 10);
GFX.y = (eY + 10);
if (((Mario.levelColl(eX, (eY + eHei))) || (Mario.levelColl(((eX + eWid) - 1), (eY + eHei))))){
eY = ((Math.floor((((eY + eHei) / 25) - 1)) * 25) + 5);
gravity = 0;
Mario.removeEnemy(myID);
Mario.layerFore.removeChild(GFX);
Mario.instEnemies.push(new Spiny(eX, ((Math.floor((eY / 25)) * 25) + 4)));
alive = false;
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
Mario.hitPlayer();
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX);
Mario.removeEnemy(myID);
Mario.instEffects.push(new Enemy_Fire(eX, (eY - 4), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_spiny_shell_1")));
return (true);
}
}
}//package objects
Section 418
//Star (objects.Star)
package objects {
import flash.display.*;
public class Star extends Obj {
public var oWid:uint;// = 21
public var dir:int;
public var gravity:Number;// = 0
public var frame:uint;// = 0
public var wait:uint;// = 0
public var GFX:Array;
public var oHei:uint;// = 21
public var seq:Boolean;// = false
public function Star(Xpos:uint, Ypos:uint){
GFX = new Array(4);
super();
oX = Xpos;
oY = Ypos;
GFX[0] = new (Mario.classGFX.AccessGFX("object_star_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("object_star_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("object_star_3"));
GFX[3] = new (Mario.classGFX.AccessGFX("object_star_4"));
GFX[0].x = oX;
GFX[0].y = oY;
Mario.layerHide.addChild(GFX[0]);
}
override public function Update(myID:uint):void{
if (seq){
oX = (oX + dir);
if (dir > 0){
if (((Mario.levelColl(((oX + oWid) - 1), oY)) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
} else {
if (((Mario.levelColl(oX, oY)) || (Mario.levelColl(oX, ((oY + oHei) - 1))))){
dir = (dir * -1);
oX = (oX + dir);
};
};
gravity = (gravity + (Mario.gravity / 2));
if (gravity > 10){
gravity = 10;
};
oY = (oY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(oX, ((oY + oHei) - 1))) || (Mario.levelColl(((oX + oWid) - 1), ((oY + oHei) - 1))))){
gravity = -5;
oY = ((Math.floor((oY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(oX, oY, oWid, oHei)){
Player.starMe();
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeObject(myID);
return;
};
wait++;
if (wait == 3){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 4);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (oX - 2);
GFX[frame].y = (oY - 4);
} else {
oY = (oY - 0.5);
wait++;
if (wait == 3){
Mario.layerHide.removeChild(GFX[frame]);
frame = ((frame + 1) % 4);
Mario.layerHide.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = oX;
GFX[frame].y = oY;
if (Mario.levelColl((oX + 12), (oY + 24)) == false){
Mario.instEffects.push(new Points((oX + 10), (oY - 5), "1000"));
Mario.layerHide.removeChild(GFX[frame]);
oX = (oX + 2);
oY = (oY + 4);
GFX[frame].x = (oX - 2);
GFX[frame].y = (oY - 4);
Mario.layerFore.addChild(GFX[frame]);
dir = (((Player.pX - oX) > 0)) ? 1 : -1;
seq = true;
};
};
if (oY > ((Mario.levelHei * 25) + 250)){
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeObject(myID);
};
}
}
}//package objects
Section 419
//TitleScreen (objects.TitleScreen)
package objects {
import flash.events.*;
import flash.display.*;
import mx.core.*;
import flash.net.*;
public class TitleScreen {
private var timer:uint;// = 0
private var Start:Class;
private var Logo:Class;
private var Text2:Class;
private var GFXK:BitmapAsset;
private var GFXL:BitmapAsset;
private var Keys:Class;
private var Cloud:BitmapAsset;
private var GFXP:BitmapAsset;
private var Text1:Class;
private var Hill:BitmapAsset;
private var GFXfloor:Sprite;
private var tix:Number;// = 0
private var pX:uint;// = 600
public var sel:uint;// = 1
private var GS:BitmapAsset;
private var frame:uint;// = 0
private var GFXT1:BitmapAsset;
private var GFXT2:BitmapAsset;
private var More:Class;
private static var GFXM:Sprite;
public function TitleScreen(){
var czop:BitmapAsset;
var j:uint;
var czap:BitmapAsset;
GFXfloor = new Sprite();
Hill = new (Mario.classGFX.AccessGFX("back_hill_big_22"));
Cloud = new (Mario.classGFX.AccessGFX("back_clouds_8"));
GFXP = new (Mario.classGFX.AccessGFX("object_mario0_walk_1"));
Logo = TitleScreen_Logo;
Start = TitleScreen_Start;
More = TitleScreen_More;
Keys = TitleScreen_Keys;
Text1 = TitleScreen_Text1;
Text2 = TitleScreen_Text2;
super();
if (GFXM == null){
GFXM = new Sprite();
GFXM.addChild(new More());
GFXM.addEventListener(MouseEvent.CLICK, function ():void{
navigateToURL(new URLRequest("http://www.softendo.com"), "_blank");
});
GFXM.buttonMode = true;
};
GFXL = new Logo();
GFXK = new Keys();
GFXT1 = new Text1();
GFXT2 = new Text2();
GS = new Start();
GS.x = (200 - (GS.width / 2));
GS.y = 200;
Mario.generateBackground(0);
Mario.layerGover.addChild(Hill);
Mario.layerGover.addChild(Cloud);
Mario.layerGover.addChild(GFXfloor);
Mario.layerGover.addChild(GFXL);
Mario.layerGover.addChild(GFXK);
Mario.layerGover.addChild(GFXT1);
Mario.layerGover.addChild(GFXT2);
Mario.layerGover.addChild(GFXP);
Mario.layerGover.addChild(GFXM);
Mario.layerGover.addChild(GS);
GFXP.x = pX;
GFXL.x = 420;
GFXK.x = (400 - GFXK.width);
GFXK.y = (375 - GFXK.height);
GFXK.alpha = 0;
GFXT1.alpha = 0;
GFXT2.alpha = 0;
GFXT1.y = 280;
GFXT2.y = 320;
Hill.x = -50;
Cloud.x = -200;
Cloud.y = 200;
var i:uint;
while (i < 18) {
czop = new (Mario.classGFX.AccessGFX("Wall_d"));
czop.y = (11 * 25);
czop.x = (i * 25);
GFXfloor.addChild(czop);
j = 12;
while (j < 15) {
czap = new (Mario.classGFX.AccessGFX("Wall_g"));
czap.y = (j * 25);
czap.x = (i * 25);
GFXfloor.addChild(czap);
j = (j + 1);
};
i = (i + 1);
};
Mario.classSFX.Play(6);
}
public function Update():void{
tix = (tix + 0.1);
GS.alpha = Math.min(1, (Math.sin(tix) + 1));
GFXfloor.x = ((((25 + GFXfloor.x) - 3) % 25) - 25);
Hill.x = (Hill.x - 0.68);
Cloud.x = (Cloud.x - 0.12);
if (Hill.x < -(Hill.width)){
Hill.x = (Hill.x + (Hill.width + 800));
};
if (Cloud.x < -(Cloud.width)){
Cloud.x = (Cloud.x + (Cloud.width + 400));
};
timer++;
if ((timer % 4) == 0){
Mario.layerGover.removeChild(GFXP);
frame = ((frame + 1) % 3);
GFXP = new (Mario.classGFX.AccessGFX(("object_mario0_walk_" + (frame + 1))));
Mario.layerGover.addChild(GFXP);
};
GFXP.x = pX;
GFXP.y = 228;
pX = Math.max(190, (pX - 1));
GFXL.x = Math.max((200 - (GFXL.width / 2)), (GFXL.x - 10));
if ((((timer > 350)) && ((timer < 400)))){
GFXK.alpha = Math.min(1, (GFXK.alpha + 0.05));
GFXT1.alpha = Math.min(1, (GFXT1.alpha + 0.05));
GFXT2.alpha = Math.min(0.5, (GFXT2.alpha + 0.025));
};
if (timer < 400){
if (Mario.isKeyPressed(5)){
pX = 190;
GFXL.x = (200 - (GFXL.width / 2));
GFXK.alpha = 1;
GFXT1.alpha = 0.5;
GFXT2.alpha = 1;
timer = 400;
};
} else {
if (((Mario.isKeyPressed(1)) || (Mario.isKeyPressed(3)))){
sel = (1 - sel);
if (sel == 0){
GFXT1.alpha = 1;
GFXT2.alpha = 0.5;
} else {
GFXT1.alpha = 0.5;
GFXT2.alpha = 1;
};
};
if (((((Mario.isKeyPressed(5)) || (Mario.isKeyPressed(6)))) || (Mario.isKeyPressed(7)))){
Mario.Hud.Pnts = 0;
Mario.Hud.RedrawPnts();
Mario.checkPoint = 0;
if (sel == 0){
sel = 10;
} else {
sel = 11;
};
};
};
}
}
}//package objects
Section 420
//TitleScreen_Keys (objects.TitleScreen_Keys)
package objects {
import mx.core.*;
public class TitleScreen_Keys extends BitmapAsset {
}
}//package objects
Section 421
//TitleScreen_Logo (objects.TitleScreen_Logo)
package objects {
import mx.core.*;
public class TitleScreen_Logo extends BitmapAsset {
}
}//package objects
Section 422
//TitleScreen_More (objects.TitleScreen_More)
package objects {
import mx.core.*;
public class TitleScreen_More extends BitmapAsset {
}
}//package objects
Section 423
//TitleScreen_Start (objects.TitleScreen_Start)
package objects {
import mx.core.*;
public class TitleScreen_Start extends BitmapAsset {
}
}//package objects
Section 424
//TitleScreen_Text1 (objects.TitleScreen_Text1)
package objects {
import mx.core.*;
public class TitleScreen_Text1 extends BitmapAsset {
}
}//package objects
Section 425
//TitleScreen_Text2 (objects.TitleScreen_Text2)
package objects {
import mx.core.*;
public class TitleScreen_Text2 extends BitmapAsset {
}
}//package objects
Section 426
//TroopaGreen (objects.TroopaGreen)
package objects {
import flash.display.*;
import flash.media.*;
public class TroopaGreen extends Enemy {
private var waiter:uint;// = 0
private var Mode:uint;// = 0
private var frame:uint;// = 0
private var SFXStomp:Sound;
private var wait:uint;// = 0
private var GFX:Array;
private var fall:Boolean;// = false
private var num:uint;// = 0
public function TroopaGreen(Xpos:uint, Ypos:uint){
GFX = new Array(6);
SFXStomp = new (Mario.classSFX.accessSFX("stompduck"));
super();
eX = Xpos;
eY = Ypos;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 21;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_koopa_green_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_koopa_green_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("enemy_shell_green_1"));
GFX[3] = new (Mario.classGFX.AccessGFX("enemy_shell_green_2"));
GFX[4] = new (Mario.classGFX.AccessGFX("enemy_shell_green_3"));
GFX[5] = new (Mario.classGFX.AccessGFX("enemy_shell_green_4"));
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == 1)) ? 0 : 24);
GFX[frame].y = (eY - 16);
Mario.layerFore.addChild(GFX[0]);
}
override public function Stomp(myID:uint):void{
if (Mode == 0){
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "200"));
this.Mode = 1;
Player.hitStomp = true;
Player.Bounce(eY);
this.makeShell();
wait = 0;
waiter = 0;
num = 0;
if (Mario.sounds){
SFXStomp.play();
};
} else {
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "100"));
Mode = 1;
Player.hitStomp = true;
Player.Bounce(eY);
this.makeShell();
isShell = false;
waiter = 0;
num = 0;
if (Mario.sounds){
SFXStomp.play();
};
};
}
override public function Update(myID:uint):void{
var GFXclass:Class;
var hits:int;
var i:int;
if (active){
if (Mode == 0){
eX = (eX + dir);
if (dir > 0){
if (Mario.enemyBounce(myID, ((eX + eWid) - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
} else {
if (Mario.enemyBounce(myID, (eX - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 1){
fall = true;
};
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
if (fall){
dir = ((Player.pX > eX)) ? 1 : -1;
fall = false;
};
};
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 2);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == 1)) ? 0 : 24);
GFX[frame].y = (eY - 16);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
if (Mode == 1){
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if ((Player.pX - eX) > 0){
dir = -1;
} else {
dir = 1;
};
isShell = true;
Mode = 2;
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "500"));
if (Mario.sounds){
SFXKick.play();
};
};
waiter++;
GFX[frame].x = ((eX - 2) + ((waiter > 150)) ? Math.sin((waiter * 2)) : 0);
GFX[frame].y = (eY - 1);
if (waiter > 250){
Mode = 0;
waiter = 0;
wait = 14;
dir = ((Player.pX > eX)) ? 1 : -1;
};
} else {
eX = (eX + (dir * 6));
hits = Mario.enemyShellHit(myID, eX, eY, eWid, eHei, dir);
if (hits < 0){
Fire((myID - Mario.decreaseI), -(dir));
};
i = Math.abs(hits);
while (i > 0) {
Mario.instEffects.push(new Points((eX + 10), (eY - 5), Mario.givePointShell(num)));
num++;
if (num == 8){
num = 5;
};
i--;
};
if (alive){
if (dir > 0){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (((Math.floor((eX / 25)) * 25) + 25) - eWid);
};
} else {
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = ((Math.floor((eX / 25)) * 25) + 25);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
};
};
wait++;
if (wait == 3){
Mario.layerFore.removeChild(GFX[frame]);
frame = (2 + ((frame - 1) % 4));
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (eX - 2);
GFX[frame].y = (eY - 1);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (Mode == 3){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
Mode = 3;
};
};
};
};
} else {
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
private function makeShell():void{
Mario.layerFore.removeChild(GFX[frame]);
frame = 2;
GFX[frame].x = (eX - 3);
GFX[frame].y = (eY - 1);
Mario.layerFore.addChild(GFX[frame]);
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 1), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_shell_green_1")));
return (true);
}
}
}//package objects
Section 427
//TroopaRed (objects.TroopaRed)
package objects {
import flash.display.*;
import flash.media.*;
public class TroopaRed extends Enemy {
private var waiter:uint;// = 0
private var Mode:uint;// = 0
private var frame:uint;// = 0
private var SFXStomp:Sound;
private var wait:uint;// = 0
private var GFX:Array;
private var fall:Boolean;// = false
private var num:uint;// = 0
public function TroopaRed(Xpos:uint, Ypos:uint){
GFX = new Array(6);
SFXStomp = new (Mario.classSFX.accessSFX("stompduck"));
super();
eX = Xpos;
eY = Ypos;
eWid = 21;
dir = ((Player.pX > eX)) ? 1 : -1;
eHei = 21;
GFX[0] = new (Mario.classGFX.AccessGFX("enemy_koopa_red_1"));
GFX[1] = new (Mario.classGFX.AccessGFX("enemy_koopa_red_2"));
GFX[2] = new (Mario.classGFX.AccessGFX("enemy_shell_red_1"));
GFX[3] = new (Mario.classGFX.AccessGFX("enemy_shell_red_2"));
GFX[4] = new (Mario.classGFX.AccessGFX("enemy_shell_red_3"));
GFX[5] = new (Mario.classGFX.AccessGFX("enemy_shell_red_4"));
GFX[0].x = (eX - 3);
GFX[0].y = (eY - 5);
Mario.layerFore.addChild(GFX[0]);
}
override public function Stomp(myID:uint):void{
if (Mode == 0){
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "200"));
this.Mode = 1;
Player.hitStomp = true;
Player.Bounce(eY);
this.makeShell();
waiter = 0;
wait = 0;
num = 0;
if (Mario.sounds){
SFXStomp.play();
};
} else {
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "100"));
Mode = 1;
Player.hitStomp = true;
Player.Bounce(eY);
this.makeShell();
isShell = false;
waiter = 0;
wait = 0;
num = 0;
if (Mario.sounds){
SFXStomp.play();
};
};
wait = 0;
}
override public function Update(myID:uint):void{
var GFXclass:Class;
var hits:int;
var i:int;
if (active){
if (Mode == 0){
eX = (eX + dir);
if (dir > 0){
if (Mario.enemyBounce(myID, ((eX + eWid) - 1), eY, 2, eHei) == false){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
} else {
if ((((gravity < 1)) && ((Mario.levelColl((eX + eWid), (eY + eHei)) == false)))){
dir = (dir * -1);
eX = (eX + dir);
};
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
} else {
if (Mario.enemyBounce(myID, (eX - 1), eY, 2, eHei) == false){
if ((((((Mario.levelColl((eX - 1), (eY + eHei)) == false)) || (Mario.levelColl(eX, eY)))) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (eX + dir);
} else {
if ((((gravity > 1)) && ((Mario.levelColl((eX - 1), (eY + eHei)) == false)))){
dir = (dir * -1);
eX = (eX + dir);
};
};
} else {
dir = (dir * -1);
eX = (eX + dir);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 1){
fall = true;
};
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
if (fall){
dir = ((Player.pX > eX)) ? 1 : -1;
fall = false;
};
};
};
wait++;
if (wait == 15){
Mario.layerFore.removeChild(GFX[frame]);
frame = ((frame + 1) % 2);
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].scaleX = dir;
GFX[frame].x = ((eX - 2) + ((dir == 1)) ? 0 : 25);
GFX[frame].y = (eY - 16);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
if (Mode == 1){
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
};
};
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if ((Player.pX - eX) > 0){
dir = -1;
} else {
dir = 1;
};
isShell = true;
Mode = 2;
Mario.instEffects.push(new Points((eX + 10), (eY - 5), "500"));
if (Mario.sounds){
SFXKick.play();
};
};
waiter++;
GFX[frame].x = ((eX - 2) + ((waiter > 150)) ? Math.sin((waiter * 2)) : 0);
GFX[frame].y = (eY - 1);
if (waiter > 250){
Mode = 0;
waiter = 0;
wait = 14;
dir = ((Player.pX > eX)) ? 1 : -1;
};
} else {
eX = (eX + (dir * 6));
hits = Mario.enemyShellHit(myID, eX, eY, eWid, eHei, dir);
if (hits < 0){
Fire((myID - Mario.decreaseI), -(dir));
};
i = Math.abs(hits);
while (i > 0) {
Mario.instEffects.push(new Points((eX + 10), (eY - 5), Mario.givePointShell(num)));
num++;
if (num == 8){
num = 0;
};
i--;
};
if (alive){
if (dir > 0){
if (((Mario.levelColl(((eX + eWid) - 1), eY)) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = (((Math.floor((eX / 25)) * 25) + 25) - eWid);
};
} else {
if (((Mario.levelColl(eX, eY)) || (Mario.levelColl(eX, ((eY + eHei) - 1))))){
dir = (dir * -1);
eX = ((Math.floor((eX / 25)) * 25) + 25);
};
};
gravity = (gravity + Mario.gravity);
if (gravity > 10){
gravity = 10;
};
eY = (eY + Math.round(gravity));
if (gravity > 0){
if (((Mario.levelColl(eX, ((eY + eHei) - 1))) || (Mario.levelColl(((eX + eWid) - 1), ((eY + eHei) - 1))))){
gravity = 0;
eY = ((Math.floor((eY / 25)) * 25) + 4);
};
};
wait++;
if (wait == 3){
Mario.layerFore.removeChild(GFX[frame]);
frame = (2 + ((frame - 1) % 4));
Mario.layerFore.addChild(GFX[frame]);
wait = 0;
};
GFX[frame].x = (eX - 2);
GFX[frame].y = (eY - 1);
if (Mario.playerCollide(eX, eY, eWid, eHei)){
if (Mode == 3){
if (((Player.pY - Player.gravity) + Player.pHei) < ((eY - gravity) + 5)){
if (Player.hitStomp == false){
Mario.stompSetDistance(myID, eX);
};
} else {
Mario.hitPlayer();
};
};
} else {
Mode = 3;
};
};
};
};
} else {
if (((((Player.pX + 250) > eX)) && (((Player.pX - 250) < eX)))){
active = true;
};
};
if (eY > ((Mario.levelHei * 25) + 250)){
Fire(myID, 1);
};
}
private function makeShell():void{
Mario.layerFore.removeChild(GFX[frame]);
frame = 2;
GFX[frame].x = (eX - 2);
GFX[frame].y = (eY - 1);
Mario.layerFore.addChild(GFX[frame]);
}
override public function Fire(myID:uint, dir:int):Boolean{
Mario.layerFore.removeChild(GFX[frame]);
Mario.removeEnemy(myID);
alive = false;
Mario.instEffects.push(new Enemy_Fire((eX - 2), (eY - 1), (Mario.Sign(dir) * 3), Mario.classGFX.AccessGFX("enemy_shell_red_1")));
return (true);
}
}
}//package objects
Section 428
//TypeHud (objects.TypeHud)
package objects {
import flash.display.*;
import mx.core.*;
import flash.media.*;
import flash.text.*;
public class TypeHud {
public var debugtext:TextField;
public var SFXLife:Sound;
private var GFXP3:BitmapAsset;
private var GFXP4:BitmapAsset;
private var GFXP5:BitmapAsset;
private var GFXP6:BitmapAsset;
private var wait:uint;// = 0
public var Pnts:int;// = 0
private var GFXX:BitmapAsset;
private var GFXTIME:BitmapAsset;
public var SFXHurry:Sound;
private var GFXMARIO:BitmapAsset;
private var GFXWORLD:BitmapAsset;
private var GFXW1:BitmapAsset;
private var GFXW2:BitmapAsset;
public var GFX:Sprite;
private var GFXW3:BitmapAsset;
public var Coins:int;// = 0
public var Interval:int;// = 20
public var Lives:int;// = 0
private var GFXC2:BitmapAsset;
private var GFXCOIN:BitmapAsset;
public var Time:int;// = 320
private var GFXC1:BitmapAsset;
private var GFXT1:BitmapAsset;
private var GFXT2:BitmapAsset;
private var GFXT3:BitmapAsset;
private var GFXP1:BitmapAsset;
private var GFXP2:BitmapAsset;
public function TypeHud(){
var GFXclass:Class;
SFXLife = new (Mario.classSFX.accessSFX("life"));
GFX = new Sprite();
debugtext = new TextField();
SFXHurry = new (Mario.classSFX.accessSFX("hurry"));
super();
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXC1 = new (GFXclass);
GFXC1.x = 0;
GFXC1.y = 0;
GFX.addChild(GFXC1);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXC2 = new (GFXclass);
GFXC2.x = 1;
GFXC2.y = 1;
GFX.addChild(GFXC2);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXP1 = new (GFXclass);
GFXP1.x = 1;
GFXP1.y = 1;
GFX.addChild(GFXP1);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXP2 = new (GFXclass);
GFXP2.x = 1;
GFXP2.y = 1;
GFX.addChild(GFXP2);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXP3 = new (GFXclass);
GFXP3.x = 1;
GFXP3.y = 1;
GFX.addChild(GFXP3);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXP4 = new (GFXclass);
GFXP4.x = 1;
GFXP4.y = 1;
GFX.addChild(GFXP4);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXP5 = new (GFXclass);
GFXP5.x = 1;
GFXP5.y = 1;
GFX.addChild(GFXP5);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXP6 = new (GFXclass);
GFXP6.x = 1;
GFXP6.y = 1;
GFX.addChild(GFXP6);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXT1 = new (GFXclass);
GFXT1.x = 1;
GFXT1.y = 1;
GFX.addChild(GFXT1);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXT2 = new (GFXclass);
GFXT2.x = 1;
GFXT2.y = 1;
GFX.addChild(GFXT2);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXT3 = new (GFXclass);
GFXT3.x = 1;
GFXT3.y = 1;
GFX.addChild(GFXT3);
GFXclass = Mario.classGFX.AccessGFX("font_time");
GFXTIME = new (GFXclass);
GFXTIME.x = 325;
GFXTIME.y = 20;
GFX.addChild(GFXTIME);
GFXclass = Mario.classGFX.AccessGFX("font_world");
GFXWORLD = new (GFXclass);
GFXWORLD.x = 200;
GFXWORLD.y = 20;
GFX.addChild(GFXWORLD);
GFXclass = Mario.classGFX.AccessGFX("font_mario");
GFXMARIO = new (GFXclass);
GFXMARIO.x = 25;
GFXMARIO.y = 20;
GFX.addChild(GFXMARIO);
GFXclass = Mario.classGFX.AccessGFX("font_coin_1");
GFXCOIN = new (GFXclass);
GFXCOIN.x = 120;
GFXCOIN.y = 35;
GFX.addChild(GFXCOIN);
GFXclass = Mario.classGFX.AccessGFX("font_x");
GFXX = new (GFXclass);
GFXX.x = 130;
GFXX.y = 36;
GFX.addChild(GFXX);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXW1 = new (GFXclass);
GFXW1.x = 214;
GFXW1.y = 35;
GFX.addChild(GFXW1);
GFXclass = Mario.classGFX.AccessGFX("font_-");
GFXW2 = new (GFXclass);
GFXW2.x = 225;
GFXW2.y = 35;
GFX.addChild(GFXW2);
GFXclass = Mario.classGFX.AccessGFX("font_1");
GFXW3 = new (GFXclass);
GFXW3.x = 238;
GFXW3.y = 35;
GFX.addChild(GFXW3);
RedrawWorld();
RedrawCoins();
RedrawTime();
RedrawPnts();
}
public function RedrawTime():void{
GFX.removeChild(GFXT1);
GFX.removeChild(GFXT2);
GFX.removeChild(GFXT3);
var GFXclass:Class = Mario.classGFX.AccessGFX(("font_" + Math.floor((Time / 100))));
GFXT1 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Math.floor((Time / 10)) % 10)));
GFXT2 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Time % 10)));
GFXT3 = new (GFXclass);
GFXT1.x = (340 + ((Time > 99)) ? 0 : 1000);
GFXT1.y = 35;
GFXT2.x = (352 + ((Time > 9)) ? 0 : 1000);
GFXT2.y = 35;
GFXT3.x = 364;
GFXT3.y = 35;
GFX.addChild(GFXT1);
GFX.addChild(GFXT2);
GFX.addChild(GFXT3);
}
public function RedrawPnts():void{
GFX.removeChild(GFXP1);
GFX.removeChild(GFXP2);
GFX.removeChild(GFXP3);
GFX.removeChild(GFXP4);
GFX.removeChild(GFXP5);
GFX.removeChild(GFXP6);
var GFXclass:Class = Mario.classGFX.AccessGFX(("font_" + Math.floor((Pnts / 100000))));
GFXP1 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Math.floor((Pnts / 10000)) % 10)));
GFXP2 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Math.floor((Pnts / 1000)) % 10)));
GFXP3 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Math.floor((Pnts / 100)) % 10)));
GFXP4 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Math.floor((Pnts / 10)) % 10)));
GFXP5 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Pnts % 10)));
GFXP6 = new (GFXclass);
GFXP1.x = (25 + ((Pnts > 99999)) ? 0 : 1000);
GFXP1.y = 35;
GFXP2.x = (37 + ((Pnts > 9999)) ? 0 : 1000);
GFXP2.y = 35;
GFXP3.x = (49 + ((Pnts > 999)) ? 0 : 1000);
GFXP3.y = 35;
GFXP4.x = (61 + ((Pnts > 99)) ? 0 : 1000);
GFXP4.y = 35;
GFXP5.x = (73 + ((Pnts > 9)) ? 0 : 1000);
GFXP5.y = 35;
GFXP6.x = 85;
GFXP6.y = 35;
GFX.addChild(GFXP1);
GFX.addChild(GFXP2);
GFX.addChild(GFXP3);
GFX.addChild(GFXP4);
GFX.addChild(GFXP5);
GFX.addChild(GFXP6);
}
public function RedrawWorld():void{
var GFXclass:Class;
GFX.removeChild(GFXW1);
GFX.removeChild(GFXW3);
var czop:uint = ((Mario.levelid < 16)) ? (Math.floor((Mario.levelid / 4)) + 1) : 4;
GFXclass = Mario.classGFX.AccessGFX(("font_" + czop));
GFXW1 = new (GFXclass);
GFXW1.x = 214;
GFXW1.y = 35;
GFX.addChild(GFXW1);
czop = ((Mario.levelid < 16)) ? ((Mario.levelid % 4) + 1) : 5;
GFXclass = Mario.classGFX.AccessGFX(("font_" + czop));
GFXW3 = new (GFXclass);
GFXW3.x = 238;
GFXW3.y = 35;
GFX.addChild(GFXW3);
}
public function RedrawCoins():void{
GFX.removeChild(GFXC1);
GFX.removeChild(GFXC2);
while (Coins > 99) {
Coins = (Coins - 100);
Mario.instEffects.push(new Points(Player.pX, Player.pY, "1up"));
if (Mario.sounds){
SFXLife.play();
};
};
var GFXclass:Class = Mario.classGFX.AccessGFX(("font_" + Math.floor((Coins / 10))));
GFXC1 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Coins % 10)));
GFXC2 = new (GFXclass);
GFXC1.x = 142;
GFXC1.y = 35;
GFXC2.x = 154;
GFXC2.y = 35;
GFX.addChild(GFXC1);
GFX.addChild(GFXC2);
}
public function Hud():Sprite{
return (GFX);
}
public function Update():void{
var GFXclass:Class;
if (Mario.playerControllable){
Interval--;
if (Interval == 0){
Interval = 25;
Time--;
RedrawTime();
if (Time == 100){
SFXHurry.play();
};
};
if (Time == 0){
Mario.hitPlayer(true);
};
};
wait = (((wait + 1) % 30) + 1);
if ((wait % 10) == 2){
GFX.removeChild(GFXCOIN);
GFXclass = Mario.classGFX.AccessGFX(("font_coin_" + Math.ceil((wait / 10))));
GFXCOIN = new (GFXclass);
GFXCOIN.x = 120;
GFXCOIN.y = 35;
GFX.addChild(GFXCOIN);
};
}
}
}//package objects
Section 429
//WaitScreen (objects.WaitScreen)
package objects {
import flash.display.*;
import mx.core.*;
public class WaitScreen {
public var GFX:Sprite;
public var seq:uint;// = 0
public var Back:Shape;
public var timer:uint;// = 0
public var GFXL2:BitmapAsset;
public var GFXHEAD:BitmapAsset;
public var GFXL1:BitmapAsset;
public var GFXX:BitmapAsset;
public function WaitScreen(){
GFX = new Sprite();
Back = new Shape();
super();
Back.graphics.beginFill(0);
Back.graphics.drawRect(0, 0, 400, 375);
GFX.addChild(Back);
}
public function update():uint{
var _local1:Class;
switch (seq){
case 0:
Mario.Hud.RedrawWorld();
Mario.classSFX.Play();
_local1 = Mario.classGFX.AccessGFX("font_head");
GFXHEAD = new (_local1);
_local1 = Mario.classGFX.AccessGFX("font_x");
GFXX = new (_local1);
GFXHEAD.x = 101;
GFXHEAD.y = 140;
GFXX.x = 200;
GFXX.y = 191;
GFX.addChild(GFXHEAD);
GFX.addChild(GFXX);
setVar(Mario.Hud.Lives);
seq = 1;
return (0);
case 1:
timer++;
if (timer == 50){
timer = 0;
seq = 2;
};
return (1);
case 2:
clearAll();
seq = 0;
if (Mario.music){
Mario.classSFX.Play(Mario.musika);
};
Mario.self.ingameStep();
return (2);
};
return (1);
}
public function setVar(Livs:uint):void{
var GFXclass:Class = Mario.classGFX.AccessGFX(("font_" + Math.floor((Livs / 10))));
GFXL1 = new (GFXclass);
GFXclass = Mario.classGFX.AccessGFX(("font_" + (Livs % 10)));
GFXL2 = new (GFXclass);
GFXL1.x = 217;
GFXL1.y = 190;
GFXL2.x = 229;
GFXL2.y = 190;
GFX.addChild(GFXL1);
GFX.addChild(GFXL2);
}
public function clearAll():void{
GFX.removeChild(GFXL1);
GFX.removeChild(GFXL2);
GFX.removeChild(GFXHEAD);
GFX.removeChild(GFXX);
}
}
}//package objects
Section 430
//Mario (Mario)
package {
import flash.events.*;
import flash.display.*;
import mx.core.*;
import objects.*;
import flash.geom.*;
import flash.ui.*;
import flash.net.*;
public class Mario extends Sprite {
private var instPlayer:Player;
public static var instEnemies:Array = new Array();
public static var Waiter:WaitScreen;
public static var playerControllable:Boolean = true;
private static var headbuttDistance:uint = 999;
public static var mox:Number;
public static var moy:Number;
public static var music:Boolean = true;
public static var scrollEdge:int = 0;
public static var scrollX:int = 0;
private static var stompID:int = -1;
public static var background:Shape = new Shape();
public static var gradient:Shape = new Shape();
public static var layerHide:Sprite = new Sprite();
public static var sounds:Boolean = true;
public static var self:Mario;
public static var stepping:Boolean = true;
public static var gravity:Number = 0.4;
public static var decreaseStomp:uint = 0;
private static var headbuttID:int = -1;
public static var layerBack2:Sprite = new Sprite();
public static var _mochiads_game_id:String = "d4eac2885f39c7d8";
public static var levelGenre:uint = 0;
public static var checkPoint:uint = 1;
public static var decreaseI:uint = 0;
public static var instBlocks:Array = new Array();
private static var stompDistance:uint = 999;
public static var layerEffects:Sprite = new Sprite();
public static var level:Array = new Array();
public static var Log2:Logo2;
public static var layerPipe:Sprite = new Sprite();
public static var layerFore:Sprite = new Sprite();
public static var levelWid:uint;
private static var keysDown:Array = [false, false, false, false, false, false, false, false];
public static var levelid:uint = 0;
public static var layerWall:Sprite = new Sprite();
public static var sequence:uint = 11;
public static var radishNO:uint = 0;
public static var musika:uint;
public static var layerBack:Sprite = new Sprite();
public static var Hud:TypeHud;
public static var TScreen:TitleScreen;
public static var classGFX:GFX;
public static var instEffects:Array = new Array();
public static var levelHei:uint;
public static var layerGover:Sprite = new Sprite();
public static var classSFX:SFX;
public static var instObjects:Array = new Array();
public static var scrolling:Boolean = true;
public static var pause:Pauser;
private static var keysHit:Array = [0, 0, 0, 0, 0, 0, 0, 0];
public function Mario():void{
super();
var mask:Shape = new Shape();
mask.graphics.beginFill(0);
mask.graphics.drawRect(0, 0, 400, 375);
this.mask = mask;
addChild(mask);
self = this;
addEventListener(Event.ENTER_FRAME, MainGame);
generateBackground(1);
addChildAt(gradient, 0);
addChild(layerBack2);
addChild(layerBack);
addChild(layerPipe);
addChild(layerHide);
addChild(layerWall);
addChild(layerFore);
addChild(layerEffects);
addChild(layerGover);
MainGame(null);
}
public function waitScreen():void{
switch (Waiter.update()){
case 0:
addChildAt(Waiter.GFX, (this.numChildren - 1));
break;
case 2:
removeChild(Waiter.GFX);
sequence = 1;
break;
};
layerBack.x = 0;
layerHide.x = 0;
layerWall.x = 0;
layerFore.x = 0;
}
public function Logo():void{
}
public function ingameStep():void{
var i:int;
Hud.Update();
if (playerControllable){
instPlayer.Update();
};
stompDistance = 99;
stompID = -1;
i = (instEnemies.length - 1);
while (i >= 0) {
instEnemies[i].Update(i);
i = (i - decreaseI);
stompID = (stompID - decreaseStomp);
decreaseI = 0;
decreaseStomp = 0;
i--;
};
if (Mario.stompID > -1){
instEnemies[stompID].Stomp(stompID);
};
headbuttID = -1;
headbuttDistance = 99;
i = (instBlocks.length - 1);
while (i >= 0) {
instBlocks[i].Update(i);
i--;
};
if (Mario.headbuttID > -1){
instBlocks[headbuttID].Headbutt(headbuttID);
};
i = (instObjects.length - 1);
while (i >= 0) {
instObjects[i].Update(i);
if (decreaseI == 1){
decreaseI = 0;
return;
};
i--;
};
i = (instEffects.length - 1);
while (i >= 0) {
instEffects[i].Update(i);
if (decreaseI == 1){
decreaseI = 0;
break;
};
i--;
};
keyHitReset();
Player.Reset();
if (((playerControllable) && (scrolling))){
scrollX = Math.min((200 - Player.pX), -(scrollEdge));
layerBack.x = scrollX;
layerHide.x = scrollX;
layerWall.x = scrollX;
layerFore.x = scrollX;
layerEffects.x = scrollX;
};
}
public function keyDown(e:KeyboardEvent):void{
switch (e.keyCode){
case Keyboard.RIGHT:
keysDown[0] = true;
if (keysHit[0] == 0){
keysHit[0] = 1;
};
break;
case Keyboard.DOWN:
keysDown[1] = true;
if (keysHit[1] == 0){
keysHit[1] = 1;
};
break;
case Keyboard.LEFT:
keysDown[2] = true;
if (keysHit[2] == 0){
keysHit[2] = 1;
};
break;
case Keyboard.UP:
keysDown[3] = true;
if (keysHit[3] == 0){
keysHit[3] = 1;
};
break;
case 90:
keysDown[4] = true;
if (keysHit[4] == 0){
keysHit[4] = 1;
};
break;
case Keyboard.SPACE:
keysDown[5] = true;
if (keysHit[5] == 0){
keysHit[5] = 1;
};
break;
case Keyboard.SPACE:
keysDown[6] = true;
if (keysHit[6] == 0){
keysHit[6] = 1;
};
break;
case Keyboard.ENTER:
keysDown[7] = true;
if (keysHit[7] == 0){
keysHit[7] = 1;
};
break;
case Keyboard.ESCAPE:
togglePause();
break;
case 83:
toggleSound();
break;
case 77:
toggleMusic();
break;
};
}
public function keyUp(e:KeyboardEvent):void{
switch (e.keyCode){
case Keyboard.RIGHT:
keysDown[0] = false;
if (keysHit[0] > 0){
keysHit[0] = 0;
};
break;
case Keyboard.DOWN:
keysDown[1] = false;
if (keysHit[1] > 0){
keysHit[1] = 0;
};
break;
case Keyboard.LEFT:
keysDown[2] = false;
if (keysHit[2] > 0){
keysHit[2] = 0;
};
break;
case Keyboard.UP:
keysDown[3] = false;
if (keysHit[3] > 0){
keysHit[3] = 0;
};
break;
case 90:
keysDown[4] = false;
if (keysHit[4] > 0){
keysHit[4] = 0;
};
break;
case Keyboard.SPACE:
keysDown[5] = false;
if (keysHit[5] > 0){
keysHit[5] = 0;
};
break;
case Keyboard.SPACE:
keysDown[6] = false;
if (keysHit[6] > 0){
keysHit[6] = 0;
};
break;
case Keyboard.ENTER:
keysDown[7] = false;
if (keysHit[7] > 0){
keysHit[7] = 0;
};
break;
};
}
public function TitScreen():void{
var sharx:SharedObject;
if (TScreen == null){
TScreen = new TitleScreen();
};
TScreen.Update();
keyHitReset();
if (TScreen.sel == 10){
Player.GFX2.alpha = 1;
levelid = 0;
Hud.Lives = 2;
Mario.clearLevel();
TScreen = null;
Hud.GFX.alpha = 1;
waitScreen();
} else {
if (TScreen.sel == 11){
Player.GFX2.alpha = 1;
sharx = SharedObject.getLocal("MarioForeverFlash");
if (sharx.data.level >= 12){
levelid = Math.max(12, (sharx.data.level - 1));
} else {
if (sharx.data.level >= 8){
levelid = Math.max(8, (sharx.data.level - 1));
} else {
if (sharx.data.level >= 4){
levelid = Math.max(4, (sharx.data.level - 1));
} else {
levelid = Math.max(0, (sharx.data.level - 1));
};
};
};
Hud.Lives = 2;
Hud.Coins = 0;
Hud.Pnts = 0;
Hud.RedrawCoins();
Hud.RedrawPnts();
Mario.clearLevel();
TScreen = null;
Hud.GFX.alpha = 1;
waitScreen();
};
};
}
private function MainGame(e:Event):void{
mox = mouseX;
moy = mouseY;
if (stepping){
switch (sequence){
case 0:
waitScreen();
break;
case 1:
ingameStep();
break;
case 2:
Logo();
break;
case 3:
LogoZwei();
break;
case 4:
TitScreen();
break;
case 11:
classGFX = new GFX();
classSFX = new SFX();
instPlayer = new Player(25, 200);
Waiter = new WaitScreen();
Log2 = new Logo2();
Player.GFX2.alpha = 0;
Hud = new TypeHud();
Hud.GFX.alpha = 0;
addChild(Hud.Hud());
sequence = 3;
break;
case 12:
break;
};
};
}
public function LogoZwei():void{
if (Log2.timer == 0){
Player.GFX2.alpha = 0;
layerGover.addChild(Log2.GFX);
};
Log2.Update();
if (Log2.timer == 400){
layerGover.removeChild(Log2.GFX);
sequence = 4;
Log2 = new Logo2();
};
}
private function keyHitReset():void{
if (keysHit[0] == 1){
keysHit[0] = 2;
};
if (keysHit[1] == 1){
keysHit[1] = 2;
};
if (keysHit[2] == 1){
keysHit[2] = 2;
};
if (keysHit[3] == 1){
keysHit[3] = 2;
};
if (keysHit[4] == 1){
keysHit[4] = 2;
};
if (keysHit[5] == 1){
keysHit[5] = 2;
};
if (keysHit[6] == 1){
keysHit[6] = 2;
};
if (keysHit[7] == 1){
keysHit[7] = 2;
};
}
public static function togglePause():void{
if (((((!((sequence == 12))) && (!((sequence == 1))))) || ((musika == 13)))){
return;
};
if (pause == null){
sequence = 12;
pause = new Pauser();
} else {
sequence = 1;
pause.kill();
pause = null;
};
}
public static function toggleSound():void{
if (sounds == true){
sounds = false;
} else {
sounds = true;
};
}
public static function playerCollide(x1:uint, y1:uint, wid1:uint, hei1:uint):Boolean{
var tempX:int;
var tempY:int;
if (playerControllable){
tempX = (Player.pX - x1);
tempY = (Player.pY - y1);
if ((((((((tempX < wid1)) && ((tempX > -(Player.pWid))))) && ((tempY < hei1)))) && ((tempY > -(Player.pHei))))){
return (true);
};
};
return (false);
}
public static function isKeyDown(kCode:uint):Boolean{
return (keysDown[kCode]);
}
public static function centerScreen(kX:int):void{
scrollX = Math.min((200 - kX), -(scrollEdge));
layerBack.x = scrollX;
layerHide.x = scrollX;
layerWall.x = scrollX;
layerFore.x = scrollX;
layerEffects.x = scrollX;
var i:int = (instEffects.length - 1);
while (i >= 0) {
if ((instEffects[i] is Background)){
instEffects[i].Reset(kX);
};
i--;
};
}
public static function Collide(x1:uint, y1:uint, wid1:uint, hei1:uint, x2:uint, y2:uint, wid2:uint, hei2:uint):Boolean{
var tempX:int = (x2 - x1);
var tempY:int = (y2 - y1);
if ((((((((tempX < wid1)) && ((tempX > -(wid2))))) && ((tempY < hei1)))) && ((tempY > -(hei2))))){
return (true);
};
return (false);
}
public static function toggleMusic():void{
if (music == true){
music = false;
} else {
music = true;
};
if (music == false){
classSFX.Play();
} else {
if (sequence == 4){
classSFX.Play(6);
} else {
if (Player.starred > 0){
classSFX.Play(3);
} else {
if (sequence == 1){
if (musika != 13){
classSFX.Play(musika);
};
};
};
};
};
}
public static function enemyBounce(myID:uint, oX:int, oY:int, oWid:uint, oHei:uint):Boolean{
var i:int = (instEnemies.length - 1);
while (i >= 0) {
if (((((!((i == myID))) && ((instEnemies[i].bounce == true)))) && (Mario.Collide(oX, oY, oWid, oHei, instEnemies[i].eX, instEnemies[i].eY, instEnemies[i].eWid, instEnemies[i].eHei)))){
return (true);
};
i--;
};
return (false);
}
public static function enemyStarHit(oX:int, oY:int, oWid:uint, oHei:uint, dir:int):void{
var ins:Enemy;
var i:int = (instEnemies.length - 1);
while (i >= 0) {
if (Mario.Collide(oX, oY, oWid, oHei, instEnemies[i].eX, instEnemies[i].eY, instEnemies[i].eWid, instEnemies[i].eHei)){
ins = instEnemies[i];
if (ins.Fire(i, dir)){
if (Mario.sounds){
ins.SFXKick.play();
};
Mario.instEffects.push(new Points(oX, oY, "200"));
};
};
i--;
};
}
public static function removeEffect(effectId:uint):void{
Mario.instEffects.splice(effectId, 1);
}
public static function enemyHitFireball(oX:int, oY:int, oWid:uint, oHei:uint, dir:int):Boolean{
var i:int = (instEnemies.length - 1);
while (i >= 0) {
if (Mario.Collide(oX, oY, oWid, oHei, instEnemies[i].eX, instEnemies[i].eY, instEnemies[i].eWid, instEnemies[i].eHei)){
if (instEnemies[i].FireballHit(i, dir)){
return (true);
};
};
i--;
};
return (false);
}
public static function clearLevel(make:Boolean=true):void{
var sharx:SharedObject;
var lev:uint;
stepping = false;
instEnemies = new Array();
instEffects = new Array();
instObjects = new Array();
instBlocks = new Array();
while (layerBack.numChildren > 0) {
layerBack.removeChildAt(0);
};
while (layerFore.numChildren > 0) {
layerFore.removeChildAt(0);
};
while (layerHide.numChildren > 0) {
layerHide.removeChildAt(0);
};
while (layerWall.numChildren > 0) {
layerWall.removeChildAt(0);
};
while (layerBack2.numChildren > 0) {
layerBack2.removeChildAt(0);
};
while (layerEffects.numChildren > 0) {
layerEffects.removeChildAt(0);
};
while (layerGover.numChildren > 0) {
layerGover.removeChildAt(0);
};
Player.starred = 0;
Player.shield = 0;
if (make){
sharx = SharedObject.getLocal("MarioForeverFlash");
lev = levelid;
sharx.data.level = lev;
sharx.flush(128);
playerControllable = true;
scrolling = true;
scrollEdge = 0;
MakeLevel(levelid);
};
}
public static function hitPlayer(permaDeath:Boolean=false):void{
if ((((((((Player.shield == 0)) && ((Player.sequence == 0)))) && ((Player.starred == 0)))) || (permaDeath))){
if (Player.pSize == 2){
Player.sequence = -2;
Player.pSize = 1;
Player.sequenceFrame = 60;
Player.shield = 100;
if (permaDeath){
Player.sequence = 0;
Player.sequenceFrame = 0;
Player.shield = 0;
Mario.instEffects.push(new DeadMario(Player.pX, (Player.pY - 21)));
playerControllable = false;
layerFore.removeChild(Player.GFX2);
if (scrolling){
scrollX = Math.min((200 - Player.pX), -(scrollEdge));
layerBack.x = scrollX;
layerHide.x = scrollX;
layerWall.x = scrollX;
layerFore.x = scrollX;
layerEffects.x = scrollX;
};
Mario.classSFX.Play(-1);
if (Mario.sounds){
Player.SFXDeath.play();
};
} else {
if (Mario.sounds){
Player.SFXPowerdown.play();
};
};
} else {
if (Player.pSize == 1){
if (Player.crouch != 1){
Player.pHei = 24;
Player.pY = (Player.pY + 21);
};
if (Player.pSize == 1){
Player.sequence = 2;
} else {
Player.sequence = -2;
};
Player.pSize = 0;
Player.sequenceFrame = 60;
Player.shield = 100;
if (permaDeath){
Player.sequence = 0;
Player.sequenceFrame = 0;
Player.shield = 0;
Mario.instEffects.push(new DeadMario(Player.pX, (Player.pY - 21)));
playerControllable = false;
layerFore.removeChild(Player.GFX2);
if (scrolling){
scrollX = Math.min((200 - Player.pX), -(scrollEdge));
layerBack.x = scrollX;
layerHide.x = scrollX;
layerWall.x = scrollX;
layerFore.x = scrollX;
layerEffects.x = scrollX;
};
Mario.classSFX.Play(-1);
if (Mario.sounds){
Player.SFXDeath.play();
};
} else {
if (Mario.sounds){
Player.SFXPowerdown.play();
};
};
} else {
Mario.instEffects.push(new DeadMario(Player.pX, (Player.pY - 21)));
playerControllable = false;
layerFore.removeChild(Player.GFX2);
if (scrolling){
scrollX = Math.min((200 - Player.pX), -(scrollEdge));
layerBack.x = scrollX;
layerHide.x = scrollX;
layerWall.x = scrollX;
layerFore.x = scrollX;
layerEffects.x = scrollX;
};
Mario.classSFX.Play(-1);
if (Mario.sounds){
Player.SFXDeath.play();
};
};
};
};
}
public static function removeEnemy(enemyId:uint):void{
if (enemyId < stompID){
stompID--;
};
Mario.instEnemies.splice(enemyId, 1);
}
public static function removeBlock(blockId:uint):void{
Mario.instBlocks.splice(blockId, 1);
}
public static function stompSetDistance(enemyID:uint, eX:int):void{
if (Math.abs((eX - Player.pX)) < Mario.stompDistance){
Mario.stompID = enemyID;
Mario.stompDistance = Math.abs((eX - Player.pX));
};
}
public static function givePointShell(numb:uint):String{
switch (numb){
case 0:
return ("100");
case 1:
return ("200");
case 2:
return ("500");
case 3:
return ("1000");
case 4:
return ("2000");
case 5:
return ("5000");
case 6:
return ("8000");
case 7:
return ("1up");
};
return ("100");
}
public static function generateBackground(dako:uint):void{
var fillType:String;
var spreadMethod:String;
gradient.graphics.clear();
var colors:Array = new Array(2);
var alphas:Array = new Array(2);
var ratios:Array = new Array(2);
var matr:Matrix = new Matrix();
switch (dako){
case 0:
fillType = GradientType.LINEAR;
colors = [39372, 1179647];
alphas = [100, 100];
ratios = [60, 120];
matr = new Matrix();
matr.createGradientBox(400, 375, (Math.PI / 2));
spreadMethod = SpreadMethod.PAD;
gradient.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
gradient.graphics.drawRect(0, 0, 400, 375);
break;
case 1:
fillType = GradientType.LINEAR;
colors = [2113648, 1122626];
alphas = [100, 100];
ratios = [60, 120];
matr = new Matrix();
matr.createGradientBox(400, 375, (Math.PI / 2));
spreadMethod = SpreadMethod.PAD;
gradient.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);
gradient.graphics.drawRect(0, 0, 400, 375);
break;
};
}
public static function headbuttSetDistance(objectID:uint, oX:int):void{
if (Math.abs((oX - Player.pX)) < Mario.headbuttDistance){
Mario.headbuttID = objectID;
Mario.headbuttDistance = Math.abs((oX - Player.pX));
};
}
public static function isKeyPressed(kCode:uint):Boolean{
if (kCode > 7){
return (false);
};
if (keysHit[kCode] == 1){
return (true);
};
return (false);
}
public static function levelColl(iX:Number, iY:Number):Boolean{
if (iX < scrollEdge){
return (true);
};
iX = Math.floor((iX / 25));
iY = Math.floor((iY / 25));
if ((((((((iX < Mario.levelWid)) && ((iX > -1)))) && ((iY < Mario.levelHei)))) && ((iY > -1)))){
if (Mario.level[iY].charAt(iX) == "x"){
return (true);
};
};
return (false);
}
public static function drawLevel():void{
var GFX:BitmapAsset;
var j:uint;
var i:uint;
while (i < Mario.levelHei) {
j = 0;
while (j < Mario.levelWid) {
switch (Mario.level[i].charAt(j)){
case " ":
break;
case "n":
case "o":
case "p":
GFX = new (Mario.classGFX.AccessGFX(("Wall_" + Mario.level[i].charAt(j))));
GFX.x = (j * 25);
GFX.y = (i * 25);
Mario.layerHide.addChild(GFX);
changeLevel(j, i, " ");
break;
default:
GFX = new (Mario.classGFX.AccessGFX(("Wall_" + Mario.level[i].charAt(j))));
GFX.x = (j * 25);
GFX.y = (i * 25);
Mario.layerWall.addChild(GFX);
changeLevel(j, i, "x");
break;
};
j++;
};
i++;
};
}
public static function changeLevel(xPosition:uint, yPosition:uint, newChar:String):void{
Mario.level[yPosition] = ((Mario.level[yPosition].substr(0, xPosition) + newChar) + Mario.level[yPosition].substr((xPosition + 1)));
}
public static function playerBonus(type:uint):void{
switch (type){
case 0:
if (Player.pSize == 0){
Player.pHei = 45;
Player.pY = (Player.pY - 21);
Player.CeilPull();
Player.pSize = 1;
Player.sequence = 1;
Player.sequenceFrame = 60;
Player.shield = 0;
};
break;
case 1:
if (Player.pSize == 0){
Player.pHei = 45;
Player.pY = (Player.pY - 21);
Player.CeilPull();
Player.pSize = 1;
Player.sequence = 1;
Player.sequenceFrame = 60;
Player.shield = 0;
} else {
if (Player.pSize == 1){
Player.pSize = 2;
Player.sequence = -1;
Player.sequenceFrame = 60;
Player.shield = 0;
};
};
break;
};
if (Mario.sounds){
Player.SFXPowerup.play();
};
}
public static function Sign(variable:Number):int{
if (variable > 0){
return (1);
};
if (variable < 0){
return (-1);
};
return (0);
}
public static function enemyShellHit(myID:int, oX:int, oY:int, oWid:uint, oHei:uint, dir:int):int{
var ins:Enemy;
var ret:int;
var hit = 1;
var i:int = (instEnemies.length - 1);
while (i >= 0) {
if (((!((i == myID))) && (Mario.Collide(oX, oY, oWid, oHei, instEnemies[i].eX, instEnemies[i].eY, instEnemies[i].eWid, instEnemies[i].eHei)))){
if (i < myID){
Mario.decreaseI++;
};
if (stompID < myID){
Mario.decreaseStomp++;
};
if (i < Mario.stompID){
Mario.stompID--;
};
if (instEnemies[i].isShell){
hit = -1;
};
ins = instEnemies[i];
if (ins.Fire(i, dir)){
if (Mario.sounds){
ins.SFXKick.play();
};
};
ret++;
};
i--;
};
return ((ret * hit));
}
public static function removeObject(objectId:uint):void{
Mario.instObjects.splice(objectId, 1);
}
}
}//package