Section 1
//MochiAd (MochiAds.MochiAd)
package MochiAds {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.utils.*;
import flash.system.*;
public class MochiAd {
public function MochiAd(){
super();
}
public static function getVersion():String{
return ("2.7");
}
public static function showClickAwayAd(options:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = options;
var DEFAULTS:Object = {ad_timeout:2000, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function ():void{
}, ad_finished:function ():void{
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
var sendHostProgress:Boolean;
mc.regContLC = function (lc_name:String):void{
mc._containerLCName = lc_name;
};
chk["onEnterFrame"] = function ():void{
var total:Number;
if (!this.parent){
delete this.onEnterFrame;
return;
};
var ad_clip:Object = this.parent._mochiad_ctr;
var elapsed:Number = (getTimer() - this.started);
var finished:Boolean;
if (!chk.showing){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
finished = true;
chk.started = getTimer();
} else {
if (elapsed > chk.ad_timeout){
options.ad_failed();
finished = true;
};
};
};
if (this.root == null){
finished = true;
};
if (finished){
delete this.onEnterFrame;
};
};
doOnEnterFrame(chk);
}
public static function _isNetworkAvailable():Boolean{
return (!((Security.sandboxType == "localWithFile")));
}
public static function _allowDomains(server:String):String{
var hostname:String = server.split("/")[2].split(":")[0];
Security.allowDomain("*");
Security.allowDomain(hostname);
Security.allowInsecureDomain("*");
Security.allowInsecureDomain(hostname);
return (hostname);
}
public static function unload(clip:Object):Boolean{
if (((clip.clip) && (clip.clip._mochiad))){
clip = clip.clip;
};
if (clip.origFrameRate != undefined){
clip.stage.frameRate = clip.origFrameRate;
};
if (!clip._mochiad){
return (false);
};
if (clip._mochiad._containerLCName != undefined){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
};
if (clip._mochiad.onUnload){
clip._mochiad.onUnload();
};
delete clip._mochiad_loaded;
delete clip._mochiad;
return (true);
}
public static function showInterLevelAd(options:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var options = options;
var DEFAULTS:Object = {ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showInterLevelAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
options.ad_finished();
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var p:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0){
this.parent.alpha = (p * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
mc.unloadAd = function ():void{
MochiAd.unload(clip);
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (msec:Number):void{
var _chk:Object = mc._mochiad_wait;
_chk.server_control = true;
_chk.showing = true;
_chk.started = getTimer();
_chk.ad_msec = (msec - 250);
};
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
chk["onEnterFrame"] = function ():void{
var total:Number;
if (!this.parent){
delete this.onEnterFrame;
delete this.fadeFunction;
return;
};
var ad_clip:Object = this.parent._mochiad_ctr;
var elapsed:Number = (getTimer() - this.started);
var finished:Boolean;
if (!chk.showing){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if (elapsed > chk.ad_timeout){
options.ad_failed();
finished = true;
};
};
};
if (elapsed > chk.ad_msec){
finished = true;
};
if (finished){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function _parseOptions(options:Object, defaults:Object):Object{
var k:String;
var pairs:Array;
var i:Number;
var kv:Array;
var optcopy:Object = {};
for (k in defaults) {
optcopy[k] = defaults[k];
};
if (options){
for (k in options) {
optcopy[k] = options[k];
};
};
if (optcopy.clip == undefined){
throw (new Error("MochiAd is missing the 'clip' parameter. This should be a MovieClip, Sprite or an instance of a class that extends MovieClip or Sprite."));
};
options = optcopy.clip.loaderInfo.parameters.mochiad_options;
if (options){
pairs = options.split("&");
i = 0;
while (i < pairs.length) {
kv = pairs[i].split("=");
optcopy[unescape(kv[0])] = unescape(kv[1]);
i++;
};
};
if (optcopy.id == "test"){
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
};
return (optcopy);
}
public static function _cleanup(mc:Object):void{
var k:String;
var lc:LocalConnection;
var f:Function;
var mc = mc;
if (("lc" in mc)){
lc = mc.lc;
f = function ():void{
lc.client = null;
lc.close();
//unresolved jump
var _slot1 = e;
};
setTimeout(f, 0);
};
var idx:Number = DisplayObjectContainer(mc).numChildren;
while (idx > 0) {
idx = (idx - 1);
DisplayObjectContainer(mc).removeChildAt(idx);
};
for (k in mc) {
delete mc[k];
};
}
public static function load(options:Object):MovieClip{
var clip:Object;
var k:String;
var server:String;
var hostname:String;
var lc:LocalConnection;
var name:String;
var loader:Loader;
var g:Function;
var req:URLRequest;
var v:Object;
var options = options;
var DEFAULTS:Object = {server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = MochiAd._parseOptions(options, DEFAULTS);
options.swfv = 9;
options.mav = MochiAd.getVersion();
clip = options.clip;
if (!MochiAd._isNetworkAvailable()){
return (null);
};
if (clip._mochiad_loaded){
return (null);
};
//unresolved jump
var _slot1 = e;
throw (new Error("MochiAd requires a clip that is an instance of a dynamic class. If your class extends Sprite or MovieClip, you must make it dynamic."));
var depth:Number = options.depth;
delete options.depth;
var mc:MovieClip = createEmptyMovieClip(clip, "_mochiad", depth);
var wh:Array = MochiAd._getRes(options, clip);
options.res = ((wh[0] + "x") + wh[1]);
options.server = (options.server + options.id);
delete options.id;
clip._mochiad_loaded = true;
if (clip.loaderInfo.loaderURL.indexOf("http") == 0){
options.as3_swf = clip.loaderInfo.loaderURL;
};
var lv:URLVariables = new URLVariables();
for (k in options) {
v = options[k];
if (!(v is Function)){
lv[k] = v;
};
};
server = lv.server;
delete lv.server;
hostname = _allowDomains(server);
lc = new LocalConnection();
lc.client = mc;
name = ["", Math.floor(new Date().getTime()), Math.floor((Math.random() * 999999))].join("_");
lc.allowDomain("*", "localhost");
lc.allowInsecureDomain("*", "localhost");
lc.connect(name);
mc.lc = lc;
mc.lcName = name;
lv.lc = name;
lv.st = getTimer();
loader = new Loader();
g = function (ev:Object):void{
ev.target.removeEventListener(ev.type, arguments.callee);
MochiAd.unload(clip);
};
loader.contentLoaderInfo.addEventListener(Event.UNLOAD, g);
req = new URLRequest(((server + ".swf?cacheBust=") + new Date().getTime()));
req.contentType = "application/x-www-form-urlencoded";
req.method = URLRequestMethod.POST;
req.data = lv;
loader.load(req);
mc.addChild(loader);
mc._mochiad_ctr = loader;
return (mc);
}
public static function runMethod(base:Object, methodName:String, argsArray:Array):Object{
var nameArray:Array = methodName.split(".");
var i:Number = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return (undefined);
};
base = base[nameArray[i]];
i++;
};
if (typeof(base[nameArray[i]]) == "function"){
return (base[nameArray[i]].apply(base, argsArray));
};
return (undefined);
}
public static function createEmptyMovieClip(parent:Object, name:String, depth:Number):MovieClip{
var mc:MovieClip = new MovieClip();
if (((false) && (depth))){
parent.addChildAt(mc, depth);
} else {
parent.addChild(mc);
};
parent[name] = mc;
mc["_name"] = name;
return (mc);
}
public static function _getRes(options:Object, clip:Object):Array{
var xy:Array;
var b:Object = clip.getBounds(clip.root);
var w:Number = 0;
var h:Number = 0;
if (typeof(options.res) != "undefined"){
xy = options.res.split("x");
w = parseFloat(xy[0]);
h = parseFloat(xy[1]);
} else {
w = (b.xMax - b.xMin);
h = (b.yMax - b.yMin);
};
if ((((w == 0)) || ((h == 0)))){
w = clip.stage.stageWidth;
h = clip.stage.stageHeight;
};
return ([w, h]);
}
public static function adShowing(mc:Object):void{
mc.origFrameRate = mc.stage.frameRate;
mc.stage.frameRate = 30;
}
public static function getValue(base:Object, objectName:String):Object{
var nameArray:Array = objectName.split(".");
var i:Number = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return (undefined);
};
base = base[nameArray[i]];
i++;
};
return (base[nameArray[i]]);
}
public static function rpc(clip:Object, callbackID:Number, arg:Object):void{
var _local4:Object;
var _local5:Object;
switch (arg.id){
case "setValue":
MochiAd.setValue(clip, arg.objectName, arg.value);
break;
case "getValue":
_local4 = MochiAd.getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod":
_local5 = MochiAd.runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local5);
break;
default:
trace(("[mochiads rpc] unknown rpc id: " + arg.id));
};
}
public static function setValue(base:Object, objectName:String, value:Object):void{
var nameArray:Array = objectName.split(".");
var i:Number = 0;
while (i < (nameArray.length - 1)) {
if ((((base[nameArray[i]] == undefined)) || ((base[nameArray[i]] == null)))){
return;
};
base = base[nameArray[i]];
i++;
};
base[nameArray[i]] = value;
}
public static function showPreGameAd(options:Object):void{
var clip:Object;
var mc:MovieClip;
var chk:MovieClip;
var complete:Boolean;
var unloaded:Boolean;
var sendHostProgress:Boolean;
var fn:Function;
var r:MovieClip;
var options = options;
var DEFAULTS:Object = {ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:0xFF8A00, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function ():void{
if ((this.clip is MovieClip)){
this.clip.stop();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_finished:function ():void{
if ((this.clip is MovieClip)){
this.clip.play();
} else {
throw (new Error("MochiAd.showPreGameAd requires a clip that is a MovieClip or is an instance of a class that extends MovieClip. If your clip is a Sprite, then you must provide custom ad_started and ad_finished handlers."));
};
}, ad_loaded:function (width:Number, height:Number):void{
}, ad_failed:function ():void{
trace("[MochiAd] Couldn't load an ad, make sure your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function ():void{
}, ad_progress:function (percent:Number):void{
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def"){
options.ad_started();
fn = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
return;
};
clip = options.clip;
var ad_msec:Number = 11000;
var ad_timeout:Number = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time:Number = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)){
options.ad_failed();
options.ad_finished();
return;
};
options.ad_started();
mc = clip._mochiad;
mc["onUnload"] = function ():void{
MochiAd._cleanup(mc);
var fn:Function = function ():void{
options.ad_finished();
};
setTimeout(fn, 100);
};
var wh:Array = MochiAd._getRes(options, clip);
var w:Number = wh[0];
var h:Number = wh[1];
mc.x = (w * 0.5);
mc.y = (h * 0.5);
chk = createEmptyMovieClip(mc, "_mochiad_wait", 3);
chk.x = (w * -0.5);
chk.y = (h * -0.5);
var bar:MovieClip = createEmptyMovieClip(chk, "_mochiad_bar", 4);
if (options.no_progress_bar){
bar.visible = false;
delete options.no_progress_bar;
} else {
bar.x = 10;
bar.y = (h - 20);
};
var bar_color:Number = options.color;
delete options.color;
var bar_background:Number = options.background;
delete options.background;
var bar_outline:Number = options.outline;
delete options.outline;
var backing_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 1);
var backing:Object = backing_mc.graphics;
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo((w - 20), 0);
backing.lineTo((w - 20), 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var inside_mc:MovieClip = createEmptyMovieClip(bar, "_inside", 2);
var inside:Object = inside_mc.graphics;
inside.beginFill(bar_color);
inside.moveTo(0, 0);
inside.lineTo((w - 20), 0);
inside.lineTo((w - 20), 10);
inside.lineTo(0, 10);
inside.lineTo(0, 0);
inside.endFill();
inside_mc.scaleX = 0;
var outline_mc:MovieClip = createEmptyMovieClip(bar, "_outline", 3);
var outline:Object = outline_mc.graphics;
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo((w - 20), 0);
outline.lineTo((w - 20), 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function ():void{
var p:Number = (100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)));
if (p > 0){
this.parent.alpha = (p * 0.01);
} else {
MochiAd.unload(clip);
delete this["onEnterFrame"];
};
};
complete = false;
unloaded = false;
var f:Function = function (ev:Event):void{
ev.target.removeEventListener(ev.type, arguments.callee);
complete = true;
if (unloaded){
MochiAd.unload(clip);
};
};
clip.loaderInfo.addEventListener(Event.COMPLETE, f);
if ((clip.root is MovieClip)){
r = (clip.root as MovieClip);
if (r.framesLoaded >= r.totalFrames){
complete = true;
};
};
mc.unloadAd = function ():void{
unloaded = true;
if (complete){
MochiAd.unload(clip);
};
};
mc.adLoaded = options.ad_loaded;
mc.adSkipped = options.ad_skipped;
mc.adjustProgress = function (msec:Number):void{
var _chk:Object = mc._mochiad_wait;
_chk.server_control = true;
_chk.showing = true;
_chk.started = getTimer();
_chk.ad_msec = msec;
};
mc.rpc = function (callbackID:Number, arg:Object):void{
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s:String):Object{
trace(("[MOCHIAD rpcTestFn] " + s));
return (s);
};
mc.regContLC = function (lc_name:String):void{
mc._containerLCName = lc_name;
};
sendHostProgress = false;
mc.sendHostLoadProgress = function (lc_name:String):void{
sendHostProgress = true;
};
chk["onEnterFrame"] = function ():void{
var total:Number;
if (((!(this.parent)) || (!(this.parent.parent)))){
delete this["onEnterFrame"];
return;
};
var _clip:Object = this.parent.parent.root;
var ad_clip:Object = this.parent._mochiad_ctr;
var elapsed:Number = (getTimer() - this.started);
var finished:Boolean;
var clip_total:Number = _clip.loaderInfo.bytesTotal;
var clip_loaded:Number = _clip.loaderInfo.bytesLoaded;
if (complete){
clip_loaded = Math.max(1, clip_loaded);
clip_total = clip_loaded;
};
var clip_pcnt:Number = ((100 * clip_loaded) / clip_total);
var ad_pcnt:Number = ((100 * elapsed) / chk.ad_msec);
var _inside:Object = this._mochiad_bar._inside;
var pcnt:Number = Math.min(100, Math.min(((clip_pcnt) || (0)), ad_pcnt));
pcnt = Math.max(this.last_pcnt, pcnt);
this.last_pcnt = pcnt;
_inside.scaleX = (pcnt * 0.01);
options.ad_progress(pcnt);
if (sendHostProgress){
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:clip_pcnt});
if (clip_pcnt == 100){
sendHostProgress = false;
};
};
if (!chk.showing){
total = this.parent._mochiad_ctr.contentLoaderInfo.bytesTotal;
if (total > 0){
chk.showing = true;
chk.started = getTimer();
MochiAd.adShowing(clip);
} else {
if ((((elapsed > chk.ad_timeout)) && ((clip_pcnt == 100)))){
options.ad_failed();
finished = true;
};
};
};
if (elapsed > chk.ad_msec){
finished = true;
};
if (((complete) && (finished))){
if (this.server_control){
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
};
};
};
doOnEnterFrame(chk);
}
public static function showPreloaderAd(options:Object):void{
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}
public static function showTimedAd(options:Object):void{
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}
public static function doOnEnterFrame(mc:MovieClip):void{
var mc = mc;
var f:Function = function (ev:Object):void{
if (((("onEnterFrame" in mc)) && (mc.onEnterFrame))){
mc.onEnterFrame();
} else {
ev.target.removeEventListener(ev.type, arguments.callee);
};
};
mc.addEventListener(Event.ENTER_FRAME, f);
}
}
}//package MochiAds
Section 2
//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 3
//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 4
//FontAsset (mx.core.FontAsset)
package mx.core {
import flash.text.*;
public class FontAsset extends Font implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FontAsset(){
super();
}
}
}//package mx.core
Section 5
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 6
//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 7
//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 8
//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 9
//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 10
//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 11
//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 12
//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 13
//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 14
//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 15
//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[0].x = (GFX[1].x = (GFX[2].x = bX));
GFX[0].y = (GFX[1].y = (GFX[2].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 16
//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)))) / 2));
};
};
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 17
//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 18
//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 19
//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 20
//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 21
//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 22
//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 23
//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 24
//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 25
//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 26
//Effect (objects.Effect)
package objects {
public class Effect {
var timer:uint;
public function Effect(){
super();
}
public function Update(myID:uint):void{
}
}
}//package objects
Section 27
//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 28
//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 29
//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 30
//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 31
//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 32
//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 33
//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 34
//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 35
//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 36
//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 37
//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 + (Math.sin(timer) * 5));
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'>Mario Forever Flash \n2009 \nSoftendo.com Mauft.com</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'>Created by: Softendo.com Mauft.com\n Programming: Mauft.com\n Graphics: Nintendo, Softendo </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\nLevel Design: Mauft.com</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 38
//GameEnd_GFXC (objects.GameEnd_GFXC)
package objects {
import mx.core.*;
public class GameEnd_GFXC extends BitmapAsset {
}
}//package objects
Section 39
//GameEnd_GFXK (objects.GameEnd_GFXK)
package objects {
import mx.core.*;
public class GameEnd_GFXK extends BitmapAsset {
}
}//package objects
Section 40
//GameEnd_GFXZ (objects.GameEnd_GFXZ)
package objects {
import mx.core.*;
public class GameEnd_GFXZ extends BitmapAsset {
}
}//package objects
Section 41
//GameEnd_Jebs (objects.GameEnd_Jebs)
package objects {
import mx.core.*;
public class GameEnd_Jebs extends SoundAsset {
}
}//package objects
Section 42
//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(4)){
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 43
//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_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_EN_SHELL_RED_4:Class;
private var GFX_MARIO2_JUMP:Class;
private var GFX_FONT_COIN_2:Class;
private var GFX_OB_STAR_3:Class;
private var GFX_FONT_X:Class;
private var GFX_FONT_WORLD:Class;
private var GFX_MARIO2_ENTER:Class;
private var GFX_WALL_ca:Class;
private var GFX_WALL_cb:Class;
private var GFX_EFF_GOOMBA_STOMPED:Class;
private var GFX_EFF_POINTS_2000: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_2:Class;
private var GFX_OB_COIN_3: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_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_8:Class;
private var GFX_WALL_k:Class;
private var GFX_WALL_d:Class;
private var GFX_WALL_f:Class;
private var GFX_WALL_o: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_w: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_M:Class;
private var GFX_WALL_O:Class;
private var GFX_EN_FISH_1: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_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_OB_COIN_JUMP_1:Class;
private var GFX_EN_MILL:Class;
private var GFX_WALL_v:Class;
private var GFX_WALL_x: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_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_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_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_EN_BBEETLE_2:Class;
private var GFX_EN_BBEETLE_1: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_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_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_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_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 44
//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 45
//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 46
//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 47
//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 48
//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 49
//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 50
//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 51
//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 52
//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 53
//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 54
//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 55
//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 56
//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 57
//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 58
//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 59
//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 60
//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 61
//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 62
//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 63
//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 64
//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 65
//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 66
//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 67
//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 68
//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 69
//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 70
//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 71
//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 72
//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 73
//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 74
//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 75
//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 76
//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 77
//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 78
//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 79
//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 80
//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 81
//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 82
//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 83
//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 84
//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 85
//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 86
//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 87
//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 88
//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 89
//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 90
//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 91
//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 92
//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 93
//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 94
//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 95
//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 96
//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 97
//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 98
//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 99
//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 100
//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 101
//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 102
//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 103
//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 104
//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 105
//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 106
//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 107
//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 108
//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 109
//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 110
//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 111
//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 112
//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 113
//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 114
//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 115
//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 116
//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 117
//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 118
//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 119
//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 120
//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 121
//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 122
//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 123
//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 124
//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 125
//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 126
//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 127
//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 128
//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 129
//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 130
//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 131
//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 132
//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 133
//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 134
//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 135
//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 136
//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 137
//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 138
//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 139
//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 140
//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 141
//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 142
//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 143
//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 144
//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 145
//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 146
//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 147
//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 148
//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 149
//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 150
//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 151
//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 152
//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 153
//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 154
//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 155
//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 156
//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 157
//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 158
//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 159
//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 160
//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 161
//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 162
//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 163
//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 164
//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 165
//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 166
//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 167
//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 168
//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 169
//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 170
//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 171
//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 172
//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 173
//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 174
//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 175
//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 176
//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 177
//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 178
//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 179
//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 180
//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 181
//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 182
//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 183
//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 184
//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 185
//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 186
//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 187
//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 188
//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 189
//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 190
//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 191
//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 192
//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 193
//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 194
//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 195
//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 196
//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 197
//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 198
//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 199
//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 200
//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 201
//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 202
//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 203
//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 204
//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 205
//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 206
//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 207
//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 208
//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 209
//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 210
//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 211
//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 212
//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 213
//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 214
//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 215
//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 216
//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 217
//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 218
//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 219
//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 220
//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 221
//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 222
//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 223
//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 224
//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 225
//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 226
//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 227
//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 228
//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 229
//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 230
//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 231
//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 232
//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 233
//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 234
//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 235
//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 236
//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 237
//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 238
//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 239
//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 240
//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 241
//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 242
//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 243
//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 244
//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 245
//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 246
//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 247
//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 248
//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 249
//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 250
//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 251
//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 252
//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 253
//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 254
//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 255
//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 256
//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 257
//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 258
//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 259
//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 260
//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 261
//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 262
//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 263
//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 264
//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 265
//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 266
//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 267
//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 268
//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 269
//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 270
//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 271
//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 272
//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 273
//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 274
//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 275
//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 276
//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 277
//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 278
//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 279
//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 280
//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 281
//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 282
//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 283
//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 284
//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 285
//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 286
//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 287
//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 288
//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 289
//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 290
//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 291
//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 292
//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 293
//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 294
//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 295
//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 296
//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 297
//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 298
//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 299
//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 300
//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 301
//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 302
//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 303
//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 304
//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 305
//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 306
//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 307
//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 308
//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 309
//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 310
//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 311
//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 312
//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 313
//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 314
//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 315
//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 316
//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 317
//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 318
//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 319
//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 320
//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 321
//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 322
//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 323
//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 324
//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 325
//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 326
//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 327
//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 328
//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 329
//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 330
//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 331
//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 332
//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 333
//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 334
//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 335
//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 336
//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 337
//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 338
//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 339
//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 340
//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 341
//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 342
//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 343
//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 344
//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 345
//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 346
//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 347
//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 348
//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 349
//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 350
//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 351
//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 352
//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 353
//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 354
//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 355
//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 356
//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 357
//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 358
//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 359
//Loading (objects.Loading)
package objects {
import flash.events.*;
import flash.display.*;
import mx.core.*;
import flash.text.*;
import MochiAds.*;
import flash.net.*;
import flash.utils.*;
public dynamic class Loading extends MovieClip {
public var app:Object;
private var fin:Boolean;// = false
public var rect:Shape;
private var ft:Class;
public var txt:TextField;
private var GLOGO:Class;
public var logo:BitmapAsset;
public static var gfx:Sprite = new Sprite();
public function Loading(){
ft = Loading_ft;
GLOGO = Loading_GLOGO;
rect = new Shape();
txt = new TextField();
super();
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
rect.graphics.beginFill(112);
rect.graphics.drawRect(0, 0, 400, 375);
rect.graphics.endFill();
logo = new GLOGO();
txt.y = 290;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.showDefaultContextMenu = false;
stage.align = StageAlign.TOP_LEFT;
txt.autoSize = TextFieldAutoSize.CENTER;
gfx.addChild(rect);
gfx.addChild(logo);
addChild(gfx);
buttonMode = true;
gfx.visible = false;
txt.textColor = 0xFFFFFF;
txt.scaleX = 1;
txt.scaleY = 1;
var percent:Number = Math.floor(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
txt.embedFonts = true;
txt.htmlText = (("<font face='ft' size='20'>Downloaded: " + percent) + "/100</font>");
txt.x = (200 - (txt.width / 2));
gfx.addEventListener(MouseEvent.MOUSE_DOWN, clickman);
var myOptions:Object = {clip:root, id:"142a5f901ba05095", res:"400x375", ad_finished:function ():void{
_slot1.gfx.visible = true;
}};
MochiAd.showPreGameAd(myOptions);
}
public function clickman2(e:MouseEvent):void{
gfx.removeEventListener(MouseEvent.CLICK, clickman2);
removeChild(gfx);
nextFrame();
init();
}
private function keyUp(e:KeyboardEvent):void{
if (app != null){
app.keyUp(e);
};
}
public function onEnterFrame(event:Event):void{
var percent:Number;
if (framesLoaded == totalFrames){
if (fin){
return;
};
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
txt.htmlText = "<font face='ft' size='20'>Click with your mouse when ready.</font>";
txt.x = (200 - (txt.width / 2));
gfx.removeEventListener(MouseEvent.MOUSE_DOWN, clickman);
gfx.addEventListener(MouseEvent.CLICK, clickman2);
fin = true;
} else {
percent = Math.floor(((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 100));
txt.htmlText = (("<font face='ft' size='20'>Downloaded: " + percent) + "/100</font>");
};
}
private function keyDown(e:KeyboardEvent):void{
if (app != null){
app.keyDown(e);
};
}
private function init():void{
buttonMode = false;
var mainClass:Class = Class(getDefinitionByName("Mario"));
if (mainClass){
app = new (mainClass);
addChild((app as DisplayObject));
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, keyUp);
};
}
public function clickman(e:Event):void{
openWindow("http://www.softendo.com", "_blank");
}
public static function openWindow(url:String, _window:String=""):void{
navigateToURL(new URLRequest(url), _window);
}
}
}//package objects
Section 360
//Loading_ft (objects.Loading_ft)
package objects {
import mx.core.*;
public class Loading_ft extends FontAsset {
}
}//package objects
Section 361
//Loading_GLOGO (objects.Loading_GLOGO)
package objects {
import mx.core.*;
public class Loading_GLOGO extends BitmapAsset {
}
}//package objects
Section 362
//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 < 150){
GFX2.alpha = Math.min((GFX2.alpha + 0.05), 1);
} else {
GFX2.alpha = (GFX2.alpha - 0.1);
};
}
}
}//package objects
Section 363
//Logo2_LOGO (objects.Logo2_LOGO)
package objects {
import mx.core.*;
public class Logo2_LOGO extends BitmapAsset {
}
}//package objects
Section 364
//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] = " 01 ";
Mario.level[10] = " 01 23 01 ";
Mario.level[11] = " 23 M 01 MMMMMMMMM 23 01 23 ";
Mario.level[12] = " 23 MM 23 MM MM 23 23 01 23 ";
Mario.level[13] = " 23 MMM 23 MM MMM 23 23 23 23 ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(925, 150, "back_column_2", 0.550000012));
Mario.instEffects.push(new Background(3700, 175, "back_column_2", 0.350000024));
Mario.instEffects.push(new Background(2725, 125, "back_column_2", 0.390000015));
Mario.instEffects.push(new Background(2700, 175, "back_clouds_5", 0.720000029));
Mario.instEffects.push(new Background(1675, 175, "back_clouds_5", 0.450000018));
Mario.instEffects.push(new Background(450, 175, "back_clouds_5", 0.49000001));
Mario.instEffects.push(new Background(200, 225, "back_clouds_2", 0.310000002));
Mario.instEffects.push(new Background(450, 150, "back_clouds_2", 0.109999999));
Mario.instEffects.push(new Background(1075, 150, "back_clouds_2", 0.360000014));
Mario.instEffects.push(new Background(1775, 200, "back_clouds_2", 0.209999993));
Mario.instEffects.push(new Background(2525, 75, "back_clouds_2", 0.300000012));
Mario.instEffects.push(new Background(3025, 225, "back_clouds_2", 0.100000001));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.390000015));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.350000024));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.360000014));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.129999995));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.360000014));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new Goomba(500, 325));
Mario.instEnemies.push(new Goomba(575, 325));
Mario.instEnemies.push(new Goomba(975, 325));
Mario.instEnemies.push(new Goomba(1425, 325));
Mario.instEnemies.push(new Goomba(1475, 325));
Mario.instEnemies.push(new Goomba(1950, 325));
Mario.instEnemies.push(new Goomba(2000, 325));
Mario.instEnemies.push(new Goomba(2125, 325));
Mario.instEnemies.push(new Goomba(2350, 325));
Mario.instEnemies.push(new Goomba(2825, 325));
Mario.instEnemies.push(new Goomba(2950, 325));
Mario.instEnemies.push(new Goomba(3075, 325));
Mario.instEnemies.push(new Goomba(3325, 325));
Mario.instEnemies.push(new Goomba(3475, 325));
Mario.instEnemies.push(new TroopaGreen(3150, 325));
Mario.instEnemies.push(new TroopaGreen(2675, 325));
Mario.instEnemies.push(new TroopaGreen(2175, 325));
Mario.instEnemies.push(new TroopaGreen(1350, 325));
Mario.instEnemies.push(new TroopaGreen(800, 325));
Mario.instBlocks.push(new Bonus(675, 225, 1));
Mario.instBlocks.push(new Bonus(700, 225, 1));
Mario.instBlocks.push(new Bonus(725, 225, 1));
Mario.instBlocks.push(new Bonus(650, 225, 1));
Mario.instBlocks.push(new Bonus(2025, 275, 1));
Mario.instBlocks.push(new Bonus(2000, 275, 1));
Mario.instBlocks.push(new Brick(1975, 275));
Mario.instBlocks.push(new Brick(1950, 275));
Mario.instBlocks.push(new Brick(2100, 275));
Mario.instBlocks.push(new Brick(2550, 250));
Mario.instBlocks.push(new Brick(2575, 250));
Mario.instBlocks.push(new Brick(2600, 250));
Mario.instBlocks.push(new Brick(2575, 175));
Mario.instBlocks.push(new Brick(3075, 250));
Mario.instBlocks.push(new Brick(3050, 250));
Mario.instBlocks.push(new Brick(3025, 250));
Mario.instBlocks.push(new Brick(3100, 250));
Mario.instBlocks.push(new Bonus(2525, 250, 2));
Mario.instBlocks.push(new Bonus(125, 250, 2));
Mario.instBlocks.push(new Bonus(200, 250, 2));
Mario.instBlocks.push(new Bonus(1525, 275, 2));
break;
case 1:
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] = " M MMMMMMMMMM ";
Mario.level[10] = " MM MM M 01 ";
Mario.level[11] = " MMM MMM M M M M M M 23M M M ";
Mario.level[12] = " MMMM M MM MM MM MM MM 23M MM MM ";
Mario.level[13] = " MMMMM M MMM MMM MMM MMM MMMM MMM MMM MMM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.620000005));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.350000024));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.140000001));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.310000002));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.360000014));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new TroopaGreen(2975, 325));
Mario.instEnemies.push(new TroopaGreen(3225, 325));
Mario.instEnemies.push(new TroopaGreen(2675, 325));
Mario.instEnemies.push(new TroopaGreen(2625, 325));
Mario.instEnemies.push(new TroopaGreen(2575, 325));
Mario.instEnemies.push(new TroopaGreen(2225, 325));
Mario.instEnemies.push(new Goomba(2150, 325));
Mario.instEnemies.push(new Goomba(2100, 325));
Mario.instEnemies.push(new Goomba(2025, 325));
Mario.instEnemies.push(new Goomba(1450, 325));
Mario.instEnemies.push(new Goomba(1400, 325));
Mario.instEnemies.push(new Goomba(925, 325));
Mario.instEnemies.push(new Goomba(675, 200));
Mario.instEnemies.push(new Goomba(625, 200));
Mario.instEnemies.push(new Goomba(550, 200));
Mario.instEnemies.push(new Goomba(575, 325));
Mario.instEnemies.push(new Goomba(525, 325));
Mario.instEnemies.push(new Goomba(800, 325));
Mario.instEnemies.push(new Goomba(350, 200));
Mario.instBlocks.push(new Bonus(775, 275, 2, true));
Mario.instBlocks.push(new Bonus(1175, 275, 2, true));
Mario.instBlocks.push(new Bonus(1150, 275, 1));
Mario.instBlocks.push(new Bonus(1125, 275, 1));
Mario.instBlocks.push(new Bonus(1100, 275, 1));
Mario.instBlocks.push(new Bonus(1125, 175, 1));
Mario.instBlocks.push(new Bonus(1150, 175, 1));
Mario.instBlocks.push(new Bonus(1200, 175, 1));
Mario.instBlocks.push(new Bonus(1175, 175, 1));
Mario.instBlocks.push(new Bonus(1425, 225, 1));
Mario.instBlocks.push(new Bonus(1450, 225, 1));
Mario.instBlocks.push(new Bonus(2075, 250, 1));
Mario.instBlocks.push(new Bonus(2125, 250, 1));
Mario.instBlocks.push(new Bonus(2100, 250, 1));
Mario.instBlocks.push(new Bonus(2525, 250, 1));
Mario.instBlocks.push(new Bonus(2575, 250, 1));
Mario.instBlocks.push(new Bonus(2550, 250, 1));
Mario.instBlocks.push(new Bonus(3075, 250, 1));
Mario.instBlocks.push(new Bonus(3050, 250, 1));
Mario.instBlocks.push(new Bonus(3025, 250, 1));
Mario.instBlocks.push(new Bonus(3000, 250, 1));
Mario.instBlocks.push(new Bonus(2975, 250, 1));
Mario.instBlocks.push(new Bonus(3425, 150, 1));
Mario.instBlocks.push(new Bonus(3625, 150, 1));
break;
case 2:
Mario.generateBackground(0);
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " ";
Mario.level[3] = " ";
Mario.level[4] = " ";
Mario.level[5] = " ";
Mario.level[6] = " MMMMMMMMMMMMMM ";
Mario.level[7] = " ";
Mario.level[8] = " MM ";
Mario.level[9] = " M MMMMMMMMMM M MM ";
Mario.level[10] = " MMM MM MMMM MMMMMMMMMMMMMMMMMMMMMMMMM MM ";
Mario.level[11] = " MMMMM MMM MMMMM MMM ";
Mario.level[12] = " MMMMM MMMMMMM MMMM MMMMMM MMMM MM ";
Mario.level[13] = " MMMMMMMMM MMMMM MMMMMMMMMM MMMMM MMMMMMM MMMMM MM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(3325, 100, "back_column_4", 0.800000012));
Mario.instEffects.push(new Background(2175, 100, "back_column_4", 0.650000036));
Mario.instEffects.push(new Background(375, 150, "back_column_4", 0.660000026));
Mario.instEffects.push(new Background(1100, 75, "back_column_4", 0.75999999));
Mario.instEffects.push(new Background(3225, 150, "back_clouds_4", 0.710000038));
Mario.instEffects.push(new Background(3300, 225, "back_clouds_1", 0.219999999));
Mario.instEffects.push(new Background(2800, 150, "back_clouds_1", 0.239999995));
Mario.instEffects.push(new Background(2225, 250, "back_clouds_1", 0.25999999));
Mario.instEffects.push(new Background(1525, 175, "back_clouds_1", 0.109999999));
Mario.instEffects.push(new Background(975, 275, "back_clouds_1", 0.340000004));
Mario.instEffects.push(new Background(225, 175, "back_clouds_1", 0.0500000007));
Mario.instEffects.push(new Background(225, 200, "back_clouds_1", 0.280000001));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.480000019));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.460000008));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.0799999982));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.0700000003));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.390000015));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instBlocks.push(new Bonus(2150, 150, 1));
Mario.instBlocks.push(new Bonus(2125, 150, 1));
Mario.instBlocks.push(new Bonus(2525, 150, 1));
Mario.instBlocks.push(new Bonus(2550, 150, 1));
Mario.instBlocks.push(new Bonus(2625, 250, 1));
Mario.instBlocks.push(new Bonus(1975, 250, 1));
Mario.instBlocks.push(new Bonus(1650, 125, 1));
Mario.instBlocks.push(new Bonus(1250, 125, 1));
Mario.instBlocks.push(new Bonus(775, 250, 1));
Mario.instBlocks.push(new Bonus(800, 250, 1));
Mario.instBlocks.push(new Bonus(825, 250, 2));
Mario.instBlocks.push(new Bonus(850, 250, 1));
Mario.instBlocks.push(new Bonus(900, 250, 1));
Mario.instBlocks.push(new Bonus(875, 250, 1));
Mario.instBlocks.push(new Brick(800, 150));
Mario.instBlocks.push(new Brick(825, 150));
Mario.instBlocks.push(new Brick(850, 150));
Mario.instBlocks.push(new Brick(875, 150));
Mario.instBlocks.push(new Brick(925, 250));
Mario.instBlocks.push(new Brick(950, 250));
Mario.instBlocks.push(new Brick(750, 250));
Mario.instBlocks.push(new Brick(725, 250));
Mario.instEnemies.push(new Goomba(275, 300));
Mario.instEnemies.push(new Goomba(425, 275));
Mario.instEnemies.push(new Goomba(950, 325));
Mario.instEnemies.push(new Goomba(800, 325));
Mario.instEnemies.push(new Goomba(1250, 200));
Mario.instEnemies.push(new Goomba(1600, 200));
Mario.instEnemies.push(new Goomba(1700, 200));
Mario.instEnemies.push(new Goomba(2100, 225));
Mario.instEnemies.push(new Goomba(2200, 225));
Mario.instEnemies.push(new Goomba(2250, 125));
Mario.instEnemies.push(new Goomba(2350, 125));
Mario.instEnemies.push(new Goomba(2525, 325));
Mario.instEnemies.push(new Goomba(2325, 325));
Mario.instEnemies.push(new Goomba(2175, 325));
Mario.instEnemies.push(new Goomba(2950, 200));
Mario.instEnemies.push(new Goomba(2900, 250));
Mario.instEnemies.push(new Goomba(3100, 325));
Mario.instEnemies.push(new Goomba(3550, 275));
Mario.instEnemies.push(new TroopaGreen(3450, 325));
Mario.instEnemies.push(new TroopaGreen(3275, 175));
Mario.instEnemies.push(new TroopaGreen(3225, 325));
Mario.instEnemies.push(new TroopaGreen(2700, 325));
Mario.instEnemies.push(new TroopaGreen(2075, 325));
Mario.instEnemies.push(new TroopaGreen(2275, 225));
Mario.instEnemies.push(new TroopaGreen(2475, 125));
Mario.instEnemies.push(new TroopaGreen(1775, 200));
Mario.instEnemies.push(new TroopaGreen(1425, 325));
Mario.instEnemies.push(new TroopaGreen(950, 225));
Mario.instEnemies.push(new TroopaGreen(850, 125));
Mario.instEnemies.push(new TroopaGreen(475, 275));
break;
case 3:
Mario.levelGenre = 0;
Mario.musika = 2;
Mario.level[0] = "ABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB";
Mario.level[1] = " AB CD ABAB CD DCABABABABABABABABABABABABABABABABABABABABD CAB CD 0";
Mario.level[2] = " D C CAB C ABABABABABABABABABABABABABABABABABABABAB CD C 0";
Mario.level[3] = " CD D CABABABABABABABABABABABABABABABABABABABD D D 0";
Mario.level[4] = " D UU UU UU UU UU UU UU 0";
Mario.level[5] = " UU UU UU UU UU UU UU 01 0";
Mario.level[6] = " 01 23 0";
Mario.level[7] = " EFFFG 01 23 23 0";
Mario.level[8] = "FG EKIIIJ 23 23 01 23 0";
Mario.level[9] = "ILG HIIIIJ EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFG UU UU UU UU UU UU UU EFFFFFFFFFFFFFFFFFFFFFFFFGOOOOOOOOOOOOOOOO0";
Mario.level[10] = "IILG HIIIIJ EFG EFFGDDDDDHIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ UU UU UU UU UU UU UU EKIIIIIIIIIIIIIIIIIIIIIIIIJ 0";
Mario.level[11] = "IIILFFFFFFFGCCCCEFFGCCCCHIIIIJ EFFFKILGDDDHIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ EKIIIIIIIIIIIIIIIIIIIIIIIIIJ 0";
Mario.level[12] = "IIIIIIIIIIIJ HIIJ HIIIILFFFFFFFFFFKIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ EKIIIIIIIIIIIIIIIIIIIIIIIIIIJ 0";
Mario.level[13] = "IIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ EKIIIIIIIIIIIIIIIIIIIIIIIIIIIJ 0";
Mario.level[14] = "IIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIILFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFKIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ 0";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(2375, 150));
Mario.instObjects.push(new Coin(1575, 150));
Mario.instObjects.push(new Coin(2275, 150));
Mario.instObjects.push(new Coin(2175, 150));
Mario.instObjects.push(new Coin(2075, 150));
Mario.instObjects.push(new Coin(1975, 150));
Mario.instObjects.push(new Coin(1875, 150));
Mario.instObjects.push(new Coin(1775, 150));
Mario.instObjects.push(new Coin(1675, 150));
Mario.instObjects.push(new Coin(1125, 175));
Mario.instObjects.push(new Coin(1125, 200));
Mario.instObjects.push(new Coin(675, 75));
Mario.instObjects.push(new Coin(3500, 300));
Mario.instObjects.push(new Coin(3500, 50));
Mario.instObjects.push(new Coin(2625, 50));
Mario.instObjects.push(new Coin(2625, 300));
Mario.instObjects.push(new Coin(3000, 300));
Mario.instObjects.push(new Coin(2875, 300));
Mario.instObjects.push(new Coin(2750, 300));
Mario.instObjects.push(new Coin(2625, 175));
Mario.instObjects.push(new Coin(2750, 50));
Mario.instObjects.push(new Coin(2875, 50));
Mario.instObjects.push(new Coin(3000, 50));
Mario.instObjects.push(new Coin(3500, 175));
Mario.instObjects.push(new Coin(3375, 300));
Mario.instObjects.push(new Coin(3375, 50));
Mario.instObjects.push(new Coin(3250, 50));
Mario.instObjects.push(new Coin(3250, 300));
Mario.instObjects.push(new Coin(3125, 300));
Mario.instObjects.push(new Coin(3125, 50));
Mario.instObjects.push(new Coin(3375, 175));
Mario.instObjects.push(new Coin(3250, 175));
Mario.instObjects.push(new Coin(3125, 175));
Mario.instObjects.push(new Coin(3000, 175));
Mario.instObjects.push(new Coin(2875, 175));
Mario.instObjects.push(new Coin(2750, 175));
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));
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(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(4350, 350));
Mario.instObjects.push(new Lava(4375, 350));
Mario.instObjects.push(new Lava(4425, 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(4450, 350));
Mario.instObjects.push(new Lava(4400, 350));
Mario.instBlocks.push(new Brick(425, 150));
Mario.instBlocks.push(new Bonus(450, 150, 1));
Mario.instBlocks.push(new Brick(825, 175));
Mario.instBlocks.push(new Brick(875, 175));
Mario.instBlocks.push(new Brick(925, 175));
Mario.instBlocks.push(new Bonus(900, 175, 1));
Mario.instBlocks.push(new Bonus(1300, 150, 2));
Mario.instBlocks.push(new Brick(1325, 150));
Mario.instBlocks.push(new Bonus(850, 175, 0));
Mario.instBlocks.push(new Bonus(4250, 75, 4, true));
Player.ResetPlayer(25, 175);
Mario.instBlocks.push(new Bonus(650, 75, 0));
Mario.instBlocks.push(new Bonus(700, 75, 0));
Mario.instBlocks.push(new Bonus(1125, 125, 0));
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.instEnemies.push(new Goomba(2000, 200));
Mario.instEnemies.push(new Goomba(2075, 200));
Mario.instEnemies.push(new Goomba(2175, 200));
Mario.instEnemies.push(new Bowser((181 * 25), (8 * 25), (174 * 25), 1, 10, 0, 0, 0));
Mario.instEffects.push(new Back(3));
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] = " ";
Mario.level[5] = " ";
Mario.level[6] = " ";
Mario.level[7] = " ";
Mario.level[8] = " ";
Mario.level[9] = " ";
Mario.level[10] = " M ";
Mario.level[11] = " MM MMMMMMMM ";
Mario.level[12] = " MMM MM MM ";
Mario.level[13] = " MMMM MMM MMM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(4325, 325, "back_forest_2", 0.370000005));
Mario.instEffects.push(new Background(3550, 325, "back_forest_2", 0.100000001));
Mario.instEffects.push(new Background(3000, 325, "back_forest_2", 0.24000001));
Mario.instEffects.push(new Background(1825, 250, "back_clouds_8", 0.680000007));
Mario.instEffects.push(new Background(1075, 225, "back_clouds_6", 0.519999981));
Mario.instEffects.push(new Background(1050, 225, "back_clouds_6", 0.610000014));
Mario.instEffects.push(new Background(150, 250, "back_clouds_6", 0.49000001));
Mario.instEffects.push(new Background(500, 225, "back_clouds_6", 0.649999976));
Mario.instEffects.push(new Background(1700, 225, "back_clouds_6", 0.439999998));
Mario.instEffects.push(new Background(2625, 225, "back_clouds_6", 0.439999998));
Mario.instObjects.push(new Coin(2875, 150));
Mario.instObjects.push(new Coin(2850, 150));
Mario.instObjects.push(new Coin(2825, 150));
Mario.instObjects.push(new Coin(2825, 175));
Mario.instObjects.push(new Coin(2850, 175));
Mario.instObjects.push(new Coin(2875, 175));
Mario.instObjects.push(new Coin(2875, 200));
Mario.instObjects.push(new Coin(2850, 200));
Mario.instObjects.push(new Coin(2825, 200));
Mario.instObjects.push(new Coin(2275, 125));
Mario.instObjects.push(new Coin(2275, 100));
Mario.instObjects.push(new Coin(2275, 75));
Mario.instObjects.push(new Coin(2175, 75));
Mario.instObjects.push(new Coin(2175, 100));
Mario.instObjects.push(new Coin(2175, 125));
Mario.instObjects.push(new Coin(2250, 125));
Mario.instObjects.push(new Coin(2225, 125));
Mario.instObjects.push(new Coin(2200, 125));
Mario.instObjects.push(new Coin(2200, 100));
Mario.instObjects.push(new Coin(2225, 100));
Mario.instObjects.push(new Coin(2250, 100));
Mario.instObjects.push(new Coin(2250, 75));
Mario.instObjects.push(new Coin(2225, 75));
Mario.instObjects.push(new Coin(2200, 75));
Mario.instObjects.push(new Coin(1700, 200));
Mario.instObjects.push(new Coin(1675, 200));
Mario.instObjects.push(new Coin(1650, 200));
Mario.instObjects.push(new Coin(1325, 275));
Mario.instObjects.push(new Coin(1300, 275));
Mario.instObjects.push(new Coin(1300, 300));
Mario.instObjects.push(new Coin(1325, 300));
Mario.instObjects.push(new Coin(1350, 300));
Mario.instObjects.push(new Coin(1350, 275));
Mario.instObjects.push(new Coin(1350, 325));
Mario.instObjects.push(new Coin(1325, 325));
Mario.instObjects.push(new Coin(1300, 325));
Mario.instObjects.push(new Coin(925, 325));
Mario.instObjects.push(new Coin(900, 325));
Mario.instObjects.push(new Coin(900, 300));
Mario.instObjects.push(new Coin(875, 325));
Mario.instObjects.push(new Coin(875, 300));
Mario.instObjects.push(new Coin(925, 300));
Mario.instObjects.push(new Coin(925, 275));
Mario.instObjects.push(new Coin(900, 275));
Mario.instObjects.push(new Coin(875, 275));
Mario.instObjects.push(new Coin(400, 250));
Mario.instObjects.push(new Coin(425, 250));
Mario.instObjects.push(new Coin(375, 250));
Mario.instObjects.push(new Coin(350, 250));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.410000026));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.410000026));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.219999999));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.25999999));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.540000021));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new TroopaGreen(425, 325));
Mario.instBlocks.push(new Brick(2175, 250));
Mario.instBlocks.push(new Brick(2200, 250));
Mario.instBlocks.push(new Brick(2225, 250));
Mario.instBlocks.push(new Brick(2250, 250));
Mario.instBlocks.push(new Brick(2250, 175));
Mario.instBlocks.push(new Brick(2225, 175));
Mario.instBlocks.push(new Brick(2200, 175));
Mario.instBlocks.push(new Brick(2175, 175));
Mario.instBlocks.push(new Brick(2150, 250));
Mario.instBlocks.push(new Brick(2275, 250));
Mario.instBlocks.push(new Brick(2325, 250));
Mario.instBlocks.push(new Brick(2300, 250));
Mario.instBlocks.push(new Brick(2325, 275));
Mario.instBlocks.push(new Brick(2325, 300));
Mario.instBlocks.push(new Brick(2325, 325));
Mario.instBlocks.push(new Brick(2125, 275));
Mario.instBlocks.push(new Brick(2150, 275));
Mario.instBlocks.push(new Brick(2800, 275));
Mario.instBlocks.push(new Brick(2825, 275));
Mario.instBlocks.push(new Brick(2850, 275));
Mario.instBlocks.push(new Brick(2875, 275));
Mario.instBlocks.push(new Brick(2900, 275));
Mario.instBlocks.push(new Brick(3225, 275));
Mario.instBlocks.push(new Brick(3200, 275));
Mario.instBlocks.push(new Brick(3175, 275));
Mario.instBlocks.push(new Brick(3250, 275));
Mario.instBlocks.push(new Brick(2950, 175));
Mario.instBlocks.push(new Brick(2975, 175));
Mario.instBlocks.push(new Brick(3025, 175));
Mario.instBlocks.push(new Brick(3000, 175));
Mario.instBlocks.push(new Brick(3050, 175));
Mario.instBlocks.push(new Brick(3075, 175));
Mario.instBlocks.push(new Brick(3100, 175));
Mario.instBlocks.push(new Brick(3450, 275));
Mario.instBlocks.push(new Brick(3475, 275));
Mario.instBlocks.push(new Brick(3500, 275));
Mario.instBlocks.push(new Brick(3525, 275));
Mario.instBlocks.push(new Bonus(3125, 175, 1));
Mario.instBlocks.push(new Bonus(3150, 275, 1));
Mario.instBlocks.push(new Bonus(3125, 275, 1));
Mario.instBlocks.push(new Bonus(3275, 275, 1));
Mario.instBlocks.push(new Bonus(3475, 175, 1));
Mario.instBlocks.push(new Bonus(3500, 175, 1));
Mario.instBlocks.push(new Bonus(2275, 175, 1));
Mario.instBlocks.push(new Bonus(2100, 275, 1));
Mario.instBlocks.push(new Bonus(875, 250, 1));
Mario.instBlocks.push(new Bonus(900, 250, 1));
Mario.instBlocks.push(new Bonus(925, 250, 1));
Mario.instBlocks.push(new Bonus(525, 250, 1));
Mario.instEnemies.push(new TroopaGreen(850, 225));
Mario.instEnemies.push(new TroopaGreen(725, 325));
Mario.instEnemies.push(new TroopaGreen(1050, 325));
Mario.instEnemies.push(new TroopaGreen(1400, 325));
Mario.instEnemies.push(new TroopaGreen(1600, 250));
Mario.instEnemies.push(new TroopaGreen(1725, 250));
Mario.instEnemies.push(new TroopaGreen(2200, 150));
Mario.instEnemies.push(new TroopaGreen(2250, 150));
Mario.instEnemies.push(new TroopaGreen(2200, 225));
Mario.instEnemies.push(new TroopaGreen(2300, 225));
Mario.instEnemies.push(new TroopaGreen(2175, 325));
Mario.instEnemies.push(new TroopaGreen(2275, 325));
Mario.instEnemies.push(new TroopaGreen(2675, 325));
Mario.instEnemies.push(new TroopaGreen(2975, 325));
Mario.instEnemies.push(new TroopaGreen(3200, 250));
Mario.instEnemies.push(new TroopaGreen(3500, 325));
break;
case 5:
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.generateBackground(0);
Mario.level[0] = " M ";
Mario.level[1] = " M ";
Mario.level[2] = " M ";
Mario.level[3] = " M M ";
Mario.level[4] = " M ";
Mario.level[5] = " M M ";
Mario.level[6] = " M MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM ";
Mario.level[7] = " MM MMMM ";
Mario.level[8] = " MMM MMMMM MMM ";
Mario.level[9] = " MMMM MMMMMM M ";
Mario.level[10] = " MMMMM MMMMMMM M ";
Mario.level[11] = " MMMMMM MM MMMMMMMM MMM M ";
Mario.level[12] = " MMMMMMM M M ";
Mario.level[13] = " MMMMMMMM M M ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(3675, 225));
Mario.instObjects.push(new Coin(3675, 250));
Mario.instObjects.push(new Coin(3675, 275));
Mario.instObjects.push(new Coin(3750, 225));
Mario.instObjects.push(new Coin(3750, 250));
Mario.instObjects.push(new Coin(3750, 275));
Mario.instObjects.push(new Coin(3725, 275));
Mario.instObjects.push(new Coin(3725, 250));
Mario.instObjects.push(new Coin(3725, 225));
Mario.instObjects.push(new Coin(3700, 225));
Mario.instObjects.push(new Coin(3700, 250));
Mario.instObjects.push(new Coin(3700, 275));
Mario.instObjects.push(new Coin(3075, 250));
Mario.instObjects.push(new Coin(3050, 250));
Mario.instObjects.push(new Coin(3025, 250));
Mario.instObjects.push(new Coin(3025, 225));
Mario.instObjects.push(new Coin(3050, 225));
Mario.instObjects.push(new Coin(3075, 225));
Mario.instObjects.push(new Coin(3075, 325));
Mario.instObjects.push(new Coin(3050, 325));
Mario.instObjects.push(new Coin(3025, 325));
Mario.instObjects.push(new Coin(3025, 300));
Mario.instObjects.push(new Coin(3050, 300));
Mario.instObjects.push(new Coin(3075, 300));
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(1725, 250));
Mario.instObjects.push(new Coin(1700, 250));
Mario.instObjects.push(new Coin(1675, 250));
Mario.instObjects.push(new Coin(1650, 250));
Mario.instObjects.push(new Coin(1625, 250));
Mario.instObjects.push(new Coin(1600, 250));
Mario.instObjects.push(new Coin(225, 250));
Mario.instObjects.push(new Coin(200, 250));
Mario.instObjects.push(new Coin(175, 250));
Mario.instObjects.push(new Coin(150, 250));
Mario.instObjects.push(new Coin(1075, 250));
Mario.instObjects.push(new Coin(1050, 250));
Mario.instObjects.push(new Coin(1025, 250));
Mario.instObjects.push(new Coin(1000, 250));
Mario.instObjects.push(new Coin(975, 250));
Mario.instObjects.push(new Coin(950, 250));
Mario.instObjects.push(new Coin(2600, 250));
Mario.instObjects.push(new Coin(2600, 275));
Mario.instObjects.push(new Coin(3225, 250));
Mario.instObjects.push(new Coin(3250, 250));
Mario.instObjects.push(new Coin(3250, 275));
Mario.instObjects.push(new Coin(3225, 275));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.410000026));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.410000026));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.219999999));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.25999999));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.540000021));
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.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.layerWall.addChild(AddGraphic(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instBlocks.push(new Bonus(675, 250, 1));
Mario.instBlocks.push(new Bonus(700, 250, 1));
Mario.instBlocks.push(new Bonus(725, 250, 1));
Mario.instBlocks.push(new Bonus(800, 250, 1));
Mario.instBlocks.push(new Bonus(825, 250, 1));
Mario.instBlocks.push(new Bonus(850, 250, 1));
Mario.instBlocks.push(new Bonus(1400, 250, 1));
Mario.instBlocks.push(new Bonus(1425, 250, 1));
Mario.instBlocks.push(new Bonus(2025, 250, 1));
Mario.instBlocks.push(new Bonus(2000, 250, 1));
Mario.instBlocks.push(new Brick(1975, 250));
Mario.instBlocks.push(new Brick(1950, 250));
Mario.instBlocks.push(new Brick(1925, 250));
Mario.instBlocks.push(new BrickMulti(1900, 250));
Mario.instBlocks.push(new Bonus(1875, 250, 2));
Mario.instBlocks.push(new Bonus(650, 250, 2));
Mario.instEnemies.push(new Spiny(650, 325));
Mario.instEnemies.push(new Spiny(700, 325));
Mario.instEnemies.push(new Goomba(950, 325));
Mario.instEnemies.push(new Goomba(1000, 325));
Mario.instEnemies.push(new Goomba(1050, 325));
Mario.instEnemies.push(new Goomba(1100, 325));
Mario.instEnemies.push(new Goomba(1150, 325));
Mario.instEnemies.push(new TroopaRed(1350, 325));
Mario.instEnemies.push(new TroopaRed(1500, 325));
Mario.instEnemies.push(new Goomba(1850, 325));
Mario.instEnemies.push(new Goomba(1950, 325));
Mario.instEnemies.push(new Goomba(2025, 325));
Mario.instEnemies.push(new Goomba(2100, 325));
Mario.instEnemies.push(new Goomba(475, 125));
Mario.instEnemies.push(new Goomba(400, 175));
Mario.instEnemies.push(new Goomba(2050, 125));
Mario.instEnemies.push(new Goomba(2100, 125));
Mario.instEnemies.push(new Goomba(2000, 125));
Mario.instBlocks.push(new Bonus(625, 50, 1));
Mario.instBlocks.push(new Bonus(650, 50, 1));
Mario.instBlocks.push(new Bonus(675, 50, 1));
Mario.instBlocks.push(new Bonus(700, 50, 1));
Mario.instBlocks.push(new Bonus(725, 50, 1));
Mario.instBlocks.push(new Bonus(750, 50, 1));
Mario.instBlocks.push(new Bonus(775, 50, 1));
Mario.instBlocks.push(new Bonus(800, 50, 1));
Mario.instBlocks.push(new Bonus(825, 50, 1));
Mario.instBlocks.push(new Bonus(850, 50, 1));
Mario.instBlocks.push(new Bonus(875, 50, 1));
Mario.instBlocks.push(new Bonus(900, 50, 4, true));
Mario.instEnemies.push(new Goomba(2525, 325));
Mario.instEnemies.push(new Goomba(2575, 325));
Mario.instEnemies.push(new Goomba(2625, 50));
Mario.instEnemies.push(new Goomba(2650, 325));
Mario.instEnemies.push(new Goomba(2950, 250));
Mario.instEnemies.push(new Goomba(3050, 175));
Mario.instEnemies.push(new Goomba(3100, 175));
Mario.instEnemies.push(new Goomba(2875, 325));
Mario.instEnemies.push(new Goomba(3200, 325));
Mario.instEnemies.push(new Goomba(3275, 325));
Mario.instEnemies.push(new Goomba(3450, 325));
Mario.instEnemies.push(new Goomba(3525, 325));
Mario.instEnemies.push(new Goomba(3650, 325));
break;
case 6:
Mario.generateBackground(1);
Mario.levelGenre = 1;
Mario.musika = 1;
Mario.level[0] = " ";
Mario.level[1] = " MM ";
Mario.level[2] = " 23 ";
Mario.level[3] = " 45 ";
Mario.level[4] = " MQQQQQQQQQQQQQQQM ";
Mario.level[5] = " ";
Mario.level[6] = " ijkkkkkkkkkkkkkkkkkkkkkklm MQM ";
Mario.level[7] = " noooooooooooooooooooooop ";
Mario.level[8] = " MQQQQQQQQQQQQQQQM noooooooooooooooooooooop MQM ";
Mario.level[9] = " noooooooooooooooooooooop MQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQM MQQQQQQQQQQQQQQQQQQM ";
Mario.level[10] = " 01 MQQQQQQQQQQQQQQQQQQQQQQQQM noooooooooooooooooooooop MQQM MQQM 01 MQQQQQQQQQQQQQQQQQQQQQ ";
Mario.level[11] = " 23 noooooooooooooooooooooop MQM MQM MQM 01 cddddddddddddddddddddddddddd 23 ";
Mario.level[12] = "ijkkkklm MQQQQQQM noooooooooooooooooooooop 23 fggggggggggggggggggggggggggg ijkkkklm ";
Mario.level[13] = " noooop noooooooooooooooooooooop MM fggggggggggggggggggggggggggg noooop ";
Mario.level[14] = " noooop noooooooooooooooooooooop fggggggggggggggggggggggggggg noooop ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.layerWall.addChild(AddGraphic(6150, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6125, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6100, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6075, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6050, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6025, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6000, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5975, 250, "back_fence_1"));
Mario.instEffects.push(new Background(1700, 25, "back_clouds_2", 0.140000001));
Mario.instEffects.push(new Background(3800, 75, "back_clouds_1", 0.370000005));
Mario.instEffects.push(new Background(5775, 75, "back_clouds_3", 0.0900000036));
Mario.instEffects.push(new Cloud(5225, 175));
Mario.instEffects.push(new Cloud(4100, 25));
Mario.instEffects.push(new Cloud(2600, 100));
Mario.instEffects.push(new Cloud(1525, 25));
Mario.instEffects.push(new Cloud(200, 125));
Mario.instEffects.push(new Background(400, 200, "back_column_4", 0.870000005));
Mario.instEffects.push(new Background(1200, 250, "back_column_4", 0.840000033));
Mario.instEffects.push(new Background(3225, 175, "back_column_4", 0.75));
Mario.instEffects.push(new Background(4375, 150, "back_column_4", 0.690000057));
Mario.instEffects.push(new Background(5525, 150, "back_column_4", 0.74000001));
Mario.instEffects.push(new Background(5150, 250, "back_column_4", 0.910000026));
Mario.instEffects.push(new Background(4925, 175, "back_column_3", 0.470000029));
Mario.instEffects.push(new Background(2875, 225, "back_column_3", 0.410000026));
Mario.instEffects.push(new Background(1800, 175, "back_column_3", 0.530000031));
Mario.instEffects.push(new Background(1350, 300, "back_column_3", 0.460000008));
Mario.instEffects.push(new Background(975, 25, "back_column_3", 0.460000008));
Mario.instEffects.push(new Background(250, 150, "back_column_3", 0.460000008));
Mario.instEffects.push(new Background(800, 200, "back_column_2", 0.50999999));
Mario.instEffects.push(new Background(1425, 75, "back_column_2", 0.550000012));
Mario.instEffects.push(new Background(2150, 200, "back_column_2", 0.540000021));
Mario.instEffects.push(new Background(2400, 150, "back_column_2", 0.530000031));
Mario.instEffects.push(new Background(2975, 100, "back_column_2", 0.360000014));
Mario.instEffects.push(new Background(3750, 225, "back_column_2", 0.600000024));
Mario.instEffects.push(new Background(4275, 300, "back_column_2", 0.480000019));
Mario.instEffects.push(new Background(5075, 125, "back_column_2", 0.430000007));
Mario.instEffects.push(new Background(5825, 150, "back_column_2", 0.629999995));
Mario.instEffects.push(new Background(5725, 225, "back_column_1", 0.650000036));
Mario.instEffects.push(new Background(4775, 275, "back_column_1", 0.650000036));
Mario.instEffects.push(new Background(3950, 50, "back_column_1", 0.75999999));
Mario.instEffects.push(new Background(3450, 125, "back_column_1", 0.820000052));
Mario.instEffects.push(new Background(3075, 275, "back_column_1", 0.870000005));
Mario.instEffects.push(new Background(2525, 175, "back_column_1", 0.710000038));
Mario.instEffects.push(new Background(2275, 225, "back_column_1", 0.650000036));
Mario.instEffects.push(new Background(1625, 200, "back_column_1", 0.830000043));
Mario.instEffects.push(new Background(1000, 300, "back_column_1", 0.650000036));
Mario.instEffects.push(new Background(575, 75, "back_column_1", 0.889999986));
Mario.instEffects.push(new Background(100, 200, "back_column_1", 0.770000041));
Mario.instObjects.push(new Coin(5500, 50));
Mario.instObjects.push(new Coin(5350, 50));
Mario.instObjects.push(new Coin(5175, 50));
Mario.instObjects.push(new Coin(4875, 0));
Mario.instObjects.push(new Coin(4850, 0));
Mario.instObjects.push(new Coin(4650, 125));
Mario.instObjects.push(new Coin(4675, 100));
Mario.instObjects.push(new Coin(4625, 100));
Mario.instObjects.push(new Coin(3550, 25));
Mario.instObjects.push(new Coin(3150, 175));
Mario.instObjects.push(new Coin(3025, 175));
Mario.instObjects.push(new Coin(2900, 175));
Mario.instObjects.push(new Coin(2050, 50));
Mario.instObjects.push(new Coin(2250, 50));
Mario.instObjects.push(new Coin(2075, 50));
Mario.instObjects.push(new Coin(2025, 50));
Mario.instObjects.push(new Coin(1850, 50));
Mario.instObjects.push(new Coin(1650, 125));
Mario.instObjects.push(new Coin(1525, 125));
Mario.instObjects.push(new Coin(1650, 150));
Mario.instObjects.push(new Coin(1525, 150));
Mario.instObjects.push(new Coin(1525, 175));
Mario.instObjects.push(new Coin(1650, 175));
Mario.instObjects.push(new Coin(1300, 125));
Mario.instObjects.push(new Coin(1325, 125));
Mario.instObjects.push(new Coin(1050, 125));
Mario.instObjects.push(new Coin(1025, 125));
Mario.instObjects.push(new Coin(725, 125));
Mario.instObjects.push(new Coin(650, 125));
Mario.instObjects.push(new Coin(475, 125));
Mario.instObjects.push(new Coin(400, 125));
Mario.layerWall.addChild(AddGraphic(5575, 250, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(5650, 250, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5625, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5600, 250, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5925, 200, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(5925, 225, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5925, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5725, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(5725, 200, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(5725, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(5725, 175, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(5800, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(5800, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(5800, 250, "back_tree_1"));
Mario.instEffects.push(new Grass(5900, 250, "r"));
Mario.instEffects.push(new Grass(5875, 250, "m"));
Mario.instEffects.push(new Grass(5850, 250, "m"));
Mario.instEffects.push(new Grass(5825, 250, "m"));
Mario.instEffects.push(new Grass(5800, 250, "m"));
Mario.instEffects.push(new Grass(5775, 250, "m"));
Mario.instEffects.push(new Grass(5750, 250, "m"));
Mario.instEffects.push(new Grass(5725, 250, "m"));
Mario.instEffects.push(new Grass(5700, 250, "m"));
Mario.instEffects.push(new Grass(5675, 250, "m"));
Mario.instEffects.push(new Grass(5650, 250, "m"));
Mario.instEffects.push(new Grass(5625, 250, "l"));
Mario.instObjects.push(new Elevator(2050, 325, 25, "elevator_1"));
Mario.instObjects.push(new Elevator(1975, 325, 25, "elevator_1"));
Mario.instBlocks.push(new Bonus(2000, 225, 4));
Mario.instBlocks.push(new Bonus(2025, 225, 2));
Mario.instObjects.push(new Elevator(1775, 325, 25, "elevator_1"));
Mario.instObjects.push(new Elevator(1875, 325, 25, "elevator_1"));
Player.ResetPlayer(50, 225);
Mario.instObjects.push(new Finish(5700, 250));
Mario.instBlocks.push(new Brick(500, 150));
Mario.instBlocks.push(new Brick(625, 150));
Mario.instBlocks.push(new Brick(750, 150));
Mario.instBlocks.push(new Brick(1150, 75));
Mario.instBlocks.push(new Brick(1200, 75));
Mario.instBlocks.push(new Brick(3525, 100));
Mario.instBlocks.push(new Brick(3550, 100));
Mario.instBlocks.push(new Brick(2150, 50));
Mario.instBlocks.push(new Brick(1950, 50));
Mario.instBlocks.push(new Brick(1925, 50));
Mario.instBlocks.push(new Brick(4025, 100));
Mario.instBlocks.push(new Brick(4000, 100));
Mario.instBlocks.push(new Brick(4350, 100));
Mario.instBlocks.push(new Brick(4375, 100));
Mario.instBlocks.push(new Bonus(450, 150, 1));
Mario.instBlocks.push(new Bonus(425, 150, 1));
Mario.instBlocks.push(new Bonus(700, 150, 1));
Mario.instBlocks.push(new Bonus(825, 150, 1));
Mario.instBlocks.push(new Bonus(300, 150, 1));
Mario.instBlocks.push(new Bonus(675, 150, 2));
Mario.instBlocks.push(new Bonus(1100, 75, 1));
Mario.instBlocks.push(new Bonus(1250, 75, 1));
Mario.instBlocks.push(new Bonus(1575, 200, 1));
Mario.instBlocks.push(new Bonus(1600, 200, 1));
Mario.instBlocks.push(new Bonus(1575, 100, 1, true));
Mario.instBlocks.push(new Bonus(1600, 100, 1, true));
Mario.instBlocks.push(new Bonus(1975, 50, 1, true));
Mario.instBlocks.push(new Bonus(1900, 50, 1, true));
Mario.instBlocks.push(new Bonus(2125, 50, 1, true));
Mario.instBlocks.push(new Bonus(2200, 50, 1, true));
Mario.instBlocks.push(new BrickMulti(2175, 50));
Mario.instBlocks.push(new BrickMulti(1175, 75));
Mario.instBlocks.push(new BrickMulti(375, 150));
Mario.instBlocks.push(new BrickMulti(3575, 100));
Mario.instBlocks.push(new Bonus(3625, 100, 1));
Mario.instBlocks.push(new Bonus(3650, 100, 1));
Mario.instBlocks.push(new Bonus(3950, 100, 1));
Mario.instBlocks.push(new Bonus(3925, 100, 1));
Mario.instBlocks.push(new Bonus(3475, 100, 1));
Mario.instBlocks.push(new Bonus(3450, 100, 1));
Mario.instBlocks.push(new Bonus(4425, 100, 1));
Mario.instBlocks.push(new Bonus(4450, 100, 1));
Mario.instBlocks.push(new Bonus(4625, 125, 1));
Mario.instBlocks.push(new Bonus(4675, 125, 1));
Mario.instBlocks.push(new Bonus(4900, 75, 5, true));
Mario.instEnemies.push(new Goomba(3775, 200));
Mario.instEnemies.push(new Goomba(3525, 200));
Mario.instEnemies.push(new Goomba(4550, 200));
Mario.instEnemies.push(new Goomba(4600, 200));
Mario.instEnemies.push(new Spiny(5325, 75));
Mario.instEnemies.push(new Spiny(5375, 75));
Mario.instEnemies.push(new PStatic(7125, 225));
Mario.instEnemies.push(new PStatic(7150, 225));
Mario.instEnemies.push(new PStatic(7175, 225));
Mario.instEnemies.push(new PStatic(7225, 225));
Mario.instEnemies.push(new PStatic(7200, 225));
Mario.instEnemies.push(new PStatic(7250, 225));
Mario.instEnemies.push(new PStatic(7275, 225));
Mario.instEnemies.push(new PStatic(7300, 225));
Mario.instEnemies.push(new PStatic(7325, 225));
Mario.instEnemies.push(new PStatic(7350, 225));
Mario.instEnemies.push(new PStatic(7375, 225));
Mario.instEnemies.push(new PStatic(7400, 225));
Mario.instBlocks.push(new Bonus(7100, 150, 4, true));
Mario.instBlocks.push(new Bonus(6925, 150, 1, true));
Mario.instBlocks.push(new Bonus(6925, 50, 2, true));
Mario.instEnemies.push(new Goomba(125, 275));
Mario.instEnemies.push(new Goomba(450, 225));
Mario.instEnemies.push(new Goomba(500, 225));
Mario.instEnemies.push(new Goomba(625, 225));
Mario.instEnemies.push(new Goomba(700, 225));
Mario.instEnemies.push(new Goomba(850, 225));
Mario.instEnemies.push(new Goomba(1100, 175));
Mario.instEnemies.push(new Goomba(1200, 175));
Mario.instEnemies.push(new Goomba(1250, 175));
Mario.instEnemies.push(new Goomba(1525, 275));
Mario.instEnemies.push(new Goomba(1575, 275));
Mario.instEnemies.push(new Goomba(1650, 275));
Mario.instEnemies.push(new Goomba(1875, 125));
Mario.instEnemies.push(new Goomba(1950, 125));
Mario.instEnemies.push(new Goomba(2025, 125));
Mario.instEnemies.push(new Goomba(2150, 125));
Mario.instEnemies.push(new Goomba(2550, 225));
Mario.instEnemies.push(new Goomba(2725, 225));
Mario.instEnemies.push(new Goomba(2925, 250));
Mario.instEnemies.push(new Goomba(3325, 200));
Mario.instEnemies.push(new Goomba(3400, 200));
Mario.instEnemies.push(new Goomba(3700, 200));
Mario.instEnemies.push(new Goomba(4000, 200));
Mario.instEnemies.push(new Goomba(4400, 200));
Mario.instEnemies.push(new Goomba(4750, 200));
Mario.instEnemies.push(new Goomba(5450, 75));
break;
case 7:
Mario.levelGenre = 3;
Mario.musika = 2;
Mario.level[0] = "ABABABABABABABABABABCABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB";
Mario.level[1] = " AB ABABABD ABAB ABAB AB ";
Mario.level[2] = " ABABAB ABAB ABAB ";
Mario.level[3] = " AB AB ";
Mario.level[4] = " ";
Mario.level[5] = " EG EFG ";
Mario.level[6] = " EFG EFKJ HIJ ";
Mario.level[7] = "FG HIJ EFG HIILG EFKIJ ";
Mario.level[8] = "ILG EG HILFG EKILG HIIILG HIIIJ ";
Mario.level[9] = "IILG HLG HIIILFFKIIIJ HIIIILG HIIIJ ";
Mario.level[10] = "IIILFFFFG EFFFFFFFFFFFGCCCC CCCEGABABABABABAEGCCCCCCCCCCCEG 01 01 HILFG HIIIIIIIIIIJ EKIIIIIJ HIIIJ ";
Mario.level[11] = "IIIIIIIILGCCCCCEKIIIIIIIIIIILGCCC CCCHJ HJ HJ 01 23 23 01 HIIIJ EKIIIIIIIIIIJ EKIIIIIILG EFKIIILFFFFFFGOOOOOOOOOOOOOOOO";
Mario.level[12] = "IIIIIIIIIJ HIIIIIIIIIIIIIJ HJ HJ HJ EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFG HIIILG HIIIIIIIIIIILFG EKIIIIIIIILG EKIIIIIIIIIIIIJ ";
Mario.level[13] = "IIIIIIIIIJ HIIIIIIIIIIIIIJ HJ HJ HJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIILFFFFFFFFFFKIIIILFFKIIIIIIIIIIIIILFFFFKIIIIIIIIIILFFKIIIIIIIIIIIIIJ ";
Mario.level[14] = "IIIIIIIIIJ HIIIIIIIIIIIIIJ HJ HJ HJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(175, 200));
Mario.instObjects.push(new Coin(150, 200));
Mario.instObjects.push(new Coin(125, 200));
Mario.instObjects.push(new Coin(150, 150));
Mario.instObjects.push(new Coin(150, 175));
Mario.instObjects.push(new Coin(175, 150));
Mario.instObjects.push(new Coin(125, 150));
Mario.instObjects.push(new Coin(550, 50));
Mario.instObjects.push(new Coin(575, 50));
Mario.instObjects.push(new Coin(600, 50));
Mario.instObjects.push(new Coin(625, 50));
Mario.instObjects.push(new Coin(650, 50));
Mario.instObjects.push(new Coin(650, 75));
Mario.instObjects.push(new Coin(625, 75));
Mario.instObjects.push(new Coin(600, 75));
Mario.instObjects.push(new Coin(575, 75));
Mario.instObjects.push(new Coin(550, 75));
Mario.instObjects.push(new Coin(925, 150));
Mario.instObjects.push(new Coin(900, 150));
Mario.instObjects.push(new Coin(875, 150));
Mario.instObjects.push(new Coin(850, 150));
Mario.instObjects.push(new Coin(1575, 150));
Mario.instObjects.push(new Coin(1550, 150));
Mario.instObjects.push(new Coin(1525, 150));
Mario.instObjects.push(new Coin(1500, 150));
Mario.instObjects.push(new Coin(1275, 150));
Mario.instObjects.push(new Coin(1250, 150));
Mario.instObjects.push(new Coin(1225, 150));
Mario.instObjects.push(new Coin(1200, 150));
Mario.instObjects.push(new Coin(1950, 150));
Mario.instObjects.push(new Coin(1950, 175));
Mario.instObjects.push(new Coin(1950, 200));
Mario.instObjects.push(new Coin(1925, 200));
Mario.instObjects.push(new Coin(1925, 175));
Mario.instObjects.push(new Coin(1925, 150));
Mario.instObjects.push(new Coin(2725, 175));
Mario.instObjects.push(new Coin(2700, 175));
Mario.instObjects.push(new Coin(2675, 175));
Mario.instObjects.push(new Coin(2650, 175));
Mario.instObjects.push(new Coin(2625, 175));
Mario.instObjects.push(new Coin(2600, 175));
Mario.instObjects.push(new Coin(2575, 175));
Mario.instObjects.push(new Coin(2550, 175));
Mario.instObjects.push(new Coin(4300, 150));
Mario.instObjects.push(new Coin(4300, 175));
Mario.instObjects.push(new Coin(4300, 200));
Mario.instObjects.push(new Coin(4300, 225));
Mario.instObjects.push(new Coin(4300, 250));
Mario.instObjects.push(new Coin(4300, 275));
Mario.instObjects.push(new Coin(4300, 300));
Mario.instObjects.push(new Coin(4325, 150));
Mario.instObjects.push(new Coin(4325, 175));
Mario.instObjects.push(new Coin(4325, 200));
Mario.instObjects.push(new Coin(4325, 225));
Mario.instObjects.push(new Coin(4325, 250));
Mario.instObjects.push(new Coin(4325, 275));
Mario.instObjects.push(new Coin(4325, 300));
Mario.instObjects.push(new Coin(3475, 125));
Mario.instObjects.push(new Coin(3475, 150));
Mario.instObjects.push(new Coin(3475, 175));
Mario.instObjects.push(new Coin(3475, 200));
Mario.instObjects.push(new Coin(3475, 225));
Mario.instObjects.push(new Coin(3475, 250));
Mario.instObjects.push(new Coin(3475, 275));
Mario.instObjects.push(new Coin(3475, 300));
Mario.instObjects.push(new Coin(3500, 125));
Mario.instObjects.push(new Coin(3500, 150));
Mario.instObjects.push(new Coin(3500, 175));
Mario.instObjects.push(new Coin(3500, 200));
Mario.instObjects.push(new Coin(3500, 225));
Mario.instObjects.push(new Coin(3500, 250));
Mario.instObjects.push(new Coin(3500, 275));
Mario.instObjects.push(new Coin(3500, 300));
Mario.instObjects.push(new Coin(175, 175));
Mario.instObjects.push(new Coin(125, 175));
Mario.instObjects.push(new Coin(3250, 250));
Mario.instObjects.push(new Coin(3200, 250));
Mario.instObjects.push(new Coin(3150, 250));
Mario.instObjects.push(new Coin(3100, 250));
Mario.instObjects.push(new Coin(3550, 100));
Mario.instObjects.push(new Coin(3575, 100));
Mario.instObjects.push(new Coin(3600, 100));
Mario.instObjects.push(new Coin(3825, 150));
Mario.instObjects.push(new Coin(3800, 125));
Mario.instObjects.push(new Coin(3750, 125));
Mario.instObjects.push(new Coin(3775, 125));
Mario.instObjects.push(new Coin(4525, 75));
Mario.instObjects.push(new Coin(4475, 75));
Mario.instObjects.push(new Coin(4500, 75));
Mario.instObjects.push(new Coin(4150, 75));
Mario.instObjects.push(new Coin(4075, 100));
Mario.instObjects.push(new Coin(4100, 100));
Mario.instObjects.push(new Coin(4125, 75));
Mario.instObjects.push(new Elevator(850, 250, 100, "elevator_4"));
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(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.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(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(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(1525, 350));
Mario.instObjects.push(new Lava(1550, 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(1750, 350));
Mario.instObjects.push(new Lava(1775, 350));
Mario.instObjects.push(new Lava(1800, 350));
Mario.instBlocks.push(new Brick(650, 150));
Mario.instBlocks.push(new Brick(600, 150));
Mario.instBlocks.push(new Brick(450, 150));
Mario.instBlocks.push(new Brick(500, 150));
Mario.instBlocks.push(new Brick(550, 150));
Mario.instBlocks.push(new Bonus(475, 150, 1));
Mario.instBlocks.push(new Bonus(625, 150, 1));
Mario.instBlocks.push(new Bonus(575, 150, 2));
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(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));
Player.ResetPlayer(25, 150);
Mario.instEnemies.push(new Goomba(400, 225));
Mario.instEnemies.push(new Goomba(325, 250));
Mario.instEnemies.push(new Goomba(575, 225));
Mario.instEnemies.push(new Goomba(1150, 225));
Mario.instEnemies.push(new Goomba(1200, 225));
Mario.instEnemies.push(new Goomba(1250, 225));
Mario.instEnemies.push(new Goomba(1300, 225));
Mario.instEnemies.push(new Goomba(1350, 225));
Mario.instEnemies.push(new TroopaGreen(1475, 225));
Mario.instEnemies.push(new TroopaGreen(1550, 225));
Mario.instEnemies.push(new TroopaGreen(1625, 225));
Mario.instEnemies.push(new TroopaGreen(2025, 275));
Mario.instEnemies.push(new TroopaGreen(2150, 275));
Mario.instEnemies.push(new TroopaGreen(2425, 275));
Mario.instEnemies.push(new TroopaGreen(2525, 275));
Mario.instEnemies.push(new TroopaGreen(2725, 275));
Mario.instEnemies.push(new TroopaGreen(2850, 275));
Mario.instEnemies.push(new TroopaGreen(3150, 300));
Mario.instEnemies.push(new TroopaGreen(3225, 300));
Mario.instEnemies.push(new TroopaGreen(3700, 200));
Mario.instEnemies.push(new TroopaGreen(4425, 150));
Mario.instEnemies.push(new TroopaGreen(4025, 225));
Mario.instEnemies.push(new Bowser(((207 * 25) - (13 * 25)), 75, ((200 * 25) - (13 * 25)), 2, 15, 0, 0, 0));
Mario.instEffects.push(new Back(3));
break;
case 8:
Mario.generateBackground(1);
Mario.levelGenre = 1;
Mario.musika = 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] = " 01 01 ";
Mario.level[9] = " 23 23 ";
Mario.level[10] = " 23 23 01 ";
Mario.level[11] = " 01 23 MM 01 23 01 23 01 01 ";
Mario.level[12] = " 23 23 MMMM 23 23 01 23 01 23 23 23 ";
Mario.level[13] = " 23 23 MMMMMM 23 23 23 23 23 23 23 23 ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cddddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(3400, 150, "back_clouds_7", 0.450000018));
Mario.instEffects.push(new Background(2375, 150, "back_clouds_7", 0.49000001));
Mario.instEffects.push(new Background(200, 150, "back_clouds_7", 0.450000018));
Mario.instEffects.push(new Background(650, 150, "back_clouds_7", 0.710000038));
Mario.instEffects.push(new Background(875, 25, "back_clouds_1", 0.129999995));
Mario.instEffects.push(new Background(1875, 75, "back_clouds_1", 0.109999999));
Mario.instEffects.push(new Background(1900, 75, "back_clouds_1", 0.25));
Mario.instEffects.push(new Background(3350, 25, "back_clouds_1", 0.100000001));
Mario.instEffects.push(new Background(2775, 125, "back_clouds_1", 0.109999999));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.460000008));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.610000014));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.219999999));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.239999995));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.50999999));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new PPlant(3475, 250));
Mario.instEnemies.push(new PPlant(2950, 250));
Mario.instEnemies.push(new PPlant(400, 250));
Mario.instEnemies.push(new PPlant(1175, 250));
Mario.instEnemies.push(new Spiny(1000, 325));
Mario.instEnemies.push(new Spiny(1425, 325));
Mario.instEnemies.push(new Goomba(850, 250));
Mario.instEnemies.push(new Goomba(725, 325));
Mario.instEnemies.push(new Goomba(1525, 275));
Mario.instEnemies.push(new Goomba(1775, 250));
Mario.instEnemies.push(new Goomba(1875, 325));
Mario.instEnemies.push(new Goomba(1925, 325));
Mario.instEnemies.push(new Goomba(1975, 325));
Mario.instEnemies.push(new Goomba(2025, 325));
Mario.instEnemies.push(new Goomba(2100, 325));
Mario.instEnemies.push(new Goomba(2150, 325));
Mario.instEnemies.push(new Goomba(2225, 275));
Mario.instEnemies.push(new Goomba(2350, 325));
Mario.instEnemies.push(new Goomba(2575, 225));
Mario.instEnemies.push(new Goomba(2850, 325));
Mario.instEnemies.push(new Goomba(3100, 325));
Mario.instEnemies.push(new Goomba(3200, 325));
Mario.instEnemies.push(new Goomba(3325, 325));
Mario.instEnemies.push(new Goomba(3425, 325));
Mario.instBlocks.push(new BrickMulti(3450, 275));
Mario.instBlocks.push(new Bonus(3525, 275, 1));
Mario.instBlocks.push(new Bonus(175, 275, 1));
Mario.instBlocks.push(new Bonus(200, 275, 1));
Mario.instBlocks.push(new Bonus(175, 175, 1));
Mario.instBlocks.push(new Bonus(200, 175, 1));
Mario.instBlocks.push(new Bonus(200, 75, 1));
Mario.instBlocks.push(new Bonus(175, 75, 1));
Mario.instBlocks.push(new Bonus(550, 250, 1));
Mario.instBlocks.push(new Bonus(575, 250, 1));
Mario.instBlocks.push(new Bonus(1350, 225, 1));
Mario.instBlocks.push(new Bonus(1375, 225, 2));
Mario.instBlocks.push(new Bonus(1400, 225, 1));
Mario.instBlocks.push(new Bonus(1150, 275, 1));
Mario.instBlocks.push(new Bonus(1975, 225, 1));
Mario.instBlocks.push(new Bonus(2000, 225, 1));
Mario.instBlocks.push(new Bonus(2625, 250, 1));
Mario.instBlocks.push(new Bonus(2650, 250, 1));
Mario.instBlocks.push(new Bonus(3125, 250, 1));
Mario.instBlocks.push(new Bonus(3150, 250, 1));
Mario.instBlocks.push(new Brick(3100, 250));
Mario.instBlocks.push(new Brick(3075, 250));
Mario.instBlocks.push(new Brick(3175, 250));
Mario.instBlocks.push(new Brick(3200, 250));
Mario.instBlocks.push(new Brick(3125, 150));
Mario.instBlocks.push(new Brick(3150, 150));
break;
case 9:
Mario.levelGenre = 2;
Mario.musika = 0;
Mario.generateBackground(1);
Mario.level[0] = " ";
Mario.level[1] = " ";
Mario.level[2] = " M ";
Mario.level[3] = " ce cddde cddde cddde ce cde cde cde cde ";
Mario.level[4] = " MM MMMMM MMMMM MMMMM MM MMM MMM MMM MMM ";
Mario.level[5] = " M M M M ";
Mario.level[6] = " 01 01 M M M M ";
Mario.level[7] = " MMMM MMMM ce 23 23 M M M ";
Mario.level[8] = " MMMM MMMMM ce cde cde ce fh MM78 67MM M M M M ";
Mario.level[9] = " MM fh MMM MMM Mfh fh MMab ijklm ijklm ijklm ijklm ijklm 9aMM M M M ";
Mario.level[10] = " MM MMMM fh MMfh fh ce 23 nop nop nop nop nop 23 M M MM M M M M M ";
Mario.level[11] = " M MMMM fh MMMfh ce fh fh 23 nop nop nop nop nop 23 M 01 MM M M MM M ";
Mario.level[12] = " MMMM fh MMMMfh fh ce fh fh 23cdddeocdddeocdddeocdddeocdddeocddde23 M M 23 01 M M MMM M ";
Mario.level[13] = " M cddddddddddddfhdddddddddddddddddddfhddddddde ce ce ce fh fh fh fh 23fggghofggghofggghofggghofggghofgggh23 M M 23 23 M M MMMM M ";
Mario.level[14] = "ddddddddddeMMMMMMMMMMMMMMMMMMMcdde fggggggggggggfhgggggggggggggggggggfhggggggghMceMfhMceMfhMceMfhMceMfhMfhMfhMfhMceM23fggghofggghofggghofggghofggghofgggh23 cddddddddde cdddddde cdddddddddde cddddddeMMMMMMMcdddddeMMMMcdddddddde cddde cddde cddde ceMMMcdeMMMMMMMMMM MMMMMMMMcdddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(975, 125));
Mario.instObjects.push(new Coin(1000, 125));
Mario.instObjects.push(new Coin(1025, 125));
Mario.instObjects.push(new Coin(1050, 125));
Mario.instObjects.push(new Coin(1075, 125));
Mario.instObjects.push(new Coin(1100, 125));
Mario.instObjects.push(new Coin(1250, 75));
Mario.instObjects.push(new Coin(1275, 75));
Mario.instObjects.push(new Coin(1300, 75));
Mario.instObjects.push(new Coin(1325, 75));
Mario.instObjects.push(new Coin(1975, 300));
Mario.instObjects.push(new Coin(2000, 300));
Mario.instObjects.push(new Coin(2025, 300));
Mario.instObjects.push(new Coin(2050, 300));
Mario.instObjects.push(new Coin(2075, 300));
Mario.instObjects.push(new Coin(2100, 300));
Mario.instObjects.push(new Coin(2125, 300));
Mario.instObjects.push(new Coin(2150, 300));
Mario.instObjects.push(new Coin(2175, 300));
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(2325, 300));
Mario.instObjects.push(new Coin(2950, 275));
Mario.instObjects.push(new Coin(2975, 275));
Mario.instObjects.push(new Coin(3000, 275));
Mario.instObjects.push(new Coin(3025, 275));
Mario.instObjects.push(new Coin(3050, 275));
Mario.instObjects.push(new Coin(3075, 275));
Mario.instObjects.push(new Coin(2800, 250));
Mario.instObjects.push(new Coin(2825, 250));
Mario.instObjects.push(new Coin(2850, 250));
Mario.instObjects.push(new Coin(2875, 250));
Mario.instObjects.push(new Coin(2900, 250));
Mario.instObjects.push(new Coin(2925, 250));
Mario.instObjects.push(new Coin(2800, 275));
Mario.instObjects.push(new Coin(2825, 275));
Mario.instObjects.push(new Coin(2850, 275));
Mario.instObjects.push(new Coin(2875, 275));
Mario.instObjects.push(new Coin(2900, 275));
Mario.instObjects.push(new Coin(2925, 275));
Mario.instObjects.push(new Coin(2950, 250));
Mario.instObjects.push(new Coin(2975, 250));
Mario.instObjects.push(new Coin(3000, 250));
Mario.instObjects.push(new Coin(3025, 250));
Mario.instObjects.push(new Coin(3050, 250));
Mario.instObjects.push(new Coin(3075, 250));
Mario.instObjects.push(new Coin(4075, 150));
Mario.instObjects.push(new Coin(4100, 150));
Mario.instObjects.push(new Coin(4125, 150));
Mario.instObjects.push(new Coin(4150, 150));
Mario.instObjects.push(new Coin(4175, 150));
Mario.instObjects.push(new Coin(4200, 150));
Mario.instObjects.push(new Coin(4225, 150));
Mario.instObjects.push(new Coin(4250, 150));
Mario.instObjects.push(new Coin(4275, 150));
Mario.instObjects.push(new Coin(4300, 150));
Mario.instObjects.push(new Coin(4325, 150));
Mario.instObjects.push(new Coin(4350, 150));
Mario.instObjects.push(new Coin(4375, 150));
Mario.instObjects.push(new Coin(4675, 300));
Mario.instObjects.push(new Coin(4700, 300));
Mario.instObjects.push(new Coin(4725, 300));
Mario.instObjects.push(new Coin(4750, 300));
Mario.instObjects.push(new Coin(4775, 300));
Mario.instObjects.push(new Coin(4800, 300));
Mario.instObjects.push(new Coin(4825, 300));
Mario.instObjects.push(new Coin(4850, 300));
Mario.instObjects.push(new Coin(4675, 275));
Mario.instObjects.push(new Coin(4700, 275));
Mario.instObjects.push(new Coin(4725, 275));
Mario.instObjects.push(new Coin(4750, 275));
Mario.instObjects.push(new Coin(4775, 275));
Mario.instObjects.push(new Coin(4800, 275));
Mario.instObjects.push(new Coin(4825, 275));
Mario.instObjects.push(new Coin(4850, 275));
Mario.instObjects.push(new Coin(5025, 250));
Mario.instObjects.push(new Coin(5025, 275));
Mario.instObjects.push(new Coin(5025, 300));
Mario.instObjects.push(new Coin(4975, 300));
Mario.instObjects.push(new Coin(4975, 275));
Mario.instObjects.push(new Coin(4975, 250));
Mario.instObjects.push(new Coin(5200, 300));
Mario.instObjects.push(new Coin(5225, 300));
Mario.instObjects.push(new Coin(5250, 300));
Mario.instObjects.push(new Coin(5275, 300));
Mario.instObjects.push(new Coin(5300, 300));
Mario.instObjects.push(new Coin(5325, 300));
Mario.instObjects.push(new Coin(5350, 300));
Mario.instObjects.push(new Coin(5925, 275));
Mario.instObjects.push(new Coin(5950, 275));
Mario.instObjects.push(new Coin(5975, 275));
Mario.instObjects.push(new Coin(6000, 275));
Mario.instObjects.push(new Coin(6025, 275));
Mario.instObjects.push(new Coin(6225, 275));
Mario.instObjects.push(new Coin(6250, 275));
Mario.instObjects.push(new Coin(6275, 275));
Mario.instObjects.push(new Coin(6300, 275));
Mario.instObjects.push(new Coin(6325, 275));
Mario.instObjects.push(new Coin(6350, 275));
Mario.instObjects.push(new Coin(7000, 275));
Mario.instObjects.push(new Coin(7025, 275));
Mario.instObjects.push(new Coin(7050, 275));
Mario.instObjects.push(new Coin(7075, 275));
Mario.instObjects.push(new Coin(7100, 275));
Mario.instObjects.push(new Coin(7125, 275));
Mario.instObjects.push(new Coin(7375, 150));
Mario.instObjects.push(new Coin(7400, 150));
Mario.instObjects.push(new Coin(7425, 150));
Mario.instObjects.push(new Coin(7450, 150));
Mario.instObjects.push(new Coin(7475, 150));
Mario.instObjects.push(new Coin(4975, 225));
Mario.instObjects.push(new Coin(4975, 200));
Mario.instObjects.push(new Coin(5025, 225));
Mario.instObjects.push(new Coin(5025, 200));
Mario.instObjects.push(new Coin(4525, 250));
Mario.instObjects.push(new Coin(4450, 250));
Mario.instObjects.push(new Coin(4350, 250));
Mario.instObjects.push(new Coin(4300, 250));
Mario.instObjects.push(new Coin(4200, 250));
Mario.instObjects.push(new Coin(4050, 250));
Mario.instObjects.push(new Coin(4150, 250));
Mario.instObjects.push(new Coin(4000, 250));
Mario.instObjects.push(new Coin(3900, 250));
Mario.instObjects.push(new Coin(3850, 250));
Mario.instObjects.push(new Coin(3750, 250));
Mario.layerWall.addChild(AddGraphic(3675, 275, "back_fence_1"));
Mario.instObjects.push(new Coin(3700, 250));
Mario.instObjects.push(new Coin(3675, 250));
Mario.instObjects.push(new Coin(3575, 300));
Mario.instObjects.push(new Coin(3550, 300));
Mario.instObjects.push(new Coin(2075, 150));
Mario.instObjects.push(new Coin(2075, 125));
Mario.instObjects.push(new Coin(2025, 125));
Mario.instObjects.push(new Coin(2025, 150));
Mario.instObjects.push(new Coin(1450, 175));
Mario.instObjects.push(new Coin(825, 250));
Mario.instObjects.push(new Coin(825, 225));
Mario.instObjects.push(new Coin(225, 250));
Mario.instObjects.push(new Coin(200, 250));
Mario.instEffects.push(new Background(3200, 25, "back_clouds_2", 0.100000001));
Mario.instEffects.push(new Background(4625, 75, "back_clouds_3", 0.109999999));
Mario.instEffects.push(new Background(6575, 50, "back_clouds_3", 0.209999993));
Mario.instEffects.push(new Background(7875, 100, "back_clouds_1", 0.360000014));
Mario.layerWall.addChild(AddGraphic(8000, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(8475, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(8450, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8425, 325, "back_fence_2"));
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.layerWall.addChild(AddGraphic(8275, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8250, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8225, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8200, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(8175, 325, "back_fence_2"));
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.instEffects.push(new Cloud(8350, 125));
Mario.instEffects.push(new Cloud(7925, 25));
Mario.instEffects.push(new Cloud(7175, 150));
Mario.instEffects.push(new Cloud(6025, 50));
Mario.instEffects.push(new Cloud(5275, 175));
Mario.instEffects.push(new Cloud(4450, 25));
Mario.instEffects.push(new Cloud(3625, 75));
Mario.instEffects.push(new Cloud(100, 100));
Mario.instEffects.push(new Cloud(475, 25));
Mario.instEffects.push(new Cloud(1200, 75));
Mario.instEffects.push(new Cloud(1775, 25));
Mario.instEffects.push(new Cloud(2475, 125));
Mario.instEffects.push(new Cloud(3025, 50));
Mario.instEffects.push(new Background(6075, 350, "back_hill", 0.470000029));
Mario.instEffects.push(new Background(5050, 300, "back_hill", 0.49000001));
Mario.instEffects.push(new Background(3050, 300, "back_hill", 0.50999999));
Mario.layerWall.addChild(AddGraphic(7100, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(7125, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7075, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6975, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(7000, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7025, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(7050, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6875, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(6875, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6850, 275, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(6850, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6850, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6775, 275, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(6775, 300, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(6775, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(6575, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(6650, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6600, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6625, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6275, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(6350, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(6325, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(6300, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(6200, 325, "r"));
Mario.instEffects.push(new Grass(6175, 325, "m"));
Mario.instEffects.push(new Grass(6150, 325, "l"));
Mario.layerWall.addChild(AddGraphic(5850, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(5925, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(5900, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(5875, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(5075, 325, "r"));
Mario.instEffects.push(new Grass(5050, 325, "m"));
Mario.instEffects.push(new Grass(5025, 325, "l"));
Mario.layerWall.addChild(AddGraphic(4700, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4725, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4750, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4775, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4800, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4825, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4850, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4450, 275, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(4525, 275, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(4475, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4500, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(4100, 0, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(4100, 25, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(4050, 250, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(4050, 275, "back_tree_1"));
Mario.instEffects.push(new Grass(3900, 275, "r"));
Mario.instEffects.push(new Grass(3875, 275, "m"));
Mario.instEffects.push(new Grass(3850, 275, "l"));
Mario.layerWall.addChild(AddGraphic(3750, 275, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(3725, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3700, 275, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(3500, 200, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(3500, 225, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3325, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3325, 225, "back_tree_3"));
Mario.layerWall.addChild(AddGraphic(3325, 275, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3325, 250, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3275, 200, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3275, 225, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3275, 250, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3125, 250, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(3125, 275, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(3125, 300, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(3025, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(3025, 325, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2775, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2850, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2825, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2800, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2700, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2650, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2675, 300, "back_fence_2"));
Mario.instEffects.push(new Grass(2500, 300, "l"));
Mario.instEffects.push(new Grass(2625, 300, "r"));
Mario.instEffects.push(new Grass(2600, 300, "m"));
Mario.instEffects.push(new Grass(2575, 300, "m"));
Mario.instEffects.push(new Grass(2550, 300, "m"));
Mario.instEffects.push(new Grass(2525, 300, "m"));
Mario.layerWall.addChild(AddGraphic(2475, 0, "back_tree_4"));
Mario.layerWall.addChild(AddGraphic(2475, 25, "back_tree_2"));
Mario.layerWall.addChild(AddGraphic(2475, 50, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2125, 50, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(2275, 50, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(2150, 50, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2250, 50, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2225, 50, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2200, 50, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(2175, 50, "back_fence_2"));
Mario.instEffects.push(new Grass(2375, 50, "r"));
Mario.instEffects.push(new Grass(2350, 50, "m"));
Mario.instEffects.push(new Grass(2325, 50, "l"));
Mario.instEffects.push(new Grass(2075, 50, "r"));
Mario.instEffects.push(new Grass(2025, 50, "m"));
Mario.instEffects.push(new Grass(2050, 50, "m"));
Mario.instEffects.push(new Grass(2000, 50, "l"));
Mario.layerWall.addChild(AddGraphic(1925, 25, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(1925, 50, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(1625, 300, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(1800, 300, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(1650, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1675, 300, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(1700, 300, "back_fence_2"));
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(750, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(775, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(800, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(475, 325, "back_fence_1"));
Mario.layerWall.addChild(AddGraphic(550, 325, "back_fence_3"));
Mario.layerWall.addChild(AddGraphic(525, 325, "back_fence_2"));
Mario.layerWall.addChild(AddGraphic(500, 325, "back_fence_2"));
Mario.instEffects.push(new Grass(150, 325, "r"));
Mario.instEffects.push(new Grass(125, 325, "m"));
Mario.instEffects.push(new Grass(100, 325, "m"));
Mario.instEffects.push(new Grass(75, 325, "m"));
Mario.instEffects.push(new Grass(50, 325, "m"));
Mario.instEffects.push(new Grass(25, 325, "m"));
Mario.instEffects.push(new Grass(0, 325, "l"));
Mario.layerWall.addChild(AddGraphic(2475, 175, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2475, 150, "back_tree_1"));
Mario.layerWall.addChild(AddGraphic(2475, 125, "back_tree_1"));
Mario.instObjects.push(new Finish(7925, 325));
Mario.instEnemies.push(new Lakitu(175, 25));
Mario.instObjects.push(new Elevator(4925, 100, 50, "elevator_2"));
Mario.instObjects.push(new Elevator(5050, 100, 25, "elevator_1"));
Mario.instObjects.push(new Elevator(5150, 100, 25, "elevator_1"));
Player.ResetPlayer(50, 275);
Mario.instBlocks.push(new Bonus(5300, 250, 1));
Mario.instBlocks.push(new Bonus(5275, 250, 1));
Mario.instBlocks.push(new Bonus(5250, 250, 2));
Mario.instBlocks.push(new Bonus(2500, 250, 5, true));
Mario.instEffects.push(new Back(5));
break;
case 10:
Mario.levelGenre = 2;
Mario.musika = 0;
Mario.generateBackground(0);
Mario.level[0] = " M M M M M ";
Mario.level[1] = " M M M M M ";
Mario.level[2] = " M M M M M ";
Mario.level[3] = " M M M M M ";
Mario.level[4] = " M M M M M ";
Mario.level[5] = " M M M M M MMMMMMM ";
Mario.level[6] = " M M M M M M MM ";
Mario.level[7] = " M MMM MMMMMM M ";
Mario.level[8] = " MMMMM M M ";
Mario.level[9] = " M MM M ";
Mario.level[10] = " M MMM MMMMMM M MMM MMM ";
Mario.level[11] = " M M M M M M MMM ";
Mario.level[12] = " 6777777778 M M M M M ";
Mario.level[13] = " 9aaaaaaaab M M M M M ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde MMMMM MMM MMM MMM cddddddddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(675, 250));
Mario.instObjects.push(new Coin(650, 250));
Mario.instObjects.push(new Coin(625, 250));
Mario.instObjects.push(new Coin(600, 250));
Mario.instObjects.push(new Coin(675, 225));
Mario.instObjects.push(new Coin(650, 225));
Mario.instObjects.push(new Coin(625, 225));
Mario.instObjects.push(new Coin(600, 225));
Mario.instObjects.push(new Coin(2150, 150));
Mario.instObjects.push(new Coin(2150, 175));
Mario.instObjects.push(new Coin(2150, 200));
Mario.instObjects.push(new Coin(2150, 225));
Mario.instObjects.push(new Coin(2150, 250));
Mario.instObjects.push(new Coin(2150, 275));
Mario.instObjects.push(new Coin(2150, 300));
Mario.instObjects.push(new Coin(2150, 325));
Mario.instObjects.push(new Coin(2175, 150));
Mario.instObjects.push(new Coin(2175, 175));
Mario.instObjects.push(new Coin(2175, 200));
Mario.instObjects.push(new Coin(2175, 225));
Mario.instObjects.push(new Coin(2175, 250));
Mario.instObjects.push(new Coin(2175, 275));
Mario.instObjects.push(new Coin(2175, 300));
Mario.instObjects.push(new Coin(2175, 325));
Mario.instObjects.push(new Coin(2200, 150));
Mario.instObjects.push(new Coin(2200, 175));
Mario.instObjects.push(new Coin(2200, 200));
Mario.instObjects.push(new Coin(2200, 225));
Mario.instObjects.push(new Coin(2200, 250));
Mario.instObjects.push(new Coin(2200, 275));
Mario.instObjects.push(new Coin(2200, 300));
Mario.instObjects.push(new Coin(2200, 325));
Mario.instObjects.push(new Coin(2225, 150));
Mario.instObjects.push(new Coin(2225, 175));
Mario.instObjects.push(new Coin(2225, 200));
Mario.instObjects.push(new Coin(2225, 225));
Mario.instObjects.push(new Coin(2225, 250));
Mario.instObjects.push(new Coin(2225, 275));
Mario.instObjects.push(new Coin(2225, 300));
Mario.instObjects.push(new Coin(2225, 325));
Mario.instObjects.push(new Coin(2875, 175));
Mario.instObjects.push(new Coin(2975, 175));
Mario.instObjects.push(new Coin(2950, 175));
Mario.instObjects.push(new Coin(2925, 175));
Mario.instObjects.push(new Coin(2900, 175));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.410000026));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.410000026));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.219999999));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.25999999));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.540000021));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new Goomba(450, 275));
Mario.instEnemies.push(new Goomba(400, 275));
Mario.instEnemies.push(new Goomba(500, 275));
Mario.instEnemies.push(new Goomba(625, 175));
Mario.instEnemies.push(new Goomba(850, 300));
Mario.instEnemies.push(new Goomba(1375, 325));
Mario.instEnemies.push(new Goomba(1475, 325));
Mario.instEnemies.push(new Goomba(2000, 325));
Mario.instEnemies.push(new Goomba(2050, 325));
Mario.instEnemies.push(new Goomba(1900, 325));
Mario.instEnemies.push(new Goomba(2200, 100));
Mario.instEnemies.push(new Goomba(2250, 100));
Mario.instEnemies.push(new FlyGreen(1875, 200));
Mario.instEnemies.push(new FlyGreen(1950, 200));
Mario.instEnemies.push(new TroopaGreen(2050, 200));
Mario.instEnemies.push(new TroopaGreen(2325, 325));
Mario.instEnemies.push(new TroopaGreen(2500, 125));
Mario.instEnemies.push(new TroopaGreen(2750, 225));
Mario.instEnemies.push(new TroopaGreen(2950, 225));
Mario.instEnemies.push(new TroopaGreen(3200, 325));
Mario.instEnemies.push(new TroopaGreen(3350, 250));
Mario.instEffects.push(new Back(5));
break;
case 11:
Mario.levelGenre = 3;
Mario.musika = 2;
Mario.level[0] = "ABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB";
Mario.level[1] = " ABAB CD DCABABABABABABABABABABABABABABABABABABABABD CAB CD ";
Mario.level[2] = " ABABABABABABABABABABABABABABABABABABABAB CD C ";
Mario.level[3] = " ABABABABABABABABABABABABABABABABABABABD D D ";
Mario.level[4] = " C ";
Mario.level[5] = " C 01 ";
Mario.level[6] = " CCCCCCCCCCCC CCCCCCCCC 01 23 ";
Mario.level[7] = " EFFFG C C C 01 23 23 ";
Mario.level[8] = "FG EKIIIJ C C C 23 23 01 23 ";
Mario.level[9] = "ILG HIIIIJ EFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFG CCCCCCCC C C C EFFFFFFFFFFFFFFFFFFFFFFFFGOOOOOOOOOOOOOOOO";
Mario.level[10] = "IILG HIIIIJ EFG EFFG HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ C C CCCCCC EKIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[11] = "IIILFFFFFFFG EFFG HIIIIJ EFFFKILG HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ CCC C EKIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[12] = "IIIIIIIIIIIJ HIIJ HIIIILFFFFFFFFFFKIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ C C C C EKIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[13] = "IIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ CCCCCCC C C C EKIIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[14] = "IIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIJ HIIJ HIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIILFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFKIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instObjects.push(new Coin(2375, 150));
Mario.instObjects.push(new Coin(1575, 150));
Mario.instObjects.push(new Coin(2275, 150));
Mario.instObjects.push(new Coin(2175, 150));
Mario.instObjects.push(new Coin(2075, 150));
Mario.instObjects.push(new Coin(1975, 150));
Mario.instObjects.push(new Coin(1875, 150));
Mario.instObjects.push(new Coin(1775, 150));
Mario.instObjects.push(new Coin(1675, 150));
Mario.instObjects.push(new Coin(1125, 175));
Mario.instObjects.push(new Coin(1125, 200));
Mario.instObjects.push(new Coin(675, 75));
Mario.instObjects.push(new Coin(3500, 300));
Mario.instObjects.push(new Coin(3500, 50));
Mario.instObjects.push(new Coin(2625, 50));
Mario.instObjects.push(new Coin(2625, 300));
Mario.instObjects.push(new Coin(3000, 300));
Mario.instObjects.push(new Coin(2875, 300));
Mario.instObjects.push(new Coin(2750, 300));
Mario.instObjects.push(new Coin(2625, 175));
Mario.instObjects.push(new Coin(2750, 50));
Mario.instObjects.push(new Coin(2875, 50));
Mario.instObjects.push(new Coin(3000, 50));
Mario.instObjects.push(new Coin(3500, 175));
Mario.instObjects.push(new Coin(3375, 300));
Mario.instObjects.push(new Coin(3375, 50));
Mario.instObjects.push(new Coin(3250, 50));
Mario.instObjects.push(new Coin(3250, 300));
Mario.instObjects.push(new Coin(3125, 300));
Mario.instObjects.push(new Coin(3125, 50));
Mario.instObjects.push(new Coin(3375, 175));
Mario.instObjects.push(new Coin(3250, 175));
Mario.instObjects.push(new Coin(3125, 175));
Mario.instObjects.push(new Coin(3000, 175));
Mario.instObjects.push(new Coin(2875, 175));
Mario.instObjects.push(new Coin(2750, 175));
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));
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(1200, 350));
Mario.instObjects.push(new Lava(1225, 350));
Mario.instObjects.push(new Lava(1250, 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(4350, 350));
Mario.instObjects.push(new Lava(4375, 350));
Mario.instObjects.push(new Lava(4425, 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(4450, 350));
Mario.instObjects.push(new Lava(4400, 350));
Mario.instBlocks.push(new Brick(425, 150));
Mario.instBlocks.push(new Bonus(450, 150, 1));
Mario.instBlocks.push(new Brick(825, 175));
Mario.instBlocks.push(new Brick(875, 175));
Mario.instBlocks.push(new Brick(925, 175));
Mario.instBlocks.push(new Bonus(900, 175, 1));
Mario.instBlocks.push(new Bonus(1300, 150, 2));
Mario.instBlocks.push(new Brick(1325, 150));
Mario.instBlocks.push(new Bonus(850, 175, 0));
Mario.instEnemies.push(new PPlant(3775, 150));
Mario.instEnemies.push(new PPlant(3900, 125));
Mario.instEnemies.push(new PPlant(4025, 175));
Mario.instEnemies.push(new PPlant(4150, 100));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(1225, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(1425, 350, -10, 0, 10, 1, 200));
Mario.instBlocks.push(new Bonus(4250, 75, 4, true));
Player.ResetPlayer(25, 175);
Mario.instBlocks.push(new Bonus(650, 75, 0));
Mario.instBlocks.push(new Bonus(700, 75, 0));
Mario.instBlocks.push(new Bonus(1125, 125, 0));
Mario.instObjects.push(new Mill(1600, 100, 75, 1, 1));
Mario.instObjects.push(new Mill(1800, 200, 75, 1, 1));
Mario.instObjects.push(new Mill(2150, 100, 75, 1, 1));
Mario.instObjects.push(new Mill(2450, 200, 75, 1, 1));
Mario.instObjects.push(new Mill(2825, 200, 75, 1, 1));
Mario.instObjects.push(new Mill(3100, 100, 75, 1, 1));
Mario.instObjects.push(new Mill(3200, 275, 75, 1, 1));
Mario.instObjects.push(new Mill(3450, 200, 75, 1, 1));
Mario.instEnemies.push(new Goomba(1025, 250));
Mario.instEnemies.push(new Goomba(875, 275));
Mario.instEnemies.push(new Goomba(675, 150));
Mario.instEnemies.push(new Goomba(1625, 200));
Mario.instEnemies.push(new Goomba(2200, 200));
Mario.instEnemies.push(new Goomba(2925, 200));
Mario.instEnemies.push(new Goomba(3325, 125));
Mario.instEnemies.push(new Goomba(3500, 125));
Mario.instEnemies.push(new Bowser((181 * 25), (8 * 25), (174 * 25), 2, 10, 0, 0, 0));
Mario.instEffects.push(new Back(3));
break;
case 12:
Mario.levelGenre = 0;
Mario.musika = 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] = " 01 01 M cdddddddde M MMM ";
Mario.level[11] = " 01 23 23 MM fggggggggh MM 01 MMMM ";
Mario.level[12] = " 23 23 23 MMM MMMMMMMMMM MMM 23 MMMMM ";
Mario.level[13] = " 23 23 23 MMMM MMMM 23 MMMMMM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(2425, 225, "back_clouds_4", 0.670000017));
Mario.instEffects.push(new Background(1325, 175, "back_clouds_8", 0.600000024));
Mario.instEffects.push(new Background(475, 125, "back_clouds_7", 0.540000021));
Mario.instEffects.push(new Background(1700, 100, "back_clouds_3", 0.129999995));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.170000002));
Mario.instEffects.push(new Background(3475, 100, "back_hill_big", 0.75999999));
Mario.instEffects.push(new Background(2500, 175, "back_hill_big", 0.639999986));
Mario.instEffects.push(new Background(1875, 325, "back_hill", 0.550000012));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.340000004));
Mario.instEffects.push(new Background(100, 300, "back_hill", 0.340000004));
Mario.instEffects.push(new Cloud(325, 150));
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.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, 150, 1));
Mario.instBlocks.push(new Bonus(250, 150, 1));
Mario.instBlocks.push(new Bonus(275, 150, 1));
Mario.instBlocks.push(new Bonus(175, 150, 1));
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 Bonus(2075, 125, 1, true));
Mario.instBlocks.push(new Bonus(2150, 125, 1, true));
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.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(400, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new Goomba(1700, 125));
Mario.instEnemies.push(new Goomba(1625, 125));
Mario.instEnemies.push(new TroopaGreen(1950, 325));
Mario.instEnemies.push(new Goomba(2050, 325));
Mario.instEnemies.push(new Goomba(2150, 325));
Mario.instEnemies.push(new Goomba(2275, 325));
Mario.instEnemies.push(new Goomba(3325, 325));
Mario.instEnemies.push(new Spiny(2225, 325));
Mario.instEnemies.push(new Spiny(2925, 325));
Mario.instEnemies.push(new Spiny(3150, 325));
Mario.instEnemies.push(new Spiny(3225, 325));
Mario.instEnemies.push(new Spiny(3600, 200));
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] = " ";
Mario.level[8] = " ";
Mario.level[9] = " MM ";
Mario.level[10] = " 01 01 MMM ";
Mario.level[11] = " 01 23 23 01 MMMM ";
Mario.level[12] = " 23 23 23 23 MMMMM ";
Mario.level[13] = " 23 23 23 23 MMMMMM ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(475, 125, "back_clouds_7", 0.610000014));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.140000001));
Mario.instEffects.push(new Background(1875, 325, "back_hill", 0.550000012));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.340000004));
Mario.instEffects.push(new Background(100, 300, "back_hill", 0.340000004));
Mario.instEffects.push(new Cloud(325, 150));
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.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.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(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"));
Player.ResetPlayer(75, 325);
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.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new TroopaGreen(1950, 325));
Mario.instEnemies.push(new Goomba(2050, 325));
Mario.instEnemies.push(new Goomba(2150, 325));
Mario.instEnemies.push(new Goomba(2275, 325));
Mario.instEnemies.push(new Goomba(3325, 325));
Mario.instEnemies.push(new Spiny(2225, 325));
Mario.instEnemies.push(new Spiny(2925, 325));
Mario.instEnemies.push(new Spiny(3150, 325));
Mario.instEnemies.push(new Spiny(3225, 325));
Mario.instBlocks.push(new Brick(1600, 225));
Mario.instBlocks.push(new Brick(1625, 225));
Mario.instBlocks.push(new Brick(1650, 225));
Mario.instBlocks.push(new Brick(1675, 225));
Mario.instBlocks.push(new Brick(1700, 225));
Mario.instBlocks.push(new Brick(1725, 225));
Mario.instBlocks.push(new Brick(500, 275));
Mario.instBlocks.push(new Brick(475, 275));
Mario.instBlocks.push(new Brick(450, 275));
Mario.instBlocks.push(new Brick(425, 275));
Mario.instBlocks.push(new Brick(400, 275));
Mario.instBlocks.push(new Brick(375, 275));
Mario.instBlocks.push(new Brick(350, 275));
Mario.instBlocks.push(new Brick(325, 275));
Mario.instBlocks.push(new Brick(575, 200));
Mario.instBlocks.push(new Brick(600, 200));
Mario.instBlocks.push(new Brick(625, 200));
Mario.instBlocks.push(new Brick(650, 200));
Mario.instBlocks.push(new Brick(675, 200));
Mario.instBlocks.push(new Brick(700, 200));
Mario.instBlocks.push(new Brick(725, 200));
Mario.instBlocks.push(new Brick(1225, 250));
Mario.instBlocks.push(new Brick(1250, 250));
Mario.instBlocks.push(new Brick(1275, 250));
Mario.instBlocks.push(new Brick(1325, 175));
Mario.instBlocks.push(new Brick(1350, 175));
Mario.instBlocks.push(new Brick(1375, 175));
Mario.instBlocks.push(new Brick(1400, 175));
Mario.instBlocks.push(new Brick(1425, 175));
Mario.instBlocks.push(new Brick(1450, 175));
Mario.instBlocks.push(new Brick(1475, 175));
Mario.instBlocks.push(new Brick(1650, 100));
Mario.instBlocks.push(new Brick(1675, 100));
Mario.instBlocks.push(new Brick(1700, 100));
Mario.instBlocks.push(new Brick(1725, 100));
Mario.instBlocks.push(new Brick(1750, 100));
Mario.instBlocks.push(new Brick(1775, 100));
Mario.instBlocks.push(new Brick(1800, 100));
Mario.instBlocks.push(new Brick(1825, 100));
Mario.instBlocks.push(new Brick(1850, 100));
Mario.instBlocks.push(new Brick(1875, 100));
Mario.instBlocks.push(new Brick(1900, 100));
Mario.instBlocks.push(new Brick(1975, 225));
Mario.instBlocks.push(new Brick(2000, 225));
Mario.instBlocks.push(new Brick(2025, 225));
Mario.instBlocks.push(new Brick(2050, 225));
Mario.instBlocks.push(new Brick(2075, 225));
Mario.instBlocks.push(new Brick(2100, 225));
Mario.instBlocks.push(new Brick(2125, 225));
Mario.instBlocks.push(new Brick(2150, 225));
Mario.instBlocks.push(new Brick(2175, 225));
Mario.instBlocks.push(new Brick(2200, 225));
Mario.instBlocks.push(new Brick(2225, 225));
Mario.instBlocks.push(new Brick(2475, 275));
Mario.instBlocks.push(new Brick(2500, 275));
Mario.instBlocks.push(new Brick(2525, 275));
Mario.instBlocks.push(new Brick(2550, 275));
Mario.instBlocks.push(new Brick(2575, 275));
Mario.instBlocks.push(new Brick(2600, 275));
Mario.instBlocks.push(new Brick(2625, 275));
Mario.instBlocks.push(new Brick(2650, 275));
Mario.instBlocks.push(new Brick(2675, 275));
Mario.instBlocks.push(new Brick(2700, 275));
Mario.instBlocks.push(new Brick(3375, 175));
Mario.instBlocks.push(new Brick(3400, 175));
Mario.instBlocks.push(new Brick(3425, 175));
Mario.instBlocks.push(new Brick(3450, 175));
Mario.instBlocks.push(new Brick(3650, 125));
Mario.instBlocks.push(new Brick(3675, 125));
Mario.instBlocks.push(new Brick(3700, 125));
Mario.instEnemies.push(new FlyRed(2825, 225));
Mario.instEnemies.push(new FlyRed(2350, 175));
Mario.instEnemies.push(new FlyRed(1875, 225));
Mario.instEnemies.push(new FlyRed(1125, 225));
Mario.instEnemies.push(new HammerTroopa(675, 150));
Mario.instEnemies.push(new Goomba(400, 250));
Mario.instEnemies.push(new Goomba(475, 250));
Mario.instEnemies.push(new Goomba(525, 250));
Mario.instEnemies.push(new Goomba(1000, 225));
Mario.instEnemies.push(new Goomba(1350, 150));
Mario.instEnemies.push(new Goomba(1425, 150));
Mario.instEnemies.push(new Goomba(1675, 75));
Mario.instEnemies.push(new Goomba(1825, 75));
Mario.instEnemies.push(new Goomba(1675, 200));
Mario.instEnemies.push(new Goomba(2000, 200));
Mario.instEnemies.push(new Goomba(2200, 200));
Mario.instEnemies.push(new Goomba(2550, 250));
Mario.instEnemies.push(new Goomba(2625, 250));
Mario.instEnemies.push(new Goomba(3250, 225));
Mario.instEnemies.push(new Goomba(3400, 150));
Mario.instEnemies.push(new Goomba(3675, 100));
Mario.instBlocks.push(new Bonus(300, 275, 2));
Mario.instBlocks.push(new Bonus(775, 250, 2));
Mario.instBlocks.push(new Bonus(1950, 225, 2));
Mario.instEffects.push(new Back(2));
break;
case 14:
Mario.levelGenre = 0;
Mario.musika = 0;
Mario.generateBackground(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] = " 01 ";
Mario.level[10] = " 01 23 01 ";
Mario.level[11] = " 23 M 01 MMMMMMMMM 23 01 23 ";
Mario.level[12] = " 23 MM 23 MM MM 23 23 01 23 ";
Mario.level[13] = " 23 MMM 23 MM MMM 23 23 23 23 ";
Mario.level[14] = "cddddddddddddddddddddddddddddddddddddddddddddddde cdddddddddde cddddddddddddddddddddddddde cdddddddde cdddddddddddddddddddddde cdddddddddddddddddddddddddddddd";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
Mario.instEffects.push(new Background(925, 150, "back_column_2", 0.550000012));
Mario.instEffects.push(new Background(3700, 175, "back_column_2", 0.350000024));
Mario.instEffects.push(new Background(2725, 125, "back_column_2", 0.390000015));
Mario.instEffects.push(new Background(2700, 175, "back_clouds_5", 0.720000029));
Mario.instEffects.push(new Background(1675, 175, "back_clouds_5", 0.450000018));
Mario.instEffects.push(new Background(450, 175, "back_clouds_5", 0.49000001));
Mario.instEffects.push(new Background(200, 225, "back_clouds_2", 0.310000002));
Mario.instEffects.push(new Background(450, 150, "back_clouds_2", 0.109999999));
Mario.instEffects.push(new Background(1075, 150, "back_clouds_2", 0.360000014));
Mario.instEffects.push(new Background(1775, 200, "back_clouds_2", 0.209999993));
Mario.instEffects.push(new Background(2525, 75, "back_clouds_2", 0.300000012));
Mario.instEffects.push(new Background(3025, 225, "back_clouds_2", 0.100000001));
Mario.instEffects.push(new Background(3925, 100, "back_column_3", 0.390000015));
Mario.instEffects.push(new Background(2425, 50, "back_column_3", 0.350000024));
Mario.instEffects.push(new Grass(2675, 325, "r"));
Mario.instEffects.push(new Grass(2650, 325, "m"));
Mario.instEffects.push(new Grass(2625, 325, "m"));
Mario.instEffects.push(new Grass(2600, 325, "m"));
Mario.instEffects.push(new Grass(2575, 325, "l"));
Mario.instEffects.push(new Background(1700, 50, "back_clouds_1", 0.360000014));
Mario.instEffects.push(new Background(3500, 100, "back_clouds_1", 0.129999995));
Mario.instEffects.push(new Background(1000, 300, "back_hill", 0.360000014));
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.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(625, 300, "back_tree_5"));
Mario.layerWall.addChild(AddGraphic(625, 325, "back_tree_1"));
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(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(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(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"));
Player.ResetPlayer(75, 325);
Mario.instObjects.push(new Finish(3775, 325));
Mario.instEnemies.push(new Goomba(625, 325));
Mario.instEnemies.push(new Goomba(500, 325));
Mario.instEnemies.push(new Goomba(575, 325));
Mario.instEnemies.push(new Goomba(975, 325));
Mario.instEnemies.push(new Goomba(1425, 325));
Mario.instEnemies.push(new Goomba(1475, 325));
Mario.instEnemies.push(new Goomba(1950, 325));
Mario.instEnemies.push(new Goomba(2000, 325));
Mario.instEnemies.push(new Goomba(2125, 325));
Mario.instEnemies.push(new Goomba(2350, 325));
Mario.instEnemies.push(new Goomba(2825, 325));
Mario.instEnemies.push(new Goomba(2950, 325));
Mario.instEnemies.push(new Goomba(3075, 325));
Mario.instEnemies.push(new Goomba(3325, 325));
Mario.instEnemies.push(new Goomba(3475, 325));
Mario.instEnemies.push(new TroopaGreen(3150, 325));
Mario.instEnemies.push(new TroopaGreen(2675, 325));
Mario.instEnemies.push(new TroopaGreen(2175, 325));
Mario.instEnemies.push(new TroopaGreen(1350, 325));
Mario.instEnemies.push(new TroopaGreen(800, 325));
Mario.instBlocks.push(new Bonus(675, 225, 1));
Mario.instBlocks.push(new Bonus(700, 225, 1));
Mario.instBlocks.push(new Bonus(725, 225, 1));
Mario.instBlocks.push(new Bonus(650, 225, 1));
Mario.instBlocks.push(new Bonus(2025, 275, 1));
Mario.instBlocks.push(new Bonus(2000, 275, 1));
Mario.instBlocks.push(new Brick(1975, 275));
Mario.instBlocks.push(new Brick(1950, 275));
Mario.instBlocks.push(new Brick(2100, 275));
Mario.instBlocks.push(new Brick(2550, 250));
Mario.instBlocks.push(new Brick(2575, 250));
Mario.instBlocks.push(new Brick(2600, 250));
Mario.instBlocks.push(new Brick(2575, 175));
Mario.instBlocks.push(new Brick(3075, 250));
Mario.instBlocks.push(new Brick(3050, 250));
Mario.instBlocks.push(new Brick(3025, 250));
Mario.instBlocks.push(new Brick(3100, 250));
Mario.instBlocks.push(new Bonus(2525, 250, 2));
Mario.instBlocks.push(new Bonus(125, 250, 2));
Mario.instBlocks.push(new Bonus(200, 250, 2));
Mario.instBlocks.push(new Bonus(1525, 275, 2));
Mario.instEffects.push(new Back(4));
break;
case 15:
Mario.musika = 2;
Mario.levelGenre = 3;
Mario.level[0] = "ABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABABAB";
Mario.level[1] = " ABAB CD DCABABABABABABABABABABABABABABABABABABABABD CAB CD ";
Mario.level[2] = " ABABABABABABABABABABABABABABABABABABABAB CD C ";
Mario.level[3] = " ABABABABABABABABABABABABABABABABABABABD D ";
Mario.level[4] = " ";
Mario.level[5] = " 01 ";
Mario.level[6] = " 01 23 ";
Mario.level[7] = " 01 23 23 ";
Mario.level[8] = "FG 23 23 01 23 ";
Mario.level[9] = "ILG EFFFFFFFFFFFFFFFFFFFFFFFFGOOOOOOOOOOOOOOOO";
Mario.level[10] = "IILG EKIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[11] = "IIILFFFFFFFG C EFFFFFFFFFFFFFFFFFFFFFFG EFFG EKIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[12] = "IIIIIIIIIIIJ HIIIIIIIIIIIIIIIIIIIIIIJ HIIJ EKIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[13] = "IIIIIIIIIIIJ HIIIIIIIIIIIIIIIIIIIIIIJ HIIJ C C C C C C C C EKIIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.level[14] = "IIIIIIIIIIIJ HIIIIIIIIIIIIIIIIIIKIIIJ HIIJ EFFFFG EFFFFFFFFFG EFFFFFFFFFFFFFG FFFFFFFFFFFFFFFFFFFFFC CFFFFFFFFFFFKIIIIIIIIIIIIIIIIIIIIIIIIIIIIJ ";
Mario.levelWid = Mario.level[0].length;
Mario.levelHei = Mario.level.length;
Mario.drawLevel();
Mario.Hud.Time = 320;
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));
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(1200, 350));
Mario.instObjects.push(new Lava(1225, 350));
Mario.instObjects.push(new Lava(1250, 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(4350, 350));
Mario.instObjects.push(new Lava(4375, 350));
Mario.instObjects.push(new Lava(4425, 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(4450, 350));
Mario.instObjects.push(new Lava(4400, 350));
Mario.instEnemies.push(new PPlant(3775, 150));
Mario.instEnemies.push(new PPlant(3900, 125));
Mario.instEnemies.push(new PPlant(4025, 175));
Mario.instEnemies.push(new PPlant(4150, 100));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instBlocks.push(new Bonus(4250, 75, 4, true));
Player.ResetPlayer(25, 175);
Mario.instObjects.push(new Lava(475, 350));
Mario.instObjects.push(new Lava(450, 350));
Mario.instObjects.push(new Lava(425, 350));
Mario.instObjects.push(new Lava(400, 350));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
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(2050, 350));
Mario.instObjects.push(new Lava(2075, 350));
Mario.instObjects.push(new Lava(2100, 350));
Mario.instObjects.push(new Lava(2025, 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.instEnemies.push(new TroopaRed(1575, 325));
Mario.instEnemies.push(new TroopaRed(1800, 325));
Mario.instEnemies.push(new TroopaRed(1875, 325));
Mario.instEnemies.push(new TroopaRed(1950, 325));
Mario.instEnemies.push(new TroopaRed(2200, 325));
Mario.instEnemies.push(new TroopaRed(2275, 325));
Mario.instEnemies.push(new TroopaRed(2350, 325));
Mario.instEnemies.push(new TroopaRed(2700, 325));
Mario.instEnemies.push(new TroopaRed(2775, 325));
Mario.instEnemies.push(new TroopaRed(2925, 325));
Mario.instEnemies.push(new TroopaRed(3000, 325));
Mario.instEnemies.push(new TroopaRed(3400, 325));
Mario.instEnemies.push(new TroopaRed(3475, 325));
Mario.instEnemies.push(new FlyRed(3200, 250));
Mario.instEnemies.push(new FlyRed(3250, 250));
Mario.instEnemies.push(new FlyRed(3225, 250));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new JumperThrower(550, 350, -10, 0, 10, 1, 200));
Mario.instEnemies.push(new Spiny(650, 250));
Mario.instEnemies.push(new Spiny(800, 250));
Mario.instEnemies.push(new Spiny(925, 250));
Mario.instEnemies.push(new Spiny(1075, 250));
Mario.instEnemies.push(new Spiny(250, 250));
Mario.instEnemies.push(new Spiny(1300, 250));
Mario.instBlocks.push(new Bonus(25, 100, 2));
Mario.instBlocks.push(new Bonus(1625, 225, 2));
Mario.instEnemies.push(new Bowser((181 * 25), (8 * 25), (174 * 25), 2, 10, 0, 0, 0));
Mario.instEffects.push(new Back(3));
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, 3, 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 < 17){
Mario.sequence = 0;
Mario.self.waitScreen();
};
Mario.stepping = true;
}
}//package objects
Section 365
//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.rotation = (GFX.rotation + (speed * 200));
GFX.x = (millX + 11);
GFX.y = (millY + 11);
if (Mario.playerCollide(millX, millY, 23, 23)){
Mario.hitPlayer();
};
}
}
}//package objects
Section 366
//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 367
//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 368
//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 = 456;
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(4)){
JUMP = true;
} else {
if (!Mario.isKeyDown(4)){
JUMP = false;
};
};
if (((((Mario.isKeyPressed(4)) || (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(4)) && ((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 369
//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 370
//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 371
//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 372
//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 373
//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 374
//SFX_SFX_BOWSERHIT (objects.SFX_SFX_BOWSERHIT)
package objects {
import mx.core.*;
public class SFX_SFX_BOWSERHIT extends SoundAsset {
}
}//package objects
Section 375
//SFX_SFX_BOWSERKILL (objects.SFX_SFX_BOWSERKILL)
package objects {
import mx.core.*;
public class SFX_SFX_BOWSERKILL extends SoundAsset {
}
}//package objects
Section 376
//SFX_SFX_BRICK (objects.SFX_SFX_BRICK)
package objects {
import mx.core.*;
public class SFX_SFX_BRICK extends SoundAsset {
}
}//package objects
Section 377
//SFX_SFX_BUMP (objects.SFX_SFX_BUMP)
package objects {
import mx.core.*;
public class SFX_SFX_BUMP extends SoundAsset {
}
}//package objects
Section 378
//SFX_SFX_CANNON (objects.SFX_SFX_CANNON)
package objects {
import mx.core.*;
public class SFX_SFX_CANNON extends SoundAsset {
}
}//package objects
Section 379
//SFX_SFX_COIN (objects.SFX_SFX_COIN)
package objects {
import mx.core.*;
public class SFX_SFX_COIN extends SoundAsset {
}
}//package objects
Section 380
//SFX_SFX_DEATH (objects.SFX_SFX_DEATH)
package objects {
import mx.core.*;
public class SFX_SFX_DEATH extends SoundAsset {
}
}//package objects
Section 381
//SFX_SFX_FIREBALL (objects.SFX_SFX_FIREBALL)
package objects {
import mx.core.*;
public class SFX_SFX_FIREBALL extends SoundAsset {
}
}//package objects
Section 382
//SFX_SFX_GAMEOVER (objects.SFX_SFX_GAMEOVER)
package objects {
import mx.core.*;
public class SFX_SFX_GAMEOVER extends SoundAsset {
}
}//package objects
Section 383
//SFX_SFX_GROWL (objects.SFX_SFX_GROWL)
package objects {
import mx.core.*;
public class SFX_SFX_GROWL extends SoundAsset {
}
}//package objects
Section 384
//SFX_SFX_HURRY (objects.SFX_SFX_HURRY)
package objects {
import mx.core.*;
public class SFX_SFX_HURRY extends SoundAsset {
}
}//package objects
Section 385
//SFX_SFX_JUMP (objects.SFX_SFX_JUMP)
package objects {
import mx.core.*;
public class SFX_SFX_JUMP extends SoundAsset {
}
}//package objects
Section 386
//SFX_SFX_KICK (objects.SFX_SFX_KICK)
package objects {
import mx.core.*;
public class SFX_SFX_KICK extends SoundAsset {
}
}//package objects
Section 387
//SFX_SFX_LAKITU (objects.SFX_SFX_LAKITU)
package objects {
import mx.core.*;
public class SFX_SFX_LAKITU extends SoundAsset {
}
}//package objects
Section 388
//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 389
//SFX_SFX_LIFE (objects.SFX_SFX_LIFE)
package objects {
import mx.core.*;
public class SFX_SFX_LIFE extends SoundAsset {
}
}//package objects
Section 390
//SFX_SFX_MUS1 (objects.SFX_SFX_MUS1)
package objects {
import mx.core.*;
public class SFX_SFX_MUS1 extends SoundAsset {
}
}//package objects
Section 391
//SFX_SFX_MUS2 (objects.SFX_SFX_MUS2)
package objects {
import mx.core.*;
public class SFX_SFX_MUS2 extends SoundAsset {
}
}//package objects
Section 392
//SFX_SFX_MUS3 (objects.SFX_SFX_MUS3)
package objects {
import mx.core.*;
public class SFX_SFX_MUS3 extends SoundAsset {
}
}//package objects
Section 393
//SFX_SFX_MUS4 (objects.SFX_SFX_MUS4)
package objects {
import mx.core.*;
public class SFX_SFX_MUS4 extends SoundAsset {
}
}//package objects
Section 394
//SFX_SFX_MUS5 (objects.SFX_SFX_MUS5)
package objects {
import mx.core.*;
public class SFX_SFX_MUS5 extends SoundAsset {
}
}//package objects
Section 395
//SFX_SFX_MUS6 (objects.SFX_SFX_MUS6)
package objects {
import mx.core.*;
public class SFX_SFX_MUS6 extends SoundAsset {
}
}//package objects
Section 396
//SFX_SFX_MUS7 (objects.SFX_SFX_MUS7)
package objects {
import mx.core.*;
public class SFX_SFX_MUS7 extends SoundAsset {
}
}//package objects
Section 397
//SFX_SFX_MUS8 (objects.SFX_SFX_MUS8)
package objects {
import mx.core.*;
public class SFX_SFX_MUS8 extends SoundAsset {
}
}//package objects
Section 398
//SFX_SFX_MUS9 (objects.SFX_SFX_MUS9)
package objects {
import mx.core.*;
public class SFX_SFX_MUS9 extends SoundAsset {
}
}//package objects
Section 399
//SFX_SFX_POINTS (objects.SFX_SFX_POINTS)
package objects {
import mx.core.*;
public class SFX_SFX_POINTS extends SoundAsset {
}
}//package objects
Section 400
//SFX_SFX_POWERDOWN (objects.SFX_SFX_POWERDOWN)
package objects {
import mx.core.*;
public class SFX_SFX_POWERDOWN extends SoundAsset {
}
}//package objects
Section 401
//SFX_SFX_POWERUP (objects.SFX_SFX_POWERUP)
package objects {
import mx.core.*;
public class SFX_SFX_POWERUP extends SoundAsset {
}
}//package objects
Section 402
//SFX_SFX_SPROUT (objects.SFX_SFX_SPROUT)
package objects {
import mx.core.*;
public class SFX_SFX_SPROUT extends SoundAsset {
}
}//package objects
Section 403
//SFX_SFX_STOMP (objects.SFX_SFX_STOMP)
package objects {
import mx.core.*;
public class SFX_SFX_STOMP extends SoundAsset {
}
}//package objects
Section 404
//SFX_SFX_STOMP2 (objects.SFX_SFX_STOMP2)
package objects {
import mx.core.*;
public class SFX_SFX_STOMP2 extends SoundAsset {
}
}//package objects
Section 405
//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 406
//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 407
//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 408
//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 409
//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"));
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 = 200;
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.08);
Cloud.x = (Cloud.x - 0.12);
if (Hill.x < -(Hill.width)){
Hill.x = (Hill.x + (Hill.width + 400));
};
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 - 1));
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(4)){
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(4)) || (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 410
//TitleScreen_Keys (objects.TitleScreen_Keys)
package objects {
import mx.core.*;
public class TitleScreen_Keys extends BitmapAsset {
}
}//package objects
Section 411
//TitleScreen_Logo (objects.TitleScreen_Logo)
package objects {
import mx.core.*;
public class TitleScreen_Logo extends BitmapAsset {
}
}//package objects
Section 412
//TitleScreen_More (objects.TitleScreen_More)
package objects {
import mx.core.*;
public class TitleScreen_More extends BitmapAsset {
}
}//package objects
Section 413
//TitleScreen_Start (objects.TitleScreen_Start)
package objects {
import mx.core.*;
public class TitleScreen_Start extends BitmapAsset {
}
}//package objects
Section 414
//TitleScreen_Text1 (objects.TitleScreen_Text1)
package objects {
import mx.core.*;
public class TitleScreen_Text1 extends BitmapAsset {
}
}//package objects
Section 415
//TitleScreen_Text2 (objects.TitleScreen_Text2)
package objects {
import mx.core.*;
public class TitleScreen_Text2 extends BitmapAsset {
}
}//package objects
Section 416
//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 417
//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 418
//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 419
//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 = 171;
GFXHEAD.y = 180;
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 420
//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 88:
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 88:
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 == 200){
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