Section 1
//FlxAnim (com.adamatomic.flixel.data.FlxAnim)
package com.adamatomic.flixel.data {
public class FlxAnim {
public var delay:Number;
public var frames:Array;
public var looped:Boolean;
public var name:String;
public function FlxAnim(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Boolean=true){
name = _arg1;
delay = (1 / _arg3);
frames = _arg2;
looped = _arg4;
}
}
}//package com.adamatomic.flixel.data
Section 2
//FlxFactory (com.adamatomic.flixel.data.FlxFactory)
package com.adamatomic.flixel.data {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.text.*;
import flash.net.*;
public class FlxFactory extends MovieClip {
protected var className:String;
private var bits:Array;
private var ImgBit:Class;
private var SwfLogo:Class;
private var bmpBar:Bitmap;
private var Buffer:Sprite;
private var ImgBar:Class;
protected var myURL:String;
private var intro:MovieClip;
private var _myClient:Object;
public function FlxFactory(){
var _local1:Bitmap;
var _local3:TextFormat;
var _local4:TextField;
ImgBar = FlxFactory_ImgBar;
ImgBit = FlxFactory_ImgBit;
SwfLogo = FlxFactory_SwfLogo;
super();
stop();
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
if (((((((!((myURL == null))) && ((myURL.length > 0)))) && ((root.loaderInfo.url.indexOf(myURL) < 0)))) && ((root.loaderInfo.url.indexOf("localhost") < 0)))){
_local1 = new Bitmap(new BitmapData(stage.stageWidth, stage.stageHeight, true, 4294967295));
addChild(_local1);
_local3 = new TextFormat();
_local3.color = 0;
_local3.size = 16;
_local3.align = "center";
_local3.bold = true;
_local4 = new TextField();
_local4.width = (_local1.width - 16);
_local4.height = (_local1.height - 16);
_local4.y = 8;
_local4.multiline = true;
_local4.wordWrap = true;
_local4.defaultTextFormat = _local3;
_local4.text = "Hi there! It looks like somebody copied this game without my permission. It is meant to be played on FlashGameLicense.com only, until it gets sponsored. Thanks for your continuing interest in this game, and stay tuned!";
addChild(_local4);
_local4.addEventListener(MouseEvent.CLICK, goToMyURL);
_local1.addEventListener(MouseEvent.CLICK, goToMyURL);
return;
};
Buffer = new Sprite();
Buffer.scaleX = 2;
Buffer.scaleY = 2;
addChild(Buffer);
bmpBar = new ImgBar();
bmpBar.x = (((stage.stageWidth / Buffer.scaleX) - bmpBar.width) / 2);
bmpBar.y = (((stage.stageHeight / Buffer.scaleY) - bmpBar.height) / 2);
Buffer.addChild(bmpBar);
bits = new Array();
var _local2:uint;
while (_local2 < 9) {
_local1 = new ImgBit();
_local1.visible = false;
_local1.x = ((bmpBar.x + 2) + (_local2 * 3));
_local1.y = (bmpBar.y + 2);
bits.push(_local1);
Buffer.addChild(_local1);
_local2++;
};
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
private function onEnterFrame(_arg1:Event):void{
var _local2:int;
var _local3:uint;
graphics.clear();
if (framesLoaded == totalFrames){
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
intro = new SwfLogo();
intro.x = 30;
intro.y = 40;
this.addChild(intro);
intro.play();
removeChild(Buffer);
stage.addEventListener("INTRO_FINISHED", logoFinished);
} else {
_local3 = ((root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal) * 10);
_local2 = 0;
while ((((_local2 < _local3)) && ((_local2 < bits.length)))) {
bits[_local2].visible = true;
_local2++;
};
};
}
private function goToMyURL(_arg1:MouseEvent=null):void{
navigateToURL(new URLRequest(("http://" + myURL)));
}
public function logoFinished(_arg1:Event):void{
var _local2:int;
var _local4:Object;
stage.removeEventListener("INTRO_FINISHED", logoFinished);
removeChild(intro);
intro = null;
nextFrame();
var _local3:Class = Class(getDefinitionByName(className));
if (_local3){
_local4 = new (_local3);
addChild((_local4 as DisplayObject));
};
_local2 = (bits.length - 1);
while (_local2 >= 0) {
bits.pop();
_local2--;
};
}
}
}//package com.adamatomic.flixel.data
Section 3
//FlxFactory_ImgBar (com.adamatomic.flixel.data.FlxFactory_ImgBar)
package com.adamatomic.flixel.data {
import mx.core.*;
public class FlxFactory_ImgBar extends BitmapAsset {
}
}//package com.adamatomic.flixel.data
Section 4
//FlxFactory_ImgBit (com.adamatomic.flixel.data.FlxFactory_ImgBit)
package com.adamatomic.flixel.data {
import mx.core.*;
public class FlxFactory_ImgBit extends BitmapAsset {
}
}//package com.adamatomic.flixel.data
Section 5
//FlxFactory_SwfLogo (com.adamatomic.flixel.data.FlxFactory_SwfLogo)
package com.adamatomic.flixel.data {
import mx.core.*;
import flash.utils.*;
public class FlxFactory_SwfLogo extends MovieClipLoaderAsset {
public var dataClass:Class;
private static var bytes:ByteArray = null;
public function FlxFactory_SwfLogo(){
dataClass = FlxFactory_SwfLogo_dataClass;
super();
initialWidth = (11000 / 20);
initialHeight = (8000 / 20);
}
override public function get movieClipData():ByteArray{
if (bytes == null){
bytes = ByteArray(new dataClass());
};
return (bytes);
}
}
}//package com.adamatomic.flixel.data
Section 6
//FlxFactory_SwfLogo_dataClass (com.adamatomic.flixel.data.FlxFactory_SwfLogo_dataClass)
package com.adamatomic.flixel.data {
import mx.core.*;
public class FlxFactory_SwfLogo_dataClass extends ByteArrayAsset {
}
}//package com.adamatomic.flixel.data
Section 7
//FlxLogoPixel (com.adamatomic.flixel.data.FlxLogoPixel)
package com.adamatomic.flixel.data {
import flash.display.*;
public class FlxLogoPixel extends Sprite {
private var _curLayer:uint;
private var _layers:Array;
public function FlxLogoPixel(_arg1:int, _arg2:int, _arg3:uint, _arg4:uint, _arg5:uint){
x = _arg1;
y = _arg2;
_layers = new Array();
var _local6:Array = new Array(4294901760, 4278255360, 4278190335, 4294967040, 4278255615);
_layers.push(addChild(new Bitmap(new BitmapData(_arg3, _arg3, true, _arg5))));
var _local7:uint;
while (_local7 < _local6.length) {
_layers.push(addChild(new Bitmap(new BitmapData(_arg3, _arg3, true, _local6[_arg4]))));
++_arg4;
if (_arg4 >= _local6.length){
_arg4 = 0;
};
_local7++;
};
_curLayer = (_layers.length - 1);
}
public function update():void{
if (_curLayer == 0){
return;
};
if (_layers[_curLayer].alpha >= 0.1){
_layers[_curLayer].alpha = (_layers[_curLayer].alpha - 0.1);
} else {
_layers[_curLayer].alpha = 0;
_curLayer--;
};
}
}
}//package com.adamatomic.flixel.data
Section 8
//FlxArray (com.adamatomic.flixel.FlxArray)
package com.adamatomic.flixel {
public dynamic class FlxArray extends Array {
public function getNonexist():FlxCore{
if (this.length <= 0){
return (null);
};
var _local1:uint;
do {
if (!(this[_local1] as FlxCore).exists){
return (this[_local1]);
};
++_local1;
} while (_local1 < this.length);
return (null);
}
public function add(_arg1:Object):Object{
var _local2:uint;
while (_local2 < this.length) {
if (this[_local2] == null){
return ((this[_local2] = _arg1));
};
_local2++;
};
return (this[(this.push(_arg1) - 1)]);
}
public function remove(_arg1:Object, _arg2:Boolean=false):void{
removeAt(indexOf(_arg1), _arg2);
}
public function removeAt(_arg1:uint, _arg2:Boolean=false):void{
if (_arg2){
this.splice(_arg1, 1);
} else {
this[_arg1] = null;
};
}
public function killAt(_arg1:uint):void{
if ((this[_arg1] is FlxCore)){
this[_arg1].kill();
};
}
public function clear():void{
this.length = 0;
}
public function kill(_arg1:FlxCore):void{
killAt(indexOf(_arg1));
}
public static function getRandom(_arg1:Array):Object{
return (_arg1[Math.floor((Math.random() * _arg1.length))]);
}
}
}//package com.adamatomic.flixel
Section 9
//FlxBlock (com.adamatomic.flixel.FlxBlock)
package com.adamatomic.flixel {
import flash.display.*;
import flash.geom.*;
public class FlxBlock extends FlxCore {
private var _p:Point;
private var _pixels:BitmapData;
private var _rects:FlxArray;
private var _tileSize:uint;
public function FlxBlock(_arg1:int, _arg2:int, _arg3:uint, _arg4:uint, _arg5:Class, _arg6:uint=0){
var _local7:uint;
super();
x = _arg1;
y = _arg2;
width = _arg3;
height = _arg4;
if (_arg5 == null){
return;
};
_pixels = FlxG.addBitmap(_arg5);
_rects = new FlxArray();
_p = new Point();
_tileSize = _pixels.height;
_local7 = Math.ceil((width / _tileSize));
var _local8:uint = Math.ceil((height / _tileSize));
width = (_local7 * _tileSize);
height = (_local8 * _tileSize);
var _local9:uint = (_local7 * _local8);
var _local10:uint = (_pixels.width / _tileSize);
var _local11:uint;
while (_local11 < _local9) {
if ((Math.random() * (_local10 + _arg6)) > _arg6){
_rects.push(new Rectangle((_tileSize * Math.floor((Math.random() * _local10))), 0, _tileSize, _tileSize));
} else {
_rects.push(null);
};
_local11++;
};
}
override public function render():void{
super.render();
getScreenXY(_p);
var _local1:int = _p.x;
var _local2:uint;
while (_local2 < _rects.length) {
if (_rects[_local2] != null){
FlxG.buffer.copyPixels(_pixels, _rects[_local2], _p, null, null, true);
};
_p.x = (_p.x + _tileSize);
if (_p.x >= (_local1 + width)){
_p.x = _local1;
_p.y = (_p.y + _tileSize);
};
_local2++;
};
}
}
}//package com.adamatomic.flixel
Section 10
//FlxButton (com.adamatomic.flixel.FlxButton)
package com.adamatomic.flixel {
import flash.geom.*;
public class FlxButton extends FlxCore {
private var _onTO:Point;
private var _pressed:Boolean;
private var _onT:FlxText;
private var _callback:Function;
private var _off:FlxSprite;
private var _onToggle:Boolean;
private var _offTO:Point;
private var _offT:FlxText;
private var _on:FlxSprite;
public function FlxButton(_arg1:int, _arg2:int, _arg3:FlxSprite, _arg4:Function, _arg5:FlxSprite=null, _arg6:FlxText=null, _arg7:FlxText=null){
x = _arg1;
y = _arg2;
_off = _arg3;
if (_arg5 == null){
_on = _off;
} else {
_on = _arg5;
};
width = _off.width;
height = _off.height;
if (_arg6 != null){
_offT = _arg6;
};
if (_arg7 == null){
_onT = _offT;
} else {
_onT = _arg7;
};
if (_offT != null){
_offTO = new Point(_offT.x, _offT.y);
};
if (_onT != null){
_onTO = new Point(_onT.x, _onT.y);
};
_off.scrollFactor = scrollFactor;
_on.scrollFactor = scrollFactor;
if (_offT != null){
_offT.scrollFactor = scrollFactor;
_onT.scrollFactor = scrollFactor;
};
_callback = _arg4;
_onToggle = false;
_pressed = false;
updatePositions();
}
override public function update():void{
super.update();
if (((((!((_off == null))) && (_off.exists))) && (_off.active))){
_off.update();
};
if (((((!((_on == null))) && (_on.exists))) && (_on.active))){
_on.update();
};
if (_offT != null){
if (((((!((_offT == null))) && (_offT.exists))) && (_offT.active))){
_offT.update();
};
if (((((!((_onT == null))) && (_onT.exists))) && (_onT.active))){
_onT.update();
};
};
visibility(false);
if (_off.overlapsPoint(FlxG.mouse.x, FlxG.mouse.y)){
if (!FlxG.kMouse){
_pressed = false;
} else {
if (!_pressed){
_pressed = true;
_callback();
};
};
visibility(!(_pressed));
};
if (_onToggle){
visibility(_off.visible);
};
updatePositions();
}
private function visibility(_arg1:Boolean):void{
if (_arg1){
_off.visible = false;
if (_offT != null){
_offT.visible = false;
};
_on.visible = true;
if (_onT != null){
_onT.visible = true;
};
} else {
_on.visible = false;
if (_onT != null){
_onT.visible = false;
};
_off.visible = true;
if (_offT != null){
_offT.visible = true;
};
};
}
override public function render():void{
super.render();
if (((((!((_off == null))) && (_off.exists))) && (_off.visible))){
_off.render();
};
if (((((!((_on == null))) && (_on.exists))) && (_on.visible))){
_on.render();
};
if (_offT != null){
if (((((!((_offT == null))) && (_offT.exists))) && (_offT.visible))){
_offT.render();
};
if (((((!((_onT == null))) && (_onT.exists))) && (_onT.visible))){
_onT.render();
};
};
}
public function switchOff():void{
_onToggle = false;
}
public function on():Boolean{
return (_onToggle);
}
private function updatePositions():void{
_off.x = x;
_off.y = y;
if (_offT){
_offT.x = (_offTO.x + x);
_offT.y = (_offTO.y + y);
};
_on.x = x;
_on.y = y;
if (_onT){
_onT.x = (_onTO.x + x);
_onT.y = (_onTO.y + y);
};
}
public function switchOn():void{
_onToggle = true;
}
}
}//package com.adamatomic.flixel
Section 11
//FlxCore (com.adamatomic.flixel.FlxCore)
package com.adamatomic.flixel {
import flash.geom.*;
public class FlxCore {
private var _flicker:Boolean;
public var active:Boolean;
public var visible:Boolean;
public var width:uint;
private var _flickerTimer:Number;
public var exists:Boolean;
public var height:uint;
public var dead:Boolean;
public var x:Number;
public var y:Number;
public var scrollFactor:Point;
public function FlxCore(){
exists = true;
active = true;
visible = true;
dead = false;
x = 0;
y = 0;
width = 0;
height = 0;
scrollFactor = new Point(1, 1);
_flicker = false;
_flickerTimer = -1;
}
public function update():void{
if (flickering()){
if (_flickerTimer > 0){
_flickerTimer = (_flickerTimer - FlxG.elapsed);
};
if (_flickerTimer < 0){
flicker(-1);
} else {
_flicker = !(_flicker);
visible = !(_flicker);
};
};
}
public function flicker(_arg1:Number=1):void{
_flickerTimer = _arg1;
if (_flickerTimer < 0){
_flicker = false;
visible = true;
};
}
public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{
var _local4:Number = x;
var _local5:Number = y;
if (((!((scrollFactor.x == 1))) || (!((scrollFactor.y == 1))))){
_local4 = (_local4 - Math.floor((FlxG.scroll.x * scrollFactor.x)));
_local5 = (_local5 - Math.floor((FlxG.scroll.y * scrollFactor.y)));
};
if ((((((((_arg1 <= _local4)) || ((_arg1 >= (_local4 + width))))) || ((_arg2 <= _local5)))) || ((_arg2 >= (_local5 + height))))){
return (false);
};
return (true);
}
public function render():void{
}
public function kill():void{
exists = false;
dead = true;
}
protected function getScreenXY(_arg1:Point):void{
_arg1.x = (Math.floor(x) + Math.floor((FlxG.scroll.x * scrollFactor.x)));
_arg1.y = (Math.floor(y) + Math.floor((FlxG.scroll.y * scrollFactor.y)));
}
public function hitFloor():Boolean{
return (true);
}
public function hitCeiling():Boolean{
return (true);
}
public function overlaps(_arg1:FlxCore):Boolean{
var _local2:Number = x;
var _local3:Number = y;
if (((!((scrollFactor.x == 1))) || (!((scrollFactor.y == 1))))){
_local2 = (_local2 - Math.floor((FlxG.scroll.x * scrollFactor.x)));
_local3 = (_local3 - Math.floor((FlxG.scroll.y * scrollFactor.y)));
};
var _local4:Number = _arg1.x;
var _local5:Number = _arg1.y;
if (((!((_arg1.scrollFactor.x == 1))) || (!((_arg1.scrollFactor.y == 1))))){
_local4 = (_local4 - Math.floor((FlxG.scroll.x * _arg1.scrollFactor.x)));
_local5 = (_local5 - Math.floor((FlxG.scroll.y * _arg1.scrollFactor.y)));
};
if ((((((((_local4 <= (_local2 - _arg1.width))) || ((_local4 >= (_local2 + width))))) || ((_local5 <= (_local3 - _arg1.height))))) || ((_local5 >= (_local3 + height))))){
return (false);
};
return (true);
}
public function flickering():Boolean{
return ((_flickerTimer >= 0));
}
public function onScreen():Boolean{
var _local1:Point = new Point();
getScreenXY(_local1);
if (((((((((_local1.x + width) < 0)) || ((_local1.x > FlxG.width)))) || (((_local1.y + height) < 0)))) || ((_local1.y > FlxG.height)))){
return (false);
};
return (true);
}
public function hitWall():Boolean{
return (true);
}
public function collide(_arg1:FlxSprite):void{
if ((((Math.abs((((_arg1.x + (_arg1.width >> 1)) - x) - (width >> 1))) > ((width >> 1) + (_arg1.width >> 1)))) && ((Math.abs((((_arg1.y + (_arg1.height >> 1)) - y) - (height >> 1))) > ((height >> 1) + (_arg1.height >> 1)))))){
return;
};
var _local2:Boolean;
if ((Math.abs(_arg1.velocity.x) > Math.abs(_arg1.velocity.y))){
_local2 = false;
};
var _local3:Boolean;
var _local4:Boolean;
if (_local2){
if (_arg1.velocity.y > 0){
if (overlapsPoint((_arg1.x + (_arg1.width >> 1)), (_arg1.y + _arg1.height))){
if (_arg1.hitFloor()){
_arg1.y = (y - _arg1.height);
};
} else {
_local4 = true;
};
} else {
if (_arg1.velocity.y < 0){
if (overlapsPoint((_arg1.x + (_arg1.width >> 1)), _arg1.y)){
if (_arg1.hitCeiling()){
_arg1.y = (y + height);
};
} else {
_local4 = true;
};
};
};
if (_arg1.velocity.x < 0){
if (overlapsPoint(_arg1.x, (_arg1.y + (_arg1.height >> 1)))){
if (_arg1.hitWall()){
_arg1.x = (x + width);
};
} else {
_local3 = true;
};
} else {
if (_arg1.velocity.x > 0){
if (overlapsPoint((_arg1.x + _arg1.width), (_arg1.y + (_arg1.height >> 1)))){
if (_arg1.hitWall()){
_arg1.x = (x - _arg1.width);
};
} else {
_local3 = true;
};
};
};
} else {
if (_arg1.velocity.x < 0){
if (overlapsPoint(_arg1.x, (_arg1.y + (_arg1.height >> 1)))){
if (_arg1.hitWall()){
_arg1.x = (x + width);
};
} else {
_local3 = true;
};
} else {
if (_arg1.velocity.x > 0){
if (overlapsPoint((_arg1.x + _arg1.width), (_arg1.y + (_arg1.height >> 1)))){
if (_arg1.hitWall()){
_arg1.x = (x - _arg1.width);
};
} else {
_local3 = true;
};
};
};
if (_arg1.velocity.y > 0){
if (overlapsPoint((_arg1.x + (_arg1.width >> 1)), (_arg1.y + _arg1.height))){
if (_arg1.hitFloor()){
_arg1.y = (y - _arg1.height);
};
} else {
_local4 = true;
};
} else {
if (_arg1.velocity.y < 0){
if (overlapsPoint((_arg1.x + (_arg1.width >> 1)), _arg1.y)){
if (_arg1.hitCeiling()){
_arg1.y = (y + height);
};
} else {
_local4 = true;
};
};
};
};
if (((!(_local4)) && (!(_local3)))){
return;
};
var _local5 = (_arg1.width >> 3);
if (_local5 < 1){
_local5 = 1;
};
if (((_local4) && (_local3))){
if (_local2){
if (_local4){
if ((((((_arg1.x + _arg1.width) - _local5) > x)) && (((_arg1.x + _local5) < (x + width))))){
if ((((((((_arg1.velocity.y > 0)) && (((_arg1.y + _arg1.height) > y)))) && (((_arg1.y + _arg1.height) < (y + height))))) && (_arg1.hitFloor()))){
_arg1.y = (y - _arg1.height);
} else {
if ((((((((_arg1.velocity.y < 0)) && ((_arg1.y > y)))) && ((_arg1.y < (y + height))))) && (_arg1.hitCeiling()))){
_arg1.y = (y + height);
};
};
};
};
if (_local3){
if ((((((_arg1.y + _arg1.height) - _local5) > y)) && (((_arg1.y + _local5) < (y + height))))){
if ((((((((_arg1.velocity.x > 0)) && (((_arg1.x + _arg1.width) > x)))) && (((_arg1.x + _arg1.width) < (x + width))))) && (_arg1.hitWall()))){
_arg1.x = (x - _arg1.width);
} else {
if ((((((((_arg1.velocity.x < 0)) && ((_arg1.x > x)))) && ((_arg1.x < (x + width))))) && (_arg1.hitWall()))){
_arg1.x = (x + width);
};
};
};
};
} else {
if (_local3){
if ((((((_arg1.y + _arg1.height) - _local5) > y)) && (((_arg1.y + _local5) < (y + height))))){
if ((((((((_arg1.velocity.x > 0)) && (((_arg1.x + _arg1.width) > x)))) && (((_arg1.x + _arg1.width) < (x + width))))) && (_arg1.hitWall()))){
_arg1.x = (x - _arg1.width);
} else {
if ((((((((_arg1.velocity.x < 0)) && ((_arg1.x > x)))) && ((_arg1.x < (x + width))))) && (_arg1.hitWall()))){
_arg1.x = (x + width);
};
};
};
};
if (_local4){
if ((((((_arg1.x + _arg1.width) - _local5) > x)) && (((_arg1.x + _local5) < (x + width))))){
if ((((((((_arg1.velocity.y > 0)) && (((_arg1.y + _arg1.height) > y)))) && (((_arg1.y + _arg1.height) < (y + height))))) && (_arg1.hitFloor()))){
_arg1.y = (y - _arg1.height);
} else {
if ((((((((_arg1.velocity.y < 0)) && ((_arg1.y > y)))) && ((_arg1.y < (y + height))))) && (_arg1.hitCeiling()))){
_arg1.y = (y + height);
};
};
};
};
};
} else {
if (_local4){
if ((((((_arg1.x + _arg1.width) - _local5) > x)) && (((_arg1.x + _local5) < (x + width))))){
if ((((((((_arg1.velocity.y > 0)) && (((_arg1.y + _arg1.height) > y)))) && (((_arg1.y + _arg1.height) < (y + height))))) && (_arg1.hitFloor()))){
_arg1.y = (y - _arg1.height);
} else {
if ((((((((_arg1.velocity.y < 0)) && ((_arg1.y > y)))) && ((_arg1.y < (y + height))))) && (_arg1.hitCeiling()))){
_arg1.y = (y + height);
};
};
};
} else {
if (_local3){
if ((((((_arg1.y + _arg1.height) - _local5) > y)) && (((_arg1.y + _local5) < (y + height))))){
if ((((((((_arg1.velocity.x > 0)) && (((_arg1.x + _arg1.width) > x)))) && (((_arg1.x + _arg1.width) < (x + width))))) && (_arg1.hitWall()))){
_arg1.x = (x - _arg1.width);
} else {
if ((((((((_arg1.velocity.x < 0)) && ((_arg1.x > x)))) && ((_arg1.x < (x + width))))) && (_arg1.hitWall()))){
_arg1.x = (x + width);
};
};
};
};
};
};
}
}
}//package com.adamatomic.flixel
Section 12
//FlxEmitter (com.adamatomic.flixel.FlxEmitter)
package com.adamatomic.flixel {
import flash.geom.*;
public class FlxEmitter extends FlxCore {
public var maxVelocity:Point;
private var _maxRotation:Number;
private var _delay:Number;
private var _sprites:FlxArray;
private var _gravity:Number;
private var _minRotation:Number;
private var _drag:Number;
private var _particle:uint;
private var _timer:Number;
public var minVelocity:Point;
public function FlxEmitter(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:uint, _arg5:FlxArray=null, _arg6:Number=-1, _arg7:Number=-100, _arg8:Number=100, _arg9:Number=-100, _arg10:Number=100, _arg11:Number=-360, _arg12:Number=360, _arg13:Number=500, _arg14:Number=0, _arg15:Class=null, _arg16:uint=0, _arg17:Boolean=false, _arg18:FlxLayer=null){
var _local19:uint;
super();
visible = false;
x = _arg1;
y = _arg2;
width = _arg3;
height = _arg4;
minVelocity = new Point(_arg7, _arg9);
maxVelocity = new Point(_arg8, _arg10);
_minRotation = _arg11;
_maxRotation = _arg12;
_gravity = _arg13;
_drag = _arg14;
_delay = _arg6;
if (_arg15 != null){
_sprites = new FlxArray();
_local19 = 0;
while (_local19 < _arg16) {
if (_arg17){
(_sprites.add(new FlxSprite(_arg15, 0, 0, true)) as FlxSprite).randomFrame();
} else {
_sprites.add(new FlxSprite(_arg15));
};
_local19++;
};
_local19 = 0;
while (_local19 < _sprites.length) {
if (_arg18 == null){
FlxG.state.add(_sprites[_local19]);
} else {
_arg18.add(_sprites[_local19]);
};
_local19++;
};
} else {
_sprites = _arg5;
};
kill();
if (_delay > 0){
reset();
};
}
public function emit():void{
var _local1:FlxSprite = _sprites[_particle];
_local1.exists = true;
_local1.x = (x - (_local1.width >> 1));
if (width != 0){
_local1.x = (_local1.x + (Math.random() * width));
};
_local1.y = (y - (_local1.height >> 1));
if (height != 0){
_local1.y = (_local1.y + (Math.random() * height));
};
_local1.velocity.x = minVelocity.x;
if (minVelocity.x != maxVelocity.x){
_local1.velocity.x = (_local1.velocity.x + (Math.random() * (maxVelocity.x - minVelocity.x)));
};
_local1.velocity.y = minVelocity.y;
if (minVelocity.y != maxVelocity.y){
_local1.velocity.y = (_local1.velocity.y + (Math.random() * (maxVelocity.y - minVelocity.y)));
};
_local1.acceleration.y = _gravity;
_local1.angularVelocity = _minRotation;
if (_minRotation != _maxRotation){
_local1.angularVelocity = (_local1.angularVelocity + (Math.random() * (_maxRotation - _minRotation)));
};
if (_local1.angularVelocity != 0){
_local1.angle = ((Math.random() * 360) - 180);
};
_local1.drag.x = _drag;
_local1.drag.y = _drag;
_particle++;
if (_particle >= _sprites.length){
_particle = 0;
};
_local1.onEmit();
}
override public function update():void{
var _local1:uint;
_timer = (_timer + FlxG.elapsed);
if (_delay < 0){
if (_timer > -(_delay)){
kill();
return;
};
if (!_sprites[0].exists){
_local1 = 0;
while (_local1 < _sprites.length) {
emit();
_local1++;
};
};
return;
};
while (_timer > _delay) {
_timer = (_timer - _delay);
emit();
};
}
override public function kill():void{
active = false;
var _local1:uint;
while (_local1 < _sprites.length) {
_sprites[_local1].exists = false;
_local1++;
};
}
public function reset():void{
active = true;
_timer = 0;
_particle = 0;
}
}
}//package com.adamatomic.flixel
Section 13
//FlxG (com.adamatomic.flixel.FlxG)
package com.adamatomic.flixel {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
public class FlxG {
public static const LEFT:uint = 0;
public static const A:uint = 4;
public static const B:uint = 5;
public static const MOUSE:uint = 6;
public static const UP:uint = 2;
public static const DOWN:uint = 3;
public static const RIGHT:uint = 1;
public static var kMouse:Boolean;
public static var kLeft:Boolean;
public static var scores:FlxArray;
private static var _music:Sound;
public static var height:uint;
public static var kB:Boolean;
private static var _volume:Number;
public static var kA:Boolean;
public static var buffer:BitmapData;
private static var _fade:Function;
public static var kUp:Boolean;
public static var levels:FlxArray;
public static var kRight:Boolean;
private static var _muted:uint;
private static var _musicPosition:Number;
private static var _oldKeys:Array;
private static var _cache:Object;
public static var level:uint;
public static var state:FlxState;
public static var score:uint;
private static var _log:Function;
private static var _scrollTarget:Point;
public static var elapsed:Number;
public static var mouse:Point;
public static var followTarget:FlxCore;
public static var kDown:Boolean;
public static var followLead:Point;
public static var width:uint;
public static var followLerp:Number;
public static var scroll:Point;
private static var _keys:Array;
private static var _setCursor:Function;
private static var _quake:Function;
private static var _musicVolume:Number;
public static var followMin:Point;
private static var _flash:Function;
public static var followMax:Point;
private static var _masterVolume:Number;
private static var _musicChannel:SoundChannel;
private static var _switchState:Function;
public static function getVolume():Number{
return (_volume);
}
public static function collideArrays(_arg1:FlxArray, _arg2:FlxArray):void{
var _local3:uint;
var _local4:uint;
var _local5:FlxCore;
var _local6:FlxSprite;
if (_arg1 === _arg2){
_local3 = 0;
while (_local3 < _arg1.length) {
_local5 = _arg1[_local3];
if ((((((_local5 == null)) || (!(_local5.exists)))) || (_local5.dead))){
} else {
_local4 = (_local3 + 1);
while (_local4 < _arg2.length) {
_local6 = _arg2[_local4];
if ((((((_local6 == null)) || (!(_local6.exists)))) || (_local6.dead))){
} else {
_local5.collide(_local6);
};
_local4++;
};
};
_local3++;
};
} else {
_local3 = 0;
while (_local3 < _arg1.length) {
_local5 = _arg1[_local3];
if ((((((_local5 == null)) || (!(_local5.exists)))) || (_local5.dead))){
} else {
_local4 = 0;
while (_local4 < _arg2.length) {
_local6 = _arg2[_local4];
if ((((((((_local5 === _local6)) || ((_local6 == null)))) || (!(_local6.exists)))) || (_local6.dead))){
} else {
_local5.collide(_local6);
};
_local4++;
};
};
_local3++;
};
};
}
public static function setVolume(_arg1:Number):void{
_volume = _arg1;
adjustMusicVolume();
}
public static function getAngle(_arg1:Number, _arg2:Number):Number{
return (((Math.atan2(_arg2, _arg1) * 180) / Math.PI));
}
static function doFollow():void{
if (followTarget != null){
if (((followTarget.exists) && (!(followTarget.dead)))){
_scrollTarget.x = (((width >> 1) - followTarget.x) - (followTarget.width >> 1));
_scrollTarget.y = (((height >> 1) - followTarget.y) - (followTarget.height >> 1));
if (((!((followLead == null))) && ((followTarget is FlxSprite)))){
_scrollTarget.x = (_scrollTarget.x - ((followTarget as FlxSprite).velocity.x * followLead.x));
_scrollTarget.y = (_scrollTarget.y - ((followTarget as FlxSprite).velocity.y * followLead.y));
};
};
scroll.x = (scroll.x + (((_scrollTarget.x - scroll.x) * followLerp) * FlxG.elapsed));
scroll.y = (scroll.y + (((_scrollTarget.y - scroll.y) * followLerp) * FlxG.elapsed));
if (followMin != null){
if (scroll.x > followMin.x){
scroll.x = followMin.x;
};
if (scroll.y > followMin.y){
scroll.y = followMin.y;
};
};
if (followMax != null){
if (scroll.x < followMax.x){
scroll.x = followMax.x;
};
if (scroll.y < followMax.y){
scroll.y = followMax.y;
};
};
};
}
public static function addBitmap(_arg1:Class, _arg2:Boolean=false):BitmapData{
var _local6:BitmapData;
var _local7:Matrix;
var _local3:Boolean;
var _local4:String = String(_arg1);
if ((((_cache[_local4] == undefined)) || ((_cache[_local4] == null)))){
_cache[_local4] = new (_arg1).bitmapData;
if (_arg2){
_local3 = true;
};
};
var _local5:BitmapData = _cache[_local4];
if (((((!(_local3)) && (_arg2))) && ((_local5.width == new (_arg1).bitmapData.width)))){
_local3 = true;
};
if (_local3){
_local6 = new BitmapData((_local5.width << 1), _local5.height, true, 0);
_local6.draw(_local5);
_local7 = new Matrix();
_local7.scale(-1, 1);
_local7.translate(_local6.width, 0);
_local6.draw(_local5, _local7);
_local5 = _local6;
};
return (_local5);
}
public static function pressed(_arg1:uint):Boolean{
return ((_keys[_arg1] > 0));
}
public static function play(_arg1:Class, _arg2:Number=1):void{
new (_arg1).play(0, 0, new SoundTransform((((_arg2 * _muted) * _volume) * _masterVolume)));
}
public static function computeVelocity(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=10000):Number{
var _local5:Number;
if (_arg2 != 0){
_arg1 = (_arg1 + (_arg2 * FlxG.elapsed));
} else {
if (_arg3 != 0){
_local5 = (_arg3 * FlxG.elapsed);
if ((_arg1 - _local5) > 0){
_arg1 = (_arg1 - _local5);
} else {
if ((_arg1 + _local5) < 0){
_arg1 = (_arg1 + _local5);
} else {
_arg1 = 0;
};
};
};
};
if (((!((_arg1 == 0))) && (!((_arg4 == 10000))))){
if (_arg1 > _arg4){
_arg1 = _arg4;
} else {
if (_arg1 < -(_arg4)){
_arg1 = -(_arg4);
};
};
};
return (_arg1);
}
static function setGameData(_arg1:uint, _arg2:uint, _arg3:Function, _arg4:Function, _arg5:Function, _arg6:Function, _arg7:Function, _arg8:Function):void{
_cache = new Object();
width = _arg1;
height = _arg2;
_muted = 1;
_volume = 1;
_musicVolume = 1;
_masterVolume = 0.5;
_musicPosition = -1;
mouse = new Point();
_switchState = _arg3;
_log = _arg4;
_quake = _arg5;
_flash = _arg6;
_fade = _arg7;
_setCursor = _arg8;
unfollow();
_keys = new Array();
_oldKeys = new Array();
var _local9:uint;
while (_local9 < 7) {
_keys.push(0);
_oldKeys.push(0);
_local9++;
};
FlxG.levels = new FlxArray();
FlxG.scores = new FlxArray();
level = 0;
score = 0;
}
public static function stopMusic():void{
_musicPosition = 0;
if (_musicChannel != null){
_musicChannel.stop();
_musicChannel = null;
};
}
public static function justReleased(_arg1:uint):Boolean{
return ((_keys[_arg1] == -1));
}
public static function playMusic():void{
if (_musicPosition < 0){
return;
};
if (_musicPosition == 0){
if (_musicChannel == null){
_musicChannel = _music.play(0, 9999, new SoundTransform((((_muted * _volume) * _musicVolume) * _masterVolume)));
};
} else {
_musicChannel = _music.play(_musicPosition, 0, new SoundTransform((((_muted * _volume) * _musicVolume) * _masterVolume)));
_musicChannel.addEventListener(Event.SOUND_COMPLETE, loopMusic);
};
_musicPosition = 0;
}
public static function createBitmap(_arg1:uint, _arg2:uint, _arg3:uint):BitmapData{
var _local4:String = ((((_arg1 + "x") + _arg2) + ":") + _arg3);
if ((((_cache[_local4] == undefined)) || ((_cache[_local4] == null)))){
_cache[_local4] = new BitmapData(_arg1, _arg2, true, _arg3);
};
return (_cache[_local4]);
}
public static function log(_arg1:String):void{
_log(_arg1);
}
static function pressKey(_arg1:uint):void{
if (_keys[_arg1] > 0){
_keys[_arg1] = 1;
} else {
_keys[_arg1] = 2;
};
}
public static function setCursor(_arg1:Class):void{
_setCursor(_arg1);
}
public static function overlapArray(_arg1:FlxArray, _arg2:FlxCore, _arg3:Function):Boolean{
var _local4:Boolean;
var _local5:FlxCore;
if ((((((_arg2 == null)) || (!(_arg2.exists)))) || (_arg2.dead))){
return (_local4);
};
var _local6:uint;
while (_local6 < _arg1.length) {
_local5 = _arg1[_local6];
if ((((((((_local5 === _arg2)) || ((_local5 == null)))) || (!(_local5.exists)))) || (_local5.dead))){
} else {
if (_local5.overlaps(_arg2)){
_arg3(_local5, _arg2);
_local4 = true;
};
};
_local6++;
};
return (_local4);
}
static function updateKeys():void{
var _local1:uint;
while (_local1 < 7) {
if ((((_oldKeys[_local1] == -1)) && ((_keys[_local1] == -1)))){
_keys[_local1] = 0;
} else {
if ((((_oldKeys[_local1] == 2)) && ((_keys[_local1] == 2)))){
_keys[_local1] = 1;
};
};
_oldKeys[_local1] = _keys[_local1];
_local1++;
};
mouse.x = (state.mouseX - scroll.x);
mouse.y = (state.mouseY - scroll.y);
}
public static function overlapArrays(_arg1:FlxArray, _arg2:FlxArray, _arg3:Function):void{
var _local4:uint;
var _local5:uint;
var _local6:FlxCore;
var _local7:FlxCore;
if (_arg1 === _arg2){
_local4 = 0;
while (_local4 < _arg1.length) {
_local6 = _arg1[_local4];
if ((((((_local6 == null)) || (!(_local6.exists)))) || (_local6.dead))){
} else {
_local5 = (_local4 + 1);
while (_local5 < _arg2.length) {
_local7 = _arg2[_local5];
if ((((((_local7 == null)) || (!(_local7.exists)))) || (_local7.dead))){
} else {
if (_local6.overlaps(_local7)){
_arg3(_local6, _local7);
};
};
_local5++;
};
};
_local4++;
};
} else {
_local4 = 0;
while (_local4 < _arg1.length) {
_local6 = _arg1[_local4];
if ((((((_local6 == null)) || (!(_local6.exists)))) || (_local6.dead))){
} else {
_local5 = 0;
while (_local5 < _arg2.length) {
_local7 = _arg2[_local5];
if ((((((((_local6 === _local7)) || ((_local7 == null)))) || (!(_local7.exists)))) || (_local7.dead))){
} else {
if (_local6.overlaps(_local7)){
_arg3(_local6, _local7);
};
};
_local5++;
};
};
_local4++;
};
};
}
public static function getMusicVolume():Number{
return (_musicVolume);
}
static function unfollow():void{
followTarget = null;
followLead = null;
followLerp = 1;
followMin = null;
followMax = null;
scroll = new Point();
_scrollTarget = new Point();
}
public static function getMute():Boolean{
if (_muted == 0){
return (true);
};
return (false);
}
public static function justPressed(_arg1:uint):Boolean{
return ((_keys[_arg1] == 2));
}
private static function adjustMusicVolume():void{
if (_muted < 0){
_muted = 0;
} else {
if (_muted > 1){
_muted = 1;
};
};
if (_volume < 0){
_volume = 0;
} else {
if (_volume > 1){
_volume = 1;
};
};
if (_musicVolume < 0){
_musicVolume = 0;
} else {
if (_musicVolume > 1){
_musicVolume = 1;
};
};
if (_masterVolume < 0){
_masterVolume = 0;
} else {
if (_masterVolume > 1){
_masterVolume = 1;
};
};
if (_musicChannel != null){
_musicChannel.soundTransform = new SoundTransform((((_muted * _volume) * _musicVolume) * _masterVolume));
};
}
static function getMasterVolume():Number{
return (_masterVolume);
}
public static function followAdjust(_arg1:Number=0, _arg2:Number=0):void{
followLead = new Point(_arg1, _arg2);
}
public static function setMute(_arg1:Boolean):void{
if (_arg1){
_muted = 0;
} else {
_muted = 1;
};
adjustMusicVolume();
}
public static function follow(_arg1:FlxCore, _arg2:Number=1):void{
followTarget = _arg1;
followLerp = _arg2;
scroll.x = (_scrollTarget.x = (((width >> 1) - followTarget.x) - (followTarget.width >> 1)));
scroll.y = (_scrollTarget.y = (((height >> 1) - followTarget.y) - (followTarget.height >> 1)));
}
public static function fade(_arg1:uint, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{
_fade(_arg1, _arg2, _arg3, _arg4);
}
public static function collideArray(_arg1:FlxArray, _arg2:FlxSprite):void{
var _local3:FlxCore;
if ((((((_arg2 == null)) || (!(_arg2.exists)))) || (_arg2.dead))){
return;
};
var _local4:uint;
while (_local4 < _arg1.length) {
_local3 = _arg1[_local4];
if ((((((((_local3 === _arg2)) || ((_local3 == null)))) || (!(_local3.exists)))) || (_local3.dead))){
} else {
_local3.collide(_arg2);
};
_local4++;
};
}
public static function switchState(_arg1:Class):void{
_switchState(_arg1);
}
public static function openURL(_arg1:String):void{
navigateToURL(new URLRequest(_arg1));
}
static function setMasterVolume(_arg1:Number):void{
_masterVolume = _arg1;
adjustMusicVolume();
}
public static function pauseMusic():void{
if (_musicChannel == null){
_musicPosition = -1;
return;
};
_musicPosition = _musicChannel.position;
_musicChannel.stop();
while (_musicPosition >= _music.length) {
_musicPosition = (_musicPosition - _music.length);
};
_musicChannel = null;
}
public static function followBounds(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0):void{
followMin = new Point(-(_arg1), -(_arg2));
followMax = new Point((-(_arg3) + width), (-(_arg4) + height));
if (followMax.x > followMin.x){
followMax.x = followMin.x;
};
if (followMax.y > followMin.y){
followMax.y = followMin.y;
};
}
public static function collideArray2(_arg1:FlxCore, _arg2:FlxArray):void{
var _local3:FlxSprite;
if ((((((_arg1 == null)) || (!(_arg1.exists)))) || (_arg1.dead))){
return;
};
var _local4:uint;
while (_local4 < _arg2.length) {
_local3 = _arg2[_local4];
if ((((((((_arg1 === _local3)) || ((_local3 == null)))) || (!(_local3.exists)))) || (_local3.dead))){
} else {
_arg1.collide(_local3);
};
_local4++;
};
}
public static function setMusicVolume(_arg1:Number):void{
_musicVolume = _arg1;
adjustMusicVolume();
}
public static function setMusic(_arg1:Class, _arg2:Number=1, _arg3:Boolean=true):void{
stopMusic();
_music = new (_arg1);
_musicVolume = _arg2;
if (_arg3){
playMusic();
};
}
static function releaseKey(_arg1:uint):void{
if (_keys[_arg1] > 0){
_keys[_arg1] = -1;
} else {
_keys[_arg1] = 0;
};
}
private static function loopMusic(_arg1:Event=null):void{
if (_musicChannel == null){
return;
};
_musicChannel.removeEventListener(Event.SOUND_COMPLETE, loopMusic);
_musicChannel = null;
playMusic();
}
public static function resetKeys():void{
kUp = (kDown = (kLeft = (kRight = (kA = (kB = (kMouse = false))))));
var _local1:uint;
while (_local1 < _keys.length) {
_keys[_local1] = 0;
_local1++;
};
}
public static function quake(_arg1:Number, _arg2:Number=0.5):void{
_quake(_arg1, _arg2);
}
public static function flash(_arg1:uint, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{
_flash(_arg1, _arg2, _arg3, _arg4);
}
public static function rotatePoint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number):Point{
var _local6:Number = ((-(_arg5) / 180) * Math.PI);
var _local7:Number = (_arg1 - _arg3);
var _local8:Number = (_arg4 - _arg2);
return (new Point(((_arg3 + (Math.cos(_local6) * _local7)) - (Math.sin(_local6) * _local8)), (_arg4 - ((Math.sin(_local6) * _local7) + (Math.cos(_local6) * _local8)))));
}
}
}//package com.adamatomic.flixel
Section 14
//FlxGame (com.adamatomic.flixel.FlxGame)
package com.adamatomic.flixel {
import flash.events.*;
import flash.display.*;
import flash.geom.*;
import flash.text.*;
import com.adamatomic.flixel.data.*;
import flash.media.*;
import flash.utils.*;
import flash.ui.*;
public class FlxGame extends Sprite {
private const MAX_CONSOLE_LINES:uint = 0x0100;
private const MAX_ELAPSED:Number = 0.0333;
private var _bmpFront:Bitmap;
private var ImgKeyC:Class;
private var _FPS:Array;
private var _flashDelay:Number;
private var ImgKeyMinus:Class;
private var SndBeep:Class;
private var _console:Sprite;
private var _flashHelper:Number;
private var ImgKeyX:Class;
private var _logoFade:Bitmap;
private var _help:Array;
private var _consoleYT:Number;
private var _quakeIntensity:Number;
private var _elapsed:Number;
private var _consoleY:Number;
private var _flipped:Boolean;
private var _total:uint;
private var _soundTrayBars:Array;
private var junk:String;// = "FlxGame_junk"
private var ImgKeyMouse:Class;
private var _flashComplete:Function;
private var _paused:Boolean;
private var _focusPopup:Sprite;
private var _quakeTimer:Number;
private var _fade:Bitmap;
private var _fc:uint;
private var _buffer:Sprite;
private var _poweredBy:Bitmap;
private var _consoleText:TextField;
private var _fSound:Class;
private var _soundTray:Sprite;
private var _frame:Class;
private var _cursor:Bitmap;
private var ImgKeyPlus:Class;
private var ImgPoweredBy:Class;
private var _soundTrayTimer:Number;
private var SndFlixel:Class;
private var _gy:int;
private var _fpsUpdate:Boolean;
private var _gx:int;
private var _curState:FlxState;
private var ImgKeysArrows:Class;
private var _showLogo:Boolean;
private var _curFPS:uint;
private var _created:Boolean;
private var _focusField:TextField;
private var _consoleFPS:TextField;
private var _fadeComplete:Function;
private var _iState:Class;
private var _bmpBack:Bitmap;
private var _consoleLines:Array;
private var _logoTimer:Number;
private var _quakeLength:Number;
private var _logoComplete:Boolean;
private var _f:FlxArray;
private var _fadeHelper:Number;
private var _fadeDelay:Number;
private var ImgKey0:Class;
private var ImgKey1:Class;
private var _flash:Bitmap;
private var _z:uint;
private var _bgc:Number;
public function FlxGame(_arg1:uint, _arg2:uint, _arg3:Class, _arg4:uint=2, _arg5:Number=4278190080, _arg6:Boolean=true, _arg7:Number=4294967295, _arg8:Class=null, _arg9:Class=null, _arg10:uint=0, _arg11:uint=0){
ImgPoweredBy = FlxGame_ImgPoweredBy;
ImgKeyX = FlxGame_ImgKeyX;
ImgKeyC = FlxGame_ImgKeyC;
ImgKeyMouse = FlxGame_ImgKeyMouse;
ImgKeysArrows = FlxGame_ImgKeysArrows;
ImgKeyMinus = FlxGame_ImgKeyMinus;
ImgKeyPlus = FlxGame_ImgKeyPlus;
ImgKey0 = FlxGame_ImgKey0;
ImgKey1 = FlxGame_ImgKey1;
SndBeep = FlxGame_SndBeep;
SndFlixel = FlxGame_SndFlixel;
super();
_z = _arg4;
_gx = _arg10;
_gy = _arg11;
_bgc = _arg5;
_fc = _arg7;
FlxG.setGameData(_arg1, _arg2, switchState, log, quake, flash, fade, setCursor);
_created = false;
addEventListener(Event.ENTER_FRAME, onEnterFrame);
_elapsed = 0;
_total = 0;
_fpsUpdate = true;
Mouse.hide();
_logoComplete = false;
_f = null;
_quakeTimer = 0;
_quakeIntensity = 0;
_quakeLength = 0;
if (_arg8 == null){
_fSound = SndFlixel;
} else {
_fSound = _arg8;
};
_curState = null;
_frame = _arg9;
_iState = _arg3;
_FPS = new Array(8);
_curFPS = 0;
_paused = false;
_help = new Array();
_help.push("A Button");
_help.push("B Button");
_help.push("Mouse");
_help.push("Move");
_showLogo = _arg6;
}
private function onFocus(_arg1:Event=null):void{
Mouse.hide();
_focusPopup.visible = false;
FlxG.resetKeys();
_paused = false;
FlxG.playMusic();
}
private function log(_arg1:String):void{
var _local2:String;
var _local3:uint;
if (_arg1 == null){
_arg1 = "ERROR: NULL GAME LOG MESSAGE";
};
if (_console == null){
trace(_arg1);
return;
};
_consoleLines.push(_arg1);
if (_consoleLines.length > MAX_CONSOLE_LINES){
_consoleLines.shift();
_local2 = "";
_local3 = 0;
while (_local3 < _consoleLines.length) {
_local2 = (_local2 + (_consoleLines[_local3] + "\n"));
_local3++;
};
_consoleText.text = _local2;
} else {
_consoleText.appendText((_arg1 + "\n"));
};
_consoleText.scrollV = _consoleText.height;
}
private function setCursor(_arg1:Class):void{
if (_cursor != null){
_buffer.removeChild(_cursor);
};
_cursor = (_buffer.addChild(new (_arg1)) as Bitmap);
}
protected function help(_arg1:String=null, _arg2:String=null, _arg3:String=null, _arg4:String=null):void{
if (_arg1 != null){
_help[0] = _arg1;
};
if (_arg2 != null){
_help[1] = _arg2;
};
if (_arg3 != null){
_help[2] = _arg3;
};
if (_arg4 != null){
_help[3] = _arg4;
};
}
private function toggleConsole():void{
if (_consoleYT == (_gy * _z)){
_consoleYT = ((_gy * _z) - (FlxG.height * _z));
} else {
_consoleYT = (_gy * _z);
_console.visible = true;
};
}
private function showSoundTray():void{
FlxG.play(SndBeep);
_soundTrayTimer = 1;
_soundTray.y = (_gy * _z);
_soundTray.visible = true;
var _local1:uint = Math.round((FlxG.getMasterVolume() * 10));
if (FlxG.getMute()){
_local1 = 0;
};
var _local2:uint;
while (_local2 < _soundTrayBars.length) {
if (_local2 < _local1){
_soundTrayBars[_local2].alpha = 1;
} else {
_soundTrayBars[_local2].alpha = 0.5;
};
_local2++;
};
}
private function fade(_arg1:uint, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{
if (_arg1 == 0){
_fade.visible = false;
return;
};
if (((!(_arg4)) && (_fade.visible))){
return;
};
_fade.bitmapData.fillRect(new Rectangle(0, 0, _fade.width, _fade.height), _arg1);
_fadeDelay = _arg2;
_fadeComplete = _arg3;
_fadeHelper = 0;
_fade.alpha = 0;
_fade.visible = true;
}
private function onMouseUp(_arg1:MouseEvent):void{
FlxG.kMouse = false;
FlxG.releaseKey(6);
}
private function onKeyUp(_arg1:KeyboardEvent):void{
var _local3:uint;
var _local4:uint;
var _local5:Bitmap;
var _local2:String = String.fromCharCode(_arg1.charCode);
if (_arg1.keyCode == 37){
FlxG.kLeft = false;
FlxG.releaseKey(0);
} else {
if (_arg1.keyCode == 39){
FlxG.kRight = false;
FlxG.releaseKey(1);
} else {
if (_arg1.keyCode == 38){
FlxG.kUp = false;
FlxG.releaseKey(2);
} else {
if (_arg1.keyCode == 40){
FlxG.kDown = false;
FlxG.releaseKey(3);
} else {
if ((((((_local2 == "x")) || ((_local2 == "X")))) || ((_arg1.keyCode == Keyboard.TAB)))){
FlxG.kA = false;
FlxG.releaseKey(4);
} else {
if ((((((_local2 == "c")) || ((_local2 == "C")))) || ((_arg1.keyCode == Keyboard.SPACE)))){
FlxG.kB = false;
FlxG.releaseKey(5);
} else {
if ((((_local2 == "0")) || ((_local2 == ")")))){
FlxG.setMute(!(FlxG.getMute()));
showSoundTray();
} else {
if ((((_local2 == "-")) || ((_local2 == "_")))){
FlxG.setMute(false);
FlxG.setMasterVolume((FlxG.getMasterVolume() - 0.1));
showSoundTray();
} else {
if ((((_local2 == "+")) || ((_local2 == "=")))){
FlxG.setMute(false);
FlxG.setMasterVolume((FlxG.getMasterVolume() + 0.1));
showSoundTray();
} else {
if ((((((((_local2 == "1")) || ((_local2 == "!")))) || ((_local2 == "~")))) || ((_local2 == "`")))){
toggleConsole();
} else {
if (_arg1.keyCode == Keyboard.ESCAPE){
stage.displayState = "fullScreen";
_local3 = (FlxG.width * _z);
_local4 = (FlxG.height * _z);
if (_frame != null){
_local5 = new _frame();
_local3 = (_local5.width * _z);
_local4 = (_local5.height * _z);
};
x = ((stage.fullScreenWidth - _local3) / 2);
y = ((stage.fullScreenHeight - _local4) / 2);
};
};
};
};
};
};
};
};
};
};
};
}
private function onEnterFrame(_arg1:Event):void{
var _local2:uint;
var _local4:uint;
var _local5:Bitmap;
var _local6:uint;
var _local7:uint;
var _local8:int;
var _local9:int;
var _local10:ColorTransform;
var _local11:TextField;
var _local12:Bitmap;
var _local13:uint;
var _local14:uint;
var _local15:Bitmap;
var _local3:uint = getTimer();
_elapsed = ((_local3 - _total) / 1000);
_total = _local3;
FlxG.elapsed = _elapsed;
if (FlxG.elapsed > MAX_ELAPSED){
FlxG.elapsed = MAX_ELAPSED;
};
if (_logoComplete){
if (_soundTrayTimer > 0){
_soundTrayTimer = (_soundTrayTimer - _elapsed);
} else {
if (_soundTray.y > -(_soundTray.height)){
_soundTray.y = (_soundTray.y - ((_elapsed * FlxG.height) * 2));
if (_soundTray.y < -(_soundTray.height)){
_soundTray.visible = false;
};
};
};
if (_console.visible){
_FPS[_curFPS] = (1 / _elapsed);
if (++_curFPS >= _FPS.length){
_curFPS = 0;
};
_fpsUpdate = !(_fpsUpdate);
if (_fpsUpdate){
_local4 = 0;
_local2 = 0;
while (_local2 < _FPS.length) {
_local4 = (_local4 + _FPS[_local2]);
_local2++;
};
_consoleFPS.text = (Math.floor((_local4 / _FPS.length)) + " fps");
};
};
if (_consoleY < _consoleYT){
_consoleY = (_consoleY + ((FlxG.height * 10) * _elapsed));
} else {
if (_consoleY > _consoleYT){
_consoleY = (_consoleY - ((FlxG.height * 10) * _elapsed));
};
};
if (_consoleY > (_gy * _z)){
_consoleY = (_gy * _z);
} else {
if (_consoleY < ((_gy * _z) - (FlxG.height * _z))){
_consoleY = ((_gy * _z) - (FlxG.height * _z));
_console.visible = false;
};
};
_console.y = Math.floor(_consoleY);
if (!_paused){
FlxG.updateKeys();
if (_cursor != null){
_cursor.x = (FlxG.mouse.x + FlxG.scroll.x);
_cursor.y = (FlxG.mouse.y + FlxG.scroll.y);
};
FlxG.doFollow();
_curState.update();
if (_quakeTimer > 0){
_quakeTimer = (_quakeTimer + _elapsed);
if (_quakeTimer > _quakeLength){
_quakeTimer = 0;
_buffer.x = 0;
_buffer.y = 0;
} else {
_buffer.x = (((((Math.random() * _quakeIntensity) * FlxG.width) * 2) - (_quakeIntensity * FlxG.width)) * _z);
_buffer.y = (((((Math.random() * _quakeIntensity) * FlxG.height) * 2) - (_quakeIntensity * FlxG.height)) * _z);
};
};
if (_flash.visible){
_flashHelper = (_flashHelper - (_elapsed / _flashDelay));
_flash.alpha = _flashHelper;
if (_flash.alpha <= 0){
_flash.visible = false;
if (_flashComplete != null){
_flashComplete();
};
};
};
if (((_fade.visible) && (!((_fade.alpha == 1))))){
_fadeHelper = (_fadeHelper + (_elapsed / _fadeDelay));
_fade.alpha = _fadeHelper;
if (_fade.alpha >= 1){
_fade.alpha = 1;
if (_fadeComplete != null){
_fadeComplete();
};
};
};
if (_flipped){
_bmpFront.bitmapData.fillRect(new Rectangle(0, 0, _bmpFront.width, _bmpFront.height), _bgc);
FlxG.buffer = _bmpFront.bitmapData;
} else {
_bmpBack.bitmapData.fillRect(new Rectangle(0, 0, _bmpBack.width, _bmpBack.height), _bgc);
FlxG.buffer = _bmpBack.bitmapData;
};
_curState.render();
_bmpBack.visible = !((_bmpFront.visible = _flipped));
_flipped = !(_flipped);
};
} else {
if (_created){
if (!_showLogo){
_logoComplete = true;
switchState(_iState);
} else {
if (_f == null){
_f = new FlxArray();
_local6 = 1;
if (FlxG.height > 200){
_local6 = 2;
};
_local7 = (32 * _local6);
_local8 = (((FlxG.height * _z) / 2) - (_local7 * 2));
_local9 = (((FlxG.width * _z) / 2) - _local7);
_f.push((addChild(new FlxLogoPixel((_local9 + _local7), _local8, _local7, 0, _fc)) as FlxLogoPixel));
_f.push((addChild(new FlxLogoPixel(_local9, (_local8 + _local7), _local7, 1, _fc)) as FlxLogoPixel));
_f.push((addChild(new FlxLogoPixel(_local9, (_local8 + (_local7 * 2)), _local7, 2, _fc)) as FlxLogoPixel));
_f.push((addChild(new FlxLogoPixel((_local9 + _local7), (_local8 + (_local7 * 2)), _local7, 3, _fc)) as FlxLogoPixel));
_f.push((addChild(new FlxLogoPixel(_local9, (_local8 + (_local7 * 3)), _local7, 4, _fc)) as FlxLogoPixel));
_poweredBy = new ImgPoweredBy();
_poweredBy.scaleX = _local6;
_poweredBy.scaleY = _local6;
_poweredBy.x = (((FlxG.width * _z) / 2) - (_poweredBy.width / 2));
_poweredBy.y = ((_local8 + (_local7 * 4)) + 16);
_local10 = new ColorTransform();
_local10.color = _fc;
_poweredBy.bitmapData.colorTransform(new Rectangle(0, 0, _poweredBy.width, _poweredBy.height), _local10);
addChild(_poweredBy);
_logoFade = (addChild(new Bitmap(new BitmapData((FlxG.width * _z), (FlxG.height * _z), true, 4278190080))) as Bitmap);
_logoFade.x = (_gx * _z);
_logoFade.y = (_gy * _z);
if (_fSound != null){
new _fSound().play(0, 0, new SoundTransform(0.35, 0));
};
};
_logoTimer = (_logoTimer + _elapsed);
_local2 = 0;
while (_local2 < _f.length) {
_f[_local2].update();
_local2++;
};
if (_logoFade.alpha > 0){
_logoFade.alpha = (_logoFade.alpha - (_elapsed * 0.5));
};
if (_logoTimer > 2){
removeChild(_poweredBy);
_local2 = 0;
while (_local2 < _f.length) {
removeChild(_f[_local2]);
_local2++;
};
_f.clear();
removeChild(_logoFade);
switchState(_iState);
_logoComplete = true;
};
};
} else {
if (root != null){
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.frameRate = 90;
_buffer = new Sprite();
_buffer.scaleX = _z;
_buffer.scaleY = _z;
addChild(_buffer);
_bmpBack = new Bitmap(new BitmapData(FlxG.width, FlxG.height, true, _bgc));
_bmpBack.x = _gx;
_bmpBack.y = _gy;
_buffer.addChild(_bmpBack);
_bmpFront = new Bitmap(new BitmapData(_bmpBack.width, _bmpBack.height, true, _bgc));
_bmpFront.x = _bmpBack.x;
_bmpFront.y = _bmpBack.y;
_buffer.addChild(_bmpFront);
_flipped = false;
_flash = new Bitmap(new BitmapData((FlxG.width * _z), (FlxG.height * _z)));
_flash.x = (_gx * _z);
_flash.y = (_gy * _z);
_flash.visible = false;
addChild(_flash);
_fade = new Bitmap(new BitmapData((FlxG.width * _z), (FlxG.height * _z)));
_fade.x = (_gx * _z);
_fade.y = (_gy * _z);
_fade.visible = false;
addChild(_fade);
_console = new Sprite();
_console.visible = false;
_console.x = (_gx * _z);
_console.y = ((_gy * _z) - (FlxG.height * _z));
_consoleYT = (_consoleY = _console.y);
_local5 = new Bitmap(new BitmapData((FlxG.width * _z), (FlxG.height * _z), true, 2130706432));
_console.addChild(_local5);
_consoleText = new TextField();
_consoleText.width = _local5.width;
_consoleText.height = _local5.height;
_consoleText.multiline = true;
_consoleText.wordWrap = true;
_consoleText.embedFonts = true;
_consoleText.antiAliasType = AntiAliasType.NORMAL;
_consoleText.gridFitType = GridFitType.PIXEL;
_consoleText.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF);
_console.addChild(_consoleText);
_consoleFPS = new TextField();
_consoleFPS.width = _local5.width;
_consoleFPS.height = 20;
_consoleFPS.multiline = true;
_consoleFPS.wordWrap = true;
_consoleFPS.embedFonts = true;
_consoleFPS.antiAliasType = AntiAliasType.NORMAL;
_consoleFPS.gridFitType = GridFitType.PIXEL;
_consoleFPS.defaultTextFormat = new TextFormat("system", 16, 0xFFFFFF, true, null, null, null, null, "right");
_console.addChild(_consoleFPS);
_consoleLines = new Array();
addChild(_console);
log("flixel v1.25");
log("---------------------------------------");
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
_focusPopup = new Sprite();
_focusPopup.visible = false;
if (FlxG.width > 160){
_focusPopup.scaleX = 2;
_focusPopup.scaleY = 2;
};
_focusPopup.x = ((_gx * _z) + (8 * _z));
_focusPopup.y = ((_gy * _z) + ((FlxG.height * _z) / 4));
_local5 = new Bitmap(new BitmapData(160, 100, true, 3204448256));
_focusPopup.x = (((_gx + (FlxG.width / 2)) * _z) - ((_local5.width / 2) * _focusPopup.scaleX));
_focusPopup.y = (((_gy + (FlxG.height / 2)) * _z) - ((_local5.height / 2) * _focusPopup.scaleY));
_focusPopup.addChild(_local5);
_local11 = new TextField();
_local11.width = _local5.width;
_local11.height = 20;
_local11.multiline = true;
_local11.wordWrap = true;
_local11.selectable = false;
_local11.embedFonts = true;
_local11.antiAliasType = AntiAliasType.NORMAL;
_local11.gridFitType = GridFitType.PIXEL;
_local11.defaultTextFormat = new TextFormat("system", 16, 0xFFFFFF, null, null, null, null, null, "center");
_local11.text = "GAME PAUSED";
_local11.y = 7;
_focusPopup.addChild(_local11);
_local12 = (_focusPopup.addChild(new ImgKeyX()) as Bitmap);
_local12.x = 4;
_local12.y = 36;
_local12 = (_focusPopup.addChild(new ImgKeyC()) as Bitmap);
_local12.x = 4;
_local12.y = (36 + 14);
_local12 = (_focusPopup.addChild(new ImgKeyMouse()) as Bitmap);
_local12.x = 4;
_local12.y = ((36 + 14) + 14);
_local12 = (_focusPopup.addChild(new ImgKeysArrows()) as Bitmap);
_local12.x = 4;
_local12.y = (((36 + 14) + 14) + 14);
_local12 = (_focusPopup.addChild(new ImgKeyMinus()) as Bitmap);
_local12.x = 84;
_local12.y = 36;
_local12 = (_focusPopup.addChild(new ImgKeyPlus()) as Bitmap);
_local12.x = 84;
_local12.y = (36 + 14);
_local12 = (_focusPopup.addChild(new ImgKey0()) as Bitmap);
_local12.x = 84;
_local12.y = ((36 + 14) + 14);
_local12 = (_focusPopup.addChild(new ImgKey1()) as Bitmap);
_local12.x = 84;
_local12.y = (((36 + 14) + 14) + 14);
_local11 = new TextField();
_local11.width = (_local5.width / 2);
_local11.height = (_local5.height - 20);
_local11.multiline = true;
_local11.wordWrap = true;
_local11.selectable = false;
_local11.embedFonts = true;
_local11.antiAliasType = AntiAliasType.NORMAL;
_local11.gridFitType = GridFitType.PIXEL;
_local11.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF, null, null, null, null, null, "left", null, null, null, 4);
_local11.text = "";
_local2 = 0;
while (_local2 < _help.length) {
if (_local2 == (_help.length - 1)){
_local11.appendText(" ");
};
if (_help[_local2] != null){
_local11.appendText(_help[_local2]);
};
_local11.appendText("\n");
_local2++;
};
_local11.x = 15;
_local11.y = 35;
_focusPopup.addChild(_local11);
_local11 = new TextField();
_local11.width = (_local5.width / 2);
_local11.height = (_local5.height - 20);
_local11.multiline = true;
_local11.wordWrap = true;
_local11.selectable = false;
_local11.embedFonts = true;
_local11.antiAliasType = AntiAliasType.NORMAL;
_local11.gridFitType = GridFitType.PIXEL;
_local11.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF, null, null, null, null, null, "left", null, null, null, 4);
_local11.text = "Sound Down\nSound Up\nMute\nConsole";
_local11.x = 95;
_local11.y = 35;
_focusPopup.addChild(_local11);
addChild(_focusPopup);
_soundTray = new Sprite();
_soundTray.visible = false;
_soundTray.scaleX = 2;
_soundTray.scaleY = 2;
_local5 = new Bitmap(new BitmapData(80, 30, true, 2130706432));
_soundTray.x = (((_gx + (FlxG.width / 2)) * _z) - ((_local5.width / 2) * _soundTray.scaleX));
_soundTray.addChild(_local5);
_local11 = new TextField();
_local11.width = _local5.width;
_local11.height = _local5.height;
_local11.multiline = true;
_local11.wordWrap = true;
_local11.selectable = false;
_local11.embedFonts = true;
_local11.antiAliasType = AntiAliasType.NORMAL;
_local11.gridFitType = GridFitType.PIXEL;
_local11.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF, null, null, null, null, null, "center");
_soundTray.addChild(_local11);
_local11.text = "VOLUME";
_local11.y = 16;
_local13 = 10;
_local14 = 14;
_soundTrayBars = new Array();
_local2 = 0;
while (_local2 < 10) {
_local5 = new Bitmap(new BitmapData(4, (_local2 + 1), false, 0xFFFFFF));
_local5.x = _local13;
_local5.y = _local14;
_soundTrayBars.push(_soundTray.addChild(_local5));
_local13 = (_local13 + 6);
_local14--;
_local2++;
};
addChild(_soundTray);
stage.addEventListener(Event.DEACTIVATE, onFocusLost);
stage.addEventListener(Event.ACTIVATE, onFocus);
if (_frame != null){
_local15 = new _frame();
_local15.scaleX = _z;
_local15.scaleY = _z;
addChild(_local15);
};
_created = true;
_logoTimer = 0;
};
};
};
}
private function switchState(_arg1:Class):void{
FlxG.unfollow();
FlxG.resetKeys();
_quakeTimer = 0;
_buffer.x = 0;
_buffer.y = 0;
if (_cursor != null){
_buffer.removeChild(_cursor);
_cursor = null;
};
var _local2:FlxState = new (_arg1);
_buffer.addChild(_local2);
if (_curState != null){
_buffer.swapChildren(_local2, _curState);
_buffer.removeChild(_curState);
_curState.destroy();
};
_fade.visible = false;
_curState = _local2;
}
private function onMouseDown(_arg1:MouseEvent):void{
FlxG.kMouse = true;
FlxG.pressKey(6);
}
private function onKeyDown(_arg1:KeyboardEvent):void{
var _local2:String = String.fromCharCode(_arg1.charCode);
if (_arg1.keyCode == 37){
FlxG.kLeft = true;
FlxG.pressKey(0);
} else {
if (_arg1.keyCode == 39){
FlxG.kRight = true;
FlxG.pressKey(1);
} else {
if (_arg1.keyCode == 38){
FlxG.kUp = true;
FlxG.pressKey(2);
} else {
if (_arg1.keyCode == 40){
FlxG.kDown = true;
FlxG.pressKey(3);
} else {
if ((((((_local2 == "x")) || ((_local2 == "X")))) || ((_arg1.keyCode == Keyboard.TAB)))){
FlxG.kA = true;
FlxG.pressKey(4);
} else {
if ((((((_local2 == "c")) || ((_local2 == "C")))) || ((_arg1.keyCode == Keyboard.SPACE)))){
FlxG.kB = true;
FlxG.pressKey(5);
};
};
};
};
};
};
}
private function quake(_arg1:Number, _arg2:Number=0.5):void{
_quakeIntensity = _arg1;
_quakeLength = _arg2;
_quakeTimer = 0.01;
}
private function flash(_arg1:uint, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{
if (_arg1 == 0){
_flash.visible = false;
return;
};
if (((!(_arg4)) && (_flash.visible))){
return;
};
_flash.bitmapData.fillRect(new Rectangle(0, 0, _flash.width, _flash.height), _arg1);
_flashDelay = _arg2;
_flashComplete = _arg3;
_flashHelper = 1;
_flash.alpha = 1;
_flash.visible = true;
}
private function onFocusLost(_arg1:Event=null):void{
if (((!((x == 0))) || (!((y == 0))))){
x = 0;
y = 0;
};
Mouse.show();
_focusPopup.visible = true;
_paused = true;
FlxG.pauseMusic();
}
}
}//package com.adamatomic.flixel
Section 15
//FlxGame_ImgKey0 (com.adamatomic.flixel.FlxGame_ImgKey0)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKey0 extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 16
//FlxGame_ImgKey1 (com.adamatomic.flixel.FlxGame_ImgKey1)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKey1 extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 17
//FlxGame_ImgKeyC (com.adamatomic.flixel.FlxGame_ImgKeyC)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKeyC extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 18
//FlxGame_ImgKeyMinus (com.adamatomic.flixel.FlxGame_ImgKeyMinus)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKeyMinus extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 19
//FlxGame_ImgKeyMouse (com.adamatomic.flixel.FlxGame_ImgKeyMouse)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKeyMouse extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 20
//FlxGame_ImgKeyPlus (com.adamatomic.flixel.FlxGame_ImgKeyPlus)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKeyPlus extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 21
//FlxGame_ImgKeysArrows (com.adamatomic.flixel.FlxGame_ImgKeysArrows)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKeysArrows extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 22
//FlxGame_ImgKeyX (com.adamatomic.flixel.FlxGame_ImgKeyX)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgKeyX extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 23
//FlxGame_ImgPoweredBy (com.adamatomic.flixel.FlxGame_ImgPoweredBy)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_ImgPoweredBy extends BitmapAsset {
}
}//package com.adamatomic.flixel
Section 24
//FlxGame_junk (com.adamatomic.flixel.FlxGame_junk)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_junk extends FontAsset {
}
}//package com.adamatomic.flixel
Section 25
//FlxGame_SndBeep (com.adamatomic.flixel.FlxGame_SndBeep)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_SndBeep extends SoundAsset {
}
}//package com.adamatomic.flixel
Section 26
//FlxGame_SndFlixel (com.adamatomic.flixel.FlxGame_SndFlixel)
package com.adamatomic.flixel {
import mx.core.*;
public class FlxGame_SndFlixel extends SoundAsset {
}
}//package com.adamatomic.flixel
Section 27
//FlxLayer (com.adamatomic.flixel.FlxLayer)
package com.adamatomic.flixel {
public class FlxLayer extends FlxCore {
private var _children:FlxArray;
public function FlxLayer(){
_children = new FlxArray();
}
public function add(_arg1:FlxCore):FlxCore{
return ((_children.add(_arg1) as FlxCore));
}
override public function render():void{
super.render();
var _local1:uint;
while (_local1 < _children.length) {
if (((((!((_children[_local1] == null))) && (_children[_local1].exists))) && (_children[_local1].visible))){
_children[_local1].render();
};
_local1++;
};
}
override public function update():void{
super.update();
var _local1:uint;
while (_local1 < _children.length) {
if (((((!((_children[_local1] == null))) && (_children[_local1].exists))) && (_children[_local1].active))){
_children[_local1].update();
};
_local1++;
};
}
public function destroy():void{
_children.clear();
}
}
}//package com.adamatomic.flixel
Section 28
//FlxSprite (com.adamatomic.flixel.FlxSprite)
package com.adamatomic.flixel {
import flash.display.*;
import flash.geom.*;
import com.adamatomic.flixel.data.*;
public class FlxSprite extends FlxCore {
public var acceleration:Point;
public var finished:Boolean;
public var angularAcceleration:Number;
private var _alpha:Number;
private var _animations:FlxArray;
public var offset:Point;
private var _callback:Function;
protected var _curAnim:FlxAnim;
public var drag:Point;
public var angularDrag:Number;
private var _pZero:Point;
private var _flipped:uint;
public var pixels:BitmapData;
public var scale:Point;
private var _pixels:BitmapData;
public var angle:Number;
public var thrust:Number;
public var maxThrust:Number;
public var velocity:Point;
public var maxAngular:Number;
public var angularVelocity:Number;
public var maxVelocity:Point;
public var health:Number;
private var _bh:uint;
private var _p:Point;
private var _r:Rectangle;
private var _bw:uint;
private var _frameTimer:Number;
private var _facing:Boolean;
protected var _curFrame:uint;
public static const RIGHT:Boolean = true;
public static const LEFT:Boolean = false;
public function FlxSprite(_arg1:Class=null, _arg2:int=0, _arg3:int=0, _arg4:Boolean=false, _arg5:Boolean=false, _arg6:uint=0, _arg7:uint=0, _arg8:uint=0){
if (_arg1 == null){
pixels = FlxG.createBitmap(_arg6, _arg7, _arg8);
} else {
pixels = FlxG.addBitmap(_arg1, _arg5);
};
x = _arg2;
y = _arg3;
if (_arg6 == 0){
if (_arg4){
_arg6 = pixels.height;
} else {
_arg6 = pixels.width;
};
};
width = (_bw = _arg6);
height = (_bh = pixels.height);
offset = new Point();
velocity = new Point();
acceleration = new Point();
drag = new Point();
maxVelocity = new Point(10000, 10000);
angle = 0;
angularVelocity = 0;
angularAcceleration = 0;
angularDrag = 0;
maxAngular = 10000;
thrust = 0;
scale = new Point(1, 1);
finished = false;
_facing = true;
_animations = new FlxArray();
if (_arg5){
_flipped = (pixels.width >> 1);
} else {
_flipped = 0;
};
_curAnim = null;
_curFrame = 0;
_frameTimer = 0;
_p = new Point(x, y);
_pZero = new Point();
_r = new Rectangle(0, 0, _bw, _bh);
_pixels = new BitmapData(width, height);
_pixels.copyPixels(pixels, _r, _pZero);
health = 1;
alpha = 1;
_callback = null;
}
override protected function getScreenXY(_arg1:Point):void{
_arg1.x = (Math.floor((x - offset.x)) + Math.floor((FlxG.scroll.x * scrollFactor.x)));
_arg1.y = (Math.floor((y - offset.y)) + Math.floor((FlxG.scroll.y * scrollFactor.y)));
}
public function hurt(_arg1:Number):void{
if ((health = (health - _arg1)) <= 0){
kill();
};
}
public function getRealXY():Point{
var _local1:Point = new Point();
_local1.x = (Math.floor((x - offset.x)) + Math.floor((FlxG.scroll.x * scrollFactor.x)));
_local1.y = (Math.floor((y - offset.y)) + Math.floor((FlxG.scroll.y * scrollFactor.y)));
return (_local1);
}
override public function render():void{
var _local1:Matrix;
if (!visible){
return;
};
getScreenXY(_p);
if (((((!((angle == 0))) || (!((scale.x == 1))))) || (!((scale.y == 1))))){
_local1 = new Matrix();
_local1.translate(-((_bw >> 1)), -((_bh >> 1)));
_local1.scale(scale.x, scale.y);
if (angle != 0){
_local1.rotate(((Math.PI * 2) * (angle / 360)));
};
_local1.translate((_p.x + (_bw >> 1)), (_p.y + (_bh >> 1)));
FlxG.buffer.draw(_pixels, _local1);
return;
};
FlxG.buffer.copyPixels(_pixels, _r, _p, null, null, true);
}
public function randomFrame():void{
_pixels.copyPixels(pixels, new Rectangle((Math.floor((Math.random() * (pixels.width / _bw))) * _bw), 0, _bw, _bh), _pZero);
}
private function calcFrame():void{
var _local1:uint;
if (_curAnim == null){
_pixels.copyPixels(pixels, _r, _pZero);
} else {
_local1 = (_curAnim.frames[_curFrame] * _bw);
if (((!(_facing)) && ((_flipped > 0)))){
_local1 = (((_flipped << 1) - _local1) - _bw);
};
_pixels.copyPixels(pixels, new Rectangle(_local1, 0, _bw, _bh), _pZero);
};
if (_alpha != 1){
_pixels.colorTransform(_r, new ColorTransform(1, 1, 1, _alpha));
};
if (_callback != null){
_callback(_curAnim.name, _curFrame, _curAnim.frames[_curFrame]);
};
}
override public function hitCeiling():Boolean{
velocity.y = 0;
return (true);
}
public function play(_arg1:String, _arg2:Boolean=false):void{
if (((((!(_arg2)) && (!((_curAnim == null))))) && ((_arg1 == _curAnim.name)))){
return;
};
_curFrame = 0;
_frameTimer = 0;
var _local3:uint;
while (_local3 < _animations.length) {
if (_animations[_local3].name == _arg1){
finished = false;
_curAnim = _animations[_local3];
calcFrame();
return;
};
_local3++;
};
}
override public function hitFloor():Boolean{
velocity.y = 0;
return (true);
}
override public function update():void{
var _local1:Point;
var _local2:Point;
super.update();
if (!active){
return;
};
if (((((!((_curAnim == null))) && ((_curAnim.delay > 0)))) && (((_curAnim.looped) || (!(finished)))))){
_frameTimer = (_frameTimer + FlxG.elapsed);
if (_frameTimer > _curAnim.delay){
_frameTimer = (_frameTimer - _curAnim.delay);
if (_curFrame == (_curAnim.frames.length - 1)){
if (_curAnim.looped){
_curFrame = 0;
};
finished = true;
} else {
_curFrame++;
};
calcFrame();
};
};
angle = (angle + ((angularVelocity = FlxG.computeVelocity(angularVelocity, angularAcceleration, angularDrag, maxAngular)) * FlxG.elapsed));
if (thrust != 0){
_local1 = FlxG.rotatePoint(-(thrust), 0, 0, 0, angle);
_local2 = FlxG.rotatePoint(-(maxThrust), 0, 0, 0, angle);
maxVelocity.x = Math.abs(_local2.x);
maxVelocity.y = Math.abs(_local2.y);
} else {
_local1 = _pZero;
};
x = (x + ((velocity.x = FlxG.computeVelocity(velocity.x, (acceleration.x + _local1.x), drag.x, maxVelocity.x)) * FlxG.elapsed));
y = (y + ((velocity.y = FlxG.computeVelocity(velocity.y, (acceleration.y + _local1.y), drag.y, maxVelocity.y)) * FlxG.elapsed));
}
public function set alpha(_arg1:Number):void{
if (_arg1 > 1){
_arg1 = 1;
};
if (_arg1 < 0){
_arg1 = 0;
};
_alpha = _arg1;
calcFrame();
}
public function addAnimationCallback(_arg1:Function):void{
_callback = _arg1;
}
public function onEmit():void{
}
public function set facing(_arg1:Boolean):void{
var _local2 = !((_facing == _arg1));
_facing = _arg1;
if (_local2){
calcFrame();
};
}
public function specificFrame(_arg1:uint):void{
_pixels.copyPixels(pixels, new Rectangle((_arg1 * _bw), 0, _bw, _bh), _pZero);
}
public function get facing():Boolean{
return (_facing);
}
public function addAnimation(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Boolean=true):void{
_animations.add(new FlxAnim(_arg1, _arg2, _arg3, _arg4));
}
public function get alpha():Number{
return (_alpha);
}
override public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{
var _local4:Number = x;
var _local5:Number = y;
if (((!((scrollFactor.x == 1))) || (!((scrollFactor.y == 1))))){
_local4 = (_local4 - Math.floor((FlxG.scroll.x * scrollFactor.x)));
_local5 = (_local5 - Math.floor((FlxG.scroll.y * scrollFactor.y)));
};
if (_arg3){
return (_pixels.hitTest(new Point(0, 0), 0xFF, new Point((_arg1 - _local4), (_arg2 - _local5))));
};
if ((((((((_arg1 <= _local4)) || ((_arg1 >= (_local4 + width))))) || ((_arg2 <= _local5)))) || ((_arg2 >= (_local5 + height))))){
return (false);
};
return (true);
}
override public function hitWall():Boolean{
velocity.x = 0;
return (true);
}
}
}//package com.adamatomic.flixel
Section 29
//FlxState (com.adamatomic.flixel.FlxState)
package com.adamatomic.flixel {
import flash.display.*;
public class FlxState extends Sprite {
private var _layer:FlxLayer;
public function FlxState(){
_layer = new FlxLayer();
FlxG.state = this;
}
public function add(_arg1:FlxCore):FlxCore{
return (_layer.add(_arg1));
}
public function render():void{
_layer.render();
}
public function update():void{
_layer.update();
}
public function destroy():void{
_layer.destroy();
}
}
}//package com.adamatomic.flixel
Section 30
//FlxText (com.adamatomic.flixel.FlxText)
package com.adamatomic.flixel {
import flash.geom.*;
import flash.text.*;
public class FlxText extends FlxCore {
private var _ox:Number;
private var _oy:Number;
private var _tf:TextField;
private var _mtx:Matrix;
public var angle:Number;
private var _oa:Number;
public function FlxText(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:uint, _arg5:String, _arg6:uint=0, _arg7:String=null, _arg8:uint=8, _arg9:String=null, _arg10:Number=0){
_ox = (x = _arg1);
_oy = (y = _arg2);
_oa = (angle = _arg10);
width = _arg3;
height = _arg4;
if (_arg7 == null){
_arg7 = "system";
};
if (_arg5 == null){
_arg5 = "";
};
_tf = new TextField();
_tf.width = width;
_tf.height = height;
_tf.embedFonts = true;
_tf.selectable = false;
_tf.sharpness = 100;
_tf.defaultTextFormat = new TextFormat(_arg7, _arg8, _arg6, null, null, null, null, null, _arg9);
_tf.text = _arg5;
_mtx = new Matrix();
_mtx.translate(-((width >> 1)), -((height >> 1)));
_mtx.rotate(((Math.PI * 2) * (angle / 360)));
_mtx.translate((Math.floor(x) + (width >> 1)), (Math.floor(y) + (height >> 1)));
}
public function setColor(_arg1:uint):void{
var _local2:TextFormat = _tf.defaultTextFormat;
_local2.color = _arg1;
_tf.defaultTextFormat = _local2;
_tf.text = _tf.text;
}
public function setText(_arg1:String):void{
_tf.text = _arg1;
}
override public function update():void{
super.update();
var _local1:Point = new Point();
getScreenXY(_local1);
if (((((!((_ox == _local1.x))) || (!((_oy == _local1.y))))) || (!((_oa == angle))))){
_mtx = new Matrix();
_mtx.translate(-((width >> 1)), -((height >> 1)));
_mtx.rotate(((Math.PI * 2) * (angle / 360)));
_mtx.translate((_local1.x + (width >> 1)), (_local1.y + (height >> 1)));
_ox = _local1.x;
_oy = _local1.y;
};
}
override public function render():void{
FlxG.buffer.draw(_tf, _mtx);
}
}
}//package com.adamatomic.flixel
Section 31
//FlxTilemap (com.adamatomic.flixel.FlxTilemap)
package com.adamatomic.flixel {
import flash.display.*;
import flash.geom.*;
public class FlxTilemap extends FlxCore {
private var heightInTiles:uint;
private var _screenRows:uint;
private var _ci:uint;
private var _data:FlxArray;
private var _pixels:BitmapData;
private var _tileSize:uint;
private var _rects:FlxArray;
private var _p:Point;
private var _block:FlxBlock;
private var widthInTiles:uint;
private var _screenCols:uint;
public function FlxTilemap(_arg1:String, _arg2:Class, _arg3:uint=1, _arg4:uint=1){
var _local5:uint;
var _local6:Array;
super();
_ci = _arg3;
widthInTiles = 0;
heightInTiles = 0;
_data = new FlxArray();
var _local7:Array = _arg1.split("\n");
heightInTiles = _local7.length;
var _local8:uint;
while (_local8 < heightInTiles) {
_local6 = _local7[_local8].split(",");
if (_local6.length <= 1){
heightInTiles--;
} else {
if (widthInTiles == 0){
widthInTiles = _local6.length;
};
_local5 = 0;
while (_local5 < widthInTiles) {
_data.push(uint(_local6[_local5]));
_local5++;
};
};
_local8++;
};
_pixels = FlxG.addBitmap(_arg2);
_rects = new FlxArray();
_p = new Point();
_tileSize = _pixels.height;
width = (widthInTiles * _tileSize);
height = (heightInTiles * _tileSize);
var _local9:uint = (widthInTiles * heightInTiles);
var _local10:uint;
while (_local10 < _local9) {
if (_data[_local10] >= _arg4){
_rects.push(new Rectangle((_tileSize * _data[_local10]), 0, _tileSize, _tileSize));
} else {
_rects.push(null);
};
_local10++;
};
_block = new FlxBlock(0, 0, _tileSize, _tileSize, null);
_screenRows = (Math.ceil((FlxG.height / _tileSize)) + 1);
if (_screenRows > heightInTiles){
_screenRows = heightInTiles;
};
_screenCols = (Math.ceil((FlxG.width / _tileSize)) + 1);
if (_screenCols > widthInTiles){
_screenCols = widthInTiles;
};
}
override public function collide(_arg1:FlxSprite):void{
var _local6:uint;
var _local2:uint = Math.floor(((_arg1.x - x) / _tileSize));
var _local3:uint = Math.floor(((_arg1.y - y) / _tileSize));
var _local4:uint = (Math.ceil((_arg1.width / _tileSize)) + 1);
var _local5:uint = (Math.ceil((_arg1.height / _tileSize)) + 1);
var _local7:uint;
while (_local7 < _local5) {
if ((((_local7 < 0)) || ((_local7 >= heightInTiles)))){
} else {
_local6 = 0;
while (_local6 < _local4) {
if ((((_local6 < 0)) || ((_local6 >= widthInTiles)))){
} else {
if (_data[((((_local3 + _local7) * widthInTiles) + _local2) + _local6)] >= _ci){
_block.x = (x + ((_local2 + _local6) * _tileSize));
_block.y = (y + ((_local3 + _local7) * _tileSize));
_block.collide(_arg1);
};
};
_local6++;
};
};
_local7++;
};
}
override public function render():void{
var _local5:uint;
var _local6:uint;
super.render();
getScreenXY(_p);
var _local1:int = Math.floor((-(_p.x) / _tileSize));
var _local2:int = Math.floor((-(_p.y) / _tileSize));
if (_local1 < 0){
_local1 = 0;
};
if (_local1 > (widthInTiles - _screenCols)){
_local1 = (widthInTiles - _screenCols);
};
if (_local2 < 0){
_local2 = 0;
};
if (_local2 > (heightInTiles - _screenRows)){
_local2 = (heightInTiles - _screenRows);
};
var _local3:int = ((_local2 * widthInTiles) + _local1);
_p.x = (_p.x + (_local1 * _tileSize));
_p.y = (_p.y + (_local2 * _tileSize));
var _local4:int = _p.x;
var _local7:uint;
while (_local7 < _screenRows) {
_local6 = _local3;
_local5 = 0;
while (_local5 < _screenCols) {
if (_rects[_local6] != null){
FlxG.buffer.copyPixels(_pixels, _rects[_local6], _p, null, null, true);
};
_local6++;
_p.x = (_p.x + _tileSize);
_local5++;
};
_local3 = (_local3 + widthInTiles);
_p.x = _local4;
_p.y = (_p.y + _tileSize);
_local7++;
};
}
}
}//package com.adamatomic.flixel
Section 32
//BaseLevel (levels.BaseLevel)
package levels {
import flash.events.*;
import com.adamatomic.flixel.*;
import flash.display.*;
import flash.utils.*;
import water.*;
public class BaseLevel extends FlxState {
protected var _player:Player;
private var SndCoin:Class;
protected var _coins:FlxArray;
protected var _killTimer:Timer;
protected var _beasts:FlxArray;
private var hudLayer:FlxLayer;
protected var _retryTimer:Timer;
protected var _map:MapBase;
protected var _water:FlxArray;
protected var FlashlightImg:Class;
protected var _flashLight:FlxSprite;
protected var swimmingLevel:Boolean;
protected var coinIcon:FlxSprite;
private var SndEH:Class;
protected var coinTxt:FlxText;
protected var _ambientLight:FlxAmbientLight;
protected var _saveBeacons:FlxArray;
protected var _nextLvlArray:FlxArray;
protected var _spikes:FlxArray;
protected var _bats:FlxArray;
protected var _bullets:FlxArray;
public function BaseLevel(){
SndCoin = BaseLevel_SndCoin;
SndEH = BaseLevel_SndEH;
FlashlightImg = BaseLevel_FlashlightImg;
this.blendMode = BlendMode.LAYER;
super();
_retryTimer = new Timer(500, 1);
_retryTimer.addEventListener(TimerEvent.TIMER, handleRetryTimer);
_killTimer = new Timer(1000, 1);
_killTimer.addEventListener(TimerEvent.TIMER, handleKillTimer);
_coins = new FlxArray();
_spikes = new FlxArray();
_bullets = new FlxArray();
_beasts = new FlxArray();
_nextLvlArray = new FlxArray();
_water = new FlxArray();
_bats = new FlxArray();
_saveBeacons = new FlxArray();
_ambientLight = new FlxAmbientLight();
addChild(_ambientLight);
FlxG.flash(0xFFFFFF, 0.5);
}
private function playerGetsCoin(_arg1:Coin, _arg2:Player):void{
FlxG.play(SndCoin, 1);
PlayerStats.coins++;
_arg1.kill();
}
override public function add(_arg1:FlxCore):FlxCore{
if ((_arg1 is Bullet)){
_bullets.push(_arg1);
} else {
if ((_arg1 is Coin)){
_coins.push(_arg1);
};
};
return (super.add(_arg1));
}
protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
}
private function playerTouchBeast(_arg1:Beast, _arg2:Player):void{
_arg2.kill();
_killTimer.start();
}
private function playerTouchSpikes(_arg1, _arg2:Player):void{
_arg2.kill();
_killTimer.start();
}
private function bulletHitBeast(_arg1:Bullet, _arg2:Beast):void{
_arg1.kill();
_arg2.hurt(5);
FlxG.quake(0.01, 0.25);
FlxG.play(SndEH, 1);
}
public function addSpriteCallback(_arg1:FlxSprite):void{
if ((_arg1 is Bat)){
_bats.push(_arg1);
Bat(_arg1).player = _player;
};
if ((_arg1 is Coin)){
_coins.push(_arg1);
} else {
if ((_arg1 is Spikes)){
_spikes.push(_arg1);
} else {
if ((_arg1 is SpikesR)){
_spikes.push(_arg1);
} else {
if ((_arg1 is SpikesL)){
_spikes.push(_arg1);
} else {
if ((_arg1 is SpikesD)){
_spikes.push(_arg1);
} else {
if ((_arg1 is Beast)){
_beasts.push(_arg1);
} else {
if ((_arg1 is WaterMain)){
_water.push(_arg1);
} else {
if ((_arg1 is WaterTop)){
_water.push(_arg1);
} else {
if ((_arg1 is Candle)){
_ambientLight.addSource(30, _arg1);
} else {
if ((_arg1 is SaveBeacon)){
_ambientLight.addSource(40, _arg1);
_saveBeacons.push(_arg1);
} else {
if ((_arg1 is NextLvl)){
_nextLvlArray.push(_arg1);
};
};
};
};
};
};
};
};
};
};
};
}
protected function bulletHitBat(_arg1:Bullet, _arg2:Bat):void{
_arg1.kill();
_arg2.hurt(5);
FlxG.quake(0.01, 0.25);
}
private function handleKillTimer(_arg1:TimerEvent):void{
clearEverythingGameOver();
}
private function handleRetryTimer(_arg1:TimerEvent):void{
this.add(new FlxText(100, 90, 50, 5, "Press 'X' To Continue", 0xFFFFFF, null, 16));
var _local2:Class = (getDefinitionByName(getQualifiedClassName(this)) as Class);
removeChild(_ambientLight);
FlxG.switchState(_local2);
}
override public function update():void{
_ambientLight.update();
super.update();
_map.layerMain_Layer.collide(_player);
var _local1:int;
while (_local1 < _bullets.length) {
_map.layerMain_Layer.collide(_bullets[_local1]);
_local1++;
};
var _local2:int;
while (_local2 < _beasts.length) {
_map.layerMain_Layer.collide(_beasts[_local2]);
_local2++;
};
var _local3:int;
while (_local3 < _bats.length) {
_map.layerMain_Layer.collide(_bats[_local3]);
_local3++;
};
FlxG.overlapArray(_coins, _player, playerGetsCoin);
FlxG.overlapArray(_spikes, _player, playerTouchSpikes);
FlxG.overlapArray(_beasts, _player, playerTouchBeast);
FlxG.overlapArray(_bats, _player, playerTouchBat);
FlxG.overlapArrays(_bullets, _beasts, bulletHitBeast);
FlxG.overlapArrays(_bullets, _bats, bulletHitBat);
FlxG.overlapArray(_nextLvlArray, _player, playerGetsNextLevel);
FlxG.overlapArray(_saveBeacons, _player, playerTouchBeacon);
if (!swimmingLevel){
if (!FlxG.overlapArray(_water, _player, playerTouchesWater)){
_player.swimming = false;
};
};
}
protected function playerTouchBeacon(_arg1:SaveBeacon, _arg2:Player):void{
_arg1.activate();
}
protected function playerTouchBat(_arg1:Bat, _arg2:Player):void{
_arg2.kill();
_killTimer.start();
}
private function clearEverythingGameOver():void{
_retryTimer.start();
}
protected function playerTouchesWater(_arg1, _arg2:Player):void{
_player.swimming = true;
}
}
}//package levels
Section 33
//BaseLevel_FlashlightImg (levels.BaseLevel_FlashlightImg)
package levels {
import mx.core.*;
public class BaseLevel_FlashlightImg extends BitmapAsset {
}
}//package levels
Section 34
//BaseLevel_SndCoin (levels.BaseLevel_SndCoin)
package levels {
import mx.core.*;
public class BaseLevel_SndCoin extends SoundAsset {
}
}//package levels
Section 35
//BaseLevel_SndEH (levels.BaseLevel_SndEH)
package levels {
import mx.core.*;
public class BaseLevel_SndEH extends SoundAsset {
}
}//package levels
Section 36
//IntroState (levels.IntroState)
package levels {
import com.adamatomic.flixel.*;
public class IntroState extends FlxState {
protected var _player:Player;
private var Music:Class;
private var _nextLevelArray:FlxArray;
private var _bullets:FlxArray;
private var barrier:FlxBlock;
private var _map:MapIntroMap;
private var Ambience:Class;
public function IntroState(){
Ambience = IntroState_Ambience;
Music = IntroState_Music;
super();
FlxG.setMusic(Ambience);
_nextLevelArray = new FlxArray();
_bullets = new FlxArray();
_player = new Player(32, 206);
var _local1:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4291683582);
_local1.scrollFactor.x = 0;
_local1.scrollFactor.y = 0;
FlxG.state.add(_local1);
_map = new MapIntroMap();
FlxG.state.add(_map.layerHills);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
FlxG.state.add(_map.layerMainLayer);
_map.addSpritesToLayerMainLayer(onNewMapAddSpriteCallback);
this.add(_player);
FlxG.state.add(_map.layerDebris);
_map.addSpritesToLayerDebris(onNewMapAddSpriteCallback);
barrier = new FlxBlock(-15, 0, 16, 1000, MapIntroMap(_map).ImgMainLayer, 1000);
this.add(barrier);
FlxG.followBounds(0, 0, 480, 230);
}
override public function add(_arg1:FlxCore):FlxCore{
if ((_arg1 is Bullet)){
_bullets.push(_arg1);
};
return (super.add(_arg1));
}
override public function update():void{
super.update();
_map.layerMainLayer.collide(_player);
var _local1:int;
while (_local1 < _bullets.length) {
_map.layerMainLayer.collide(_bullets[_local1]);
_local1++;
};
FlxG.overlapArray(_nextLevelArray, _player, nextLevel);
barrier.collide(_player);
}
protected function onNewMapAddSpriteCallback(_arg1:FlxSprite):void{
if ((_arg1 is NextLvl)){
_nextLevelArray.push(_arg1);
};
}
private function nextLevel(_arg1:NextLvl, _arg2:Player):void{
FlxG.setMusic(Music);
_nextLevelArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(level_1);
}
}
}//package levels
Section 37
//IntroState_Ambience (levels.IntroState_Ambience)
package levels {
import mx.core.*;
public class IntroState_Ambience extends SoundAsset {
}
}//package levels
Section 38
//IntroState_Music (levels.IntroState_Music)
package levels {
import mx.core.*;
public class IntroState_Music extends SoundAsset {
}
}//package levels
Section 39
//level_1 (levels.level_1)
package levels {
import com.adamatomic.flixel.*;
import flash.geom.*;
public class level_1 extends BaseLevel {
private var barrier:FlxBlock;
private var CoinIcon:Class;
public function level_1(){
CoinIcon = level_1_CoinIcon;
super();
var _local1:Point = PlayerStats.loadCheckpoint();
if (((!((_local1.x == 0))) && (!((_local1.y == 0))))){
_player = new Player(_local1.x, _local1.y);
} else {
_player = new Player(48, 128);
};
super._ambientLight.addSource(70, _player);
var _local2:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local2.scrollFactor.x = 0;
_local2.scrollFactor.y = 0;
FlxG.state.add(_local2);
_map = new MapLvl1();
FlxG.state.add(_map.layerBG);
_map.addSpritesToLayerBG(onLvl1AddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onLvl1AddSpriteCallback);
barrier = new FlxBlock(-15, 60, 16, 200, MapLvl1(_map).Img_Main_Layer, 1000);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
this.add(barrier);
this.add(_player);
FlxG.followBounds(0, 0, 960, 480);
coinIcon = new FlxSprite(CoinIcon, 32, 200, false, false, 18, 18);
coinIcon.scrollFactor.x = 0;
coinIcon.scrollFactor.y = 0;
}
override protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
_nextLvlArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(level_2);
}
override public function update():void{
super.update();
barrier.collide(_player);
}
protected function onLvl1AddSpriteCallback(_arg1:FlxSprite):void{
super.addSpriteCallback(_arg1);
}
}
}//package levels
Section 40
//level_1_CoinIcon (levels.level_1_CoinIcon)
package levels {
import mx.core.*;
public class level_1_CoinIcon extends BitmapAsset {
}
}//package levels
Section 41
//level_2 (levels.level_2)
package levels {
import com.adamatomic.flixel.*;
import flash.geom.*;
public class level_2 extends BaseLevel {
private var barrier:FlxBlock;
public function level_2(){
var _local1:Point = PlayerStats.loadCheckpoint();
if (((!((_local1.x == 0))) && (!((_local1.y == 0))))){
_player = new Player(_local1.x, _local1.y);
} else {
_player = new Player(16, 64);
};
super._ambientLight.addSource(70, _player);
var _local2:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local2.scrollFactor.x = 0;
_local2.scrollFactor.y = 0;
FlxG.state.add(_local2);
_map = new MapLvl2();
FlxG.state.add(_map.layerBG);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
_map.addSpritesToLayerBG(onLvl2AddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onLvl2AddSpriteCallback);
this.add(_player);
barrier = new FlxBlock(-15, 60, 16, 1000, MapLvl2(_map).Img_Main_Layer, 1000);
this.add(barrier);
FlxG.state.add(_map.layerWater_Layer);
_map.addSpritesToLayerWater_Layer(onLvl2AddSpriteCallback);
FlxG.followBounds(0, 0, 1600, 320);
}
override public function update():void{
super.update();
barrier.collide(_player);
}
override protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
_nextLvlArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(level_3);
}
protected function onLvl2AddSpriteCallback(_arg1:FlxSprite):void{
super.addSpriteCallback(_arg1);
}
}
}//package levels
Section 42
//level_3 (levels.level_3)
package levels {
import com.adamatomic.flixel.*;
import flash.geom.*;
public class level_3 extends BaseLevel {
private var barrier:FlxBlock;
public function level_3(){
var _local1:Point = PlayerStats.loadCheckpoint();
if (((!((_local1.x == 0))) && (!((_local1.y == 0))))){
_player = new Player(_local1.x, _local1.y);
} else {
_player = new Player(16, 64);
};
super._ambientLight.addSource(70, _player);
var _local2:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local2.scrollFactor.x = 0;
_local2.scrollFactor.y = 0;
FlxG.state.add(_local2);
_map = new MapLvl3();
FlxG.state.add(_map.layerBG);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
_map.addSpritesToLayerBG(onLvl3AddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onLvl3AddSpriteCallback);
FlxG.state.add(_map.layerWater_Layer);
_map.addSpritesToLayerWater_Layer(onLvl3AddSpriteCallback);
this.add(_player);
barrier = new FlxBlock(-15, 60, 16, 1000, MapLvl3(_map).Img_Main_Layer, 1000);
this.add(barrier);
FlxG.followBounds(0, 0, 320, 1600);
}
override public function update():void{
super.update();
barrier.collide(_player);
}
protected function onLvl3AddSpriteCallback(_arg1:FlxSprite):void{
super.addSpriteCallback(_arg1);
}
override protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
_nextLvlArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(level_4);
}
}
}//package levels
Section 43
//level_4 (levels.level_4)
package levels {
import com.adamatomic.flixel.*;
import flash.geom.*;
public class level_4 extends BaseLevel {
private var barrier:FlxBlock;
public function level_4(){
var _local1:Point = PlayerStats.loadCheckpoint();
if (((!((_local1.x == 0))) && (!((_local1.y == 0))))){
_player = new Player(_local1.x, _local1.y);
} else {
_player = new Player(32, 448);
};
super._ambientLight.addSource(70, _player);
var _local2:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local2.scrollFactor.x = 0;
_local2.scrollFactor.y = 0;
FlxG.state.add(_local2);
_map = new MapLvl4();
FlxG.state.add(_map.layerBG);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
_map.addSpritesToLayerBG(onLvl4AddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onLvl4AddSpriteCallback);
FlxG.state.add(_map.layerWater_Layer);
_map.addSpritesToLayerWater_Layer(onLvl4AddSpriteCallback);
this.add(_player);
barrier = new FlxBlock(-15, 60, 16, 1000, MapLvl4(_map).Img_Main_Layer, 1000);
this.add(barrier);
FlxG.followBounds(0, 0, 0x0500, 480);
}
override public function update():void{
super.update();
barrier.collide(_player);
}
protected function onLvl4AddSpriteCallback(_arg1:FlxSprite):void{
super.addSpriteCallback(_arg1);
}
override protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
_nextLvlArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(level_5);
}
}
}//package levels
Section 44
//level_5 (levels.level_5)
package levels {
import com.adamatomic.flixel.*;
import flash.geom.*;
public class level_5 extends BaseLevel {
private var barrier:FlxBlock;
public function level_5(){
var _local1:Point = PlayerStats.loadCheckpoint();
if (((!((_local1.x == 0))) && (!((_local1.y == 0))))){
_player = new Player(_local1.x, _local1.y);
} else {
_player = new Player(16, 32);
};
super._ambientLight.addSource(70, _player);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
var _local2:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local2.scrollFactor.x = 0;
_local2.scrollFactor.y = 0;
FlxG.state.add(_local2);
_map = new MapLvl5();
FlxG.state.add(_map.layerBG);
_map.addSpritesToLayerBG(onLvl5AddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onLvl5AddSpriteCallback);
this.add(_player);
barrier = new FlxBlock(-15, 0, 16, 1000, MapLvl5(_map).Img_Main_Layer, 1000);
this.add(barrier);
FlxG.state.add(_map.layerWater_Layer);
_map.addSpritesToLayerWater_Layer(onLvl5AddSpriteCallback);
FlxG.followBounds(_map.boundsMinX, _map.boundsMinY, _map.boundsMaxX, _map.boundsMaxY);
}
override public function update():void{
super.update();
barrier.collide(_player);
}
protected function onLvl5AddSpriteCallback(_arg1:FlxSprite):void{
super.addSpriteCallback(_arg1);
trace(("adding sprite" + _arg1));
}
override protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
_nextLvlArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(level_6);
}
}
}//package levels
Section 45
//level_6 (levels.level_6)
package levels {
import com.adamatomic.flixel.*;
import flash.geom.*;
public class level_6 extends BaseLevel {
private var barrier:FlxBlock;
public function level_6(){
var _local1:Point = PlayerStats.loadCheckpoint();
if (((!((_local1.x == 0))) && (!((_local1.y == 0))))){
_player = new Player(_local1.x, _local1.y);
} else {
_player = new Player(134, 0);
};
_player.swimNoSplash();
this.swimmingLevel = true;
super._ambientLight.addSource(70, _player);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
var _local2:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local2.scrollFactor.x = 0;
_local2.scrollFactor.y = 0;
FlxG.state.add(_local2);
_map = new MapLvl6();
FlxG.state.add(_map.layerBG);
_map.addSpritesToLayerBG(onLvl6AddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onLvl6AddSpriteCallback);
this.add(_player);
barrier = new FlxBlock(-15, -15, 1000, 16, MapLvl6(_map).Img_Main_Layer, 1000);
this.add(barrier);
FlxG.followBounds(_map.boundsMinX, _map.boundsMinY, _map.boundsMaxX, _map.boundsMaxY);
var _local3:FlxSprite = new FlxSprite(null, 0, 0, false, false, 320, 250, 1426099160);
this.add(_local3);
_local3.scrollFactor.x = 0;
_local3.scrollFactor.y = 0;
}
protected function onLvl6AddSpriteCallback(_arg1:FlxSprite):void{
super.addSpriteCallback(_arg1);
}
override public function update():void{
super.update();
barrier.collide(_player);
}
override protected function playerGetsNextLevel(_arg1:NextLvl, _arg2:Player):void{
_nextLvlArray = new FlxArray();
PlayerStats.clearCheckpoint();
FlxG.switchState(BossState);
}
}
}//package levels
Section 46
//MapBase (levels.MapBase)
package levels {
import com.adamatomic.flixel.*;
public class MapBase {
public var customValues:Object;
public var allLayers:Array;
public var boundsMaxX:int;
public var boundsMaxY:int;
public var boundsMinY:int;
public var mainLayer:FlxTilemap;
public var boundsMinX:int;
public var layerMain_Layer:FlxTilemap;
public var layerBG:FlxTilemap;
public var layerWater_Layer:FlxTilemap;
public static const LAYER_BG:uint = 2;
public static const LAYER_MAIN_LAYER:uint = 1;
public static const LAYER_WATER_LAYER:uint = 0;
public function MapBase(){
customValues = new Object();
super();
}
public function addSpritesToLayerWater_Layer(_arg1:Function=null):void{
}
public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
}
public function addSpritesToLayerBG(_arg1:Function=null):void{
}
public function customFunction(_arg1=null){
}
}
}//package levels
Section 47
//MapBossMap (levels.MapBossMap)
package levels {
import com.adamatomic.flixel.*;
public class MapBossMap extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var CSV_WaterLayer:Class;
public var Img_WaterLayer:Class;
public var CSV_BG:Class;
public function MapBossMap(){
CSV_WaterLayer = MapBossMap_CSV_WaterLayer;
Img_WaterLayer = MapBossMap_Img_WaterLayer;
CSV_Main_Layer = MapBossMap_CSV_Main_Layer;
Img_Main_Layer = MapBossMap_Img_Main_Layer;
CSV_BG = MapBossMap_CSV_BG;
Img_BG = MapBossMap_Img_BG;
super();
_setCustomValues();
layerWater_Layer = new FlxTilemap(new CSV_WaterLayer(), Img_WaterLayer, 1, 0);
layerWater_Layer.x = 0;
layerWater_Layer.y = 0;
layerWater_Layer.scrollFactor.x = 1;
layerWater_Layer.scrollFactor.y = 1;
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 0);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerWater_Layer, layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 320;
boundsMaxY = 800;
}
override public function customFunction(_arg1=null){
}
private function _setCustomValues():void{
}
}
}//package levels
Section 48
//MapBossMap_CSV_BG (levels.MapBossMap_CSV_BG)
package levels {
import mx.core.*;
public class MapBossMap_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 49
//MapBossMap_CSV_Main_Layer (levels.MapBossMap_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapBossMap_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 50
//MapBossMap_CSV_WaterLayer (levels.MapBossMap_CSV_WaterLayer)
package levels {
import mx.core.*;
public class MapBossMap_CSV_WaterLayer extends ByteArrayAsset {
}
}//package levels
Section 51
//MapBossMap_Img_BG (levels.MapBossMap_Img_BG)
package levels {
import mx.core.*;
public class MapBossMap_Img_BG extends BitmapAsset {
}
}//package levels
Section 52
//MapBossMap_Img_Main_Layer (levels.MapBossMap_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapBossMap_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 53
//MapBossMap_Img_WaterLayer (levels.MapBossMap_Img_WaterLayer)
package levels {
import mx.core.*;
public class MapBossMap_Img_WaterLayer extends BitmapAsset {
}
}//package levels
Section 54
//MapIntroMap (levels.MapIntroMap)
package levels {
import com.adamatomic.flixel.*;
public class MapIntroMap {
public var CSVDebris:Class;
public var allLayers:Array;
public var layerMainLayer:FlxTilemap;
public var layerHills:FlxTilemap;
public var boundsMaxY:int;
public var CSVHills:Class;
public var boundsMaxX:int;
public var CSVMainLayer:Class;
public var mainLayer:FlxTilemap;
public var boundsMinX:int;
public var boundsMinY:int;
public var layerDebris:FlxTilemap;
public var ImgHills:Class;
public var ImgMainLayer:Class;
public var ImgDebris:Class;
public static const LAYERHILLS:uint = 2;
public static const LAYERMAINLAYER:uint = 1;
public static const LAYERDEBRIS:uint = 0;
public function MapIntroMap(){
CSVDebris = MapIntroMap_CSVDebris;
ImgDebris = MapIntroMap_ImgDebris;
CSVMainLayer = MapIntroMap_CSVMainLayer;
ImgMainLayer = MapIntroMap_ImgMainLayer;
CSVHills = MapIntroMap_CSVHills;
ImgHills = MapIntroMap_ImgHills;
super();
setCustomValues();
layerDebris = new FlxTilemap(new CSVDebris(), ImgDebris, 1, 0);
layerDebris.x = 0;
layerDebris.y = 0;
layerDebris.scrollFactor.x = 1;
layerDebris.scrollFactor.y = 1;
layerMainLayer = new FlxTilemap(new CSVMainLayer(), ImgMainLayer, 1, 0);
layerMainLayer.x = 0;
layerMainLayer.y = 0;
layerMainLayer.scrollFactor.x = 1;
layerMainLayer.scrollFactor.y = 1;
layerHills = new FlxTilemap(new CSVHills(), ImgHills, 1, 0);
layerHills.x = 0;
layerHills.y = 0;
layerHills.scrollFactor.x = 0.5;
layerHills.scrollFactor.y = 0.5;
allLayers = [layerDebris, layerMainLayer, layerHills];
mainLayer = layerMainLayer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 640;
boundsMaxY = 320;
}
public function addSpritesToLayerDebris(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new IntroSign(37, 50);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
private function setCustomValues():void{
}
public function addSpritesToLayerMainLayer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new NextLvl(464, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(464, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(464, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
public function customFunction(_arg1=null){
}
}
}//package levels
Section 55
//MapIntroMap_CSVDebris (levels.MapIntroMap_CSVDebris)
package levels {
import mx.core.*;
public class MapIntroMap_CSVDebris extends ByteArrayAsset {
}
}//package levels
Section 56
//MapIntroMap_CSVHills (levels.MapIntroMap_CSVHills)
package levels {
import mx.core.*;
public class MapIntroMap_CSVHills extends ByteArrayAsset {
}
}//package levels
Section 57
//MapIntroMap_CSVMainLayer (levels.MapIntroMap_CSVMainLayer)
package levels {
import mx.core.*;
public class MapIntroMap_CSVMainLayer extends ByteArrayAsset {
}
}//package levels
Section 58
//MapIntroMap_ImgDebris (levels.MapIntroMap_ImgDebris)
package levels {
import mx.core.*;
public class MapIntroMap_ImgDebris extends BitmapAsset {
}
}//package levels
Section 59
//MapIntroMap_ImgHills (levels.MapIntroMap_ImgHills)
package levels {
import mx.core.*;
public class MapIntroMap_ImgHills extends BitmapAsset {
}
}//package levels
Section 60
//MapIntroMap_ImgMainLayer (levels.MapIntroMap_ImgMainLayer)
package levels {
import mx.core.*;
public class MapIntroMap_ImgMainLayer extends BitmapAsset {
}
}//package levels
Section 61
//MapLvl1 (levels.MapLvl1)
package levels {
import com.adamatomic.flixel.*;
public class MapLvl1 extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var CSV_BG:Class;
public function MapLvl1(){
CSV_Main_Layer = MapLvl1_CSV_Main_Layer;
Img_Main_Layer = MapLvl1_Img_Main_Layer;
CSV_BG = MapLvl1_CSV_BG;
Img_BG = MapLvl1_Img_BG;
super();
_setCustomValues();
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 0);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 1920;
boundsMaxY = 960;
}
private function _setCustomValues():void{
}
override public function customFunction(_arg1=null){
}
override public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new Coin(448, 118);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(464, 142);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(480, 175);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(487, 223);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(473, 276);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(455, 316);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(433, 352);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(535, 443);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(640, 443);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(735, 443);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(665, 283);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(944, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(944, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(944, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(537, 435);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(623, 437);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(701, 436);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(371, 96);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(226, 112);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(372, 81);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SaveBeacon(799, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(582, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(662, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(741, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(740, 216);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(843, 216);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(740, 193);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(843, 193);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(320, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(304, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(288, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(272, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(672, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(656, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
}
}//package levels
Section 62
//MapLvl1_CSV_BG (levels.MapLvl1_CSV_BG)
package levels {
import mx.core.*;
public class MapLvl1_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 63
//MapLvl1_CSV_Main_Layer (levels.MapLvl1_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl1_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 64
//MapLvl1_Img_BG (levels.MapLvl1_Img_BG)
package levels {
import mx.core.*;
public class MapLvl1_Img_BG extends BitmapAsset {
}
}//package levels
Section 65
//MapLvl1_Img_Main_Layer (levels.MapLvl1_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl1_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 66
//MapLvl2 (levels.MapLvl2)
package levels {
import com.adamatomic.flixel.*;
import water.*;
public class MapLvl2 extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var Img_Water_Layer:Class;
public var CSV_Water_Layer:Class;
public var CSV_BG:Class;
public function MapLvl2(){
CSV_Water_Layer = MapLvl2_CSV_Water_Layer;
Img_Water_Layer = MapLvl2_Img_Water_Layer;
CSV_Main_Layer = MapLvl2_CSV_Main_Layer;
Img_Main_Layer = MapLvl2_Img_Main_Layer;
CSV_BG = MapLvl2_CSV_BG;
Img_BG = MapLvl2_Img_BG;
super();
_setCustomValues();
layerWater_Layer = new FlxTilemap(new CSV_Water_Layer(), Img_Water_Layer, 1, 0);
layerWater_Layer.x = 0;
layerWater_Layer.y = 0;
layerWater_Layer.scrollFactor.x = 1;
layerWater_Layer.scrollFactor.y = 1;
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 1);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerWater_Layer, layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 1600;
boundsMaxY = 320;
}
override public function customFunction(_arg1=null){
}
override public function addSpritesToLayerWater_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new WaterMain(624, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(928, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(912, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(896, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(880, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0300, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(784, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(800, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(816, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(832, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(848, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(864, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(752, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(736, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(720, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(704, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(688, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(672, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(656, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(640, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(624, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(608, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(960, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(944, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(464, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(448, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(432, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(416, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(400, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(384, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(368, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(352, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(336, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(320, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(304, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(288, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(272, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(0x0100, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(480, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(496, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(0x0200, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(528, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(544, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(560, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(576, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(592, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(608, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(624, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(640, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(656, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(672, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(688, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(704, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(736, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(720, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(752, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(0x0300, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(784, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(800, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(816, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(832, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(848, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(864, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(880, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(896, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(912, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(928, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(944, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(960, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(976, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(992, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(1008, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(0x0400, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(1040, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(560, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(576, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(592, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1040, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1040, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1040, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1040, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1040, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0400, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0400, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0400, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0400, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0400, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0400, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(224, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(240, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0100, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(272, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(304, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(320, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(352, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(336, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(368, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(384, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(464, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(480, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(496, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(288, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(0x0200, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(528, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(544, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1056, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1056, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1056, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(976, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(992, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(1008, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(348, 82);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(1227, 123);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(1421, 219);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(1332, 172);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SaveBeacon(526, 112);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SaveBeacon(1045, 64);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(605, 108);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(1253, 117);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(1365, 165);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(1584, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(1584, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
override public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new Bubbles(621, 302);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(673, 301);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(779, 254);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(755, 302);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(813, 301);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(883, 301);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(953, 253);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(320, 237);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(365, 238);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(416, 237);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0300, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(784, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(848, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(864, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(960, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(944, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(928, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(964, 228);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(948, 228);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(868, 276);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(852, 276);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(788, 228);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(772, 228);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(1172, 116);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(1284, 164);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(1380, 212);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1440, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1456, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1472, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1360, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1376, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1392, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1264, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0500, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1296, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1184, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1168, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1152, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(452, 212);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(420, 212);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(404, 212);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(448, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(416, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(400, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
private function _setCustomValues():void{
}
}
}//package levels
Section 67
//MapLvl2_CSV_BG (levels.MapLvl2_CSV_BG)
package levels {
import mx.core.*;
public class MapLvl2_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 68
//MapLvl2_CSV_Main_Layer (levels.MapLvl2_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl2_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 69
//MapLvl2_CSV_Water_Layer (levels.MapLvl2_CSV_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl2_CSV_Water_Layer extends ByteArrayAsset {
}
}//package levels
Section 70
//MapLvl2_Img_BG (levels.MapLvl2_Img_BG)
package levels {
import mx.core.*;
public class MapLvl2_Img_BG extends BitmapAsset {
}
}//package levels
Section 71
//MapLvl2_Img_Main_Layer (levels.MapLvl2_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl2_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 72
//MapLvl2_Img_Water_Layer (levels.MapLvl2_Img_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl2_Img_Water_Layer extends BitmapAsset {
}
}//package levels
Section 73
//MapLvl3 (levels.MapLvl3)
package levels {
import com.adamatomic.flixel.*;
import water.*;
public class MapLvl3 extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var Img_Water_Layer:Class;
public var CSV_Water_Layer:Class;
public var CSV_BG:Class;
public function MapLvl3(){
CSV_Water_Layer = MapLvl3_CSV_Water_Layer;
Img_Water_Layer = MapLvl3_Img_Water_Layer;
CSV_Main_Layer = MapLvl3_CSV_Main_Layer;
Img_Main_Layer = MapLvl3_Img_Main_Layer;
CSV_BG = MapLvl3_CSV_BG;
Img_BG = MapLvl3_Img_BG;
super();
_setCustomValues();
layerWater_Layer = new FlxTilemap(new CSV_Water_Layer(), Img_Water_Layer, 1, 0);
layerWater_Layer.x = 0;
layerWater_Layer.y = 0;
layerWater_Layer.scrollFactor.x = 1;
layerWater_Layer.scrollFactor.y = 1;
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 0);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerWater_Layer, layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 320;
boundsMaxY = 1600;
}
override public function customFunction(_arg1=null){
}
override public function addSpritesToLayerWater_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new WaterTop(176, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(192, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(208, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(176, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(192, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(208, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(208, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(192, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(176, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
override public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new SaveBeacon(66, 384);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 0x0200);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 608);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 672);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 0x0200);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 608);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 672);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 688);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 720);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 736);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 96);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 112);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(160, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(176, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(192, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(208, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(224, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 112);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 96);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 64);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 80);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(64, 0x0300);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(64, 896);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(48, 960);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(48, 832);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SaveBeacon(116, 720);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 0x0500);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 0x0500);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 0x0500);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(197, 101);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(261, 197);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(69, 325);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(277, 437);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(21, 821);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(101, 885);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(21, 949);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(213, 981);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(112, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(208, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 688);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(133, 517);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(181, 581);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(133, 629);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(181, 693);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(47, 865);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(74, 800);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(78, 929);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(213, 405);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(235, 102);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(149, 381);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(234, 382);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(251, 968);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(180, 180);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(196, 180);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(212, 180);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(180, 308);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(116, 308);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(132, 308);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(196, 308);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(164, 404);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(196, 404);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(180, 388);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(132, 484);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(20, 740);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(100, 804);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(20, 868);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(164, 980);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(196, 980);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(132, 692);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(180, 660);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(132, 612);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(180, 548);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(304, 944);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(304, 960);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(304, 976);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
private function _setCustomValues():void{
}
}
}//package levels
Section 74
//MapLvl3_CSV_BG (levels.MapLvl3_CSV_BG)
package levels {
import mx.core.*;
public class MapLvl3_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 75
//MapLvl3_CSV_Main_Layer (levels.MapLvl3_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl3_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 76
//MapLvl3_CSV_Water_Layer (levels.MapLvl3_CSV_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl3_CSV_Water_Layer extends ByteArrayAsset {
}
}//package levels
Section 77
//MapLvl3_Img_BG (levels.MapLvl3_Img_BG)
package levels {
import mx.core.*;
public class MapLvl3_Img_BG extends BitmapAsset {
}
}//package levels
Section 78
//MapLvl3_Img_Main_Layer (levels.MapLvl3_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl3_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 79
//MapLvl3_Img_Water_Layer (levels.MapLvl3_Img_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl3_Img_Water_Layer extends BitmapAsset {
}
}//package levels
Section 80
//MapLvl4 (levels.MapLvl4)
package levels {
import com.adamatomic.flixel.*;
public class MapLvl4 extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var Img_Water_Layer:Class;
public var CSV_Water_Layer:Class;
public var CSV_BG:Class;
public function MapLvl4(){
CSV_Water_Layer = MapLvl4_CSV_Water_Layer;
Img_Water_Layer = MapLvl4_Img_Water_Layer;
CSV_Main_Layer = MapLvl4_CSV_Main_Layer;
Img_Main_Layer = MapLvl4_Img_Main_Layer;
CSV_BG = MapLvl4_CSV_BG;
Img_BG = MapLvl4_Img_BG;
super();
_setCustomValues();
layerWater_Layer = new FlxTilemap(new CSV_Water_Layer(), Img_Water_Layer, 1, 0);
layerWater_Layer.x = 0;
layerWater_Layer.y = 0;
layerWater_Layer.scrollFactor.x = 1;
layerWater_Layer.scrollFactor.y = 1;
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 0);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerWater_Layer, layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 0x0500;
boundsMaxY = 480;
}
override public function customFunction(_arg1=null){
}
override public function addSpritesToLayerWater_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new NextLvl(1264, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(1264, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(1264, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
override public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new Spikes(416, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(432, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(448, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(464, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(480, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(496, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0200, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(528, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0100, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(240, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(224, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(208, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(688, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(704, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(784, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0300, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(800, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Beast(194, 408);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Beast(467, 344);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(165, 421);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(437, 357);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(293, 373);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(565, 309);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(741, 309);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(837, 309);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(374, 358);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(646, 294);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(822, 294);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(524, 351);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(252, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(699, 328);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(778, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(798, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SaveBeacon(872, 352);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(912, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(928, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(944, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0400, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1008, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(980, 442);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(952, 388);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1072, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1088, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1136, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(1152, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(1062, 422);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(1158, 422);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(1019, 436);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(1083, 437);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Coin(1148, 437);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
private function _setCustomValues():void{
}
}
}//package levels
Section 81
//MapLvl4_CSV_BG (levels.MapLvl4_CSV_BG)
package levels {
import mx.core.*;
public class MapLvl4_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 82
//MapLvl4_CSV_Main_Layer (levels.MapLvl4_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl4_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 83
//MapLvl4_CSV_Water_Layer (levels.MapLvl4_CSV_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl4_CSV_Water_Layer extends ByteArrayAsset {
}
}//package levels
Section 84
//MapLvl4_Img_BG (levels.MapLvl4_Img_BG)
package levels {
import mx.core.*;
public class MapLvl4_Img_BG extends BitmapAsset {
}
}//package levels
Section 85
//MapLvl4_Img_Main_Layer (levels.MapLvl4_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl4_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 86
//MapLvl4_Img_Water_Layer (levels.MapLvl4_Img_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl4_Img_Water_Layer extends BitmapAsset {
}
}//package levels
Section 87
//MapLvl5 (levels.MapLvl5)
package levels {
import com.adamatomic.flixel.*;
import water.*;
public class MapLvl5 extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var Img_Water_Layer:Class;
public var CSV_Water_Layer:Class;
public var CSV_BG:Class;
public function MapLvl5(){
CSV_Water_Layer = MapLvl5_CSV_Water_Layer;
Img_Water_Layer = MapLvl5_Img_Water_Layer;
CSV_Main_Layer = MapLvl5_CSV_Main_Layer;
Img_Main_Layer = MapLvl5_Img_Main_Layer;
CSV_BG = MapLvl5_CSV_BG;
Img_BG = MapLvl5_Img_BG;
super();
_setCustomValues();
layerWater_Layer = new FlxTilemap(new CSV_Water_Layer(), Img_Water_Layer, 1, 0);
layerWater_Layer.x = 0;
layerWater_Layer.y = 0;
layerWater_Layer.scrollFactor.x = 1;
layerWater_Layer.scrollFactor.y = 1;
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 0);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerWater_Layer, layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 480;
boundsMaxY = 672;
}
override public function customFunction(_arg1=null){
}
override public function addSpritesToLayerWater_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new WaterTop(400, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(416, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(432, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(448, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(448, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(432, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(416, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(400, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(64, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(48, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(32, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterTop(16, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(64, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(48, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(32, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(16, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(16, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(32, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(48, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new WaterMain(64, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
override public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new Spikes(448, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(432, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(416, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(400, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(384, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(368, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(352, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(336, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(320, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(304, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(288, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(272, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0100, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(240, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(224, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(208, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(112, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(96, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(80, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(432, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(416, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(336, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(320, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(304, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(288, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(272, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(0x0100, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(240, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(224, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(208, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(96, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(112, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 608);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 640);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(64, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Beast(237, 408);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Beast(364, 120);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(142, 55);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(308, 126);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(226, 87);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(323, 428);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(245, 415);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(147, 424);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(85, 455);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Candle(40, 517);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SaveBeacon(421, 384);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(374, 390);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(38, 454);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(16, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(32, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(48, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(64, 656);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(214, 38);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bat(310, 70);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
private function _setCustomValues():void{
}
}
}//package levels
Section 88
//MapLvl5_CSV_BG (levels.MapLvl5_CSV_BG)
package levels {
import mx.core.*;
public class MapLvl5_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 89
//MapLvl5_CSV_Main_Layer (levels.MapLvl5_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl5_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 90
//MapLvl5_CSV_Water_Layer (levels.MapLvl5_CSV_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl5_CSV_Water_Layer extends ByteArrayAsset {
}
}//package levels
Section 91
//MapLvl5_Img_BG (levels.MapLvl5_Img_BG)
package levels {
import mx.core.*;
public class MapLvl5_Img_BG extends BitmapAsset {
}
}//package levels
Section 92
//MapLvl5_Img_Main_Layer (levels.MapLvl5_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl5_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 93
//MapLvl5_Img_Water_Layer (levels.MapLvl5_Img_Water_Layer)
package levels {
import mx.core.*;
public class MapLvl5_Img_Water_Layer extends BitmapAsset {
}
}//package levels
Section 94
//MapLvl6 (levels.MapLvl6)
package levels {
import com.adamatomic.flixel.*;
import water.*;
public class MapLvl6 extends MapBase {
public var Img_BG:Class;
public var CSV_Main_Layer:Class;
public var Img_Main_Layer:Class;
public var CSV_BG:Class;
public function MapLvl6(){
CSV_Main_Layer = MapLvl6_CSV_Main_Layer;
Img_Main_Layer = MapLvl6_Img_Main_Layer;
CSV_BG = MapLvl6_CSV_BG;
Img_BG = MapLvl6_Img_BG;
super();
_setCustomValues();
layerMain_Layer = new FlxTilemap(new CSV_Main_Layer(), Img_Main_Layer, 1, 0);
layerMain_Layer.x = 0;
layerMain_Layer.y = 0;
layerMain_Layer.scrollFactor.x = 1;
layerMain_Layer.scrollFactor.y = 1;
layerBG = new FlxTilemap(new CSV_BG(), Img_BG, 1, 0);
layerBG.x = 0;
layerBG.y = 0;
layerBG.scrollFactor.x = 0.5;
layerBG.scrollFactor.y = 0.5;
allLayers = [layerMain_Layer, layerBG];
mainLayer = layerMain_Layer;
boundsMinX = 0;
boundsMinY = 0;
boundsMaxX = 320;
boundsMaxY = 640;
}
private function _setCustomValues():void{
}
override public function customFunction(_arg1=null){
}
override public function addSpritesToLayerMain_Layer(_arg1:Function=null):void{
var _local2:FlxSprite;
_local2 = new SpikesL(112, 0);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 16);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 32);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 48);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 64);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 80);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 96);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 112);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(112, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 0);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 16);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 32);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 48);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 64);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 80);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 96);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 112);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(160, 128);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(176, 144);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(192, 160);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(208, 176);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(224, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(240, 192);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 208);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 224);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(208, 240);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(208, 0x0100);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(208, 272);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(208, 288);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(192, 304);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(176, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(160, 320);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(144, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(128, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(112, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(96, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(80, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(64, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(240, 336);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(224, 352);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(208, 352);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 352);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(176, 368);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 368);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 368);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 384);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(112, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(96, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(48, 352);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(32, 368);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(32, 384);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(32, 400);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 0x0200);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(16, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(80, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(80, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(80, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(96, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(112, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(128, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(144, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(160, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(176, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(192, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(208, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(240, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(224, 416);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(0x0100, 432);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesD(272, 448);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(32, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(48, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(64, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(80, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(96, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(112, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(128, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(144, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(160, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(192, 0x0200);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(224, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(176, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(176, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(208, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(208, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(240, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(0x0100, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(0x0100, 0x0200);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(0x0100, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(0x0100, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 464);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 480);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 496);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 0x0200);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 528);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 544);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(288, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(240, 560);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(240, 576);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(224, 592);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(224, 608);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesL(208, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new SpikesR(0x0100, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(229, 357);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(117, 405);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(37, 549);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(101, 597);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(229, 469);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(197, 229);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(133, 165);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(181, 213);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(149, 373);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(69, 581);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Bubbles(165, 565);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(0x0100, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(240, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(224, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new NextLvl(208, 624);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
_local2 = new Spikes(272, 608);
_local2.x = (_local2.x + _local2.offset.x);
_local2.y = (_local2.y + _local2.offset.y);
FlxG.state.add(_local2);
if (_arg1 != null){
_arg1(_local2);
};
}
}
}//package levels
Section 95
//MapLvl6_CSV_BG (levels.MapLvl6_CSV_BG)
package levels {
import mx.core.*;
public class MapLvl6_CSV_BG extends ByteArrayAsset {
}
}//package levels
Section 96
//MapLvl6_CSV_Main_Layer (levels.MapLvl6_CSV_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl6_CSV_Main_Layer extends ByteArrayAsset {
}
}//package levels
Section 97
//MapLvl6_Img_BG (levels.MapLvl6_Img_BG)
package levels {
import mx.core.*;
public class MapLvl6_Img_BG extends BitmapAsset {
}
}//package levels
Section 98
//MapLvl6_Img_Main_Layer (levels.MapLvl6_Img_Main_Layer)
package levels {
import mx.core.*;
public class MapLvl6_Img_Main_Layer extends BitmapAsset {
}
}//package levels
Section 99
//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(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
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(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
}
}//package mx.core
Section 100
//ByteArrayAsset (mx.core.ByteArrayAsset)
package mx.core {
import flash.utils.*;
public class ByteArrayAsset extends ByteArray implements IFlexAsset {
mx_internal static const VERSION:String = "3.2.0.3958";
}
}//package mx.core
Section 101
//EdgeMetrics (mx.core.EdgeMetrics)
package mx.core {
public class EdgeMetrics {
public var top:Number;
public var left:Number;
public var bottom:Number;
public var right:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public static const EMPTY:EdgeMetrics = new EdgeMetrics(0, 0, 0, 0);
;
public function EdgeMetrics(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){
this.left = _arg1;
this.top = _arg2;
this.right = _arg3;
this.bottom = _arg4;
}
public function clone():EdgeMetrics{
return (new EdgeMetrics(left, top, right, bottom));
}
}
}//package mx.core
Section 102
//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(_arg1:BitmapData=null, _arg2:String="auto", _arg3:Boolean=false){
var bitmapData = _arg1;
var pixelSnapping = _arg2;
var smoothing = _arg3;
super(bitmapData, pixelSnapping, smoothing);
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 103
//FlexMovieClip (mx.core.FlexMovieClip)
package mx.core {
import flash.display.*;
import mx.utils.*;
public class FlexMovieClip extends MovieClip {
mx_internal static const VERSION:String = "3.2.0.3958";
public function FlexMovieClip(){
super();
try {
name = NameUtil.createUniqueName(this);
} catch(e:Error) {
};
}
override public function toString():String{
return (NameUtil.displayObjectToString(this));
}
}
}//package mx.core
Section 104
//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";
}
}//package mx.core
Section 105
//IBorder (mx.core.IBorder)
package mx.core {
public interface IBorder {
function get borderMetrics():EdgeMetrics;
}
}//package mx.core
Section 106
//IFlexAsset (mx.core.IFlexAsset)
package mx.core {
public interface IFlexAsset {
}
}//package mx.core
Section 107
//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(_arg1:Point):Point;
function get name():String;
function set width(_arg1:Number):void;
function get measuredHeight():Number;
function get blendMode():String;
function get scale9Grid():Rectangle;
function set name(_arg1:String):void;
function set scaleX(_arg1:Number):void;
function set scaleY(_arg1:Number):void;
function get measuredWidth():Number;
function get accessibilityProperties():AccessibilityProperties;
function set scrollRect(_arg1:Rectangle):void;
function get cacheAsBitmap():Boolean;
function globalToLocal(_arg1:Point):Point;
function get height():Number;
function set blendMode(_arg1:String):void;
function get parent():DisplayObjectContainer;
function getBounds(_arg1:DisplayObject):Rectangle;
function get opaqueBackground():Object;
function set scale9Grid(_arg1:Rectangle):void;
function setActualSize(_arg1:Number, _arg2:Number):void;
function set alpha(_arg1:Number):void;
function set accessibilityProperties(_arg1:AccessibilityProperties):void;
function get width():Number;
function hitTestPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean;
function set cacheAsBitmap(_arg1: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(_arg1:Number):void;
function set mask(_arg1:DisplayObject):void;
function getRect(_arg1:DisplayObject):Rectangle;
function get alpha():Number;
function set transform(_arg1:Transform):void;
function move(_arg1:Number, _arg2:Number):void;
function get loaderInfo():LoaderInfo;
function get root():DisplayObject;
function hitTestObject(_arg1:DisplayObject):Boolean;
function set opaqueBackground(_arg1:Object):void;
function set visible(_arg1:Boolean):void;
function get mask():DisplayObject;
function set x(_arg1:Number):void;
function set y(_arg1:Number):void;
function get transform():Transform;
function set filters(_arg1:Array):void;
function get x():Number;
function get y():Number;
function get filters():Array;
function set rotation(_arg1:Number):void;
function get stage():Stage;
}
}//package mx.core
Section 108
//IRepeaterClient (mx.core.IRepeaterClient)
package mx.core {
public interface IRepeaterClient {
function get instanceIndices():Array;
function set instanceIndices(_arg1:Array):void;
function get isDocument():Boolean;
function set repeaters(_arg1:Array):void;
function initializeRepeaterArrays(_arg1:IRepeaterClient):void;
function get repeaters():Array;
function set repeaterIndices(_arg1:Array):void;
function get repeaterIndices():Array;
}
}//package mx.core
Section 109
//MovieClipAsset (mx.core.MovieClipAsset)
package mx.core {
public class MovieClipAsset extends FlexMovieClip implements IFlexAsset, IFlexDisplayObject, IBorder {
private var _measuredHeight:Number;
private var _measuredWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipAsset(){
_measuredWidth = width;
_measuredHeight = height;
}
public function get measuredWidth():Number{
return (_measuredWidth);
}
public function get measuredHeight():Number{
return (_measuredHeight);
}
public function setActualSize(_arg1:Number, _arg2:Number):void{
width = _arg1;
height = _arg2;
}
public function move(_arg1:Number, _arg2:Number):void{
this.x = _arg1;
this.y = _arg2;
}
public function get borderMetrics():EdgeMetrics{
if (scale9Grid == null){
return (EdgeMetrics.EMPTY);
};
return (new EdgeMetrics(scale9Grid.left, scale9Grid.top, Math.ceil((measuredWidth - scale9Grid.right)), Math.ceil((measuredHeight - scale9Grid.bottom))));
}
}
}//package mx.core
Section 110
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset)
package mx.core {
import flash.events.*;
import flash.display.*;
import flash.utils.*;
import flash.system.*;
public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject {
protected var initialHeight:Number;// = 0
private var loader:Loader;// = null
private var initialized:Boolean;// = false
protected var initialWidth:Number;// = 0
private var requestedHeight:Number;
private var requestedWidth:Number;
mx_internal static const VERSION:String = "3.2.0.3958";
public function MovieClipLoaderAsset(){
var _local1:LoaderContext = new LoaderContext();
_local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
if (("allowLoadBytesCodeExecution" in _local1)){
_local1["allowLoadBytesCodeExecution"] = true;
};
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
loader.loadBytes(movieClipData, _local1);
addChild(loader);
}
override public function get width():Number{
if (!initialized){
return (initialWidth);
};
return (super.width);
}
override public function set width(_arg1:Number):void{
if (!initialized){
requestedWidth = _arg1;
} else {
loader.width = _arg1;
};
}
override public function get measuredHeight():Number{
return (initialHeight);
}
private function completeHandler(_arg1:Event):void{
initialized = true;
initialWidth = loader.width;
initialHeight = loader.height;
if (!isNaN(requestedWidth)){
loader.width = requestedWidth;
};
if (!isNaN(requestedHeight)){
loader.height = requestedHeight;
};
dispatchEvent(_arg1);
}
override public function set height(_arg1:Number):void{
if (!initialized){
requestedHeight = _arg1;
} else {
loader.height = _arg1;
};
}
override public function get measuredWidth():Number{
return (initialWidth);
}
override public function get height():Number{
if (!initialized){
return (initialHeight);
};
return (super.height);
}
public function get movieClipData():ByteArray{
return (null);
}
}
}//package mx.core
Section 111
//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 112
//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";
}
}//package mx.core
Section 113
//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 static function displayObjectToString(_arg1:DisplayObject):String{
var result:String;
var o:DisplayObject;
var s:String;
var indices:Array;
var displayObject = _arg1;
try {
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;
};
} catch(e:SecurityError) {
};
return (result);
}
public static function createUniqueName(_arg1:Object):String{
if (!_arg1){
return (null);
};
var _local2:String = getQualifiedClassName(_arg1);
var _local3:int = _local2.indexOf("::");
if (_local3 != -1){
_local2 = _local2.substr((_local3 + 2));
};
var _local4:int = _local2.charCodeAt((_local2.length - 1));
if ((((_local4 >= 48)) && ((_local4 <= 57)))){
_local2 = (_local2 + "_");
};
return ((_local2 + counter++));
}
}
}//package mx.utils
Section 114
//Bubbles (water.Bubbles)
package water {
import com.adamatomic.flixel.*;
public class Bubbles extends FlxSprite {
private var BubblesImg:Class;
public function Bubbles(_arg1:int=0, _arg2:int=0){
BubblesImg = Bubbles_BubblesImg;
super(null, _arg1, _arg2, false, false, 1, 1);
FlxG.state.add(new FlxEmitter(this.x, this.y, 4, 1, null, 0.5, 0, 0, -10, -30, 0, 0, 0, 0, BubblesImg, 5, true));
}
}
}//package water
Section 115
//Bubbles_BubblesImg (water.Bubbles_BubblesImg)
package water {
import mx.core.*;
public class Bubbles_BubblesImg extends BitmapAsset {
}
}//package water
Section 116
//WaterMain (water.WaterMain)
package water {
import com.adamatomic.flixel.*;
public class WaterMain extends FlxSprite {
private var WaterImg:Class;
public function WaterMain(_arg1:int=0, _arg2:int=0){
WaterImg = WaterMain_WaterImg;
super(WaterImg, _arg1, _arg2, false, false, 16, 16);
this.addAnimation("normal", [0]);
this.play("normal");
}
}
}//package water
Section 117
//WaterMain_WaterImg (water.WaterMain_WaterImg)
package water {
import mx.core.*;
public class WaterMain_WaterImg extends BitmapAsset {
}
}//package water
Section 118
//WaterTop (water.WaterTop)
package water {
import com.adamatomic.flixel.*;
public class WaterTop extends FlxSprite {
private var WaterImg:Class;
public function WaterTop(_arg1:int=0, _arg2:int=0){
WaterImg = WaterTop_WaterImg;
super(WaterImg, _arg1, _arg2, false, false);
}
}
}//package water
Section 119
//WaterTop_WaterImg (water.WaterTop_WaterImg)
package water {
import mx.core.*;
public class WaterTop_WaterImg extends BitmapAsset {
}
}//package water
Section 120
//Adventure (Adventure)
package {
import com.adamatomic.flixel.*;
public class Adventure extends FlxGame {
public function Adventure(){
super(320, 240, TitleMenu, 2, 0, true, 4294967040);
help("Shoot", "Jump");
}
}
}//package
Section 121
//Bat (Bat)
package {
import com.adamatomic.flixel.*;
public class Bat extends FlxSprite {
private var _player:Player;
private var _state:int;
private var ImgParticle:Class;
private var _activated:Boolean;
private var SndDie:Class;
private var ImgBat:Class;
public static const WAKING:int = 1;
public static const WAKEUP_DISTANCE:int = 100;
public static const PERCHED:int = 0;
public static const FLYING:int = 2;
public function Bat(_arg1:int=0, _arg2:int=0){
ImgBat = Bat_ImgBat;
ImgParticle = Bat_ImgParticle;
SndDie = Bat_SndDie;
super(ImgBat, _arg1, _arg2, true, true, 24, 16);
addAnimation("perched", [0]);
addAnimation("waking", [1, 2, 3, 4, 5, 6, 7, 8, 9], 20, false);
addAnimation("flying", [9, 10, 11, 12], 12, true);
addAnimationCallback(handleAnimationCallback);
play("perched");
_state = PERCHED;
this.health = 5;
this.width = 12;
this.offset.x = 6;
}
public function set player(_arg1:Player):void{
_player = _arg1;
_activated = true;
}
private function handleAnimationCallback(_arg1:String, _arg2:uint, _arg3:uint):void{
if (_arg3 == 9){
_state = Bat.FLYING;
play("flying");
};
}
override public function hurt(_arg1:Number):void{
flicker();
super.hurt(_arg1);
}
override public function update():void{
var _local1:Array;
if (_activated){
if (_player.x < this.x){
this.facing = LEFT;
} else {
if (_player.x >= this.x){
this.facing = RIGHT;
};
};
switch (_state){
case Bat.PERCHED:
if (this.onScreen()){
if (((((_player.y - this.y) < 50)) && ((_player.y > (this.y - 5))))){
_state = Bat.WAKING;
play("waking");
};
};
break;
case Bat.FLYING:
_local1 = calcAngularVelocity();
if (_player.x < (this.x + 12)){
_local1[0] = -(_local1[0]);
};
if (_player.y < (this.y + 6)){
_local1[1] = -(_local1[1]);
};
this.velocity.x = _local1[0];
this.velocity.y = _local1[1];
break;
};
super.update();
};
}
private function calcAngularVelocity():Array{
var _local1:int = Math.abs(((this.x + 12) - _player.x));
var _local2:int = Math.abs(((this.y + 12) - _player.y));
var _local3:int = Math.floor(((_local1 / (_local1 + _local2)) * 40));
var _local4:int = Math.floor(((_local2 / (_local1 + _local2)) * 40));
return ([_local3, _local4]);
}
public function get state():int{
return (_state);
}
override public function kill():void{
FlxG.play(SndDie, 0.5);
var _local1:Coin = new Coin((this.x + 12), (this.y + 6));
FlxG.state.add(_local1);
var _local2:FlxEmitter = (FlxG.state.add(new FlxEmitter((this.x + 8), (this.y + 8), 5, 5, null, -1, -100, 100, -200, -50, -20, 20, 400, 0, ImgParticle, 15, false)) as FlxEmitter);
_local2.reset();
super.kill();
}
}
}//package
Section 122
//Bat_ImgBat (Bat_ImgBat)
package {
import mx.core.*;
public class Bat_ImgBat extends BitmapAsset {
}
}//package
Section 123
//Bat_ImgParticle (Bat_ImgParticle)
package {
import mx.core.*;
public class Bat_ImgParticle extends BitmapAsset {
}
}//package
Section 124
//Bat_SndDie (Bat_SndDie)
package {
import mx.core.*;
public class Bat_SndDie extends SoundAsset {
}
}//package
Section 125
//Beast (Beast)
package {
import com.adamatomic.flixel.*;
public class Beast extends FlxSprite {
private var walkSpeed:int;
private var SndDie:Class;
private var ImgBeast:Class;
private var ParticleImg:Class;
public function Beast(_arg1:int=0, _arg2:int=0){
ImgBeast = Beast_ImgBeast;
ParticleImg = Beast_ParticleImg;
SndDie = Beast_SndDie;
super(ImgBeast, _arg1, _arg2, true, true, 24, 24);
this.addAnimation("walking", [0, 1, 2, 3, 4, 5, 6], 8, true);
play("walking");
(this.facing == RIGHT);
this.acceleration.y = 400;
walkSpeed = 20;
width = 6;
offset.x = 9;
this.health = 20;
}
override public function kill():void{
FlxG.play(SndDie, 0.5);
var _local1:Coin = new Coin((this.x + 6), (this.y + 6));
FlxG.state.add(_local1);
var _local2:FlxEmitter = (FlxG.state.add(new FlxEmitter((this.x + 8), (this.y + 8), 5, 5, null, -1, -100, 100, -200, -50, -20, 20, 400, 0, ParticleImg, 15, false)) as FlxEmitter);
_local2.reset();
super.kill();
}
override public function update():void{
if (this.velocity.y > 0){
this.velocity.y = 0;
if (facing == LEFT){
this.x = (this.x + 3);
facing = RIGHT;
} else {
if (facing == RIGHT){
facing = LEFT;
this.x = (this.x - 3);
};
};
};
if (facing == RIGHT){
this.velocity.x = walkSpeed;
} else {
if (facing == LEFT){
this.velocity.x = -(walkSpeed);
};
};
super.update();
}
override public function hurt(_arg1:Number):void{
flicker();
super.hurt(_arg1);
}
}
}//package
Section 126
//Beast_ImgBeast (Beast_ImgBeast)
package {
import mx.core.*;
public class Beast_ImgBeast extends BitmapAsset {
}
}//package
Section 127
//Beast_ParticleImg (Beast_ParticleImg)
package {
import mx.core.*;
public class Beast_ParticleImg extends BitmapAsset {
}
}//package
Section 128
//Beast_SndDie (Beast_SndDie)
package {
import mx.core.*;
public class Beast_SndDie extends SoundAsset {
}
}//package
Section 129
//BossState (BossState)
package {
import flash.events.*;
import com.adamatomic.flixel.*;
import levels.*;
import flash.utils.*;
public class BossState extends BaseLevel {
private var Music:Class;
var _eBullets:FlxArray;
private var SndEH:Class;
var _epArray:FlxArray;
var _beatTimer:Timer;
var _ep:EvilPlayer;
var _playerArray:FlxArray;
public function BossState(){
Music = BossState_Music;
SndEH = BossState_SndEH;
super();
var _local1:FlxSprite = new FlxSprite(null, 0, 0, false, false, FlxG.width, FlxG.height, 4278190080);
_local1.scrollFactor.x = 0;
_local1.scrollFactor.y = 0;
FlxG.state.add(_local1);
_map = new MapBossMap();
FlxG.state.add(_map.layerBG);
_map.addSpritesToLayerBG(onBossMapAddSpriteCallback);
FlxG.state.add(_map.layerMain_Layer);
_map.addSpritesToLayerMain_Layer(onBossMapAddSpriteCallback);
FlxG.state.add(_map.layerWater_Layer);
_map.addSpritesToLayerWater_Layer(onBossMapAddSpriteCallback);
FlxG.followBounds(_map.boundsMinX, _map.boundsMinY, _map.boundsMaxX, _map.boundsMaxY);
FlxG.setMusic(Music);
FlxG.playMusic();
_player = new Player(16, 16);
this.add(_player);
FlxG.follow(_player, 2.5);
FlxG.followAdjust(0.5, 0.1);
_eBullets = new FlxArray();
_ep = new EvilPlayer(_player, _eBullets, 272, 766);
_ep.facing = FlxSprite.LEFT;
this.add(_ep);
super._ambientLight.addSource(70, _player);
super._ambientLight.addSource(70, _ep);
_playerArray = new FlxArray();
_epArray = new FlxArray();
_playerArray.add(_player);
_epArray.add(_ep);
_beatTimer = new Timer(3000, 1);
_beatTimer.addEventListener(TimerEvent.TIMER, beatGame);
}
private function eBulletsHitPlayer(_arg1:Bullet, _arg2:Player):void{
_player.kill();
_killTimer.start();
}
override public function update():void{
super.update();
_map.layerMain_Layer.collide(_player);
_map.layerMain_Layer.collide(_ep);
FlxG.overlapArrays(_playerArray, _epArray, playerTouchesEP);
if (!_player.dead){
FlxG.overlapArray(_eBullets, _player, eBulletsHitPlayer);
};
FlxG.overlapArray(_bullets, _ep, epTouchBullet);
if ((((_player.y == _ep.y)) && (_ep.ready))){
_ep.init();
};
}
private function beatGame(_arg1:TimerEvent):void{
FlxG.switchState(EndState);
}
private function playerTouchesEP(_arg1:Player, _arg2:EvilPlayer):void{
_player.kill();
_killTimer.start();
}
protected function onBossMapAddSpriteCallback(_arg1:FlxSprite):void{
}
private function epTouchBullet(_arg1:Bullet, _arg2:EvilPlayer):void{
_arg1.kill();
_arg2.hurt(5);
FlxG.quake(0.01, 0.25);
FlxG.play(SndEH, 1);
if (_arg2.health <= 0){
_beatTimer.start();
};
}
}
}//package
Section 130
//BossState_Music (BossState_Music)
package {
import mx.core.*;
public class BossState_Music extends SoundAsset {
}
}//package
Section 131
//BossState_SndEH (BossState_SndEH)
package {
import mx.core.*;
public class BossState_SndEH extends SoundAsset {
}
}//package
Section 132
//Bullet (Bullet)
package {
import com.adamatomic.flixel.*;
public class Bullet extends FlxSprite {
private var ImgBullet:Class;
public function Bullet(_arg1:int=0, _arg2:int=0, _arg3:Class=null){
var _local4:Class;
ImgBullet = Bullet_ImgBullet;
if (_arg3){
_local4 = _arg3;
} else {
_local4 = ImgBullet;
};
super(_local4, _arg1, _arg2, false, false);
}
override public function update():void{
if (this.velocity.x == 0){
super.kill();
};
super.update();
}
}
}//package
Section 133
//Bullet_ImgBullet (Bullet_ImgBullet)
package {
import mx.core.*;
public class Bullet_ImgBullet extends BitmapAsset {
}
}//package
Section 134
//Candle (Candle)
package {
import com.adamatomic.flixel.*;
public class Candle extends FlxSprite {
private var ImgCandle:Class;
public function Candle(_arg1:int=0, _arg2:int=0){
ImgCandle = Candle_ImgCandle;
super(ImgCandle, _arg1, _arg2, true, false, 6, 7);
addAnimation("normal", [0, 1, 2, 3, 4], 6);
play("normal");
}
}
}//package
Section 135
//Candle_ImgCandle (Candle_ImgCandle)
package {
import mx.core.*;
public class Candle_ImgCandle extends BitmapAsset {
}
}//package
Section 136
//CheckpointText (CheckpointText)
package {
import com.adamatomic.flixel.*;
public class CheckpointText extends FlxSprite {
private var ImgCheckPoint:Class;
public function CheckpointText(_arg1:int=0, _arg2:int=0){
ImgCheckPoint = CheckpointText_ImgCheckPoint;
super(ImgCheckPoint, _arg1, _arg2, true, false, 59, 11);
addAnimation("normal", [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 12, false);
}
public function showText():void{
play("normal");
}
}
}//package
Section 137
//CheckpointText_ImgCheckPoint (CheckpointText_ImgCheckPoint)
package {
import mx.core.*;
public class CheckpointText_ImgCheckPoint extends BitmapAsset {
}
}//package
Section 138
//Coin (Coin)
package {
import com.adamatomic.flixel.*;
public class Coin extends FlxSprite {
private var CoinImg:Class;
public function Coin(_arg1:int, _arg2:int){
CoinImg = Coin_CoinImg;
super(CoinImg, _arg1, _arg2, true, false, 9, 9);
addAnimation("normal", [0, 1, 2, 3, 4, 5, 6, 7, 8], 16, true);
play("normal");
}
}
}//package
Section 139
//Coin_CoinImg (Coin_CoinImg)
package {
import mx.core.*;
public class Coin_CoinImg extends BitmapAsset {
}
}//package
Section 140
//EndState (EndState)
package {
import com.adamatomic.flixel.*;
public class EndState extends FlxState {
private var winString:String;
private var EOG:Class;
public function EndState(){
EOG = EndState_EOG;
super();
this.add(new FlxSprite(EOG, 100, 100));
if (PlayerStats.deaths == 0){
winString = "HOLY MOLY, you really owned this game! No deaths!";
} else {
winString = "You win! What were those coins for anyway?";
};
this.add(new FlxText(30, 20, 300, 50, winString, 0xFFFFFF));
this.add(new FlxText(100, 200, 100, 50, ("Total deaths: " + String(PlayerStats.deaths)), 0xFFFFFF));
this.add(new FlxText(100, 220, 100, 50, ("Total coins: " + String(PlayerStats.coins)), 0xFFFFFF));
}
}
}//package
Section 141
//EndState_EOG (EndState_EOG)
package {
import mx.core.*;
public class EndState_EOG extends BitmapAsset {
}
}//package
Section 142
//EvilPlayer (EvilPlayer)
package {
import flash.events.*;
import com.adamatomic.flixel.*;
import flash.utils.*;
public class EvilPlayer extends FlxSprite {
private var _player:Player;
private var ImgBullet:Class;
private var shotAnimChangeTimer:Timer;
private var _state:String;
private var numShots:int;
private var ParticleEvil:Class;
public var ready:Boolean;
private var shotTimer:Timer;
private var _chargeTimer:Timer;
private var PlayerEvil:Class;
private var _bullets:FlxArray;
private static const STATE_TAUNT:String = "taunting player";
private static const STATE_CHARGE:String = "charging toward player";
private static const STATE_INIT:String = "gets ready to start attacking at the beginning";
private static const STATE_NONE:String = "beginning state, waits to be initialized";
private static const STATE_PREPCHARGE:String = "preparing to charge";
private static const STATE_SHOOT:String = "shooting at player";
private static const STATE_JUMP:String = "jumping over player";
public function EvilPlayer(_arg1:Player, _arg2:FlxArray, _arg3:int=0, _arg4:int=0){
PlayerEvil = EvilPlayer_PlayerEvil;
ParticleEvil = EvilPlayer_ParticleEvil;
ImgBullet = EvilPlayer_ImgBullet;
super(PlayerEvil, _arg3, _arg4, true, true, 16, 18);
_player = _arg1;
_state = EvilPlayer.STATE_NONE;
_bullets = _arg2;
health = 200;
ready = true;
acceleration.y = 400;
addAnimation("standing", [0]);
addAnimation("running", [0, 1, 2, 3, 4], 24, true);
addAnimation("jump up", [5]);
addAnimation("jump down", [6]);
addAnimation("shooting", [7, 8], 24, true);
addAnimation("prepcharge", [9, 10], 40, true);
addAnimation("charging", [11, 12, 13, 14], 40);
numShots = 0;
shotTimer = new Timer(1500);
shotTimer.addEventListener(TimerEvent.TIMER, handleShotTimer);
_chargeTimer = new Timer(1000, 1);
_chargeTimer.addEventListener(TimerEvent.TIMER, handleChargeTimer);
shotAnimChangeTimer = new Timer(150, 1);
shotAnimChangeTimer.addEventListener(TimerEvent.TIMER, shotAnimChangeHandler);
}
override public function update():void{
super.update();
switch (_state){
case EvilPlayer.STATE_INIT:
_state = EvilPlayer.STATE_SHOOT;
break;
case EvilPlayer.STATE_SHOOT:
if (numShots == 0){
shoot();
shotTimer.start();
};
break;
case EvilPlayer.STATE_PREPCHARGE:
play("prepcharge");
if (facing == LEFT){
this.velocity.x = 5;
} else {
if (facing == RIGHT){
this.velocity.x = -5;
};
};
case EvilPlayer.STATE_CHARGE:
play("charging");
if (facing == LEFT){
if (this.x < 30){
play("standing");
this.velocity.x = 0;
this.x = 30;
_state = EvilPlayer.STATE_SHOOT;
facing = RIGHT;
};
} else {
if (facing == RIGHT){
if (this.x > 274){
play("standing");
this.x = 274;
this.velocity.x = 0;
_state = EvilPlayer.STATE_SHOOT;
facing = LEFT;
};
};
};
};
}
override public function hurt(_arg1:Number):void{
flicker();
super.hurt(_arg1);
}
public function init():void{
_state = EvilPlayer.STATE_INIT;
ready = false;
}
override public function kill():void{
shotTimer.stop();
var _local1:FlxEmitter = (FlxG.state.add(new FlxEmitter((this.x + 8), (this.y + 8), 5, 5, null, -3, -200, 200, -400, -200, -20, 20, 400, 0, ParticleEvil, 50, false)) as FlxEmitter);
_local1.reset();
super.kill();
}
private function shoot():void{
var _local1:Bullet;
numShots++;
play("shooting");
shotAnimChangeTimer.start();
if (numShots == 4){
shotTimer.stop();
_state = EvilPlayer.STATE_PREPCHARGE;
_chargeTimer.start();
numShots = 0;
return;
};
switch (this.facing){
case LEFT:
_local1 = new Bullet(this.x, (this.y + 8), ImgBullet);
_local1.velocity.x = -200;
_local1.width = 2;
_local1.height = 2;
_local1.offset.x = 3;
_local1.offset.y = 3;
break;
case RIGHT:
_local1 = new Bullet((this.x + 16), (this.y + 8), ImgBullet);
_local1.velocity.x = 200;
_local1.width = 2;
_local1.height = 2;
_local1.offset.x = 3;
_local1.offset.y = 3;
break;
};
_bullets.push(_local1);
FlxG.state.add(_local1);
}
private function shotAnimChangeHandler(_arg1:TimerEvent):void{
play("standing");
}
private function handleChargeTimer(_arg1:TimerEvent):void{
_state = EvilPlayer.STATE_CHARGE;
if (facing == LEFT){
this.velocity.x = -200;
} else {
if (facing == RIGHT){
this.velocity.x = 200;
};
};
}
private function handleShotTimer(_arg1:TimerEvent):void{
shoot();
}
}
}//package
Section 143
//EvilPlayer_ImgBullet (EvilPlayer_ImgBullet)
package {
import mx.core.*;
public class EvilPlayer_ImgBullet extends BitmapAsset {
}
}//package
Section 144
//EvilPlayer_ParticleEvil (EvilPlayer_ParticleEvil)
package {
import mx.core.*;
public class EvilPlayer_ParticleEvil extends BitmapAsset {
}
}//package
Section 145
//EvilPlayer_PlayerEvil (EvilPlayer_PlayerEvil)
package {
import mx.core.*;
public class EvilPlayer_PlayerEvil extends BitmapAsset {
}
}//package
Section 146
//FlxAmbientLight (FlxAmbientLight)
package {
import com.adamatomic.flixel.*;
import flash.display.*;
import flash.geom.*;
public class FlxAmbientLight extends Sprite {
private var _height:int;
private var _width:int;
private var _sources:Array;
private var overlay:Sprite;
private var _zoom:int;
private var screen:Sprite;
public function FlxAmbientLight(){
_sources = new Array();
screen = new Sprite();
overlay = new Sprite();
addChild(screen);
addChild(overlay);
screen.blendMode = BlendMode.LAYER;
overlay.blendMode = BlendMode.ERASE;
_zoom = 2;
_width = 320;
_height = 240;
}
public function update():void{
var _local2:Point;
var _local3:Matrix;
screen.graphics.clear();
screen.graphics.beginFill(0, 1);
screen.graphics.drawRect(0, 0, (_width * _zoom), (_height * _zoom));
screen.graphics.endFill();
overlay.graphics.clear();
var _local1:int;
while (_local1 < _sources.length) {
if (((((((_sources[_local1].source.x * _zoom) < ((_width * _zoom) + (_sources[_local1].radius * _zoom)))) || (((_sources[_local1].source.x * _zoom) > -((_sources[_local1].radius * _zoom)))))) && (((((_sources[_local1].source.y * _zoom) > -((_sources[_local1].radius * _zoom)))) || (((_sources[_local1].source.y * _zoom) < ((_height * _zoom) + _sources[_local1].radius))))))){
_local2 = _sources[_local1].source.getRealXY();
_local2.x = (_local2.x + (_sources[_local1].source.width / 2));
_local2.y = (_local2.y + (_sources[_local1].source.height / 2));
_local3 = new Matrix();
_local3.createGradientBox((_sources[_local1].radius * _zoom), (_sources[_local1].radius * _zoom), 0, (_local2.x - _sources[_local1].radius), (_local2.y - _sources[_local1].radius));
overlay.graphics.beginGradientFill(GradientType.RADIAL, [0xFFFFFF, 0], [1, 0], [200, 0xFF], _local3);
overlay.graphics.drawCircle(_local2.x, _local2.y, (_sources[_local1].radius * _zoom));
overlay.graphics.endFill();
};
_local1++;
};
}
public function addSource(_arg1:uint, _arg2:FlxSprite):void{
_sources.push({radius:_arg1, source:_arg2});
}
}
}//package
Section 147
//IntroSign (IntroSign)
package {
import com.adamatomic.flixel.*;
public class IntroSign extends FlxSprite {
private var ImgSign:Class;
public function IntroSign(_arg1:int=0, _arg2:int=0){
ImgSign = IntroSign_ImgSign;
super(ImgSign, _arg1, _arg2, true, false, 125, 61);
addAnimation("normal", [0]);
play("normal");
}
}
}//package
Section 148
//IntroSign_ImgSign (IntroSign_ImgSign)
package {
import mx.core.*;
public class IntroSign_ImgSign extends BitmapAsset {
}
}//package
Section 149
//NextLvl (NextLvl)
package {
import com.adamatomic.flixel.*;
public class NextLvl extends FlxSprite {
public function NextLvl(_arg1:int=0, _arg2:int=0){
super(null, _arg1, _arg2, false, false, 16, 16);
width = 8;
height = 8;
offset.x = 4;
offset.y = 4;
}
}
}//package
Section 150
//Player (Player)
package {
import flash.events.*;
import com.adamatomic.flixel.*;
import flash.utils.*;
public class Player extends FlxSprite {
private var PlayerImg:Class;
public var _swimming:Boolean;
private var _shootTimer:Timer;
private var _jumpPower:int;
private var _shooting:Boolean;
private var SndSplash:Class;
private var SplashImg:Class;
private var SndShoot:Class;
private var SndJump:Class;
private var _swimPower:int;
private var SndDie:Class;
private var ParticleImg:Class;
private static const DRAGX_NORMAL:int = 640;
private static const GRAVITY_WATER:int = 50;
private static const MAXV_WATER:int = 80;
private static const MAXV_NORMAL:int = 200;
private static const GRAVITY_NORMAL:int = 400;
private static const DRAGX_WATER:int = 50;
public function Player(_arg1:int, _arg2:int){
PlayerImg = Player_PlayerImg;
ParticleImg = Player_ParticleImg;
SplashImg = Player_SplashImg;
SndShoot = Player_SndShoot;
SndJump = Player_SndJump;
SndDie = Player_SndDie;
SndSplash = Player_SndSplash;
super(PlayerImg, _arg1, _arg2, true, true, 16, 18);
var _local3:uint = 80;
drag.x = (_local3 * 8);
acceleration.y = Player.GRAVITY_NORMAL;
_jumpPower = 200;
_swimPower = 70;
maxVelocity.x = _local3;
maxVelocity.y = _jumpPower;
addAnimation("standing", [0]);
addAnimation("running", [0, 1, 2, 3, 4], 24, true);
addAnimation("jump up", [5]);
addAnimation("jump down", [6]);
addAnimation("shooting", [7, 8], 12, true);
addAnimation("water_still", [9]);
addAnimation("water_swim", [9, 10], 8);
this.play("standing");
_shootTimer = new Timer(100, 1);
_shootTimer.addEventListener(TimerEvent.TIMER, handleShootTimer);
}
public function set swimming(_arg1:Boolean):void{
var _local2:FlxEmitter;
if (((((_arg1) && (!(_swimming)))) || (((!(_arg1)) && (_swimming))))){
_swimming = _arg1;
_local2 = (FlxG.state.add(new FlxEmitter((this.x + 8), (this.y + 16), 2, 2, null, -5, -50, 50, -150, -50, 0, 0, 400, 0, SplashImg, 20, true)) as FlxEmitter);
_local2.reset();
FlxG.play(SndSplash, 1);
};
if (_swimming){
this.acceleration.y = Player.GRAVITY_WATER;
this.drag.x = Player.DRAGX_WATER;
this.maxVelocity.y = Player.MAXV_WATER;
maxVelocity.x = 40;
} else {
if (!_swimming){
this.acceleration.y = Player.GRAVITY_NORMAL;
this.drag.x = Player.DRAGX_NORMAL;
this.maxVelocity.y = Player.MAXV_NORMAL;
maxVelocity.x = 80;
};
};
}
private function handleShootTimer(_arg1:TimerEvent):void{
_shooting = false;
}
public function swimNoSplash():void{
_swimming = true;
this.acceleration.y = Player.GRAVITY_WATER;
this.drag.x = Player.DRAGX_WATER;
this.maxVelocity.y = Player.MAXV_WATER;
maxVelocity.x = 40;
}
override public function update():void{
if (!_swimming){
acceleration.x = 0;
if (FlxG.kLeft){
facing = LEFT;
acceleration.x = (acceleration.x - drag.x);
} else {
if (FlxG.kRight){
facing = RIGHT;
acceleration.x = (acceleration.x + drag.x);
};
};
if (((FlxG.justPressed(FlxG.A)) && (!(velocity.y)))){
velocity.y = -(_jumpPower);
FlxG.play(SndJump, 1);
};
if (((FlxG.justPressed(FlxG.B)) && (!(_shooting)))){
_shooting = true;
_shootTimer.start();
shoot();
FlxG.play(SndShoot, 1);
};
} else {
if (_swimming){
acceleration.x = 0;
if (FlxG.kLeft){
play("water_swim");
facing = LEFT;
acceleration.x = (acceleration.x - drag.x);
} else {
if (FlxG.kRight){
play("water_swim");
facing = RIGHT;
acceleration.x = (acceleration.x + drag.x);
} else {
play("water_still");
};
};
if (FlxG.justPressed(FlxG.A)){
velocity.y = (velocity.y - (_swimPower * 0.6));
};
};
};
if (!_shooting){
if (velocity.y < 0){
if (!_swimming){
play("jump up");
} else {
play("water_swim");
};
} else {
if (velocity.y > 0){
if (!_swimming){
play("jump down");
};
if ((((velocity.x == 0)) && (_swimming))){
play("water_still");
};
} else {
if (velocity.x == 0){
play("standing");
} else {
play("running");
};
};
};
} else {
play("shooting");
};
super.update();
}
public function get swimming():Boolean{
return (_swimming);
}
private function shoot():void{
var _local1:int;
var _local2:int;
if (this.facing == RIGHT){
_local1 = 16;
_local2 = 200;
} else {
if (this.facing == LEFT){
_local1 = -1;
_local2 = -200;
};
};
var _local3:Bullet = new Bullet((this.x + _local1), (this.y + 11));
_local3.velocity.x = _local2;
FlxG.state.add(_local3);
this.play("shooting");
}
override public function kill():void{
PlayerStats.deaths++;
dead = true;
FlxG.play(SndDie, 0.5);
var _local1:FlxEmitter = (FlxG.state.add(new FlxEmitter((this.x + 8), (this.y + 16), 5, 5, null, -50, -100, 100, -400, -200, -20, 20, 400, 0, ParticleImg, 10, false)) as FlxEmitter);
_local1.reset();
super.kill();
}
}
}//package
Section 151
//Player_ParticleImg (Player_ParticleImg)
package {
import mx.core.*;
public class Player_ParticleImg extends BitmapAsset {
}
}//package
Section 152
//Player_PlayerImg (Player_PlayerImg)
package {
import mx.core.*;
public class Player_PlayerImg extends BitmapAsset {
}
}//package
Section 153
//Player_SndDie (Player_SndDie)
package {
import mx.core.*;
public class Player_SndDie extends SoundAsset {
}
}//package
Section 154
//Player_SndJump (Player_SndJump)
package {
import mx.core.*;
public class Player_SndJump extends SoundAsset {
}
}//package
Section 155
//Player_SndShoot (Player_SndShoot)
package {
import mx.core.*;
public class Player_SndShoot extends SoundAsset {
}
}//package
Section 156
//Player_SndSplash (Player_SndSplash)
package {
import mx.core.*;
public class Player_SndSplash extends SoundAsset {
}
}//package
Section 157
//Player_SplashImg (Player_SplashImg)
package {
import mx.core.*;
public class Player_SplashImg extends BitmapAsset {
}
}//package
Section 158
//PlayerStats (PlayerStats)
package {
import flash.geom.*;
public class PlayerStats {
public static var coins:int = 0;
private static var checkpoint:Point;
public static var deaths:int = 0;
public static function storeCheckpoint(_arg1:SaveBeacon):void{
checkpoint = new Point(_arg1.x, _arg1.y);
}
public static function loadCheckpoint():Point{
if (checkpoint){
return (checkpoint);
};
return (new Point(0, 0));
}
public static function clearCheckpoint():void{
checkpoint = null;
}
}
}//package
Section 159
//Preloader (Preloader)
package {
import com.adamatomic.flixel.data.*;
public class Preloader extends FlxFactory {
public function Preloader():void{
className = "Adventure";
super();
}
}
}//package
Section 160
//SaveBeacon (SaveBeacon)
package {
import com.adamatomic.flixel.*;
public class SaveBeacon extends FlxSprite {
private var ImgSave:Class;
private var _activated:Boolean;
private var _text:CheckpointText;
private var SndCP:Class;
private var ImgParticle:Class;
public function SaveBeacon(_arg1:int=0, _arg2:int=0){
ImgSave = SaveBeacon_ImgSave;
ImgParticle = SaveBeacon_ImgParticle;
SndCP = SaveBeacon_SndCP;
super(ImgSave, _arg1, _arg2, false, false);
this.width = 24;
this.offset.x = 4;
FlxG.state.add(new FlxEmitter((this.x + 4), (this.y + 5), 20, 27, null, 0.3, 0, 0, -20, -10, 0, 0, 0, 0, ImgParticle, 5, false));
_text = new CheckpointText((this.x - 14), (this.y - 4));
FlxG.state.add(_text);
_text.visible = false;
}
public function activate():void{
if (!_activated){
FlxG.play(SndCP, 0.5);
_text.visible = true;
PlayerStats.storeCheckpoint(this);
_activated = true;
FlxG.flash(3439329279, 0.5);
_text.showText();
};
}
}
}//package
Section 161
//SaveBeacon_ImgParticle (SaveBeacon_ImgParticle)
package {
import mx.core.*;
public class SaveBeacon_ImgParticle extends BitmapAsset {
}
}//package
Section 162
//SaveBeacon_ImgSave (SaveBeacon_ImgSave)
package {
import mx.core.*;
public class SaveBeacon_ImgSave extends BitmapAsset {
}
}//package
Section 163
//SaveBeacon_SndCP (SaveBeacon_SndCP)
package {
import mx.core.*;
public class SaveBeacon_SndCP extends SoundAsset {
}
}//package
Section 164
//Spikes (Spikes)
package {
import com.adamatomic.flixel.*;
public class Spikes extends FlxSprite {
private var SpikeImg:Class;
public function Spikes(_arg1:int=0, _arg2:int=0){
SpikeImg = Spikes_SpikeImg;
super(SpikeImg, _arg1, _arg2, false, false, 16, 16);
height = 6;
offset.y = 8;
width = 12;
offset.x = 2;
}
}
}//package
Section 165
//Spikes_SpikeImg (Spikes_SpikeImg)
package {
import mx.core.*;
public class Spikes_SpikeImg extends BitmapAsset {
}
}//package
Section 166
//SpikesD (SpikesD)
package {
import com.adamatomic.flixel.*;
public class SpikesD extends FlxSprite {
private var SpikeImg:Class;
public function SpikesD(_arg1:int=0, _arg2:int=0){
SpikeImg = SpikesD_SpikeImg;
super(SpikeImg, _arg1, _arg2, false, false, 16, 16);
height = 6;
width = 12;
offset.x = 2;
}
}
}//package
Section 167
//SpikesD_SpikeImg (SpikesD_SpikeImg)
package {
import mx.core.*;
public class SpikesD_SpikeImg extends BitmapAsset {
}
}//package
Section 168
//SpikesL (SpikesL)
package {
import com.adamatomic.flixel.*;
public class SpikesL extends FlxSprite {
private var SpikeImg:Class;
public function SpikesL(_arg1:int=0, _arg2:int=0){
SpikeImg = SpikesL_SpikeImg;
super(SpikeImg, _arg1, _arg2, false, false, 16, 16);
width = 6;
height = 12;
offset.y = 2;
}
}
}//package
Section 169
//SpikesL_SpikeImg (SpikesL_SpikeImg)
package {
import mx.core.*;
public class SpikesL_SpikeImg extends BitmapAsset {
}
}//package
Section 170
//SpikesR (SpikesR)
package {
import com.adamatomic.flixel.*;
public class SpikesR extends FlxSprite {
private var SpikeImg:Class;
public function SpikesR(_arg1:int=0, _arg2:int=0){
SpikeImg = SpikesR_SpikeImg;
super(SpikeImg, _arg1, _arg2, false, false, 16, 16);
width = 6;
offset.x = 10;
height = 12;
offset.y = 2;
}
}
}//package
Section 171
//SpikesR_SpikeImg (SpikesR_SpikeImg)
package {
import mx.core.*;
public class SpikesR_SpikeImg extends BitmapAsset {
}
}//package
Section 172
//TitleMenu (TitleMenu)
package {
import com.adamatomic.flixel.*;
import levels.*;
import flash.net.*;
public class TitleMenu extends FlxState {
private var ImgPmg:Class;
var logo:FlxButton;
var pmg:FlxButton;
private var ImgFollow:Class;
private var ImgTitle:Class;
var follow:FlxButton;
private var ImgCursor:Class;
private var ImgLogo:Class;
public function TitleMenu(){
ImgCursor = TitleMenu_ImgCursor;
ImgTitle = TitleMenu_ImgTitle;
ImgLogo = TitleMenu_ImgLogo;
ImgPmg = TitleMenu_ImgPmg;
ImgFollow = TitleMenu_ImgFollow;
super();
this.add(new FlxSprite(ImgTitle, 0, 0));
FlxG.setCursor(ImgCursor);
logo = new FlxButton(116, 37, new FlxSprite(ImgLogo), logoClicked);
this.add(logo);
pmg = new FlxButton(124, 207, new FlxSprite(ImgPmg), logoClicked);
this.add(pmg);
follow = new FlxButton(116, 226, new FlxSprite(ImgFollow), followClicked);
this.add(follow);
}
private function logoClicked():void{
navigateToURL(new URLRequest("http://www.armorgames.com"), "_blank");
}
private function followClicked():void{
navigateToURL(new URLRequest("http://www.twitter.com/armorgames"), "_blank");
}
override public function update():void{
super.update();
if (((FlxG.kA) && (FlxG.kB))){
FlxG.switchState(IntroState);
};
}
}
}//package
Section 173
//TitleMenu_ImgCursor (TitleMenu_ImgCursor)
package {
import mx.core.*;
public class TitleMenu_ImgCursor extends BitmapAsset {
}
}//package
Section 174
//TitleMenu_ImgFollow (TitleMenu_ImgFollow)
package {
import mx.core.*;
public class TitleMenu_ImgFollow extends BitmapAsset {
}
}//package
Section 175
//TitleMenu_ImgLogo (TitleMenu_ImgLogo)
package {
import mx.core.*;
public class TitleMenu_ImgLogo extends BitmapAsset {
}
}//package
Section 176
//TitleMenu_ImgPmg (TitleMenu_ImgPmg)
package {
import mx.core.*;
public class TitleMenu_ImgPmg extends BitmapAsset {
}
}//package
Section 177
//TitleMenu_ImgTitle (TitleMenu_ImgTitle)
package {
import mx.core.*;
public class TitleMenu_ImgTitle extends BitmapAsset {
}
}//package