STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229494
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2575 · P5149

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/42142831?noj=FRM42142831-14DC" width="1" height="1"></div>

Deeplight Expedition - restore sunlight to the world in this flash game.swf

This is the info page for
Flash #90568

(Click the ID number above for more basic data on this flash file.)


Text
GAMESFREE.COM

PRESENTS

ActionScript [AS3]

Section 1
//WasabiEmitter (com.wasabi.shared.effects.WasabiEmitter) package com.wasabi.shared.effects { import org.flixel.*; public class WasabiEmitter extends FlxEmitter { public function WasabiEmitter(_arg1:int, _arg2:int){ super(_arg1, _arg2); } protected function generateParticleStock(_arg1:Class, _arg2:int):void{ var _local3:int; while (_local3 < _arg2) { this.add(new (_arg1), true); _local3++; }; } } }//package com.wasabi.shared.effects
Section 2
//WasabiGameState (com.wasabi.shared.states.WasabiGameState) package com.wasabi.shared.states { import org.flixel.*; import flash.display.*; public class WasabiGameState extends FlxState { protected var flashDisplayObjects:Array; protected var isTransitioning:Boolean; protected var transitionClock:Number; protected var nextState:FlxState; private static const TRANSITION_TIME:Number = 0.3; public function addDisplayObject(_arg1:DisplayObject):void{ this.flashDisplayObjects.push(_arg1); if (!this.stage.contains(_arg1)){ this.stage.addChild(_arg1); }; } protected function beginTransition():void{ this.isTransitioning = true; this.transitionClock = 0; } override public function update():void{ super.update(); if (this.isTransitioning){ this.transitionClock = (this.transitionClock + FlxG.elapsed); if (this.transitionClock >= WasabiGameState.TRANSITION_TIME){ this.endTransition(); }; }; } public function removeDisplayObject(_arg1:DisplayObject):void{ if (this.stage.contains(_arg1)){ this.stage.removeChild(_arg1); }; var _local2:int; while (_local2 < this.flashDisplayObjects.length) { if (this.flashDisplayObjects[_local2] == _arg1){ this.flashDisplayObjects.splice(_local2, 1); }; _local2++; }; } public function get transitioning():Boolean{ return (this.isTransitioning); } protected function endTransition():void{ this.isTransitioning = false; this.onTransitionComplete(); } protected function onTransitionComplete():void{ if (this.nextState != null){ FlxG.state = this.nextState; }; } override public function create():void{ super.create(); this.flashDisplayObjects = new Array(); this.isTransitioning = false; this.transitionClock = 0; this.nextState = null; } public function switchState(_arg1:FlxState):void{ this.nextState = _arg1; this.beginTransition(); } } }//package com.wasabi.shared.states
Section 3
//FlashButton (com.wasabi.shared.ui.FlashButton) package com.wasabi.shared.ui { import org.flixel.*; import flash.events.*; import flash.display.*; import flash.ui.*; public class FlashButton extends Sprite { private var callback:Function; private var disabledImage:DisplayObject; private var callbackArguments:Object; private var isHovered:Boolean; private var pressedImage:DisplayObject; private var standardImage:DisplayObject; private var imageScale:Number; private var isEnabled:Boolean; private var hoverImage:DisplayObject; public function FlashButton(_arg1:Function=null, _arg2:Object=null, _arg3:Number=1){ this.buttonMode = (this.useHandCursor = true); this.isEnabled = true; this.isHovered = false; this.callback = _arg1; this.callbackArguments = _arg2; this.addEventListener(MouseEvent.MOUSE_OVER, this.onMouseOver); this.addEventListener(MouseEvent.MOUSE_OUT, this.onMouseOut); this.addEventListener(MouseEvent.CLICK, this.onClick); this.imageScale = _arg3; } public function get enabled():Boolean{ return (this.isEnabled); } public function set enabled(_arg1:Boolean):void{ this.isEnabled = _arg1; this.displayStateImage(); } private function hideStateImages():void{ this.standardImage.visible = (this.hoverImage.visible = false); this.disabledImage.visible = (this.pressedImage.visible = false); } private function removeImageChildren():void{ if (this.contains(this.standardImage)){ this.removeChild(this.standardImage); }; if (this.contains(this.hoverImage)){ this.removeChild(this.hoverImage); }; if (this.contains(this.disabledImage)){ this.removeChild(this.disabledImage); }; if (this.contains(this.pressedImage)){ this.removeChild(this.pressedImage); }; } private function onMouseOut(_arg1:Event):void{ FlxG.mouse.show(); Mouse.hide(); this.isHovered = false; this.displayStateImage(); } private function displayStateImage():void{ this.hideStateImages(); if (this.isEnabled){ if (this.isHovered){ this.hoverImage.visible = true; } else { this.standardImage.visible = true; }; } else { this.disabledImage.visible = true; }; } private function onClick(_arg1:Event):void{ if (((this.isEnabled) && (!((this.callback == null))))){ if (this.callbackArguments != null){ this.callback(this.callbackArguments); } else { this.callback(); }; }; } private function onMouseOver(_arg1:Event):void{ FlxG.mouse.hide(); Mouse.show(); this.isHovered = true; this.displayStateImage(); } public function loadImages(_arg1:DisplayObject, _arg2:DisplayObject=null, _arg3:DisplayObject=null, _arg4:DisplayObject=null):void{ this.standardImage = _arg1; this.hoverImage = ((_arg2)==null) ? this.standardImage : _arg2; this.pressedImage = ((_arg3)==null) ? this.standardImage : _arg3; this.disabledImage = ((_arg4)==null) ? this.standardImage : _arg4; this.addChild(this.standardImage); if (this.hoverImage != this.standardImage){ this.addChild(this.hoverImage); }; if (this.pressedImage != this.standardImage){ this.addChild(this.pressedImage); }; if (this.disabledImage != this.standardImage){ this.addChild(this.standardImage); }; if (this.standardImage != null){ this.standardImage.scaleX = (this.standardImage.scaleY = this.imageScale); }; if (this.hoverImage != null){ this.hoverImage.scaleX = (this.hoverImage.scaleY = this.imageScale); }; if (this.pressedImage != null){ this.pressedImage.scaleX = (this.pressedImage.scaleY = this.imageScale); }; if (this.disabledImage != null){ this.disabledImage.scaleX = (this.disabledImage.scaleY = this.imageScale); }; this.displayStateImage(); } } }//package com.wasabi.shared.ui
Section 4
//Frame (com.wasabi.shared.ui.Frame) package com.wasabi.shared.ui { import org.flixel.*; import flash.display.*; public class Frame extends FlxGroup { private var graphicClass:Class; protected var framePartSize:int; private var graphicData:BitmapData; private var sprites:Array; private static const LEFT:int = 3; private static const BOTTOM_RIGHT:int = 8; private static const BOTTOM:int = 7; private static const CENTER:int = 4; private static const TOP_LEFT:int = 0; private static const TOP_RIGHT:int = 2; private static const MAX_SPRITE_INDEX:int = 8; private static const TOP:int = 1; private static const SPRITE_COUNT:int = 9; private static const BOTTOM_LEFT:int = 6; private static const RIGHT:int = 5; public function Frame(_arg1:Class, _arg2:int=0){ var _local3:int; var _local4:FlxSprite; super(); this.sprites = new Array(); this.graphicClass = _arg1; this.graphicData = FlxG.addBitmap(this.graphicClass); if (_arg2 <= 0){ _arg2 = Math.floor((this.graphicData.width / 3)); }; this.framePartSize = _arg2; _local3 = 0; while (_local3 < Frame.SPRITE_COUNT) { _local4 = new FlxSprite(); _local4.loadGraphic(this.graphicClass, true, false, this.framePartSize, this.framePartSize); _local4.antialiasing = false; _local4.solid = false; _local4.addAnimation("Exist", [0, 1, 2, 3, 4, 5, 6, 7, 8]); _local4.play("Exist"); _local4.frame = _local3; _local4.origin = new FlxPoint(); this.sprites.push(_local4); this.add(_local4); _local3++; }; } public function setSize(_arg1:int, _arg2:int):void{ var _local3:Number; var _local4:Number; var _local5:int; _local3 = (_arg1 - (this.framePartSize * 2)); _local4 = (_arg2 - (this.framePartSize * 2)); this.width = _arg1; this.height = _arg2; _local5 = 0; while (_local5 < this.sprites.length) { this.sprites[_local5].scrollFactor.x = this.scrollFactor.x; this.sprites[_local5].scrollFactor.y = this.scrollFactor.y; _local5++; }; this.sprites[Frame.TOP_LEFT].reset(0, 0); this.sprites[Frame.TOP_RIGHT].reset((this.width - this.framePartSize), 0); this.sprites[Frame.TOP].reset(this.framePartSize, 0); this.sprites[Frame.TOP].scale = new FlxPoint((_local3 / this.framePartSize), 1); this.sprites[Frame.BOTTOM_LEFT].reset(0, (this.height - this.framePartSize)); this.sprites[Frame.BOTTOM_RIGHT].reset((this.width - this.framePartSize), (this.height - this.framePartSize)); this.sprites[Frame.BOTTOM].reset(this.framePartSize, (this.height - this.framePartSize)); this.sprites[Frame.BOTTOM].scale = new FlxPoint((_local3 / this.framePartSize), 1); this.sprites[Frame.LEFT].reset(0, this.framePartSize); this.sprites[Frame.LEFT].scale = new FlxPoint(1, (_local4 / this.framePartSize)); this.sprites[Frame.RIGHT].reset((this.width - this.framePartSize), this.framePartSize); this.sprites[Frame.RIGHT].scale = new FlxPoint(1, (_local4 / this.framePartSize)); this.sprites[Frame.CENTER].reset(this.framePartSize, this.framePartSize); this.sprites[Frame.CENTER].scale = new FlxPoint((_local3 / this.framePartSize), (_local4 / this.framePartSize)); } override public function reset(_arg1:Number, _arg2:Number):void{ var _local3:Number; var _local4:Number; super.reset(_arg1, _arg2); _local3 = (this.width - (this.framePartSize * 2)); _local4 = (this.height - (this.framePartSize * 2)); this.sprites[Frame.TOP_LEFT].reset((this.x + 0), (this.y + 0)); this.sprites[Frame.TOP_RIGHT].reset(((this.x + this.width) - this.framePartSize), (this.y + 0)); this.sprites[Frame.TOP].reset((this.x + this.framePartSize), (this.y + 0)); this.sprites[Frame.TOP].scale = new FlxPoint((_local3 / this.framePartSize), 1); this.sprites[Frame.BOTTOM_LEFT].reset((this.x + 0), ((this.y + this.height) - this.framePartSize)); this.sprites[Frame.BOTTOM_RIGHT].reset(((this.x + this.width) - this.framePartSize), ((this.y + this.height) - this.framePartSize)); this.sprites[Frame.BOTTOM].reset((this.x + this.framePartSize), ((this.y + this.height) - this.framePartSize)); this.sprites[Frame.BOTTOM].scale = new FlxPoint((_local3 / this.framePartSize), 1); this.sprites[Frame.LEFT].reset((this.x + 0), (this.y + this.framePartSize)); this.sprites[Frame.LEFT].scale = new FlxPoint(1, (_local4 / this.framePartSize)); this.sprites[Frame.RIGHT].reset(((this.x + this.width) - this.framePartSize), (this.y + this.framePartSize)); this.sprites[Frame.RIGHT].scale = new FlxPoint(1, (_local4 / this.framePartSize)); this.sprites[Frame.CENTER].reset((this.x + this.framePartSize), (this.y + this.framePartSize)); this.sprites[Frame.CENTER].scale = new FlxPoint((_local3 / this.framePartSize), (_local4 / this.framePartSize)); } } }//package com.wasabi.shared.ui
Section 5
//TextFrame (com.wasabi.shared.ui.TextFrame) package com.wasabi.shared.ui { import org.flixel.*; public class TextFrame extends Frame { private var textDisplay:FlxText; private var text:String; public function TextFrame(_arg1:Class, _arg2:String="", _arg3:int=0){ super(_arg1, _arg3); this.text = _arg2; this.textDisplay = new FlxText((this.framePartSize / 2), (this.framePartSize / 2), 50, this.text); this.textDisplay.size = 8; this.textDisplay.color = 0; this.textDisplay.shadow = 0xE0E0E0; this.add(this.textDisplay); } override public function setSize(_arg1:int, _arg2:int):void{ super.setSize(_arg1, _arg2); this.textDisplay.width = (_arg1 - framePartSize); } public function setSizeAndText(_arg1:int, _arg2:String):void{ this.text = _arg2; this.textDisplay.changeWidth((_arg1 - framePartSize)); this.textDisplay.text = this.text; this.setSize((textDisplay.width + framePartSize), (this.textDisplay.height + framePartSize)); } } }//package com.wasabi.shared.ui
Section 6
//WasabiTilemap (com.wasabi.shared.WasabiTilemap) package com.wasabi.shared { import org.flixel.*; import flash.display.*; import flash.geom.*; public class WasabiTilemap extends FlxTilemap { public var tileVisible:Array; public function WasabiTilemap(){ this.tileVisible = new Array(); } override protected function renderTilemap():void{ var _local1:BitmapData; var _local6:uint; var _local7:uint; if (FlxG.showBounds){ _local1 = _bbPixels; } else { _local1 = _pixels; }; getScreenXY(_point); _flashPoint.x = _point.x; _flashPoint.y = _point.y; var _local2:int = Math.floor((-(_flashPoint.x) / _tileWidth)); var _local3:int = Math.floor((-(_flashPoint.y) / _tileHeight)); if (_local2 < 0){ _local2 = 0; }; if (_local2 > (widthInTiles - _screenCols)){ _local2 = (widthInTiles - _screenCols); }; if (_local3 < 0){ _local3 = 0; }; if (_local3 > (heightInTiles - _screenRows)){ _local3 = (heightInTiles - _screenRows); }; var _local4:int = ((_local3 * widthInTiles) + _local2); _flashPoint.x = (_flashPoint.x + (_local2 * _tileWidth)); _flashPoint.y = (_flashPoint.y + (_local3 * _tileHeight)); var _local5:int = _flashPoint.x; var _local8:uint; while (_local8 < _screenRows) { _local7 = _local4; _local6 = 0; while (_local6 < _screenCols) { if (this.tileVisible[_local7]){ _flashRect = (_rects[_local7] as Rectangle); if (_flashRect != null){ FlxG.buffer.copyPixels(_local1, _flashRect, _flashPoint, null, null, true); }; }; _flashPoint.x = (_flashPoint.x + _tileWidth); _local6++; _local7++; }; _local4 = (_local4 + widthInTiles); _flashPoint.x = _local5; _flashPoint.y = (_flashPoint.y + _tileHeight); _local8++; }; } override public function loadMap(_arg1:String, _arg2:Class, _arg3:uint=0, _arg4:uint=0):FlxTilemap{ super.loadMap(_arg1, _arg2, _arg3, _arg4); this.setGlobalVisibility(true); return (this); } public function setGlobalVisibility(_arg1:Boolean):void{ var _local3:int; var _local2:int; while (_local2 < this.heightInTiles) { _local3 = 0; while (_local3 < this.widthInTiles) { this.tileVisible[((_local2 * this.widthInTiles) + _local3)] = _arg1; _local3++; }; _local2++; }; } } }//package com.wasabi.shared
Section 7
//WasabiU (com.wasabi.shared.WasabiU) package com.wasabi.shared { public class WasabiU { public static function dumpObject(_arg1, _arg2:String=" "):String{ var _local4:String; var _local3 = ""; _local3 = ("" + _arg1.toString()); for (_local4 in _arg1) { _local3 = (((((_local3 + "\n") + _arg2) + _local4) + ": ") + dumpObject(_arg1[_local4], (_arg2 + "\t"))); }; return (_local3); } public static function loadString(_arg1:Class):String{ var _local2:String; _local2 = new (_arg1); _local2 = _local2.replace(/\r\n/g, "\n"); return (_local2); } } }//package com.wasabi.shared
Section 8
//CameraRegion (com.wasabi.tr.cameras.CameraRegion) package com.wasabi.tr.cameras { import com.wasabi.tr.objects.*; public class CameraRegion extends GameObject { public function CameraRegion(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.createGraphic(_arg3, _arg4, 0); this.visible = false; this.solid = false; this.fixed = true; this.moves = false; this.active = false; } } }//package com.wasabi.tr.cameras
Section 9
//CameraTrigger (com.wasabi.tr.cameras.CameraTrigger) package com.wasabi.tr.cameras { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.states.*; import com.wasabi.tr.objects.utility.*; public class CameraTrigger extends Trigger { private var isLerping:Boolean; private var region:CameraRegion; public var regionTag:String; private var previousFollowMin:FlxPoint; private var lerpMax:FlxPoint; private var lerpClock:Number; private var lerpMin:FlxPoint; private var previousFollowMax:FlxPoint; private static const LERP_TIME:Number = 0.5; public function CameraTrigger(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2, _arg3, _arg4); this.lerpMax = new FlxPoint(); this.lerpMin = new FlxPoint(); this.region = null; this.regionTag = ""; this.isLerping = false; } override public function update():void{ var _local1:Number; super.update(); if (this.isLerping){ this.lerpClock = (this.lerpClock + FlxG.elapsed); if (this.lerpClock >= CameraTrigger.LERP_TIME){ FlxG.followBounds(this.region.left, this.region.top, this.region.right, this.region.bottom, false); this.isLerping = false; } else { _local1 = (this.lerpClock / CameraTrigger.LERP_TIME); this.lerpMax.x = (((this.region.right - this.previousFollowMax.x) * _local1) + this.previousFollowMax.x); this.lerpMax.y = (((this.region.bottom - this.previousFollowMax.y) * _local1) + this.previousFollowMax.y); this.lerpMin.x = (((this.region.left - this.previousFollowMin.x) * _local1) + this.previousFollowMin.x); this.lerpMin.y = (((this.region.top - this.previousFollowMin.y) * _local1) + this.previousFollowMin.y); FlxG.followBounds(this.lerpMin.x, this.lerpMin.y, this.lerpMax.x, this.lerpMax.y, false); }; }; } override public function activate(_arg1:Player):void{ var _local2:Number; super.activate(_arg1); if (this.region != null){ this.isLerping = true; this.lerpClock = 0; this.previousFollowMin = new FlxPoint(-(FlxG.followMin.x), -(FlxG.followMin.y)); this.previousFollowMax = new FlxPoint((-(FlxG.followMax.x) + FlxG.width), (-(FlxG.followMax.y) + FlxG.height)); _local2 = (FlxPoint.distance(this.previousFollowMin, new FlxPoint(this.region.left, this.region.top)) + FlxPoint.distance(this.previousFollowMax, new FlxPoint(this.region.right, this.region.bottom))); }; } override public function initialize():void{ super.initialize(); this.region = (PlayingState.instance.getObjectByTag(this.regionTag, "CameraRegions") as CameraRegion); } } }//package com.wasabi.tr.cameras
Section 10
//A00 (com.wasabi.tr.maps.A00) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.utility.*; public class A00 extends Map { public static const CSV_MAP_FOREGROUND1:Class = A00_CSV_MAP_FOREGROUND1; public static const CSV_MAP_BASELAYER:Class = A00_CSV_MAP_BASELAYER; public static const CSV_MAP_FOREGROUND2:Class = A00_CSV_MAP_FOREGROUND2; public static const CSV_MAP_INTERACTIVELAYER:Class = A00_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["MinimapOffset"] = new FlxPoint(5, 3); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504]; this.Properties["BackgroundScrolls"] = true; this.Properties["RoomName"] = "Labyrinth Entrance"; this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new A00.CSV_MAP_BASELAYER(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["BaseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["BaseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new A00.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new MovingPlatform(232, 0x0100, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = ""; (_local3 as MovingPlatform).targetTag = "elevatorTargetA"; (_local3 as MovingPlatform).speed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(232, 408); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "elevatorTargetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Message(456, 280, 48, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Press LEFT / RIGHT (or A / D) to walk, and UP (or W, or the SPACEBAR) to jump."; (_local3 as Message).flagToCheck = "Tutorial_A_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(944, 352, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B00_From_A00"; (_local3 as Transition).targetMap = "B00"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(936, 360); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "A00_From_B00"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(476, 296); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "GameStart"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "9bdc5242-cb54-4bd8-ac4f-d5f42cec8a6b"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(16, 360); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "b9dd01c6-4054-4a48-84e9-1d85bc9efaa3"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C09_From_A00"; (_local3 as Transition).targetMap = "C09"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 360, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C08_From_A00"; (_local3 as Transition).targetMap = "C08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 184); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "A00_From_C09"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Message(24, 168, 40, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "This door is locked. You'll need to find a key before you can open it."; (_local3 as Message).flagToCheck = "Tutorial_A_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(24, 352, 40, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "This door is locked. You'll need to find a key before you can open it."; (_local3 as Message).flagToCheck = "Tutorial_A_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(704, 400, 64, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "You must search through the labyrinth to find the Deeplight stone."; (_local3 as Message).flagToCheck = "Tutorial_A_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(896, 344, 48, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "The labyrinth is uninhabited, but it is filled with natural hazards and traps."; (_local3 as Message).flagToCheck = "Tutorial_A_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 368); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "A00_From_C08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new A00.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new A00.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 11
//A00_CSV_MAP_BASELAYER (com.wasabi.tr.maps.A00_CSV_MAP_BASELAYER) package com.wasabi.tr.maps { import mx.core.*; public class A00_CSV_MAP_BASELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 12
//A00_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.A00_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class A00_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 13
//A00_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.A00_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class A00_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 14
//A00_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.A00_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class A00_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 15
//B00 (com.wasabi.tr.maps.B00) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class B00 extends Map { public static const CSV_MAP_DETAIL2:Class = B00_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = B00_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BASELAYER:Class = B00_CSV_MAP_BASELAYER; public static const CSV_MAP_FOREGROUND1:Class = B00_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAILLAYER:Class = B00_CSV_MAP_DETAILLAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = B00_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["MinimapOffset"] = new FlxPoint(8, 4); this.Properties["BackgroundGradient"] = [6176029, 853504]; this.Properties["Music"] = "Damp"; this.Properties["RoomName"] = "First Tunnel"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B00.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B00.CSV_MAP_BASELAYER(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["BaseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["BaseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new B00.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(16, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B00_From_A00"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "A00_From_B00"; (_local3 as Transition).targetMap = "A00"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(0x0200, 128, 24, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "You will automatically grab onto ledges during a jump."; (_local3 as Message).flagToCheck = "Tutorial_B_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(304, 160, 32, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Be careful! You are not waterproof or magma-safe!"; (_local3 as Message).flagToCheck = "Tutorial_B_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(568, 104, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Press UP (or W, or the SPACEBAR) to jump upwards after grabbing a ledge."; (_local3 as Message).flagToCheck = "Tutorial_B_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(696, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformTargetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(616, 120, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = ""; (_local3 as MovingPlatform).targetTag = "PlatformTargetA"; (_local3 as MovingPlatform).speed = 50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Transition(944, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B01_From_B00"; (_local3 as Transition).targetMap = "B01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(936, 216); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B00_From_B01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Message(576, 88, 32, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Beware of falling onto, jumping into, or otherwise touching deadly spikes."; (_local3 as Message).flagToCheck = "Tutorial_B_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Water(336, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(352, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(368, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(384, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(400, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(416, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(432, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(448, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(464, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(480, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(496, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Tablet(900, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_1"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Message(16, 96, 64, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Your progress is saved automatically every time you walk through a door or passageway."; (_local3 as Message).flagToCheck = "Tutorial_B_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(0, 16, 80, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_A_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B00.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B00.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B00.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 16
//B00_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.B00_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B00_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 17
//B00_CSV_MAP_BASELAYER (com.wasabi.tr.maps.B00_CSV_MAP_BASELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B00_CSV_MAP_BASELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 18
//B00_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.B00_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class B00_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 19
//B00_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.B00_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class B00_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 20
//B00_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.B00_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B00_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 21
//B00_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.B00_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B00_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 22
//B01 (com.wasabi.tr.maps.B01) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class B01 extends Map { public static const CSV_MAP_BASELAYER:Class = B01_CSV_MAP_BASELAYER; public static const CSV_MAP_BACKGROUND1:Class = B01_CSV_MAP_BACKGROUND1; public static const CSV_MAP_FOREGROUND1:Class = B01_CSV_MAP_FOREGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = B01_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_DETAIL1:Class = B01_CSV_MAP_DETAIL1; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["MinimapOffset"] = new FlxPoint(11, 3); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504]; this.Properties["BackgroundScrolls"] = true; this.Properties["RoomName"] = "The Simple Ascent"; this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B01.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B01.CSV_MAP_BASELAYER(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["BaseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["BaseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new B01.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new MovingPlatform(144, 112, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = ""; (_local3 as MovingPlatform).targetTag = "PlatformTargetA"; (_local3 as MovingPlatform).speed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(0x0100, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformTargetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 456); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B01_From_B00"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B00_From_B01"; (_local3 as Transition).targetMap = "B00"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(32, 328, 32, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Jump towards a wall and push away from it at the height of your jump to bounce off. (There's no need to hold the jump button.)"; (_local3 as Message).flagToCheck = "Tutorial_C_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 88, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B02_From_B01"; (_local3 as Transition).targetMap = "B02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B01_From_B02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Tablet(240, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_2"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(0, 384, 48, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_B_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B01.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B01.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 23
//B01_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.B01_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B01_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 24
//B01_CSV_MAP_BASELAYER (com.wasabi.tr.maps.B01_CSV_MAP_BASELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B01_CSV_MAP_BASELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 25
//B01_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.B01_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class B01_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 26
//B01_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.B01_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B01_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 27
//B01_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.B01_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B01_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 28
//B02 (com.wasabi.tr.maps.B02) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class B02 extends Map { public static const CSV_MAP_FOREGROUND1:Class = B02_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAILLAYER:Class = B02_CSV_MAP_DETAILLAYER; public static const CSV_MAP_BASELAYER:Class = B02_CSV_MAP_BASELAYER; public static const CSV_MAP_BACKGROUNDLAYER:Class = B02_CSV_MAP_BACKGROUNDLAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = B02_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "BaseLayer"; this.Properties["MinimapOffset"] = new FlxPoint(9, 2); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504]; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "The Twisting Way"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B02.CSV_MAP_BACKGROUNDLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["BackgroundLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["BackgroundLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B02.CSV_MAP_BASELAYER(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["BaseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["BaseLayer"] = _local1; this.Groups.push(_local1); _local3 = new Crusher(344, 208, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 30; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B02.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new B02.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(616, 336); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B02_From_B01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(240, 16, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(432, 64, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 328, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B01_From_B02"; (_local3 as Transition).targetMap = "B01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(24, 368, 16, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "You'll need to find a key before you can open this door."; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(200, 56, 32, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "The spike trap here is deadly, but predictable."; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B03_From_B02"; (_local3 as Transition).targetMap = "B03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B02_From_B03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Crusher(240, 392, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 10; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Message(360, 400, 48, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Watch out for the crushing ceiling ahead!"; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(312, 416, 24, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Trigger it carefully, then sneak by while it is resetting!"; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(16, 368); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "54415ff9-87fd-475c-91af-8c6ab2be53d3"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 368, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C04_From_B02"; (_local3 as Transition).targetMap = "C04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(592, 0x0100, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Bouncer(520, 248, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(560, 264, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(592, 288, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 376); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B02_From_C04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Tablet(528, 264); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_3"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Message(32, 336, 32, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Use your wall jumping ability to climb up here."; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(584, 328, 40, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_C_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(152, 184, 48, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "You will need to find four runes in order to open the crystal rune doors that protect Deeplight stone."; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(128, 88, 40, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "The minimap in the lower right corner can help you keep track of where you've been and where you need to go."; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(128, 24, 32, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "If the minimap is ever in your way, you can toggle it on and off by pressing Z (or B)."; (_local3 as Message).flagToCheck = "Tutorial_D_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B02.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 29
//B02_CSV_MAP_BACKGROUNDLAYER (com.wasabi.tr.maps.B02_CSV_MAP_BACKGROUNDLAYER) package com.wasabi.tr.maps { import mx.core.*; public class B02_CSV_MAP_BACKGROUNDLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 30
//B02_CSV_MAP_BASELAYER (com.wasabi.tr.maps.B02_CSV_MAP_BASELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B02_CSV_MAP_BASELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 31
//B02_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.B02_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class B02_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 32
//B02_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.B02_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B02_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 33
//B02_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.B02_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B02_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 34
//B03 (com.wasabi.tr.maps.B03) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class B03 extends Map { public static const CSV_MAP_FOREGROUND2:Class = B03_CSV_MAP_FOREGROUND2; public static const CSV_MAP_BACKGROUND1:Class = B03_CSV_MAP_BACKGROUND1; public static const CSV_MAP_FOREGROUND1:Class = B03_CSV_MAP_FOREGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = B03_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_DETAIL1:Class = B03_CSV_MAP_DETAIL1; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["HazardLayer"] = "InteractiveLayer"; this.Properties["MinimapOffset"] = new FlxPoint(11, 2); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504]; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "The Lush Passage"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B03.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new B03.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(16, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B03_From_B02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B02_From_B03"; (_local3 as Transition).targetMap = "B02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(1156, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B03_From_B04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(1136, 224, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B04_From_B03"; (_local3 as Transition).targetMap = "B04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(1088, 176, 48, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "There are no bottomless pits: jumping down will always lead you somewhere."; (_local3 as Message).flagToCheck = "Tutorial_E_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Tablet(24, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_17"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Message(96, 72, 32, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Tablets, like the one below, are scattered throughout the labyrinth."; (_local3 as Message).flagToCheck = "Tutorial_E_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(32, 184, 64, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Collect the tablets to learn more about the Deeplight stone. Press X (or N) at any time to review the tablets you've collected."; (_local3 as Message).flagToCheck = "Tutorial_E_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(720, 120, 32, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "Here's another chance to practice wall jumping."; (_local3 as Message).flagToCheck = "Tutorial_E_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(16, 16, 40, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_D_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B03.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B03.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B03.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 35
//B03_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.B03_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B03_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 36
//B03_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.B03_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class B03_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 37
//B03_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.B03_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B03_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 38
//B03_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.B03_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class B03_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 39
//B03_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.B03_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B03_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 40
//B04 (com.wasabi.tr.maps.B04) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class B04 extends Map { public static const CSV_MAP_FOREGROUND1:Class = B04_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = B04_CSV_MAP_FOREGROUND2; public static const CSV_MAP_BACKGROUND1:Class = B04_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = B04_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_DECORATIONS:Class = B04_CSV_MAP_DECORATIONS; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(14, 3); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504]; this.Properties["BackgroundScrolls"] = true; this.Properties["RoomName"] = "The Gold Corridor"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B04.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B04.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B04.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new B04.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(208, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B04_From_B03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(160, 528, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(240, 592, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(176, 0, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B03_From_B04"; (_local3 as Transition).targetMap = "B03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 1152, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C01_From_B04"; (_local3 as Transition).targetMap = "C01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 1160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "B04_From_C01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Tablet(264, 676); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_18"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Message(192, 48, 32, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "You can climb back up to the previous area by jumping upwards through the ceiling here."; (_local3 as Message).flagToCheck = "Tutorial_F_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(128, 48, 48, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "You should try to descend slowly whenever you can; you never know what's waiting below!"; (_local3 as Message).flagToCheck = "Tutorial_F_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(24, 1136, 40, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "The labyrinth becomes more difficult beyond this point. Tread carefully!"; (_local3 as Message).flagToCheck = "Tutorial_F_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(176, 16, 48, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_E_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new B04.CSV_MAP_DECORATIONS(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Decorations"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Decorations"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 41
//B04_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.B04_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B04_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 42
//B04_CSV_MAP_DECORATIONS (com.wasabi.tr.maps.B04_CSV_MAP_DECORATIONS) package com.wasabi.tr.maps { import mx.core.*; public class B04_CSV_MAP_DECORATIONS extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 43
//B04_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.B04_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class B04_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 44
//B04_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.B04_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class B04_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 45
//B04_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.B04_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class B04_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 46
//C01 (com.wasabi.tr.maps.C01) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class C01 extends Map { public static const CSV_MAP_FOREGROUND1:Class = C01_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAILLAYER:Class = C01_CSV_MAP_DETAILLAYER; public static const CSV_MAP_PULSELAYER:Class = C01_CSV_MAP_PULSELAYER; public static const CSV_MAP_BACKGROUND1:Class = C01_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = C01_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(12, 5); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [0x333333, 855309, 8396803, 16616454]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Lava"; this.Properties["RoomName"] = "The Obsidian Pillar"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C01.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C01.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C01.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C01.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C01.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Bouncer(560, 240, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(472, 192, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(544, 272, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(480, 304, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(536, 408, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "PlatformA"; (_local3 as MovingPlatform).targetTag = "PlatformTargetA"; (_local3 as MovingPlatform).speed = 50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(536, 376); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformTargetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 680); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C01_From_B04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(528, 96, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "PlatformOriginB"; (_local3 as RotatingPlatform).rotationSpeed = 90; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(536, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformOriginB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(224, 640, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "PlatformC"; (_local3 as MovingPlatform).targetTag = "PlatformTargetC"; (_local3 as MovingPlatform).speed = 65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(144, 560, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "PlatformD"; (_local3 as MovingPlatform).targetTag = "PlatformTargetD"; (_local3 as MovingPlatform).speed = 80; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(224, 560); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformTargetC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(144, 632); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformTargetD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Lava(32, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(48, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(64, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(80, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(96, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(112, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(128, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(16, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Crusher(600, 592, 8, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 350; (_local3 as Crusher).resetSpeed = 10; (_local3 as Crusher).crushDirection = new FlxPoint(-1, 0); (_local3 as Crusher).detectionRange = 32; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 568); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C01_From_C03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(484, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C01_From_C02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 672, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B04_From_C01"; (_local3 as Transition).targetMap = "B04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 560, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C03_From_C01"; (_local3 as Transition).targetMap = "C03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(464, 0, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C02_From_C01"; (_local3 as Transition).targetMap = "C02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(136, 232, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformC"; (_local3 as MovingPlatform).targetTag = "targetC"; (_local3 as MovingPlatform).speed = 30; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(136, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Tablet(56, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_4"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new WarpGate(544, 608); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as WarpGate).uniqueID = "Gate_A"; (_local3 as WarpGate).tag = "Gate_A"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(568, 672, 32, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "If you find yourself lost, hold C (or M) for a moment to warp back to the entrance at any time."; (_local3 as Message).flagToCheck = "Tutorial_G_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Message(520, 520, 104, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Message).text = "The circular stone gateway below is a warp gate. Once activated you will be able to warp to it by holding C at any time."; (_local3 as Message).flagToCheck = "Tutorial_G_Complete"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(584, 672, 40, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_F_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(560, 608, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_G_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new FlagTrigger(384, 16, 128, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as FlagTrigger).flag = "Tutorial_G_Complete"; (_local3 as FlagTrigger).value = true; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 47
//C01_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C01_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C01_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 48
//C01_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.C01_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class C01_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 49
//C01_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C01_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C01_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 50
//C01_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C01_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C01_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 51
//C01_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.C01_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C01_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 52
//C02 (com.wasabi.tr.maps.C02) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class C02 extends Map { public static const CSV_MAP_BACKGROUND1:Class = C02_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = C02_CSV_MAP_BACKGROUND2; public static const CSV_MAP_INTERACTIVELAYER:Class = C02_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = C02_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = C02_CSV_MAP_FOREGROUND2; public static const CSV_MAP_DETAILLAYER:Class = C02_CSV_MAP_DETAILLAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(12, 3); this.Properties["BackgroundGradient"] = [0x333333, 855309, 0x333333]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "The Switchback"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C02.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C02.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C02.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C02.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C02.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C02.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(84, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "6d2a3136-79f5-41db-a7ff-546bf327b278"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Transition(464, 464, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C01_From_C02"; (_local3 as Transition).targetMap = "C01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(480, 424); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C02_From_C01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(384, 264, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(424, 248, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(464, 224, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(496, 200, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(432, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(440, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(448, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(456, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(464, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(472, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(480, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(488, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(496, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(504, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(0x0200, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(544, 152, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Hopper(352, 400, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(400, 400, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(0x0100, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(192, 272, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(56, 352, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(240, 288, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(128, 80, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 35; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(0x0100, 432, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(208, 152, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(248, 136, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(608, 304); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_5"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 53
//C02_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C02_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C02_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 54
//C02_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.C02_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C02_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 55
//C02_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.C02_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class C02_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 56
//C02_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C02_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C02_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 57
//C02_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.C02_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C02_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 58
//C02_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C02_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C02_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 59
//C03 (com.wasabi.tr.maps.C03) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class C03 extends Map { public static const CSV_MAP_BACKGROUND1:Class = C03_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = C03_CSV_MAP_BACKGROUND2; public static const CSV_MAP_DETAILLAYER:Class = C03_CSV_MAP_DETAILLAYER; public static const CSV_MAP_FOREGROUND1:Class = C03_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = C03_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = C03_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = C03_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(11, 5); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [6176029, 855309, 0x333333]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Lava"; this.Properties["RoomName"] = "The Dreary Climb"; this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C03.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C03.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C03.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C03.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C03.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C03.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local3 = new Lava(208, 576); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 576); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 592); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 576); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C03.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(108, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "61a7b112-21a5-45ef-bb04-6a112027f3c3"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Marker(24, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "PlatformTargetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(24, 208, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "PlatformA"; (_local3 as MovingPlatform).targetTag = "PlatformTargetA"; (_local3 as MovingPlatform).speed = 80; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(232, 800, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(192, 784, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(104, 696, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(144, 656, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(88, 640, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(104, 592, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(136, 592, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(168, 592, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(96, 224, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(112, 224, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(128, 224, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(144, 224, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(160, 224, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(176, 224, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 568); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C03_From_C01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 560, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C01_From_C03"; (_local3 as Transition).targetMap = "C01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Hopper(152, 928, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 250; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(200, 912, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(112, 352, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 55; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(208, 384, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(128, 320, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(80, 96, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(184, 704, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 80; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(184, 736, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 80; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 896, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D01_From_C03"; (_local3 as Transition).targetMap = "D01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 904); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C03_From_D01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 60
//C03_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C03_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 61
//C03_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.C03_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 62
//C03_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.C03_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 63
//C03_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C03_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 64
//C03_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.C03_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 65
//C03_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C03_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 66
//C03_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.C03_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C03_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 67
//C04 (com.wasabi.tr.maps.C04) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; import com.wasabi.tr.cameras.*; public class C04 extends Map { public static const CSV_MAP_CAMERAHELPERLAYER:Class = C04_CSV_MAP_CAMERAHELPERLAYER; public static const CSV_MAP_BACKGROUND1:Class = C04_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = C04_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_BACKGROUND2:Class = C04_CSV_MAP_BACKGROUND2; public static const CSV_MAP_FOREGROUND1:Class = C04_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = C04_CSV_MAP_FOREGROUND2; public static const CSV_MAP_DETAILS1:Class = C04_CSV_MAP_DETAILS1; public static const CSV_MAP_DETAILLAYER:Class = C04_CSV_MAP_DETAILLAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(8, 0); this.Properties["BackgroundGradient"] = [6176029, 853504]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "The Winding Tunnels"; this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); this.SpriteLists["CameraRegions"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local3 = new Water(64, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(80, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(96, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(240, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 912); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C04.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Transition(624, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D09_From_C04"; (_local3 as Transition).targetMap = "D09"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 368, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C05_From_C04"; (_local3 as Transition).targetMap = "C05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C04_From_D09"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 376); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C04_From_C05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 848, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "B02_From_C04"; (_local3 as Transition).targetMap = "B02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 856); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C04_From_B02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 600); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C04_From_C07"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 592, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C07_From_C04"; (_local3 as Transition).targetMap = "C07"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C06_From_C04"; (_local3 as Transition).targetMap = "C06"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 456); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C04_From_C06"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(0x0100, 832, 48, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "verticalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(16, 576, 48, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "verticalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(16, 432, 48, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(176, 432, 40, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(176, 488, 144, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "verticalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(576, 32, 48, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(576, 344, 48, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(80, 864, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 80; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(176, 864); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(48, 888); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(48, 0x0300, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformB"; (_local3 as MovingPlatform).targetTag = "targetB"; (_local3 as MovingPlatform).speed = 100; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Bouncer(96, 752, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(144, 672, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(32, 752, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(184, 736, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(208, 720, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(192, 688, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Bouncer(64, 576, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(120, 632, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(224, 544, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 80; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(224, 520, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(88, 416, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 25; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 32; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(296, 416, 48, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalRegion"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(120, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(336, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(96, 360, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(448, 240, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(488, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(384, 456, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(440, 408, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(264, 216, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(612, 264); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_6"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new WarpGate(336, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as WarpGate).uniqueID = "Gate_D"; (_local3 as WarpGate).tag = "Gate_D"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(616, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "0db146d6-a843-4b66-b746-c7dd14aa42a1"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_CAMERAHELPERLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["CameraHelperLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["CameraHelperLayer"] = _local1; this.Groups.push(_local1); _local3 = new CameraRegion(0, 240, 320, 720); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraRegion).tag = "verticalRegion"; this.GetSpriteList("CameraRegions").add(_local3); _local1.add(_local3); _local3 = new CameraRegion(0, 0, 640, 528); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraRegion).tag = "horizontalRegion"; this.GetSpriteList("CameraRegions").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C04.CSV_MAP_DETAILS1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Details1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Details1"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 68
//C04_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C04_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 69
//C04_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.C04_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 70
//C04_CSV_MAP_CAMERAHELPERLAYER (com.wasabi.tr.maps.C04_CSV_MAP_CAMERAHELPERLAYER) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_CAMERAHELPERLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 71
//C04_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.C04_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 72
//C04_CSV_MAP_DETAILS1 (com.wasabi.tr.maps.C04_CSV_MAP_DETAILS1) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_DETAILS1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 73
//C04_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C04_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 74
//C04_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.C04_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 75
//C04_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C04_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C04_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 76
//C05 (com.wasabi.tr.maps.C05) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class C05 extends Map { public static const CSV_MAP_DETAIL1:Class = C05_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = C05_CSV_MAP_BACKGROUND1; public static const CSV_MAP_FOREGROUND1:Class = C05_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = C05_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = C05_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = C05_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(10, 1); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504, 1447987]; this.Properties["Music"] = "Tense Liquid"; this.Properties["RoomName"] = "Underground Lake"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Spawners"] = new FlxGroup(); this.SpriteLists["PlatformKillZones"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C05.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C05.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C05.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C05.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Crusher(0x0200, 80, 48, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(1072, 168, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, -1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(288, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(304, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(320, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(336, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(352, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(368, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(384, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(400, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = false; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Crusher(64, 80, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(96, 64, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(128, 216, 48, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 100; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, -1); (_local3 as Crusher).detectionRange = 48; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 136); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C05_From_C04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C04_From_C05"; (_local3 as Transition).targetMap = "C04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Crusher(208, 216, 48, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, -1); (_local3 as Crusher).detectionRange = 48; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new PlatformSpawner(680, 216); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as PlatformSpawner).delay = 2; (_local3 as PlatformSpawner).platformSpeed = new FlxPoint(0, -20); (_local3 as PlatformSpawner).platformWidth = 32; this.GetSpriteList("Spawners").add(_local3); _local1.add(_local3); _local3 = new PlatformSpawner(744, 216); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as PlatformSpawner).delay = 0.75; (_local3 as PlatformSpawner).platformSpeed = new FlxPoint(0, -50); (_local3 as PlatformSpawner).platformWidth = 32; this.GetSpriteList("Spawners").add(_local3); _local1.add(_local3); _local3 = new PlatformKillZone(680, 48, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("PlatformKillZones").add(_local3); _local1.add(_local3); _local3 = new PlatformKillZone(744, 32, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("PlatformKillZones").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(1336, 192, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(1336, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Key(1532, 92); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "56009173-a273-4516-aacb-126c4d586466"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C05.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C05.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Water(48, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(64, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(80, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(240, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(272, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(592, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(608, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(624, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(640, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(656, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(672, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(688, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(704, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(720, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(736, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0300, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(784, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(752, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(432, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(448, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(464, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(480, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(496, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0200, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(528, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(560, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(576, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(544, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(336, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(352, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(320, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(304, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(288, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1312, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1328, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1344, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1360, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1376, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 77
//C05_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C05_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C05_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 78
//C05_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.C05_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class C05_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 79
//C05_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C05_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C05_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 80
//C05_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.C05_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C05_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 81
//C05_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C05_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C05_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 82
//C05_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.C05_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C05_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 83
//C06 (com.wasabi.tr.maps.C06) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.utility.*; public class C06 extends Map { public static const CSV_MAP_FOREGROUND1:Class = C06_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = C06_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = C06_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = C06_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(7, 0); this.Properties["BackgroundGradient"] = [1447987, 855309, 6176029]; this.Properties["RoomName"] = "The Short Climb"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C06.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C06.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C06.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Bouncer(32, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(128, 224, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 336, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(128, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 456); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C06_From_C04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C04_From_C06"; (_local3 as Transition).targetMap = "C04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(224, 288, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 224, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(80, 16, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 35; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C06_From_D08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D08_From_C06"; (_local3 as Transition).targetMap = "D08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(144, 104, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C06.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 84
//C06_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C06_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C06_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 85
//C06_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.C06_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class C06_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 86
//C06_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C06_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C06_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 87
//C06_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C06_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C06_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 88
//C07 (com.wasabi.tr.maps.C07) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class C07 extends Map { public static const CSV_MAP_FOREGROUND1:Class = C07_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = C07_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = C07_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = C07_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(5, 2); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504, 1447987]; this.Properties["Music"] = "Damp"; this.Properties["RoomName"] = "Damp Burrow"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C07.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C07.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(52, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "fb14abb1-489e-4310-87a3-137fcd001baa"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(696, 168, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(624, 176, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformB"; (_local3 as MovingPlatform).targetTag = "targetB"; (_local3 as MovingPlatform).speed = 30; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(696, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(624, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(936, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C07_From_C04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(944, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C04_From_C07"; (_local3 as Transition).targetMap = "C04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(460, 104, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(472, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(384, 88, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformD"; (_local3 as MovingPlatform).targetTag = "targetD"; (_local3 as MovingPlatform).speed = 50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(80, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Crusher(304, 48, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(168, 32, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 32; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(528, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 68; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(664, 120, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(128, 144, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 300; (_local3 as Crusher).resetSpeed = 25; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(56, 168); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_7"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(80, 192, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(96, 192, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C07.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local3 = new Water(80, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(240, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(432, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(448, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(464, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(480, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(496, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0200, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(528, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(544, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(560, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(736, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(720, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(704, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(688, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(672, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(656, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(640, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(624, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(608, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(592, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(576, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C07.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Water(272, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(288, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(304, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(320, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(336, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(352, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 89
//C07_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C07_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C07_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 90
//C07_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.C07_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class C07_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 91
//C07_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C07_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C07_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 92
//C07_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C07_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C07_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 93
//C08 (com.wasabi.tr.maps.C08) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class C08 extends Map { public static const CSV_MAP_BACKGROUNDLAYER:Class = C08_CSV_MAP_BACKGROUNDLAYER; public static const CSV_MAP_BACKGROUND2:Class = C08_CSV_MAP_BACKGROUND2; public static const CSV_MAP_INTERACTIVELAYER:Class = C08_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = C08_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = C08_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = C08_CSV_MAP_PULSELAYER; public static const CSV_MAP_DETAIL1:Class = C08_CSV_MAP_DETAIL1; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(1, 4); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [1447987, 1052954, 8396803, 16616454]; this.Properties["Music"] = "Tense Fire"; this.Properties["RoomName"] = "The Fiery Traverse"; this.SpriteLists["RuneDoors"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C08.CSV_MAP_BACKGROUNDLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["BackgroundLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["BackgroundLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C08.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C08.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C08.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C08.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new RuneDoor(16, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RuneDoor).sealType = RuneDoor.SEAL_B; (_local3 as RuneDoor).uniqueID = "f2458680-4bfb-463c-9e62-20b4c797e8a2"; this.GetSpriteList("RuneDoors").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(344, 208, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 2; (_local3 as LavaGeyser).eruptionLength = 3; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 1; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(456, 208, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(584, 208, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 1.5; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(616, 208, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 3; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(864, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(784, 144, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(856, 216, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(856, 72, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(928, 144, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(1256, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C08_From_A00"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(1264, 120, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "A00_From_C08"; (_local3 as Transition).targetMap = "A00"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(888, 152, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(832, 136, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(680, 168, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformC"; (_local3 as MovingPlatform).targetTag = "targetC"; (_local3 as MovingPlatform).speed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(712, 160, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformB"; (_local3 as MovingPlatform).targetTag = "targetB"; (_local3 as MovingPlatform).speed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(744, 176, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(744, 216); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(712, 200); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(680, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(0x0404, 184); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C08_From_D05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(1008, 224, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D05_From_C08"; (_local3 as Transition).targetMap = "D05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(0x0100, 168); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(280, 168, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = 30; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(112, 168); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(112, 200, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformD"; (_local3 as MovingPlatform).targetTag = "targetD"; (_local3 as MovingPlatform).speed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 152); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C08_From_D10"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 112, 16, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D10_From_C08"; (_local3 as Transition).targetMap = "D10"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C08.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C08.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Lava(944, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(928, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(912, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(896, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0300, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(784, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(800, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(832, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(848, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(880, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(864, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(816, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(752, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(736, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(720, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(704, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(688, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(672, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(560, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(544, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(528, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0200, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(496, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(480, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(576, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(592, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(624, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(608, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(640, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(656, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(464, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(448, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(432, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(352, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(336, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(320, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(128, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(80, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(112, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 94
//C08_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.C08_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 95
//C08_CSV_MAP_BACKGROUNDLAYER (com.wasabi.tr.maps.C08_CSV_MAP_BACKGROUNDLAYER) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_BACKGROUNDLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 96
//C08_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.C08_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 97
//C08_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C08_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 98
//C08_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.C08_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 99
//C08_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C08_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 100
//C08_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.C08_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C08_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 101
//C09 (com.wasabi.tr.maps.C09) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class C09 extends Map { public static const CSV_MAP_FOREGROUND1:Class = C09_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = C09_CSV_MAP_DETAIL1; public static const CSV_MAP_PULSELAYER:Class = C09_CSV_MAP_PULSELAYER; public static const CSV_MAP_BACKGROUND1:Class = C09_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = C09_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(2, 3); this.Properties["PulseAlphaRange"] = new FlxPoint(0.2, 0.6); this.Properties["PulseAlphaDelta"] = 0.8; this.Properties["BackgroundGradient"] = [1447987, 1052954, 799488, 12110854]; this.Properties["Music"] = "Acid"; this.Properties["RoomName"] = "The Oozing Tunnel"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C09.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C09.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C09.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new C09.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(936, 184); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C09_From_A00"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(944, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "A00_From_C09"; (_local3 as Transition).targetMap = "A00"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(704, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = 0.1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(720, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = 0.5; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(608, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(576, 64, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(792, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(840, 64, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(344, 80, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(464, 80, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(408, 96, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(328, 176, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(120, 16, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(264, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(176, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "C09_From_D06"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(144, 0, 80, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D06_From_C09"; (_local3 as Transition).targetMap = "D06"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(464, 152); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(424, 128, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = -33; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(488, 128, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = -33; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(456, 184, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = -33; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(208, 204, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 12; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(0x0100, 204, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformB"; (_local3 as MovingPlatform).targetTag = "targetB"; (_local3 as MovingPlatform).speed = 15; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(208, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(0x0100, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Tablet(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_8"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new C09.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Acid(48, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(64, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(80, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(96, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(112, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(128, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(160, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(144, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(176, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(288, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(272, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(0x0100, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(240, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(208, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(224, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(192, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(368, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(480, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(464, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(448, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(432, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(416, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(400, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(384, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(304, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(336, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(352, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(320, 224); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(208, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(224, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(112, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(128, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(560, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(624, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(704, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(720, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 102
//C09_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.C09_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C09_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 103
//C09_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.C09_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class C09_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 104
//C09_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.C09_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class C09_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 105
//C09_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.C09_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C09_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 106
//C09_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.C09_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class C09_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 107
//D01 (com.wasabi.tr.maps.D01) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class D01 extends Map { public static const CSV_MAP_DETAIL2:Class = D01_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = D01_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = D01_CSV_MAP_BACKGROUND2; public static const CSV_MAP_INTERACTIVELAYER:Class = D01_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = D01_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = D01_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = D01_CSV_MAP_PULSELAYER; public static const CSV_MAP_DETAILLAYER:Class = D01_CSV_MAP_DETAILLAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(12, 8); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [1447987, 1052954, 8396803, 16616454]; this.Properties["Music"] = "Tense Fire"; this.Properties["RoomName"] = "The Burning Hollow"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D01.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(16, 184); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D01_From_C03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C03_From_D01"; (_local3 as Transition).targetMap = "C03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Hopper(216, 144, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 70; (_local3 as Hopper).highJumpVelocity = 300; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(248, 144, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(336, 184, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(400, 184); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(432, 152, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformC"; (_local3 as MovingPlatform).targetTag = "targetC"; (_local3 as MovingPlatform).speed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(480, 120, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformD"; (_local3 as MovingPlatform).targetTag = "targetD"; (_local3 as MovingPlatform).speed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(576, 96, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformE"; (_local3 as MovingPlatform).targetTag = "targetE"; (_local3 as MovingPlatform).speed = 30; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(600, 112, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformF"; (_local3 as MovingPlatform).targetTag = "targetF"; (_local3 as MovingPlatform).speed = 20; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(680, 144, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(720, 144, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(0x0300, 128, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(800, 112, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(744, 168, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformB"; (_local3 as MovingPlatform).targetTag = "targetB"; (_local3 as MovingPlatform).speed = 55; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(800, 168); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(432, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(536, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(576, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetE"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(600, 72); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetF"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(632, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(832, 64, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Key(916, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "66675e23-6a53-459f-9fe9-7d63df6da9d4"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(680, 208, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 1.2; (_local3 as LavaGeyser).bubblingTime = 2; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(752, 208, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 4.5; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 2.25; (_local3 as LavaGeyser).initialDelay = 3.5; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(88, 208, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 1; (_local3 as LavaGeyser).bubblingTime = 0.75; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(384, 216, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 2; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.5; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D01.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); _local3 = new Lava(800, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(784, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(752, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0300, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(624, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(640, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(656, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(672, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(688, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(704, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(720, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(736, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(816, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(832, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(848, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(864, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(880, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(896, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(912, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(928, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(944, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(352, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(336, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(320, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(128, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(112, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(80, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 108
//D01_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D01_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 109
//D01_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.D01_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 110
//D01_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.D01_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 111
//D01_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.D01_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 112
//D01_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D01_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 113
//D01_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.D01_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 114
//D01_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D01_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 115
//D01_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.D01_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D01_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 116
//D02 (com.wasabi.tr.maps.D02) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class D02 extends Map { public static const CSV_MAP_FOREGROUND1:Class = D02_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = D02_CSV_MAP_DETAIL1; public static const CSV_MAP_DETAIL2:Class = D02_CSV_MAP_DETAIL2; public static const CSV_MAP_INTERACTIVELAYER:Class = D02_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(10, 5); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504, 1447987]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Damp"; this.Properties["RoomName"] = "Waterfall Shaft"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D02.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D02.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(16, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D02_From_D04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(112, 920, 32); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 70; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(272, 920); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 920); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D02_From_D03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 440); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D02_From_E01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D04_From_D02"; (_local3 as Transition).targetMap = "D04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 432, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E01_From_D02"; (_local3 as Transition).targetMap = "E01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 912, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D03_From_D02"; (_local3 as Transition).targetMap = "D03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Hopper(208, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 300; (_local3 as Hopper).gravityScale = 0.4; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(80, 296, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(104, 296, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(152, 336, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 300; (_local3 as Hopper).gravityScale = 0.4; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(176, 592, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.33; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(168, 784, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(48, 912, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(96, 624, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(16, 760, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(224, 848, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D02.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); _local3 = new Waterfall(208, 0, 16, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(192, 80, 16, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(144, 144, 16, 800); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(208, 224, 16, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(0x0100, 192, 16, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(208, 608, 16, 336); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(0x0100, 576, 16, 368); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(272, 0, 16, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(128, 0, 16, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(48, 0, 16, 640); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(64, 640, 16, 320); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(48, 640, 16, 320); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D02.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Water(192, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 560); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 592); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(48, 624); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(64, 624); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(272, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(288, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(272, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(240, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 928); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 117
//D02_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D02_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D02_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 118
//D02_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.D02_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class D02_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 119
//D02_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D02_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D02_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 120
//D02_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D02_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D02_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 121
//D03 (com.wasabi.tr.maps.D03) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class D03 extends Map { public static const CSV_MAP_FOREGROUND1:Class = D03_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAILS:Class = D03_CSV_MAP_DETAILS; public static const CSV_MAP_BACKGROUND1:Class = D03_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D03_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(8, 7); this.Properties["BackgroundGradient"] = [6176029, 853504]; this.Properties["RoomName"] = "Sandstone Chamber"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D03.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D03.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D03.CSV_MAP_DETAILS(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Details"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Details"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D03.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(616, 440); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D03_From_D02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 432, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D02_From_D03"; (_local3 as Transition).targetMap = "D02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(16, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(320, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(384, 384, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(400, 224, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 20; (_local3 as Hopper).highJumpVelocity = 180; (_local3 as Hopper).gravityScale = 0.2; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(112, 456, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 65; (_local3 as Hopper).highJumpVelocity = 250; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(128, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(168, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 225; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(568, 400, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 40; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(120, 228, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 30; (_local3 as Crusher).crushDirection = new FlxPoint(-1, 0); (_local3 as Crusher).detectionRange = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(240, 400, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 35; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Seal(316, 232); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Seal).sealType = Seal.TYPE_B; (_local3 as Seal).uniqueID = "2b7a101d-fdd0-47de-90e4-0eb0c43eb57e"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 122
//D03_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D03_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D03_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 123
//D03_CSV_MAP_DETAILS (com.wasabi.tr.maps.D03_CSV_MAP_DETAILS) package com.wasabi.tr.maps { import mx.core.*; public class D03_CSV_MAP_DETAILS extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 124
//D03_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D03_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D03_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 125
//D03_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D03_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D03_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 126
//D04 (com.wasabi.tr.maps.D04) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class D04 extends Map { public static const CSV_MAP_DETAIL1:Class = D04_CSV_MAP_DETAIL1; public static const CSV_MAP_DETAIL2:Class = D04_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = D04_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = D04_CSV_MAP_BACKGROUND2; public static const CSV_MAP_FOREGROUND1:Class = D04_CSV_MAP_FOREGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D04_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(6, 5); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504, 1447987]; this.Properties["Music"] = "Damp"; this.Properties["RoomName"] = "Flooded Grotto"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D04.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D04.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D04.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D04.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Hopper(376, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(752, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(572, 104, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(1008, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 300; (_local3 as Hopper).gravityScale = 0.45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(1104, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(856, 136, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(92, 72, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.4; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D04_From_D05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(1256, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D04_From_D02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(1264, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D02_From_D04"; (_local3 as Transition).targetMap = "D02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 32, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D05_From_D04"; (_local3 as Transition).targetMap = "D05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Tablet(1188, 132); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_19"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new WarpGate(568, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as WarpGate).uniqueID = "Gate_B"; (_local3 as WarpGate).tag = "Gate_B"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D04.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); _local3 = new Waterfall(976, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(1040, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(1088, 0, 16, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(1184, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(832, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(816, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(272, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(1168, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Waterfall(0x0400, 0, 16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D04.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Water(80, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(96, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(64, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(48, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(32, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(16, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(240, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(272, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(288, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(304, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(320, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(336, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(352, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(368, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(384, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(400, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(416, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(432, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(928, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(944, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(992, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1008, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(976, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(960, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0400, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1040, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1056, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(912, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(896, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(880, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(864, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(848, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(832, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(816, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(800, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(784, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0300, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(752, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(736, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(720, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(704, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(688, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(672, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(656, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(640, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(624, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(576, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(560, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(544, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0200, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(496, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(480, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(464, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(448, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(528, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(592, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(608, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1072, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1088, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1104, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1120, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1136, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1152, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1168, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1184, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1200, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1216, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1232, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1248, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1264, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 127
//D04_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D04_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D04_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 128
//D04_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.D04_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class D04_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 129
//D04_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D04_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D04_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 130
//D04_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.D04_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class D04_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 131
//D04_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D04_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D04_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 132
//D04_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D04_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D04_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 133
//D05 (com.wasabi.tr.maps.D05) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.utility.*; public class D05 extends Map { public static const CSV_MAP_DETAIL1:Class = D05_CSV_MAP_DETAIL1; public static const CSV_MAP_DETAIL2:Class = D05_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = D05_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = D05_CSV_MAP_BACKGROUND2; public static const CSV_MAP_FOREGROUND1:Class = D05_CSV_MAP_FOREGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D05_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(4, 5); this.Properties["BackgroundGradient"] = [1447987, 1052954, 1447987]; this.Properties["RoomName"] = "The Middle Gateway"; this.SpriteLists["RuneDoors"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D05.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D05.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D05.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D05.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new RuneDoor(368, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RuneDoor).sealType = RuneDoor.SEAL_A; (_local3 as RuneDoor).uniqueID = "02463bec-3944-4b99-80cc-cbbb1ae4bb81"; this.GetSpriteList("RuneDoors").add(_local3); _local1.add(_local3); _local3 = new Marker(144, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "targetA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new MovingPlatform(144, 192, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingPlatform).tag = "platformA"; (_local3 as MovingPlatform).targetTag = "targetA"; (_local3 as MovingPlatform).speed = 45; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(64, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D05_From_C08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D05_From_D04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(388, 168); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D05_From_E08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(48, 0, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C08_From_D05"; (_local3 as Transition).targetMap = "C08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(368, 224, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E08_From_D05"; (_local3 as Transition).targetMap = "E08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 32, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D04_From_D05"; (_local3 as Transition).targetMap = "D04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D05.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D05.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 134
//D05_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D05_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D05_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 135
//D05_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.D05_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class D05_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 136
//D05_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D05_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D05_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 137
//D05_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.D05_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class D05_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 138
//D05_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D05_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D05_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 139
//D05_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D05_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D05_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 140
//D06 (com.wasabi.tr.maps.D06) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class D06 extends Map { public static const CSV_MAP_DETAIL2:Class = D06_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = D06_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D06_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = D06_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = D06_CSV_MAP_DETAIL1; public static const CSV_MAP_PULSELAYER:Class = D06_CSV_MAP_PULSELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(2, 2); this.Properties["PulseAlphaRange"] = new FlxPoint(0.2, 0.6); this.Properties["PulseAlphaDelta"] = 0.8; this.Properties["BackgroundGradient"] = [1447987, 1052954, 799488, 12110854]; this.Properties["Music"] = "Acid"; this.Properties["RoomName"] = "The Eroding Hall"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D06.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D06.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D06.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(608, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "06b37fbd-3fd6-4060-9257-8bba12b53800"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Transition(144, 224, 80, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C09_From_D06"; (_local3 as Transition).targetMap = "C09"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(184, 200); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D06_From_C09"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(0x0100, 184, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(296, 168, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(336, 160, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(376, 168, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(352, 184, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(424, 176, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(464, 176, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(528, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(376, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = 0.6; (_local3 as AcidDripper).minDelay = 1.8; (_local3 as AcidDripper).maxDelay = 2; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(536, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = 1; (_local3 as AcidDripper).minDelay = 2.2; (_local3 as AcidDripper).maxDelay = 2.4; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(296, 80, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = 1; (_local3 as AcidDripper).minDelay = 2; (_local3 as AcidDripper).maxDelay = 2.1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(576, 64, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = 0.5; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(448, 16, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(48, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(72, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(592, 128, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(552, 112, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Tablet(24, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_9"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(128, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(544, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.6; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(560, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(576, 160, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D06.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D06.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Acid(48, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(64, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(80, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(96, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(240, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(272, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(352, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(320, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(336, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(304, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(288, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(576, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(560, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(544, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(0x0200, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(528, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(432, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(448, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(464, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(496, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(480, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D06.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 141
//D06_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D06_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D06_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 142
//D06_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D06_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D06_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 143
//D06_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.D06_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class D06_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 144
//D06_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D06_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D06_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 145
//D06_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D06_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D06_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 146
//D06_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.D06_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D06_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 147
//D07 (com.wasabi.tr.maps.D07) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class D07 extends Map { public static const CSV_MAP_DETAIL1:Class = D07_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = D07_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = D07_CSV_MAP_BACKGROUND2; public static const CSV_MAP_FOREGROUND1:Class = D07_CSV_MAP_FOREGROUND1; public static const CSV_MAP_PULSELAYER:Class = D07_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = D07_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["BackgroundGradient"] = [1447987, 1052954, 799488, 12110854]; this.Properties["MinimapOffset"] = new FlxPoint(4, 1); this.Properties["PulseAlphaRange"] = new FlxPoint(0.2, 0.6); this.Properties["PulseAlphaDelta"] = 0.8; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Acid"; this.Properties["RoomName"] = "The Acid Pit"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D07.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D07.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D07.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D07.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D07.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Seal(124, 300); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Seal).sealType = Seal.TYPE_A; (_local3 as Seal).uniqueID = "0658a40f-fe9b-4a01-a630-789691322dfe"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 216); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D07_From_D08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(240, 176, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 1; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(344, 16, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(496, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(544, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(376, 16, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D08_From_D07"; (_local3 as Transition).targetMap = "D08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D07.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Acid(16, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(32, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(48, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(64, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(80, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(96, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(112, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(160, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(128, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(144, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(176, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(192, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(208, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(224, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(288, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(272, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(0x0100, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(240, 400); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 148
//D07_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D07_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D07_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 149
//D07_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.D07_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class D07_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 150
//D07_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D07_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D07_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 151
//D07_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D07_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D07_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 152
//D07_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D07_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D07_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 153
//D07_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.D07_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D07_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 154
//D08 (com.wasabi.tr.maps.D08) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class D08 extends Map { public static const CSV_MAP_FOREGROUND1:Class = D08_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = D08_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = D08_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D08_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(6, 0); this.Properties["BackgroundGradient"] = [6176029, 855309, 1447987]; this.Properties["BackgroundScrolls"] = true; this.Properties["RoomName"] = "Two-door Chamber"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D08.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D08.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D08.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D08.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Hopper(144, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 275; (_local3 as Hopper).gravityScale = 0.4; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(96, 312, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(144, 336, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.4; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(16, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "12ddb84d-38b0-4be7-8695-3c3ee385592e"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(16, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "80f747ba-87bd-4e07-bfee-582ef1efc95a"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 96, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "F01_From_D08"; (_local3 as Transition).targetMap = "F01"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C06_From_D08"; (_local3 as Transition).targetMap = "C06"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D07_From_D08"; (_local3 as Transition).targetMap = "D07"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(24, 104); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D08_From_F01"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(24, 456); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D08_From_D07"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D08_From_C06"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(216, 360, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(96, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(184, 120, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(0x0100, 320, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(80, 240, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(192, 192, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 20; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(216, 384, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 30; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(36, 368); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_20"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 155
//D08_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D08_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D08_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 156
//D08_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D08_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D08_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 157
//D08_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D08_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D08_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 158
//D08_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D08_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D08_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 159
//D09 (com.wasabi.tr.maps.D09) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class D09 extends Map { public static const CSV_MAP_FOREGROUND1:Class = D09_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = D09_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = D09_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D09_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(10, 0); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504, 1447987]; this.Properties["Music"] = "Damp"; this.Properties["RoomName"] = "Meditation Hall"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D09.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D09.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D09.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(16, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D09_From_C04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C04_From_D09"; (_local3 as Transition).targetMap = "C04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Tablet(1528, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_10"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D09.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Water(16, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(32, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(48, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(64, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(80, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(272, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(288, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(304, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(352, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(320, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(336, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(480, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(464, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(448, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(432, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(640, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(624, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(608, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(592, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(576, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(560, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(544, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(800, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(784, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0300, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(816, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(832, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(848, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(864, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(880, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(896, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(912, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(928, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(944, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1264, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0500, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(1296, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 160
//D09_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D09_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D09_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 161
//D09_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D09_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D09_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 162
//D09_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D09_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D09_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 163
//D09_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D09_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D09_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 164
//D10 (com.wasabi.tr.maps.D10) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.utility.*; public class D10 extends Map { public static const CSV_MAP_FOREGROUND1:Class = D10_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = D10_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = D10_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = D10_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(0, 0); this.Properties["BackgroundGradient"] = [1447987, 1052954, 1447987]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "The Blue Corridor"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D10.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D10.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new D10.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(296, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D10_From_E03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 888); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D10_From_E02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 1112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D10_From_C08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(112, 1160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "D10_From_E05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 1072, 16, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "C08_From_D10"; (_local3 as Transition).targetMap = "C08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(48, 1184, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E05_From_D10"; (_local3 as Transition).targetMap = "E05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 880, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E02_From_D10"; (_local3 as Transition).targetMap = "E02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E03_From_D10"; (_local3 as Transition).targetMap = "E03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(184, 560, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(48, 592, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(0x0100, 544, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(192, 672, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(96, 672, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(216, 816, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(144, 928, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(72, 848, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(240, 1072, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(192, 1104, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(160, 1104, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(120, 288, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(136, 416, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(168, 496); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotE"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(132, 628); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(172, 864); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(100, 756); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(72, 976); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Circler(48, 976, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotA"; (_local3 as Circler).rotationSpeed = 70; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(96, 976, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotA"; (_local3 as Circler).rotationSpeed = 70; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(168, 840, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotB"; (_local3 as Circler).rotationSpeed = -45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(176, 888, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotB"; (_local3 as Circler).rotationSpeed = -45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(96, 744, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotC"; (_local3 as Circler).rotationSpeed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(136, 640, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotD"; (_local3 as Circler).rotationSpeed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(168, 472, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotE"; (_local3 as Circler).rotationSpeed = -60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(168, 520, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotE"; (_local3 as Circler).rotationSpeed = -60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(152, 1000, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(184, 32, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 20; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 32; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(192, 144, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 35; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(208, 272, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 10; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(240, 432, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new WarpGate(24, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as WarpGate).uniqueID = "Gate_C"; (_local3 as WarpGate).tag = "Gate_C"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(224, 32, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 0.8; (_local3 as AcidDripper).maxDelay = 1; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(296, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "43872e05-e566-4bc6-8a7f-8a73b3e4eb5f"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(296, 880); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "7e252c8e-3157-4bba-8b93-779d9d77137b"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new D10.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 165
//D10_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.D10_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D10_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 166
//D10_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.D10_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class D10_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 167
//D10_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.D10_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class D10_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 168
//D10_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.D10_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class D10_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 169
//E01 (com.wasabi.tr.maps.E01) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class E01 extends Map { public static const CSV_MAP_FOREGROUND1:Class = E01_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = E01_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = E01_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = E01_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(8, 6); this.Properties["BackgroundGradient"] = [0x104500, 6176029, 853504, 1447987]; this.Properties["Music"] = "Damp"; this.Properties["RoomName"] = "The Unstable Crossing"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E01.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E01.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E01.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(68, 44); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "a353b93f-0475-4680-861a-ccf9c4540dab"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Bouncer(240, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 70; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(304, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(368, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(448, 88, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 20; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(464, 160, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(64, 168, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(128, 168, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(176, 168, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(224, 168, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(264, 168, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(296, 168, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(384, 168, 40, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(432, 168, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(144, 120, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(80, 136, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(176, 104, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 200); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E01_From_D02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 192, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D02_From_E01"; (_local3 as Transition).targetMap = "D02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(136, 80, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(112, 128, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(80, 168, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(96, 168, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E01.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Water(448, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(432, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(416, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(400, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(384, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(368, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(352, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(336, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(320, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(304, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(288, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(272, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(0x0100, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(240, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(224, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(208, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(192, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(176, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(160, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(144, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(128, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(112, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(96, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(80, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(64, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(48, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(32, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Water(16, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 170
//E01_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E01_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E01_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 171
//E01_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E01_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E01_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 172
//E01_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E01_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E01_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 173
//E01_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E01_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E01_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 174
//E02 (com.wasabi.tr.maps.E02) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class E02 extends Map { public static const CSV_MAP_FOREGROUND1:Class = E02_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = E02_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = E02_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = E02_CSV_MAP_BACKGROUND2; public static const CSV_MAP_INTERACTIVELAYER:Class = E02_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(1, 2); this.Properties["BackgroundGradient"] = [1447987, 1052954, 1447987]; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "Treacherous Ascent"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E02.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E02.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E02.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E02.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(92, 76); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "e1718893-105a-4766-9766-d30e401533c9"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Bouncer(192, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(80, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(240, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(112, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(240, 304, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(112, 352, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(160, 432, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(32, 304, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 55; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(48, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 400, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D10_From_E02"; (_local3 as Transition).targetMap = "D10"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 408); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E02_From_D10"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E02.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 175
//E02_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E02_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E02_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 176
//E02_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.E02_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class E02_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 177
//E02_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E02_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E02_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 178
//E02_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E02_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E02_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 179
//E02_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E02_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E02_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 180
//E03 (com.wasabi.tr.maps.E03) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class E03 extends Map { public static const CSV_MAP_FOREGROUND1:Class = E03_CSV_MAP_FOREGROUND1; public static const CSV_MAP_PULSELAYER:Class = E03_CSV_MAP_PULSELAYER; public static const CSV_MAP_DETAIL1:Class = E03_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = E03_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = E03_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(1, 0); this.Properties["BackgroundGradient"] = [1447987, 1052954, 799488, 12110854]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Acid"; this.Properties["PulseAlphaRange"] = new FlxPoint(0.2, 0.6); this.Properties["PulseAlphaDelta"] = 0.8; this.Properties["RoomName"] = "The Melting Pit"; this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E03.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E03.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E03.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Acid(96, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(112, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(128, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(144, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(160, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(176, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(192, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(32, 432); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E03.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new MovingAcidDripper(56, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(216, 160, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(88, 208, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(192, 240, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(160, 320, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(56, 352, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(272, 288, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(184, 48, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new MovingAcidDripper(232, 64, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MovingAcidDripper).initialVelocity = new FlxPoint(30, 0); this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D10_From_E03"; (_local3 as Transition).targetMap = "D10"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 352, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E04_From_E03"; (_local3 as Transition).targetMap = "E04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 360); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E03_From_E04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E03_From_D10"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Tablet(24, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_11"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E03.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 181
//E03_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E03_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E03_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 182
//E03_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E03_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E03_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 183
//E03_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E03_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E03_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 184
//E03_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E03_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E03_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 185
//E03_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.E03_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E03_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 186
//E04 (com.wasabi.tr.maps.E04) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class E04 extends Map { public static const CSV_MAP_DETAIL1:Class = E04_CSV_MAP_DETAIL1; public static const CSV_MAP_DETAIL2:Class = E04_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = E04_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = E04_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = E04_CSV_MAP_FOREGROUND1; public static const CSV_MAP_PULSELAYER:Class = E04_CSV_MAP_PULSELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(2, 1); this.Properties["PulseAlphaRange"] = new FlxPoint(0.2, 0.6); this.Properties["PulseAlphaDelta"] = 0.8; this.Properties["BackgroundGradient"] = [1447987, 1052954, 799488, 12110854]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Acid"; this.Properties["RoomName"] = "The Acid Lake"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E04.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E04.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E04.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E04.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(152, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(232, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(304, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(400, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(112, 120, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 90; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(200, 120, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = -70; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(296, 160, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = 45; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(360, 120, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotD"; (_local3 as RotatingPlatform).rotationSpeed = 80; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E04_From_E03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(176, 120, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 90; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new AcidDripper(176, 32, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as AcidDripper).initialDelay = -1; (_local3 as AcidDripper).minDelay = 2; (_local3 as AcidDripper).maxDelay = 2; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(312, 80, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = 45; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Seal(516, 108); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Seal).sealType = Seal.TYPE_C; (_local3 as Seal).uniqueID = "e43d2a5f-9a17-4671-b681-8a2de7490bdc"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E03_From_E04"; (_local3 as Transition).targetMap = "E03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E04.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E04.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); _local3 = new Acid(480, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(464, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(0x0200, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(544, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(528, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(560, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(576, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(592, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(608, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(496, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(448, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(432, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(416, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(400, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(384, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(352, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(336, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(320, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(368, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(16, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(32, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(48, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(64, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(80, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(96, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(112, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(128, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(144, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(160, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(176, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(192, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(224, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(208, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(0x0100, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(240, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(272, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(288, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Acid(304, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 187
//E04_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E04_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E04_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 188
//E04_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E04_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E04_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 189
//E04_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.E04_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class E04_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 190
//E04_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E04_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E04_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 191
//E04_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E04_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E04_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 192
//E04_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.E04_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E04_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 193
//E05 (com.wasabi.tr.maps.E05) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class E05 extends Map { public static const CSV_MAP_DETAIL1:Class = E05_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = E05_CSV_MAP_BACKGROUND1; public static const CSV_MAP_FOREGROUND1:Class = E05_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = E05_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = E05_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = E05_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(0, 5); this.Properties["BackgroundGradient"] = [1447987, 855309, 0x4B0000]; this.Properties["BackgroundScrolls"] = true; this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["RoomName"] = "The Forked Cavern"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E05.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E05.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E05.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E05.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Bouncer(64, 240, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(80, 272, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(160, 304, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(192, 384, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(400, 352, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(432, 368, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(464, 400, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 35; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(336, 384, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(368, 432, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(296, 400, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 70; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(288, 416, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(72, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E05_From_D10"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(248, 448, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 200; (_local3 as LavaGeyser).maxSpeed = 275; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(272, 184, 48, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 10; (_local3 as Crusher).crushDirection = new FlxPoint(0, -1); (_local3 as Crusher).detectionRange = 48; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(488, 120, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 12; (_local3 as Crusher).crushDirection = new FlxPoint(0, -1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(448, 64, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 30; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(400, 80, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 50; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(352, 152, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(136, 192, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(240, 168, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(592, 296, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(528, 312, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 55; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(560, 280, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 72); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E05_From_E06"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(616, 280); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E05_From_F02"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 64, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E06_From_E05"; (_local3 as Transition).targetMap = "E06"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(624, 272, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "F02_From_E05"; (_local3 as Transition).targetMap = "F02"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(48, 0, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D10_From_E05"; (_local3 as Transition).targetMap = "D10"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Tablet(392, 280); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_12"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(616, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "1ee91931-18e2-4651-a81b-b793af656c0b"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E05.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E05.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Lava(272, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 432); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 432); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(64, 304); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 194
//E05_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E05_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E05_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 195
//E05_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E05_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E05_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 196
//E05_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E05_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E05_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 197
//E05_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.E05_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class E05_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 198
//E05_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E05_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E05_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 199
//E05_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.E05_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E05_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 200
//E06 (com.wasabi.tr.maps.E06) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class E06 extends Map { public static const CSV_MAP_FOREGROUND1:Class = E06_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = E06_CSV_MAP_FOREGROUND2; public static const CSV_MAP_BACKGROUND1:Class = E06_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = E06_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_DETAIL1:Class = E06_CSV_MAP_DETAIL1; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(2, 5); this.Properties["BackgroundGradient"] = [0x4B0000, 855309]; this.Properties["BackgroundScrolls"] = true; this.Properties["RoomName"] = "Lava Tubes"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E06.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E06.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E06.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E06.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E06.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Key(864, 280); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "8fd01032-7ea8-4ba6-ad28-3e2cf248a3cf"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 72); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E06_From_E05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(144, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Circler(104, 144, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotA"; (_local3 as Circler).rotationSpeed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(184, 144, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotA"; (_local3 as Circler).rotationSpeed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(232, 192, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(304, 168, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(376, 104); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(424, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Circler(344, 104, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotB"; (_local3 as Circler).rotationSpeed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(408, 104, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotB"; (_local3 as Circler).rotationSpeed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(424, 56, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotC"; (_local3 as Circler).rotationSpeed = -50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(424, 120, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotC"; (_local3 as Circler).rotationSpeed = -50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(420, 212); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Circler(408, 212, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotD"; (_local3 as Circler).rotationSpeed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(640, 432, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(576, 280); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotE"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Circler(544, 280, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotE"; (_local3 as Circler).rotationSpeed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Circler(608, 280, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Circler).pivotTag = "pivotE"; (_local3 as Circler).rotationSpeed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(528, 376, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(0x0200, 80, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(336, 288, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 70; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(376, 296, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(360, 424); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E06_From_E07"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(336, 464, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E07_From_E06"; (_local3 as Transition).targetMap = "E07"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 64, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E05_From_E06"; (_local3 as Transition).targetMap = "E05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(704, 448, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(792, 328, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(888, 448); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_13"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 201
//E06_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E06_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E06_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 202
//E06_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E06_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E06_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 203
//E06_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E06_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E06_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 204
//E06_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.E06_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class E06_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 205
//E06_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E06_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E06_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 206
//E07 (com.wasabi.tr.maps.E07) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class E07 extends Map { public static const CSV_MAP_DETAIL1:Class = E07_CSV_MAP_DETAIL1; public static const CSV_MAP_DETAIL2:Class = E07_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = E07_CSV_MAP_BACKGROUND1; public static const CSV_MAP_FOREGROUND1:Class = E07_CSV_MAP_FOREGROUND1; public static const CSV_MAP_PULSELAYER:Class = E07_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = E07_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(1, 7); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [0x4B0000, 855309, 8396803, 16616454]; this.Properties["Music"] = "Lava"; this.Properties["RoomName"] = "The Scorched Traverse"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Doors"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E07.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E07.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E07.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(176, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(168, 184, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(168, 232, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 40; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "F03_From_E07"; (_local3 as Transition).targetMap = "F03"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E07_From_F03"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(664, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E07_From_E06"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(656, 0, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E06_From_E07"; (_local3 as Transition).targetMap = "E06"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new LockedDoor(16, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LockedDoor).uniqueID = "5a4f1183-0a89-4ab1-975e-4fb6d654cf94"; this.GetSpriteList("Doors").add(_local3); _local1.add(_local3); _local3 = new Bouncer(336, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(496, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(336, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(416, 208, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(496, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(384, 200); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(464, 200); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(456, 184, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(360, 200, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(392, 200, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(456, 216, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(472, 200, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(376, 216, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Bouncer(864, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 90; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(576, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(592, 160, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(728, 72, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(752, 72, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(800, 80, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(176, 32, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 25; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(128, 80, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 40; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 0; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E07.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E07.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E07.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); _local3 = new Lava(96, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(112, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(128, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(560, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(544, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(528, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0200, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(496, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(480, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(464, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(448, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(432, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(416, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(400, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(384, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(368, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(352, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(336, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(320, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0300, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(752, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(736, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(720, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(688, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(704, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(672, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(656, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(640, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(624, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(608, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(592, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(576, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 207
//E07_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E07_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E07_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 208
//E07_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E07_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E07_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 209
//E07_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.E07_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class E07_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 210
//E07_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E07_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E07_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 211
//E07_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E07_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E07_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 212
//E07_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.E07_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E07_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 213
//E08 (com.wasabi.tr.maps.E08) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.utility.*; public class E08 extends Map { public static const CSV_MAP_DETAIL1:Class = E08_CSV_MAP_DETAIL1; public static const CSV_MAP_DETAIL2:Class = E08_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = E08_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = E08_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = E08_CSV_MAP_FOREGROUND1; public static const CSV_MAP_OBJECTLAYER:Class = E08_CSV_MAP_OBJECTLAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(5, 6); this.Properties["BackgroundGradient"] = [0x4D4D4D, 855309, 0x4D4D4D]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Exploring"; this.Properties["RoomName"] = "The Antechamber"; this.SpriteLists["RuneDoors"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E08.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E08.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local3 = new RuneDoor(224, 368); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RuneDoor).sealType = RuneDoor.SEAL_C; (_local3 as RuneDoor).uniqueID = "c2a361fb-f336-4e1d-84be-093294f9c55f"; this.GetSpriteList("RuneDoors").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E08.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E08.CSV_MAP_OBJECTLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["ObjectLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["ObjectLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E08.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Bouncer(176, 16, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(96, 16, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(160, 128, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(80, 168, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 35; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(168, 184, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(16, 80, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(64, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E08_From_D05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(224, 96, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "ccw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(80, 144, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(288, 80, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 65; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(64, 240, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(224, 240, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(144, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(-1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Transition(48, 0, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D05_From_E08"; (_local3 as Transition).targetMap = "D05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(224, 464, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "F04_From_E08"; (_local3 as Transition).targetMap = "F04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(244, 408); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E08_From_F04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E08.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); } } }//package com.wasabi.tr.maps
Section 214
//E08_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.E08_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E08_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 215
//E08_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E08_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E08_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 216
//E08_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.E08_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class E08_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 217
//E08_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E08_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E08_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 218
//E08_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E08_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E08_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 219
//E08_CSV_MAP_OBJECTLAYER (com.wasabi.tr.maps.E08_CSV_MAP_OBJECTLAYER) package com.wasabi.tr.maps { import mx.core.*; public class E08_CSV_MAP_OBJECTLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 220
//E09 (com.wasabi.tr.maps.E09) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class E09 extends Map { public static const CSV_MAP_FOREGROUND1:Class = E09_CSV_MAP_FOREGROUND1; public static const CSV_MAP_PULSELAYER:Class = E09_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = E09_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_DETAIL1:Class = E09_CSV_MAP_DETAIL1; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(6, 6); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [0x4D4D4D, 855309, 8396803, 16616454]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Theme"; this.Properties["RoomName"] = "Deeplight Chamber"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E09.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new E09.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new LavaGeyser(88, 392, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 0.2; (_local3 as LavaGeyser).eruptionLength = 3; (_local3 as LavaGeyser).bubblingTime = 0.6; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 100; (_local3 as LavaGeyser).maxSpeed = 270; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(216, 392, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 0.2; (_local3 as LavaGeyser).eruptionLength = 3; (_local3 as LavaGeyser).bubblingTime = 0.6; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 100; (_local3 as LavaGeyser).maxSpeed = 270; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(296, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "E09_From_F04"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(304, 48, 16, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "F04_From_E09"; (_local3 as Transition).targetMap = "F04"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new DeeplightStone(156, 364); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as DeeplightStone).uniqueID = "f926c7bf-bf70-480c-86c7-bffd906d4170"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E09.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new E09.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Lava(64, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(112, 432); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 432); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(128, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(96, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(80, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(48, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(32, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(16, 384); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 221
//E09_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.E09_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class E09_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 222
//E09_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.E09_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class E09_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 223
//E09_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.E09_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E09_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 224
//E09_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.E09_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class E09_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 225
//F01 (com.wasabi.tr.maps.F01) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class F01 extends Map { public static const CSV_MAP_DETAIL2:Class = F01_CSV_MAP_DETAIL2; public static const CSV_MAP_BACKGROUND1:Class = F01_CSV_MAP_BACKGROUND1; public static const CSV_MAP_INTERACTIVELAYER:Class = F01_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_FOREGROUND1:Class = F01_CSV_MAP_FOREGROUND1; public static const CSV_MAP_DETAIL1:Class = F01_CSV_MAP_DETAIL1; public static const CSV_MAP_PULSELAYER:Class = F01_CSV_MAP_PULSELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["BackgroundGradient"] = [0, 855309, 8396803, 16616454]; this.Properties["MinimapOffset"] = new FlxPoint(2, 0); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["Music"] = "Tense Liquid"; this.Properties["RoomName"] = "The Obsidian Gap"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F01.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F01.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new F01.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(1072, 120); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotH"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(992, 144); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotG"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(688, 136); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotA"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(600, 160); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotB"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(496, 152); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotC"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(408, 136); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotD"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(328, 128); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotE"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Marker(272, 112); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "pivotF"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(1096, 120, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotH"; (_local3 as RotatingPlatform).rotationSpeed = -65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(1040, 120, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotH"; (_local3 as RotatingPlatform).rotationSpeed = -65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(960, 144, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotG"; (_local3 as RotatingPlatform).rotationSpeed = 80; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(1008, 144, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotG"; (_local3 as RotatingPlatform).rotationSpeed = 80; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(712, 136, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(648, 136, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotA"; (_local3 as RotatingPlatform).rotationSpeed = 50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(592, 136, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = 65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(568, 160, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = 65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(616, 160, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotB"; (_local3 as RotatingPlatform).rotationSpeed = 65; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(520, 152, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(464, 152, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotC"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(424, 112, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotD"; (_local3 as RotatingPlatform).rotationSpeed = 45; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(384, 160, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotD"; (_local3 as RotatingPlatform).rotationSpeed = 45; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(344, 128, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotE"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(296, 128, 24); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotE"; (_local3 as RotatingPlatform).rotationSpeed = 60; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(232, 112, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotF"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new RotatingPlatform(304, 112, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RotatingPlatform).pivotTag = "pivotF"; (_local3 as RotatingPlatform).rotationSpeed = -50; this.GetSpriteList("MovingPlatforms").add(_local3); _local1.add(_local3); _local3 = new Marker(1256, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "F01_From_D08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(1264, 80, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "D08_From_F01"; (_local3 as Transition).targetMap = "D08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Hopper(800, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(856, 136, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.475; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(880, 152, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(128, 120, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Hopper(160, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Hopper).lowJumpVelocity = 80; (_local3 as Hopper).highJumpVelocity = 200; (_local3 as Hopper).gravityScale = 0.5; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(384, 64, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 35; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 48; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Crusher(672, 64, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 30; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 48; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(24, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_14"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F01.CSV_MAP_DETAIL2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F01.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F01.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Lava(864, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(880, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(896, 208); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(912, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(848, 192); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(336, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(320, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(784, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0300, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(752, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(736, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(720, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(704, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(688, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(672, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(656, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(640, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(624, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(608, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(592, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(576, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(560, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(432, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(448, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(464, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(480, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(496, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0200, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(528, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(544, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(416, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(400, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(368, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(352, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(384, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(944, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(960, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(976, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(992, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1008, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0400, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1040, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1056, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1072, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1088, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1104, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1120, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(928, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(800, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(816, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(832, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 226
//F01_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.F01_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F01_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 227
//F01_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.F01_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class F01_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 228
//F01_CSV_MAP_DETAIL2 (com.wasabi.tr.maps.F01_CSV_MAP_DETAIL2) package com.wasabi.tr.maps { import mx.core.*; public class F01_CSV_MAP_DETAIL2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 229
//F01_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.F01_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F01_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 230
//F01_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.F01_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F01_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 231
//F01_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.F01_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F01_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 232
//F02 (com.wasabi.tr.maps.F02) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; public class F02 extends Map { public static const CSV_MAP_BACKGROUND1:Class = F02_CSV_MAP_BACKGROUND1; public static const CSV_MAP_BACKGROUND2:Class = F02_CSV_MAP_BACKGROUND2; public static const CSV_MAP_DETAILLAYER:Class = F02_CSV_MAP_DETAILLAYER; public static const CSV_MAP_FOREGROUND1:Class = F02_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = F02_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = F02_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = F02_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(2, 6); this.Properties["PulseAlphaDelta"] = 0.8; this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["BackgroundGradient"] = [0x4B0000, 855309, 8396803, 16616454]; this.Properties["Music"] = "Lava"; this.Properties["RoomName"] = "Spiral Cavern"; this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F02.CSV_MAP_BACKGROUND2(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F02.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F02.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F02.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local3 = new Bouncer(16, 80, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 20; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(32, 16, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(40, 24, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Marker(16, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "F02_From_E05"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Bouncer(56, 128, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 15; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Lava(168, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(184, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(200, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(216, 64); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Crusher(176, 96, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Crusher).resets = true; (_local3 as Crusher).crushSpeed = 400; (_local3 as Crusher).resetSpeed = 40; (_local3 as Crusher).crushDirection = new FlxPoint(0, 1); (_local3 as Crusher).detectionRange = 16; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(168, 160, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "random"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 60; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(120, 40, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 20; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(112, 24, 8, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(144, 192, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(176, 192, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Key(212, 52); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Key).uniqueID = "0bbe4212-ee56-4fc6-a418-94714bea3898"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Transition(0, 32, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E05_From_F02"; (_local3 as Transition).targetMap = "E05"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F02.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F02.CSV_MAP_DETAILLAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["DetailLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["DetailLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new F02.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Bouncer(0x0100, 192, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(1, 0); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(80, 56, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 233
//F02_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.F02_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 234
//F02_CSV_MAP_BACKGROUND2 (com.wasabi.tr.maps.F02_CSV_MAP_BACKGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_BACKGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 235
//F02_CSV_MAP_DETAILLAYER (com.wasabi.tr.maps.F02_CSV_MAP_DETAILLAYER) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_DETAILLAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 236
//F02_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.F02_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 237
//F02_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.F02_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 238
//F02_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.F02_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 239
//F02_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.F02_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F02_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 240
//F03 (com.wasabi.tr.maps.F03) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.traps.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.environment.*; public class F03 extends Map { public static const CSV_MAP_DETAIL1:Class = F03_CSV_MAP_DETAIL1; public static const CSV_MAP_BACKGROUND1:Class = F03_CSV_MAP_BACKGROUND1; public static const CSV_MAP_FOREGROUND1:Class = F03_CSV_MAP_FOREGROUND1; public static const CSV_MAP_FOREGROUND2:Class = F03_CSV_MAP_FOREGROUND2; public static const CSV_MAP_PULSELAYER:Class = F03_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = F03_CSV_MAP_INTERACTIVELAYER; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1,Foreground2"; this.Properties["MinimapOffset"] = new FlxPoint(0, 7); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaRate"] = 0.3; this.Properties["BackgroundGradient"] = [0x4B0000, 855309, 8396803, 16616454]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Lava"; this.Properties["RoomName"] = "The Bridge"; this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Traps"] = new FlxGroup(); this.SpriteLists["Platforms"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F03.CSV_MAP_BACKGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Background1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Background1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F03.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F03.CSV_MAP_FOREGROUND2(), MapAssets.GFX_TILESET_TILESET02_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground2"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground2"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new F03.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Seal(1444, 72); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Seal).sealType = Seal.TYPE_D; (_local3 as Seal).uniqueID = "4ad95113-35ec-4374-a583-36ddb86e1c68"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new Marker(288, 56); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "F03_From_E07"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(184, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(288, 424, 40, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 1; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(384, 424, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.25; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(432, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3.5; (_local3 as LavaGeyser).eruptionLength = 4; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.75; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(536, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 2; (_local3 as LavaGeyser).eruptionLength = 2.8; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(656, 424, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 1; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(704, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3.25; (_local3 as LavaGeyser).eruptionLength = 2.75; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.5; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(760, 424, 40, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.6; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(880, 424, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.25; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(920, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 1; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(1048, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 2.5; (_local3 as LavaGeyser).eruptionLength = 3; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.5; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(1112, 424, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 1.4; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(1184, 424, 40, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 2.25; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0.65; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(0x0500, 424, 32, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 2; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(1352, 424, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 1; (_local3 as LavaGeyser).eruptionLength = 2; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 1.8; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new LavaGeyser(1400, 424, 40, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as LavaGeyser).eruptionDelay = 3; (_local3 as LavaGeyser).eruptionLength = 3.5; (_local3 as LavaGeyser).bubblingTime = 1.25; (_local3 as LavaGeyser).initialDelay = 0; (_local3 as LavaGeyser).minSpeed = 350; (_local3 as LavaGeyser).maxSpeed = 455; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(1232, 0x0100, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 55; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(1136, 312, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(0x0400, 328, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(992, 304, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 45; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(848, 288, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(816, 320, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(624, 288, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(488, 288, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 50; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(504, 312, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(352, 328, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "reverse"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 40; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1528, 280, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1488, 264, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1440, 0x0100, 24, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1400, 248, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1360, 240, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1328, 240, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1296, 216, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local3 = new Bouncer(128, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(128, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(128, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, -1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 176, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 112, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Bouncer(176, 48, 16, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Bouncer).movementMode = "cw"; (_local3 as Bouncer).initialVelocity = new FlxPoint(0, 1); (_local3 as Bouncer).speed = 30; this.GetSpriteList("Traps").add(_local3); _local1.add(_local3); _local3 = new Tablet(24, 336); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_15"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new CrumbleBlock(1344, 240, 16, 8); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CrumbleBlock).crumbleTime = 0.3; (_local3 as CrumbleBlock).resets = true; this.GetSpriteList("Platforms").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F03.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F03.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Lava(144, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(320, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(384, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(368, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(352, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(336, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(400, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(416, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(432, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(448, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(464, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(480, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(496, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0200, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(528, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(544, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(560, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(576, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(592, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(608, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(624, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(640, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(656, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(672, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(688, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(720, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(704, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(736, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(752, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0300, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(784, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(800, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(816, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(832, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(848, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(864, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(880, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(896, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(912, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(928, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(944, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1264, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1248, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1232, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1216, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1200, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1184, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1168, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1152, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1120, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(960, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(976, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(992, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1008, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0400, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1040, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1056, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1072, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1088, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1104, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1136, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1456, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1440, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1424, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1408, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1376, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0500, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1296, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1312, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1328, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1344, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1360, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(1392, 416); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 241
//F03_CSV_MAP_BACKGROUND1 (com.wasabi.tr.maps.F03_CSV_MAP_BACKGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F03_CSV_MAP_BACKGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 242
//F03_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.F03_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class F03_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 243
//F03_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.F03_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F03_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 244
//F03_CSV_MAP_FOREGROUND2 (com.wasabi.tr.maps.F03_CSV_MAP_FOREGROUND2) package com.wasabi.tr.maps { import mx.core.*; public class F03_CSV_MAP_FOREGROUND2 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 245
//F03_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.F03_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F03_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 246
//F03_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.F03_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F03_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 247
//F04 (com.wasabi.tr.maps.F04) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; import com.wasabi.tr.objects.environment.*; import com.wasabi.tr.cameras.*; public class F04 extends Map { public static const CSV_MAP_CAMERALAYER:Class = F04_CSV_MAP_CAMERALAYER; public static const CSV_MAP_FOREGROUND1:Class = F04_CSV_MAP_FOREGROUND1; public static const CSV_MAP_PULSELAYER:Class = F04_CSV_MAP_PULSELAYER; public static const CSV_MAP_INTERACTIVELAYER:Class = F04_CSV_MAP_INTERACTIVELAYER; public static const CSV_MAP_DETAIL1:Class = F04_CSV_MAP_DETAIL1; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.Properties["CollisionLayers"] = "Foreground1"; this.Properties["MinimapOffset"] = new FlxPoint(5, 6); this.Properties["PulseAlphaRange"] = new FlxPoint(0.3, 0.5); this.Properties["PulseAlphaDelta"] = 0.3; this.Properties["BackgroundGradient"] = [0x4D4D4D, 855309, 8396803, 16616454]; this.Properties["BackgroundScrolls"] = true; this.Properties["Music"] = "Lava"; this.Properties["RoomName"] = "The Polished Hall"; this.SpriteLists["Markers"] = new FlxGroup(); this.SpriteLists["Triggers"] = new FlxGroup(); this.SpriteLists["Pickups"] = new FlxGroup(); this.SpriteLists["RuneDoors"] = new FlxGroup(); this.SpriteLists["Environment"] = new FlxGroup(); this.SpriteLists["CameraRegions"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F04.CSV_MAP_FOREGROUND1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Foreground1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Foreground1"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 40; _local2.loadMap(new F04.CSV_MAP_INTERACTIVELAYER(), MapAssets.GFX_TILESET_COLLISION_PNG, 8); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["InteractiveLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["InteractiveLayer"] = _local1; this.Groups.push(_local1); _local3 = new Marker(232, 520); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "F04_From_E08"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new Transition(224, 480, 48, 16); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E08_From_F04"; (_local3 as Transition).targetMap = "E08"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Transition(640, 48, 16, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Transition).targetTag = "E09_From_F04"; (_local3 as Transition).targetMap = "E09"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Marker(656, 88); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Marker).tag = "F04_From_E09"; this.GetSpriteList("Markers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(192, 480, 112, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalCamera"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(744, 448, 200, 80); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "verticalCamera"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(640, 496, 96, 176); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "horizontalCamera"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new CameraTrigger(640, 16, 48, 96); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraTrigger).regionTag = "verticalCamera"; this.GetSpriteList("Triggers").add(_local3); _local1.add(_local3); _local3 = new Tablet(24, 528); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as Tablet).uniqueID = "Tablet_16"; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new RuneDoor(704, 48); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as RuneDoor).sealType = RuneDoor.SEAL_D; (_local3 as RuneDoor).uniqueID = "7d643cd5-da44-403e-9087-e045033f8048"; this.GetSpriteList("RuneDoors").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F04.CSV_MAP_PULSELAYER(), MapAssets.GFX_TILESET_EFFECTTILES_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["PulseLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["PulseLayer"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F04.CSV_MAP_DETAIL1(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Detail1"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Detail1"] = _local1; this.Groups.push(_local1); _local3 = new Lava(16, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(32, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(48, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(64, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(80, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(96, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(112, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(128, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(144, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(160, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(176, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(192, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(208, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(224, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(240, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0100, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(272, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(288, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(304, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(320, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(336, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(352, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(368, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(384, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(400, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(416, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(432, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(464, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(448, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(624, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(608, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(592, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(576, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(560, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(544, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(528, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0200, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(496, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(480, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(928, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(912, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(896, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(880, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(864, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(848, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(832, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(816, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(800, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(752, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(0x0300, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(784, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(736, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(720, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(704, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(688, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(672, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(656, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local3 = new Lava(640, 656); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; this.GetSpriteList("Environment").add(_local3); _local1.add(_local3); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new F04.CSV_MAP_CAMERALAYER(), MapAssets.GFX_TILESET_TILESET03_PNG, 16); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["CameraLayer"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["CameraLayer"] = _local1; this.Groups.push(_local1); _local3 = new CameraRegion(0, 480, 960, 240); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraRegion).tag = "horizontalCamera"; this.GetSpriteList("CameraRegions").add(_local3); _local1.add(_local3); _local3 = new CameraRegion(640, 0, 320, 720); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as CameraRegion).tag = "verticalCamera"; this.GetSpriteList("CameraRegions").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 248
//F04_CSV_MAP_CAMERALAYER (com.wasabi.tr.maps.F04_CSV_MAP_CAMERALAYER) package com.wasabi.tr.maps { import mx.core.*; public class F04_CSV_MAP_CAMERALAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 249
//F04_CSV_MAP_DETAIL1 (com.wasabi.tr.maps.F04_CSV_MAP_DETAIL1) package com.wasabi.tr.maps { import mx.core.*; public class F04_CSV_MAP_DETAIL1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 250
//F04_CSV_MAP_FOREGROUND1 (com.wasabi.tr.maps.F04_CSV_MAP_FOREGROUND1) package com.wasabi.tr.maps { import mx.core.*; public class F04_CSV_MAP_FOREGROUND1 extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 251
//F04_CSV_MAP_INTERACTIVELAYER (com.wasabi.tr.maps.F04_CSV_MAP_INTERACTIVELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F04_CSV_MAP_INTERACTIVELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 252
//F04_CSV_MAP_PULSELAYER (com.wasabi.tr.maps.F04_CSV_MAP_PULSELAYER) package com.wasabi.tr.maps { import mx.core.*; public class F04_CSV_MAP_PULSELAYER extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 253
//Map (com.wasabi.tr.maps.Map) package com.wasabi.tr.maps { import org.flixel.*; public class Map { public var TilemapIndex:Object; public var Tilemaps:Array; public var SpriteLists:Object; public var Properties:Object; public var Groups:Array; public var GroupIndex:Object; public function Map(){ this.GroupIndex = {}; this.Groups = new Array(); this.TilemapIndex = {}; this.Tilemaps = new Array(); this.SpriteLists = {}; this.Properties = {}; } public function GetGroup(_arg1:String):FlxGroup{ return ((this.GroupIndex[_arg1] as FlxGroup)); } public function GetProperty(_arg1:String){ return (this.Properties[_arg1]); } public function GetTilemap(_arg1:String):FlxTilemap{ return ((this.TilemapIndex[_arg1] as FlxTilemap)); } public function GetSpriteList(_arg1:String):FlxGroup{ return ((this.SpriteLists[_arg1] as FlxGroup)); } public function GetLayer(_arg1:String):FlxGroup{ return ((this.GroupIndex[_arg1] as FlxGroup)); } public function create():void{ } } }//package com.wasabi.tr.maps
Section 254
//MapAssets (com.wasabi.tr.maps.MapAssets) package com.wasabi.tr.maps { public class MapAssets { public static const GFX_TILESET_COLLISION_PNG:Class = MapAssets_GFX_TILESET_COLLISION_PNG; public static const GFX_TILESET_EFFECTTILES_PNG:Class = MapAssets_GFX_TILESET_EFFECTTILES_PNG; public static const GFX_TILESET_TILESET01_PNG:Class = MapAssets_GFX_TILESET_TILESET01_PNG; public static const GFX_TILESET_TILESET02_PNG:Class = MapAssets_GFX_TILESET_TILESET02_PNG; public static const GFX_TILESET_TILESET03_PNG:Class = MapAssets_GFX_TILESET_TILESET03_PNG; public static const GFX_TILESET_MINIMAPTILES_PNG:Class = MapAssets_GFX_TILESET_MINIMAPTILES_PNG; } }//package com.wasabi.tr.maps
Section 255
//MapAssets_GFX_TILESET_COLLISION_PNG (com.wasabi.tr.maps.MapAssets_GFX_TILESET_COLLISION_PNG) package com.wasabi.tr.maps { import mx.core.*; public class MapAssets_GFX_TILESET_COLLISION_PNG extends BitmapAsset { } }//package com.wasabi.tr.maps
Section 256
//MapAssets_GFX_TILESET_EFFECTTILES_PNG (com.wasabi.tr.maps.MapAssets_GFX_TILESET_EFFECTTILES_PNG) package com.wasabi.tr.maps { import mx.core.*; public class MapAssets_GFX_TILESET_EFFECTTILES_PNG extends BitmapAsset { } }//package com.wasabi.tr.maps
Section 257
//MapAssets_GFX_TILESET_MINIMAPTILES_PNG (com.wasabi.tr.maps.MapAssets_GFX_TILESET_MINIMAPTILES_PNG) package com.wasabi.tr.maps { import mx.core.*; public class MapAssets_GFX_TILESET_MINIMAPTILES_PNG extends BitmapAsset { } }//package com.wasabi.tr.maps
Section 258
//MapAssets_GFX_TILESET_TILESET01_PNG (com.wasabi.tr.maps.MapAssets_GFX_TILESET_TILESET01_PNG) package com.wasabi.tr.maps { import mx.core.*; public class MapAssets_GFX_TILESET_TILESET01_PNG extends BitmapAsset { } }//package com.wasabi.tr.maps
Section 259
//MapAssets_GFX_TILESET_TILESET02_PNG (com.wasabi.tr.maps.MapAssets_GFX_TILESET_TILESET02_PNG) package com.wasabi.tr.maps { import mx.core.*; public class MapAssets_GFX_TILESET_TILESET02_PNG extends BitmapAsset { } }//package com.wasabi.tr.maps
Section 260
//MapAssets_GFX_TILESET_TILESET03_PNG (com.wasabi.tr.maps.MapAssets_GFX_TILESET_TILESET03_PNG) package com.wasabi.tr.maps { import mx.core.*; public class MapAssets_GFX_TILESET_TILESET03_PNG extends BitmapAsset { } }//package com.wasabi.tr.maps
Section 261
//Minimap (com.wasabi.tr.maps.Minimap) package com.wasabi.tr.maps { import org.flixel.*; import com.wasabi.tr.minimap.*; public class Minimap extends Map { public static const CSV_MAP_ITEMS:Class = Minimap_CSV_MAP_ITEMS; public static const CSV_MAP_DOORS:Class = Minimap_CSV_MAP_DOORS; public static const CSV_MAP_BASE:Class = Minimap_CSV_MAP_BASE; override public function create():void{ var _local1:FlxGroup; var _local2:FlxTilemap; var _local3:FlxObject; this.SpriteLists["Pickups"] = new FlxGroup(); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new Minimap.CSV_MAP_BASE(), MapAssets.GFX_TILESET_MINIMAPTILES_PNG, 5); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Base"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Base"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new Minimap.CSV_MAP_DOORS(), MapAssets.GFX_TILESET_MINIMAPTILES_PNG, 5); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Doors"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Doors"] = _local1; this.Groups.push(_local1); _local2 = new FlxTilemap(); _local2.drawIndex = 1; _local2.collideIndex = 1; _local2.loadMap(new Minimap.CSV_MAP_ITEMS(), MapAssets.GFX_TILESET_MINIMAPTILES_PNG, 5); _local2.scrollFactor.x = 1; _local2.scrollFactor.y = 1; this.TilemapIndex["Items"] = _local2; this.Tilemaps.push(_local2); _local1 = new FlxGroup(); _local1.add(_local2); this.GroupIndex["Items"] = _local1; this.Groups.push(_local1); _local3 = new MinimapKey(5, 10); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(15, 10); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(25, 10); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(10, 30); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(20, 30); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(40, 30); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(55, 25); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(70, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(60, 15); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapKey(70, 5); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapKey).keyTag = ""; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapRune(20, 35); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapRune).runeType = MinimapRune.RUNE_A; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapRune(20, 10); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapRune).runeType = MinimapRune.RUNE_A; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapRune(40, 40); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapRune).runeType = MinimapRune.RUNE_A; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); _local3 = new MinimapRune(15, 5); (_local3 as FlxObject).scrollFactor.x = 1; (_local3 as FlxObject).scrollFactor.y = 1; (_local3 as MinimapRune).runeType = MinimapRune.RUNE_A; this.GetSpriteList("Pickups").add(_local3); _local1.add(_local3); } } }//package com.wasabi.tr.maps
Section 262
//Minimap_CSV_MAP_BASE (com.wasabi.tr.maps.Minimap_CSV_MAP_BASE) package com.wasabi.tr.maps { import mx.core.*; public class Minimap_CSV_MAP_BASE extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 263
//Minimap_CSV_MAP_DOORS (com.wasabi.tr.maps.Minimap_CSV_MAP_DOORS) package com.wasabi.tr.maps { import mx.core.*; public class Minimap_CSV_MAP_DOORS extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 264
//Minimap_CSV_MAP_ITEMS (com.wasabi.tr.maps.Minimap_CSV_MAP_ITEMS) package com.wasabi.tr.maps { import mx.core.*; public class Minimap_CSV_MAP_ITEMS extends ByteArrayAsset { } }//package com.wasabi.tr.maps
Section 265
//MinimapKey (com.wasabi.tr.minimap.MinimapKey) package com.wasabi.tr.minimap { import org.flixel.*; public class MinimapKey extends FlxSprite { public var keyTag:String; public function MinimapKey(_arg1:int, _arg2:int){ super(_arg1, _arg2); } } }//package com.wasabi.tr.minimap
Section 266
//MinimapRune (com.wasabi.tr.minimap.MinimapRune) package com.wasabi.tr.minimap { import org.flixel.*; public class MinimapRune extends FlxSprite { public var runeType:uint; public static const RUNE_A:uint = 1; public static const RUNE_B:uint = 2; public static const RUNE_C:uint = 4; public static const RUNE_D:uint = 8; public function MinimapRune(_arg1:int, _arg2:int){ super(_arg1, _arg2); } } }//package com.wasabi.tr.minimap
Section 267
//Acid (com.wasabi.tr.objects.environment.Acid) package com.wasabi.tr.objects.environment { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class Acid extends GameObject { private static var lastStartingFrame:int = -1; public function Acid(_arg1:int, _arg2:int){ var _local3:Array; var _local4:uint; var _local5:Array; var _local6:int; super(_arg1, _arg2); this.solid = false; this.fixed = true; var _local7:Array = [[0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6], [0, 7, 8, 9, 10, 11, 12], [0, 7, 8, 9, 10, 11, 12], [0, 13, 14, 15, 16], [0, 13, 14, 15, 16], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; this.loadGraphic(Assets.GFX_ACID, true, false, 16, 16); _local3 = new Array(); while (_local7.length > 0) { _local6 = (FlxU.random() * _local7.length); _local5 = _local7[_local6]; _local7.splice(_local6, 1); _local6 = 0; while (_local6 < _local5.length) { _local3.push(_local5[_local6]); _local6++; }; }; do { _local4 = Math.floor((FlxU.random() * _local3.length)); } while (_local3[_local4] == Acid.lastStartingFrame); Acid.lastStartingFrame = _local4; this.addAnimation("exist", _local3, 10); this.play("exist"); this.setAnimationFrame(_local4); } } }//package com.wasabi.tr.objects.environment
Section 268
//Lava (com.wasabi.tr.objects.environment.Lava) package com.wasabi.tr.objects.environment { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class Lava extends GameObject { private static var lastStartingFrame:int = -1; public function Lava(_arg1:int, _arg2:int){ var _local3:Array; var _local4:uint; var _local5:Array; var _local6:int; super(_arg1, _arg2); this.solid = false; this.fixed = true; var _local7:Array = [[0, 1, 2, 3, 4, 5], [0, 1, 2, 3, 4, 5], [0, 6, 7, 8, 9, 10], [0, 6, 7, 8, 9, 10], [0, 11, 12, 13, 14, 15, 16, 17, 18], [0, 11, 12, 13, 14, 15, 16, 17, 18], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; this.loadGraphic(Assets.GFX_LAVA, true, false, 16, 16); _local3 = new Array(); while (_local7.length > 0) { _local6 = (FlxU.random() * _local7.length); _local5 = _local7[_local6]; _local7.splice(_local6, 1); _local6 = 0; while (_local6 < _local5.length) { _local3.push(_local5[_local6]); _local6++; }; }; do { _local4 = Math.floor((FlxU.random() * _local3.length)); } while (_local3[_local4] == Lava.lastStartingFrame); Lava.lastStartingFrame = _local4; this.addAnimation("exist", _local3, 10); this.play("exist"); this.setAnimationFrame(_local4); } } }//package com.wasabi.tr.objects.environment
Section 269
//Water (com.wasabi.tr.objects.environment.Water) package com.wasabi.tr.objects.environment { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class Water extends GameObject { private static var lastStartingFrame:int = -1; public function Water(_arg1:int, _arg2:int){ var _local3:Array; var _local4:uint; super(_arg1, _arg2); this.solid = false; this.fixed = true; this.loadGraphic(Assets.GFX_WATER, true, false, 16, 16); _local3 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 7, 6, 5, 4, 3, 2, 1, 0, 9, 10, 11, 12, 11, 10, 9]; do { _local4 = Math.floor((FlxU.random() * _local3.length)); } while (_local3[_local4] == Water.lastStartingFrame); Water.lastStartingFrame = _local3[_local4]; this.addAnimation("exist", _local3, 10); this.play("exist"); this.setAnimationFrame(_local4); } } }//package com.wasabi.tr.objects.environment
Section 270
//Waterfall (com.wasabi.tr.objects.environment.Waterfall) package com.wasabi.tr.objects.environment { import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Waterfall extends GameObject { private var fallHeight:int; public function Waterfall(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.fallHeight = _arg4; this.loadGraphic(Assets.GFX_WATERFALL, true); this.addAnimation("exist", [0, 1, 2, 3, 4, 5, 6, 7], 20); } override public function initialize():void{ var _local1:int; var _local2:int; var _local3:Waterfall; super.initialize(); this.play("exist"); if (this.fallHeight > 16){ _local2 = 1; while (_local2 < (this.fallHeight / this.height)) { _local3 = new Waterfall(this.x, (this.y + (this.height * _local2)), 16, 16); PlayingState.instance.getRenderingGroup("Detail2").add(_local3); _local3.play("exist"); _local2++; }; }; } } }//package com.wasabi.tr.objects.environment
Section 271
//BloodEmitter (com.wasabi.tr.objects.particles.BloodEmitter) package com.wasabi.tr.objects.particles { import com.wasabi.shared.effects.*; public class BloodEmitter extends WasabiEmitter { public function BloodEmitter(_arg1:int=0, _arg2:int=0){ super(_arg1, _arg2); this.generateParticleStock(BloodParticle, 20); } } }//package com.wasabi.tr.objects.particles
Section 272
//BloodParticle (com.wasabi.tr.objects.particles.BloodParticle) package com.wasabi.tr.objects.particles { import org.flixel.*; import com.wasabi.tr.objects.*; public class BloodParticle extends GameObject { private static const COLOR_SET:Array = [4289331200, 4287102976, 4284874752, 4282646528]; public function BloodParticle(){ this.createGraphic(FlxU.randomInRange(2, 4), FlxU.randomInRange(2, 4), BloodParticle.COLOR_SET[int(((FlxU.random() * BloodParticle.COLOR_SET.length) + 1))]); } } }//package com.wasabi.tr.objects.particles
Section 273
//LargeDustEmitter (com.wasabi.tr.objects.particles.LargeDustEmitter) package com.wasabi.tr.objects.particles { import org.flixel.*; import com.wasabi.shared.effects.*; public class LargeDustEmitter extends WasabiEmitter { public function LargeDustEmitter(_arg1:int=0, _arg2:int=0){ super(_arg1, _arg2); this.generateParticleStock(LargeDustParticle, 8); this.minParticleSpeed = new FlxPoint(-30, -10); this.maxParticleSpeed = new FlxPoint(30, -6); this.gravity = -10; } public function prepareHorizontal():void{ this.minParticleSpeed = new FlxPoint(-30, -10); this.maxParticleSpeed = new FlxPoint(30, -6); } public function prepareVertical():void{ this.minParticleSpeed = new FlxPoint(-10, -30); this.maxParticleSpeed = new FlxPoint(-6, 30); } } }//package com.wasabi.tr.objects.particles
Section 274
//LargeDustParticle (com.wasabi.tr.objects.particles.LargeDustParticle) package com.wasabi.tr.objects.particles { import org.flixel.*; import com.wasabi.tr.objects.*; public class LargeDustParticle extends GameObject { private static const COLOR_SET:Array = [4287137928, 4291611852, 4289374890]; public function LargeDustParticle(_arg1:int=0, _arg2:int=0){ super(_arg1, _arg2); var _local3:int = FlxU.randomInRange(1, 3); this.createGraphic(_local3, _local3, LargeDustParticle.COLOR_SET[int((FlxU.random() * LargeDustParticle.COLOR_SET.length))]); this.solid = false; } } }//package com.wasabi.tr.objects.particles
Section 275
//SmallDustEmitter (com.wasabi.tr.objects.particles.SmallDustEmitter) package com.wasabi.tr.objects.particles { import org.flixel.*; import com.wasabi.shared.effects.*; public class SmallDustEmitter extends WasabiEmitter { public function SmallDustEmitter(_arg1:int=0, _arg2:int=0){ super(_arg1, _arg2); this.generateParticleStock(SmallDustParticle, 8); this.minParticleSpeed = new FlxPoint(-30, -10); this.maxParticleSpeed = new FlxPoint(30, -6); this.gravity = -10; } } }//package com.wasabi.tr.objects.particles
Section 276
//SmallDustParticle (com.wasabi.tr.objects.particles.SmallDustParticle) package com.wasabi.tr.objects.particles { import org.flixel.*; import com.wasabi.tr.objects.*; public class SmallDustParticle extends GameObject { private static const COLOR_SET:Array = [4287137928, 4291611852, 4289374890]; public function SmallDustParticle(_arg1:int=0, _arg2:int=0){ super(_arg1, _arg2); var _local3:int = FlxU.randomInRange(1, 2); this.createGraphic(_local3, _local3, SmallDustParticle.COLOR_SET[int((FlxU.random() * SmallDustParticle.COLOR_SET.length))]); this.solid = false; } } }//package com.wasabi.tr.objects.particles
Section 277
//WarpEmitter (com.wasabi.tr.objects.particles.WarpEmitter) package com.wasabi.tr.objects.particles { import org.flixel.*; import com.wasabi.shared.effects.*; public class WarpEmitter extends WasabiEmitter { public function WarpEmitter(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.width = _arg3; this.height = _arg4; this.generateParticleStock(WarpParticle, 30); this.minParticleSpeed = new FlxPoint(0, 8); this.maxParticleSpeed = new FlxPoint(0, 20); this.maxRotation = (this.minRotation = 0); this.gravity = -300; } } }//package com.wasabi.tr.objects.particles
Section 278
//WarpParticle (com.wasabi.tr.objects.particles.WarpParticle) package com.wasabi.tr.objects.particles { import org.flixel.*; public class WarpParticle extends FlxSprite { private var age:Number; private static const LIFETIME:Number = 0.6; private static const COLOR_SET:Array = [4283289587, 4286571775, 4289588735, 4291489013]; public function WarpParticle(_arg1:int=0, _arg2:int=0){ var _local3:uint; super(_arg1, _arg2); _local3 = WarpParticle.COLOR_SET[int((FlxU.random() * WarpParticle.COLOR_SET.length))]; this.solid = false; this.createGraphic(1, ((FlxU.random() * 3) + 1), _local3); } override public function update():void{ super.update(); this.age = (this.age + FlxG.elapsed); this.alpha = (1 - (this.age / WarpParticle.LIFETIME)); if (this.age > 0.6){ this.kill(); }; } override public function onEmit():void{ super.onEmit(); this.age = 0; } } }//package com.wasabi.tr.objects.particles
Section 279
//DeeplightStone (com.wasabi.tr.objects.pickups.DeeplightStone) package com.wasabi.tr.objects.pickups { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class DeeplightStone extends Pickup { public function DeeplightStone(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.baseSprite.loadGraphic(Assets.GFX_DEEPLIGHT_STONE); } override public function initialize():void{ this.firstUpdate = false; } override public function onCollected(_arg1:Player):void{ super.onCollected(_arg1); FlxG.play(Assets.SFX_DEEPLIGHT_STONE_COLLECTED); FlxG.fade.start(4281217426, 1, this.fadeComplete); Main.instance.setAward(Main.DATA_AWARD_LIGHTBRINGER, true); } private function fadeComplete():void{ FlxG.state = new VictoryState(); } } }//package com.wasabi.tr.objects.pickups
Section 280
//Key (com.wasabi.tr.objects.pickups.Key) package com.wasabi.tr.objects.pickups { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class Key extends Pickup { public function Key(_arg1:int, _arg2:int){ super(_arg1, _arg2, Assets.GFX_KEY); } override public function onCollected(_arg1:Player):void{ super.onCollected(_arg1); Main.instance.keys++; Main.instance.totalKeys++; FlxG.play(Assets.SFX_GET_KEY); if (Main.instance.totalKeys >= 10){ Main.instance.setAward(Main.DATA_AWARD_KEYMASTER, true); }; } } }//package com.wasabi.tr.objects.pickups
Section 281
//Pickup (com.wasabi.tr.objects.pickups.Pickup) package com.wasabi.tr.objects.pickups { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Pickup extends FlxGroup { private var glowAlphaDelta:Number; private var originalY:int; public var uniqueID:String; private var clock:Number; private var glowAlpha:Number; protected var glowSprite:GameObject; protected var baseSprite:GameObject; protected var firstUpdate:Boolean; public function Pickup(_arg1:int, _arg2:int, _arg3:Class=null){ this.originalY = _arg2; this.fixed = true; this.firstUpdate = true; this.baseSprite = new GameObject(_arg1, _arg2, _arg3); this.baseSprite.fixed = true; this.baseSprite.solid = false; this.baseSprite.parentGroup = this; this.glowSprite = new GameObject((_arg1 - 3), (_arg2 - 3), Assets.GFX_PICKUP_GLOW); this.glowSprite.fixed = true; this.glowSprite.solid = false; this.glowAlpha = 1; this.glowAlphaDelta = -3; this.clock = 0; this.add(this.glowSprite, true); this.add(this.baseSprite, true); } override public function update():void{ if (this.firstUpdate){ this.initialize(); }; super.update(); this.glowAlpha = (this.glowAlpha + (this.glowAlphaDelta * FlxG.elapsed)); this.clock = (this.clock + (FlxG.elapsed * 2)); this.baseSprite.y = (this.originalY + (Math.abs(Math.sin(this.clock)) * 4)); this.glowSprite.y = (this.baseSprite.y - 3); if (this.glowAlpha < 0){ this.glowAlpha = 0; if (this.glowAlphaDelta < 0){ this.glowAlphaDelta = (this.glowAlphaDelta * -1); }; } else { if (this.glowAlpha > 1){ this.glowAlpha = 1; if (this.glowAlphaDelta > 0){ this.glowAlphaDelta = (this.glowAlphaDelta * -1); }; }; }; this.glowSprite.alpha = this.glowAlpha; } public function onCollected(_arg1:Player):void{ this.kill(); var _local2:Object = PlayingState.instance.getObjectData(this.uniqueID); _local2["Collected"] = true; } public function initialize():void{ this.firstUpdate = false; var _local1:Object = PlayingState.instance.getObjectData(this.uniqueID); if ((((_local1["Collected"] is Boolean)) && ((_local1["Collected"] == true)))){ this.kill(); }; } } }//package com.wasabi.tr.objects.pickups
Section 282
//Seal (com.wasabi.tr.objects.pickups.Seal) package com.wasabi.tr.objects.pickups { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class Seal extends Pickup { public var sealType:uint; public static const TYPE_A:uint = 1; public static const TYPE_B:uint = 2; public static const TYPE_C:uint = 4; public static const TYPE_D:uint = 8; public function Seal(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.sealType = TYPE_A; this.baseSprite.loadGraphic(Assets.GFX_SEALS, true); this.baseSprite.addAnimation(Seal.TYPE_A.toString(), [0]); this.baseSprite.addAnimation(Seal.TYPE_B.toString(), [1]); this.baseSprite.addAnimation(Seal.TYPE_C.toString(), [2]); this.baseSprite.addAnimation(Seal.TYPE_D.toString(), [3]); } override public function initialize():void{ super.initialize(); this.baseSprite.play(this.sealType.toString()); } override public function onCollected(_arg1:Player):void{ super.onCollected(_arg1); FlxG.play(Assets.SFX_RUNE_COLLECTED); FlxG.flash.start(4294967295, 0.2); Main.instance.runes = (Main.instance.runes | this.sealType); } } }//package com.wasabi.tr.objects.pickups
Section 283
//Tablet (com.wasabi.tr.objects.pickups.Tablet) package com.wasabi.tr.objects.pickups { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class Tablet extends Pickup { public function Tablet(_arg1:int, _arg2:int){ super(_arg1, _arg2, Assets.GFX_TABLET); } override public function onCollected(_arg1:Player):void{ super.onCollected(_arg1); FlxG.play(Assets.SFX_TABLET_COLLECTED); Main.instance.tablets++; if (Main.instance.tablets >= 20){ Main.instance.setAward(Main.DATA_AWARD_ARCHAEOLOGIST, true); }; } } }//package com.wasabi.tr.objects.pickups
Section 284
//CrumbleBlockSpriteHelper (com.wasabi.tr.objects.platforms.CrumbleBlockSpriteHelper) package com.wasabi.tr.objects.platforms { import org.flixel.*; import com.wasabi.tr.*; public class CrumbleBlockSpriteHelper extends FlxSprite { private static var singleton:CrumbleBlockSpriteHelper; public function CrumbleBlockSpriteHelper(){ this.loadGraphic(Assets.GFX_CRUMBLE_BLOCK, true, false, 8, 8); this.addAnimation("single", [0]); this.addAnimation("left", [1]); this.addAnimation("center", [2]); this.addAnimation("right", [3]); this.addAnimation("single-onetime", [4]); this.addAnimation("left-onetime", [5]); this.addAnimation("center-onetime", [6]); this.addAnimation("right-onetime", [7]); } public function setSize(_arg1:uint, _arg2:uint):void{ this.scale.x = (_arg1 / 8); this.scale.y = (_arg2 / 8); } public static function get instance():CrumbleBlockSpriteHelper{ if (CrumbleBlockSpriteHelper.singleton == null){ CrumbleBlockSpriteHelper.singleton = new (CrumbleBlockSpriteHelper); }; return (CrumbleBlockSpriteHelper.singleton); } } }//package com.wasabi.tr.objects.platforms
Section 285
//FloatingPlatformSpriteHelper (com.wasabi.tr.objects.platforms.FloatingPlatformSpriteHelper) package com.wasabi.tr.objects.platforms { import org.flixel.*; import com.wasabi.tr.*; public class FloatingPlatformSpriteHelper extends FlxSprite { private static var singleton:FloatingPlatformSpriteHelper; public function FloatingPlatformSpriteHelper(){ this.loadGraphic(Assets.GFX_FLOATING_PLATFORM, true, false, 8, 8); this.addAnimation("single", [0]); this.addAnimation("left", [1]); this.addAnimation("center", [2]); this.addAnimation("right", [3]); } public function setSize(_arg1:uint, _arg2:uint):void{ this.scale.x = (_arg1 / 8); this.scale.y = (_arg2 / 8); } public static function get instance():FloatingPlatformSpriteHelper{ if (FloatingPlatformSpriteHelper.singleton == null){ FloatingPlatformSpriteHelper.singleton = new (FloatingPlatformSpriteHelper); }; return (FloatingPlatformSpriteHelper.singleton); } } }//package com.wasabi.tr.objects.platforms
Section 286
//Marker (com.wasabi.tr.objects.platforms.Marker) package com.wasabi.tr.objects.platforms { import com.wasabi.tr.objects.*; public class Marker extends GameObject { public function Marker(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.createGraphic(8, 8, 2298478336); this.debuggingSymbol = true; this.solid = false; } } }//package com.wasabi.tr.objects.platforms
Section 287
//MovingPlatform (com.wasabi.tr.objects.platforms.MovingPlatform) package com.wasabi.tr.objects.platforms { import org.flixel.*; import com.wasabi.tr.states.*; public class MovingPlatform extends Platform { private var targetIndex:int; public var speed:Number;// = 100 public var targetTag:String; private var targetMarker:Marker; private var initialPosition:FlxPoint; private var target:FlxPoint; private var distanceThreshold:Number;// = 1 private var direction:FlxPoint; public function MovingPlatform(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2); this.fixed = true; this.needsVelocityUpdate = false; this.prepareSprite(_arg3); } override public function initialize():void{ super.initialize(); this.targetMarker = (PlayingState.instance.getObjectByTag(this.targetTag) as Marker); this.initialPosition = new FlxPoint(this.x, this.y); this.target = new FlxPoint(this.targetMarker.x, this.targetMarker.y); this.targetIndex = 1; } override protected function platformUpdate():void{ var _local1:Number; super.platformUpdate(); _local1 = FlxPoint.distance(new FlxPoint(this.x, this.y), this.target); if (_local1 < this.distanceThreshold){ if (this.targetIndex == 0){ this.targetIndex = 1; this.target = new FlxPoint(this.targetMarker.x, this.targetMarker.y); } else { this.targetIndex = 0; this.target = this.initialPosition; }; }; this.direction = FlxPoint.normalize(new FlxPoint((this.target.x - this.x), (this.target.y - this.y))); this.velocity.x = (this.direction.x * this.speed); this.velocity.y = (this.direction.y * this.speed); } } }//package com.wasabi.tr.objects.platforms
Section 288
//Platform (com.wasabi.tr.objects.platforms.Platform) package com.wasabi.tr.objects.platforms { import org.flixel.*; import com.wasabi.tr.objects.*; public class Platform extends GameObject { private var previousPosition:FlxPoint; protected var needsVelocityUpdate:Boolean; private var attachedPlayer:Player; private var attachedOffset:FlxPoint; public function Platform(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.needsVelocityUpdate = false; } public function attachPlayer(_arg1:Player):void{ this.attachedPlayer = _arg1; if (this.attachedPlayer != null){ this.attachedOffset = new FlxPoint((this.attachedPlayer.x - this.x), (this.attachedPlayer.y - this.y)); }; } override public function update():void{ var _local1:Number; var _local2:Number; this.previousPosition = new FlxPoint(this.x, this.y); super.update(); this.platformUpdate(); if (((this.needsVelocityUpdate) && (!((this.attachedPlayer == null))))){ _local1 = (this.x - this.previousPosition.x); _local2 = (this.y - this.previousPosition.y); this.attachedPlayer.x = (this.attachedPlayer.x + _local1); this.attachedPlayer.y = (this.top - this.attachedPlayer.height); }; } protected function prepareSprite(_arg1:uint):void{ var _local2:int; var _local3:int; var _local5:int; var _local6:int; var _local4 = 8; this.createGraphic(_arg1, 8, 0xFF0000, true); if (this.width > _local4){ _local5 = (_arg1 / _local4); FloatingPlatformSpriteHelper.instance.setSize(_local4, _local4); _local2 = 0; while (_local2 < _local5) { if (_local2 == 0){ FloatingPlatformSpriteHelper.instance.play("left", true); } else { if (_local2 == (_local5 - 1)){ FloatingPlatformSpriteHelper.instance.play("right", true); } else { FloatingPlatformSpriteHelper.instance.play("center", true); }; }; this.draw(FloatingPlatformSpriteHelper.instance, (_local2 * _local4), 0); _local2++; }; } else { FloatingPlatformSpriteHelper.instance.play("single", true); FloatingPlatformSpriteHelper.instance.setSize(_arg1, this.height); this.draw(FloatingPlatformSpriteHelper.instance, 0, 0); }; } protected function platformUpdate():void{ } } }//package com.wasabi.tr.objects.platforms
Section 289
//PlatformKillZone (com.wasabi.tr.objects.platforms.PlatformKillZone) package com.wasabi.tr.objects.platforms { import com.wasabi.tr.objects.*; public class PlatformKillZone extends GameObject { public function PlatformKillZone(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.createGraphic(_arg3, _arg4, 587137126); this.debuggingSymbol = true; } } }//package com.wasabi.tr.objects.platforms
Section 290
//PlatformSpawner (com.wasabi.tr.objects.platforms.PlatformSpawner) package com.wasabi.tr.objects.platforms { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.states.*; public class PlatformSpawner extends GameObject { private var platformStock:FlxGroup; public var delay:Number; private var delayClock:Number; public var platformSpeed:FlxPoint; public var platformWidth:int; public function PlatformSpawner(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.debuggingSymbol = true; this.fixed = true; this.platformStock = new FlxGroup(); this.delay = 2; this.platformSpeed = new FlxPoint(60, 0); this.platformWidth = 16; this.delayClock = this.delay; } override public function update():void{ var _local1:SimpleMovingPlatform; super.update(); this.delayClock = (this.delayClock - FlxG.elapsed); if (this.delayClock <= 0){ _local1 = (this.platformStock.getFirstAvail() as SimpleMovingPlatform); if (_local1 == null){ _local1 = new SimpleMovingPlatform(this.x, this.y, this.platformWidth); PlayingState.instance.getSpriteList("MovingPlatforms").add(_local1); PlayingState.instance.interactiveGroup.add(_local1); this.platformStock.add(_local1); }; _local1.spawn(this.x, this.y); _local1.velocity.x = this.platformSpeed.x; _local1.velocity.y = this.platformSpeed.y; this.delayClock = this.delay; }; } override public function initialize():void{ super.initialize(); } } }//package com.wasabi.tr.objects.platforms
Section 291
//RotatingPlatform (com.wasabi.tr.objects.platforms.RotatingPlatform) package com.wasabi.tr.objects.platforms { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.states.*; public class RotatingPlatform extends Platform { private var pivot:GameObject; public var rotationSpeed:Number; private var distance:Number; public var pivotTag:String; private var currentAngle:Number; public function RotatingPlatform(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2); this.fixed = true; this.moves = false; this.needsVelocityUpdate = true; this.currentAngle = 0; this.rotationSpeed = (Math.PI / 4); this.createGraphic(_arg3, 8); } override public function initialize():void{ var _local1:int; var _local2:int; var _local4:int; var _local5:int; super.initialize(); if (FlxU.abs(this.rotationSpeed) > (Math.PI * 2)){ this.rotationSpeed = ((this.rotationSpeed / 180) * Math.PI); }; this.pivot = PlayingState.instance.getObjectByTag(this.pivotTag); this.distance = FlxPoint.distance(this.center, pivot.center); this.currentAngle = Math.atan2((this.center.y - this.pivot.center.y), (this.center.x - this.pivot.center.x)); var _local3 = 8; this.createGraphic(this.width, 8, 0xFF0000, true); if (this.width > _local3){ _local4 = (width / _local3); FloatingPlatformSpriteHelper.instance.setSize(_local3, _local3); _local1 = 0; while (_local1 < _local4) { if (_local1 == 0){ FloatingPlatformSpriteHelper.instance.play("left", true); } else { if (_local1 == (_local4 - 1)){ FloatingPlatformSpriteHelper.instance.play("right", true); } else { FloatingPlatformSpriteHelper.instance.play("center", true); }; }; this.draw(FloatingPlatformSpriteHelper.instance, (_local1 * _local3), 0); _local1++; }; } else { FloatingPlatformSpriteHelper.instance.play("single", true); FloatingPlatformSpriteHelper.instance.setSize(this.width, this.height); this.draw(FloatingPlatformSpriteHelper.instance, 0, 0); }; } override protected function platformUpdate():void{ var _local1:int; var _local2:int; super.platformUpdate(); this.currentAngle = (this.currentAngle + (this.rotationSpeed * FlxG.elapsed)); _local1 = (Math.cos(this.currentAngle) * this.distance); _local2 = (Math.sin(this.currentAngle) * this.distance); this.reset(((this.pivot.center.x + _local1) - (this.width / 2)), ((this.pivot.center.y + _local2) - (this.height / 2))); this.refreshHulls(); } } }//package com.wasabi.tr.objects.platforms
Section 292
//SimpleMovingPlatform (com.wasabi.tr.objects.platforms.SimpleMovingPlatform) package com.wasabi.tr.objects.platforms { public class SimpleMovingPlatform extends Platform { public function SimpleMovingPlatform(_arg1:int, _arg2:int, _arg3:int){ super(_arg1, _arg2); this.fixed = true; this.needsVelocityUpdate = false; this.prepareSprite(_arg3); } } }//package com.wasabi.tr.objects.platforms
Section 293
//AcidDrip (com.wasabi.tr.objects.traps.AcidDrip) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class AcidDrip extends Trap { public function AcidDrip(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.loadGraphic(Assets.GFX_ACID_DRIP); this.acceleration.y = Main.GRAVITY; this.maxVelocity.y = 300; } override public function update():void{ super.update(); if (((PlayingState.instance.overlapsCollisionTilemap(this)) || (PlayingState.instance.hazardTilemap.overlaps(this)))){ if (this.onScreen()){ FlxG.playAt(Assets.SFX_ACID_HIT_GROUND, this.center, PlayingState.instance.activePlayer, 100); }; this.kill(); }; } override public function reset(_arg1:Number, _arg2:Number):void{ super.reset(_arg1, _arg2); this.velocity.x = (this.velocity.y = 0); } } }//package com.wasabi.tr.objects.traps
Section 294
//AcidDripper (com.wasabi.tr.objects.traps.AcidDripper) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class AcidDripper extends GameObject { public var randomDripPosition:Boolean; public var maxDelay:Number; private var dripGroup:FlxGroup; private var dripDelay:Number; public var minDelay:Number; public var initialDelay:Number; public function AcidDripper(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.solid = false; this.initialDelay = -1; this.minDelay = 0.8; this.maxDelay = 1; this.randomDripPosition = false; this.loadGraphic(Assets.GFX_ACID_DRIPPER, true, true, 16, 8); this.addAnimation("exist", [0]); this.addAnimation("move", [0, 1, 2, 3], 10); this.dripGroup = new FlxGroup(); } private function resetDripDelay():void{ this.dripDelay = FlxU.randomInRange(this.minDelay, this.maxDelay); } override public function initialize():void{ super.initialize(); this.play("exist"); if (this.initialDelay <= 0){ this.resetDripDelay(); } else { this.dripDelay = this.initialDelay; }; PlayingState.instance.hazardSpriteGroup.add(this.dripGroup); } private function spawnDrip():void{ var _local1:AcidDrip; var _local2:int; var _local3:int; _local3 = this.top; _local2 = (this.randomDripPosition) ? (this.left + (FlxU.random() * this.width)) : (this.center.x - 4); _local1 = (this.dripGroup.getFirstAvail() as AcidDrip); if (_local1 == null){ _local1 = new AcidDrip(_local2, _local3); this.dripGroup.add(_local1); } else { _local1.reset(_local2, _local3); }; } override public function update():void{ super.update(); this.dripDelay = (this.dripDelay - FlxG.elapsed); if (this.dripDelay <= 0){ this.spawnDrip(); this.resetDripDelay(); }; } } }//package com.wasabi.tr.objects.traps
Section 295
//Bouncer (com.wasabi.tr.objects.traps.Bouncer) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Bouncer extends Trap { public var initialVelocity:FlxPoint; public var speed:Number; public var movementMode:String; public static const MOVEMENT_REVERSE:String = "reverse"; public static const MOVEMENT_RANDOM:String = "random"; public static const MOVEMENT_CCW:String = "ccw"; public static const MOVEMENT_CW:String = "cw"; public function Bouncer(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.speed = 30; this.initialVelocity = new FlxPoint(1, 0); this.movementMode = Bouncer.MOVEMENT_RANDOM; if ((((_arg3 >= 16)) && ((_arg4 >= 16)))){ this.loadGraphic(Assets.GFX_BOUNCER_16, true, false, 16, 16); } else { this.loadGraphic(Assets.GFX_BOUNCER_8, true, false, 8, 8); }; this.scale = new FlxPoint((_arg3 / this.width), (_arg4 / this.height)); this.addAnimation("random", [3]); this.addAnimation("reverse", [2]); this.addAnimation("ccw", [1]); this.addAnimation("cw", [0]); } private function updateVelocity(_arg1:int):void{ switch (this.movementMode){ case Bouncer.MOVEMENT_REVERSE: if (_arg1 == FlxSprite.LEFT){ this.velocity = new FlxPoint(1, 0); } else { if (_arg1 == FlxSprite.RIGHT){ this.velocity = new FlxPoint(-1, 0); } else { if (_arg1 == FlxSprite.UP){ this.velocity = new FlxPoint(0, 1); } else { this.velocity = new FlxPoint(0, -1); }; }; }; break; case Bouncer.MOVEMENT_CW: if (_arg1 == FlxSprite.LEFT){ this.velocity = new FlxPoint(0, -1); } else { if (_arg1 == FlxSprite.RIGHT){ this.velocity = new FlxPoint(0, 1); } else { if (_arg1 == FlxSprite.UP){ this.velocity = new FlxPoint(1, 0); } else { this.velocity = new FlxPoint(-1, 0); }; }; }; break; case Bouncer.MOVEMENT_CCW: if (_arg1 == FlxSprite.LEFT){ this.velocity = new FlxPoint(0, 1); } else { if (_arg1 == FlxSprite.RIGHT){ this.velocity = new FlxPoint(0, -1); } else { if (_arg1 == FlxSprite.UP){ this.velocity = new FlxPoint(-1, 0); } else { this.velocity = new FlxPoint(1, 0); }; }; }; break; case Bouncer.MOVEMENT_RANDOM: default: this.pickRandomVelocity(_arg1); break; }; this.velocity.x = (this.velocity.x * this.speed); this.velocity.y = (this.velocity.y * this.speed); FlxG.playAt(Assets.SFX_BOUNCER_BOUNCE, this.center, PlayingState.instance.activePlayer); } private function pickRandomVelocity(_arg1:int):void{ var _local2:int; do { _local2 = (FlxU.random() * 4); } while (_local2 == _arg1); switch (_local2){ case FlxSprite.DOWN: this.velocity.x = 0; this.velocity.y = 1; break; case FlxSprite.UP: this.velocity.x = 0; this.velocity.y = -1; break; case FlxSprite.LEFT: this.velocity.x = -1; this.velocity.y = 0; break; case FlxSprite.RIGHT: default: this.velocity.x = 1; this.velocity.y = 0; break; }; } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ var _local3:Number = this.velocity.x; super.hitRight(_arg1, _arg2); if (((!((_arg1 is Player))) && ((_local3 > 0)))){ this.updateVelocity(FlxSprite.RIGHT); PlayingState.instance.spawnLargeDustCloud(this.right, this.center.y, 2, this.height); }; } override public function initialize():void{ super.initialize(); this.velocity.x = (this.initialVelocity.x * this.speed); this.velocity.y = (this.initialVelocity.y * this.speed); this.play(this.movementMode); } override public function hitTop(_arg1:FlxObject, _arg2:Number):void{ var _local3:Number = this.velocity.y; super.hitTop(_arg1, _arg2); if (((!((_arg1 is Player))) && ((_local3 < 0)))){ this.updateVelocity(FlxSprite.UP); PlayingState.instance.spawnLargeDustCloud(this.center.x, this.top, this.width, 2); }; } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ var _local3:Number = this.velocity.x; super.hitLeft(_arg1, _arg2); if (((!((_arg1 is Player))) && ((_local3 < 0)))){ this.updateVelocity(FlxSprite.LEFT); PlayingState.instance.spawnLargeDustCloud(this.left, this.center.y, 2, this.height); }; } override public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ var _local3:Number = this.velocity.y; super.hitBottom(_arg1, _arg2); if (((!((_arg1 is Player))) && ((_local3 > 0)))){ this.updateVelocity(FlxSprite.DOWN); PlayingState.instance.spawnLargeDustCloud(this.center.x, this.bottom, this.width, 2); }; } } }//package com.wasabi.tr.objects.traps
Section 296
//Circler (com.wasabi.tr.objects.traps.Circler) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Circler extends Trap { private var pivot:GameObject; private var angleDelta:Number; public var rotationSpeed:Number; private var distance:Number; public var pivotTag:String; private var currentAngle:Number; public function Circler(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.currentAngle = 0; this.rotationSpeed = (Math.PI / 4); this.createGraphic(_arg3, _arg4, 0xFF0000); if (_arg3 == 8){ this.loadGraphic(Assets.GFX_CIRCLER_8); } else { this.loadGraphic(Assets.GFX_CIRCLER_16); }; this.angle = (FlxU.random() * 360); } override public function update():void{ var _local1:int; var _local2:int; super.update(); this.currentAngle = (this.currentAngle + (this.rotationSpeed * FlxG.elapsed)); _local1 = (Math.cos(this.currentAngle) * this.distance); _local2 = (Math.sin(this.currentAngle) * this.distance); this.angle = (this.angle + (this.angleDelta * FlxG.elapsed)); this.reset(((this.pivot.center.x + _local1) - (this.width / 2)), ((this.pivot.center.y + _local2) - (this.height / 2))); this.refreshHulls(); } override public function initialize():void{ super.initialize(); if (FlxU.abs(this.rotationSpeed) > (Math.PI * 2)){ this.rotationSpeed = ((this.rotationSpeed / 180) * Math.PI); }; this.pivot = PlayingState.instance.getObjectByTag(this.pivotTag); this.distance = FlxPoint.distance(this.center, pivot.center); this.angleDelta = 360; if (this.rotationSpeed > 0){ this.angleDelta = (this.angleDelta * -1); }; this.currentAngle = Math.atan2((this.center.y - this.pivot.center.y), (this.center.x - this.pivot.center.x)); } } }//package com.wasabi.tr.objects.traps
Section 297
//Crusher (com.wasabi.tr.objects.traps.Crusher) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Crusher extends Trap { private var resetSound:FlxSound; public var crushDirection:FlxPoint; public var resets:Boolean; public var crushSpeed:Number; private var isCrushing:Boolean; private var isResetting:Boolean; public var detectionRange:Number; public var resetSpeed:Number; public function Crusher(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.isCrushing = false; this.isResetting = false; this.width = _arg3; this.height = _arg4; this.crushDirection = new FlxPoint(0, 1); this.resets = true; this.crushSpeed = 400; this.resetSpeed = 50; this.detectionRange = 0; this.resetSound = null; } override public function hitTop(_arg1:FlxObject, _arg2:Number):void{ super.hitTop(_arg1, _arg2); if ((_arg1 is Player)){ return; }; if (((this.isCrushing) && ((this.crushDirection.y < 0)))){ this.beginResetting(); } else { if (((this.isResetting) && ((this.crushDirection.y > 0)))){ this.stopResetting(); }; }; } override public function update():void{ var _local1:Number; super.update(); var _local2:Number = (this.detectionRange * this.detectionRange); var _local3:Player = PlayingState.instance.activePlayer; if (((!(this.isCrushing)) && (!(this.isResetting)))){ this.velocity.x = (this.velocity.y = 0); if (this.crushDirection.x != 0){ _local1 = ((_local3.center.y - center.y) * (_local3.center.y - center.y)); if ((((_local1 <= _local2)) && (this.playerIsOnTargetSide(_local3)))){ this.velocity.x = (this.crushDirection.x * this.crushSpeed); this.velocity.y = (this.crushDirection.y * this.crushSpeed); this.isCrushing = true; FlxG.playAt(Assets.SFX_CRUSHER_CRUSH, this.center, PlayingState.instance.activePlayer, 125); }; } else { _local1 = ((_local3.center.x - center.x) * (_local3.center.x - center.x)); if ((((_local1 <= _local2)) && (this.playerIsOnTargetSide(_local3)))){ this.velocity.x = (this.crushDirection.x * this.crushSpeed); this.velocity.y = (this.crushDirection.y * this.crushSpeed); this.isCrushing = true; FlxG.playAt(Assets.SFX_CRUSHER_CRUSH, this.center, PlayingState.instance.activePlayer, 125); }; }; }; } override public function initialize():void{ var _local1:int; var _local2:int; var _local4:int; var _local5:int; super.initialize(); var _local3 = 8; this.createGraphic(this.width, this.height, 0xFF0000, true); if (this.width > this.height){ _local4 = (width / _local3); CrusherSpriteHelper.instance.setSize(_local3, _local3); CrusherSpriteHelper.instance.angle = ((this.crushDirection.y)<0) ? 180 : 0; _local1 = 0; while (_local1 < _local4) { if ((((((_local1 == 0)) && ((this.crushDirection.y > 0)))) || ((((_local1 == (_local4 - 1))) && ((this.crushDirection.y < 0)))))){ CrusherSpriteHelper.instance.play("left", true); } else { if ((((((_local1 == (_local4 - 1))) && ((this.crushDirection.y > 0)))) || ((((_local1 == 0)) && ((this.crushDirection.y < 0)))))){ CrusherSpriteHelper.instance.play("right", true); } else { CrusherSpriteHelper.instance.play("center", true); }; }; this.draw(CrusherSpriteHelper.instance, (_local1 * _local3), 0); _local1++; }; if (this.detectionRange <= 0){ this.detectionRange = ((width / 2) + 10); }; } else { if (this.height > this.width){ _local5 = (height / _local3); CrusherSpriteHelper.instance.setSize(_local3, _local3); CrusherSpriteHelper.instance.angle = ((this.crushDirection.x)<0) ? 90 : -90; _local2 = 0; while (_local2 < _local5) { if ((((((_local2 == 0)) && ((this.crushDirection.x < 0)))) || ((((_local2 == (_local5 - 1))) && ((this.crushDirection.x > 0)))))){ CrusherSpriteHelper.instance.play("left", true); } else { if ((((((_local2 == (_local5 - 1))) && ((this.crushDirection.x < 0)))) || ((((_local2 == 0)) && ((this.crushDirection.x > 0)))))){ CrusherSpriteHelper.instance.play("right", true); } else { CrusherSpriteHelper.instance.play("center", true); }; }; this.draw(CrusherSpriteHelper.instance, 0, (_local2 * _local3)); _local2++; }; if (this.detectionRange <= 0){ this.detectionRange = ((height / 2) + 10); }; } else { CrusherSpriteHelper.instance.play("single", true); CrusherSpriteHelper.instance.setSize(this.width, this.height); if (this.crushDirection.x != 0){ CrusherSpriteHelper.instance.angle = ((this.crushDirection.x)<0) ? 90 : -90; } else { CrusherSpriteHelper.instance.angle = ((this.crushDirection.y)<0) ? 180 : 0; }; this.draw(CrusherSpriteHelper.instance, 0, 0); if (this.detectionRange <= 0){ this.detectionRange = ((width / 2) + 10); }; }; }; } private function playerIsOnTargetSide(_arg1:Player):Boolean{ if (_arg1.exists){ if ((((this.crushDirection.x > 0)) && ((_arg1.right > this.center.x)))){ return (true); }; if ((((this.crushDirection.x < 0)) && ((_arg1.left < this.center.x)))){ return (true); }; if ((((this.crushDirection.y > 0)) && ((_arg1.bottom > this.center.y)))){ return (true); }; if ((((this.crushDirection.y < 0)) && ((_arg1.top < this.center.y)))){ return (true); }; }; return (false); } private function beginResetting():void{ this.isCrushing = false; if (this.resets){ this.velocity.x = ((this.crushDirection.x * this.resetSpeed) * -1); this.velocity.y = ((this.crushDirection.y * this.resetSpeed) * -1); this.isResetting = true; this.resetSound = FlxG.playAt(Assets.SFX_CRUSHER_RESET, this.center, PlayingState.instance.activePlayer, 125, true); } else { this.velocity.x = (this.velocity.y = 0); this.moves = false; }; } private function stopResetting():void{ this.isResetting = false; if (this.resetSound != null){ this.resetSound.stop(); }; } override public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ super.hitBottom(_arg1, _arg2); if ((_arg1 is Player)){ return; }; if (((this.isCrushing) && ((this.crushDirection.y > 0)))){ this.beginResetting(); } else { if (((this.isResetting) && ((this.crushDirection.y < 0)))){ this.stopResetting(); }; }; } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ super.hitRight(_arg1, _arg2); if ((_arg1 is Player)){ return; }; if (((this.isCrushing) && ((this.crushDirection.x > 0)))){ this.beginResetting(); } else { if (((this.isResetting) && ((this.crushDirection.x < 0)))){ this.stopResetting(); }; }; } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ super.hitLeft(_arg1, _arg2); if ((_arg1 is Player)){ return; }; if (((this.isCrushing) && ((this.crushDirection.x < 0)))){ this.beginResetting(); } else { if (((this.isResetting) && ((this.crushDirection.x > 0)))){ this.stopResetting(); }; }; } } }//package com.wasabi.tr.objects.traps
Section 298
//CrusherSpriteHelper (com.wasabi.tr.objects.traps.CrusherSpriteHelper) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.*; public class CrusherSpriteHelper extends FlxSprite { private static var singleton:CrusherSpriteHelper; public function CrusherSpriteHelper(){ this.loadGraphic(Assets.GFX_SMASHER, true, false, 8, 8); this.addAnimation("single", [0]); this.addAnimation("left", [1]); this.addAnimation("center", [2]); this.addAnimation("right", [3]); } public function setSize(_arg1:uint, _arg2:uint):void{ this.scale.x = (_arg1 / 8); this.scale.y = (_arg2 / 8); } public static function get instance():CrusherSpriteHelper{ if (CrusherSpriteHelper.singleton == null){ CrusherSpriteHelper.singleton = new (CrusherSpriteHelper); }; return (CrusherSpriteHelper.singleton); } } }//package com.wasabi.tr.objects.traps
Section 299
//Hopper (com.wasabi.tr.objects.traps.Hopper) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Hopper extends Trap { public var gravityScale:Number; public var highJumpVelocity:Number; public var lowJumpVelocity:Number; public function Hopper(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.lowJumpVelocity = 80; this.highJumpVelocity = 200; this.gravityScale = 0.5; if (_arg3 == 16){ this.loadGraphic(Assets.GFX_HOPPER_16, true, false, 16, 16); } else { this.loadGraphic(Assets.GFX_HOPPER_8, true, false, 8, 8); }; this.addAnimation("down", [0]); this.addAnimation("up", [2]); this.addAnimation("bounce", [1, 1], 8, false); } override public function initialize():void{ super.initialize(); this.acceleration.y = (Main.GRAVITY * this.gravityScale); } override public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ super.hitBottom(_arg1, _arg2); if (FlxU.random() < 0.5){ this.velocity.y = (this.lowJumpVelocity * -1); this.play("bounce"); } else { this.velocity.y = (this.highJumpVelocity * -1); this.play("up"); }; PlayingState.instance.spawnLargeDustCloud(this.center.x, this.bottom, this.width); } override public function update():void{ super.update(); if (((!((this._curAnim == null))) && ((this._curAnim.name == "bounce")))){ if (this.finished){ this.play("down"); }; } else { if (this.velocity.y < 0){ this.play("up"); } else { this.play("down"); }; }; } } }//package com.wasabi.tr.objects.traps
Section 300
//LavaBall (com.wasabi.tr.objects.traps.LavaBall) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.*; public class LavaBall extends Trap { public var glow:FlxSprite; public function LavaBall(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.loadGraphic(Assets.GFX_LAVABALL, true, false, 12, 12); this.addAnimation("exist", [1]); this.play("exist"); this.acceleration.y = Main.GRAVITY; } override protected function onLeftScreen():void{ super.onLeftScreen(); this.kill(); } override public function update():void{ super.update(); } override protected function onLeftWorld():void{ super.onLeftWorld(); this.kill(); } override public function reset(_arg1:Number, _arg2:Number):void{ super.reset(_arg1, _arg2); } } }//package com.wasabi.tr.objects.traps
Section 301
//LavaBallSpawner (com.wasabi.tr.objects.traps.LavaBallSpawner) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.states.*; public class LavaBallSpawner extends GameObject { private var lavaBallGroup:FlxGroup; public var maxSpeed:Number; public var spawnAngleRange:Number; private var delayClock:Number; public var minDelay:Number; public var minSpeed:Number; public var spawnAngle:Number; public var maxDelay:Number; public function LavaBallSpawner(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.createGraphic(_arg3, _arg4, 1727987712); this.fixed = true; this.debuggingSymbol = true; this.minDelay = 0.5; this.maxDelay = 1.5; this.delayClock = FlxU.randomInRange(this.minDelay, this.maxDelay); this.spawnAngle = (-(Math.PI) / 2); this.spawnAngleRange = (Math.PI / 16); this.minSpeed = 225; this.maxSpeed = 375; this.lavaBallGroup = new FlxGroup(); } override public function update():void{ var _local1:Object; var _local2:LavaBall; var _local3:FlxPoint; var _local4:Number; var _local5:Number; super.update(); this.delayClock = (this.delayClock - FlxG.elapsed); if (this.delayClock <= 0){ this.delayClock = FlxU.randomInRange(this.minDelay, this.maxDelay); _local3 = new FlxPoint(FlxU.randomInRange(this.left, this.right), FlxU.randomInRange(this.top, this.bottom)); _local4 = FlxU.randomInRange(this.minSpeed, this.maxSpeed); _local5 = (this.spawnAngle + FlxU.randomInRange(-(this.spawnAngleRange), this.spawnAngleRange)); _local1 = this.lavaBallGroup.getFirstAvail(); if (((!((_local1 == null))) && ((_local1 is LavaBall)))){ _local2 = (_local1 as LavaBall); _local2.reset((_local3.x - (_local2.width / 2)), _local3.y); } else { _local2 = new LavaBall(_local3.x, _local3.y); _local2.x = (_local2.x - (_local2.width / 2)); this.lavaBallGroup.add(_local2); }; _local2.velocity.x = (_local4 * Math.cos(_local5)); _local2.velocity.y = (_local4 * Math.sin(_local5)); _local2.angularVelocity = FlxU.randomInRange(-90, 90); }; } override public function initialize():void{ super.initialize(); PlayingState.instance.hazardSpriteGroup.add(this.lavaBallGroup); } } }//package com.wasabi.tr.objects.traps
Section 302
//LavaGeyser (com.wasabi.tr.objects.traps.LavaGeyser) package com.wasabi.tr.objects.traps { import org.flixel.*; public class LavaGeyser extends LavaBallSpawner { private var maxBubblingSpeed:Number; public var eruptionLength:Number; public var eruptionDelay:Number; private var maxEruptionSpeed:Number; private var minBubblingSpeed:Number; public var bubblingTime:Number; private var currentState:int; private var minEruptionSpeed:Number; private var stateClock:Number; public var initialDelay:Number; private static const STATE_ERUPTING:int = 2; private static const STATE_QUIET:int = 0; private static const STATE_BUBBLING:int = 1; public function LavaGeyser(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2, _arg3, _arg4); this.spawnAngleRange = 0; this.minSpeed = 350; this.maxSpeed = 455; this.eruptionDelay = 3; this.eruptionLength = 3.5; this.bubblingTime = 1.25; this.currentState = LavaGeyser.STATE_QUIET; this.stateClock = this.eruptionDelay; this.minDelay = 0.02; this.maxDelay = 0.1; this.initialDelay = 0; } override public function update():void{ if (!this.initialized){ initialize(); }; if (this.initialDelay > 0){ this.initialDelay = (this.initialDelay - FlxG.elapsed); } else { this.stateClock = (this.stateClock - FlxG.elapsed); }; if (this.stateClock <= 0){ if (this.currentState == LavaGeyser.STATE_QUIET){ this.currentState = LavaGeyser.STATE_BUBBLING; this.maxSpeed = this.maxBubblingSpeed; this.minSpeed = this.minBubblingSpeed; this.stateClock = this.bubblingTime; } else { if (this.currentState == LavaGeyser.STATE_BUBBLING){ this.currentState = LavaGeyser.STATE_ERUPTING; this.maxSpeed = this.maxEruptionSpeed; this.minSpeed = this.minEruptionSpeed; this.stateClock = this.eruptionLength; } else { this.currentState = LavaGeyser.STATE_QUIET; this.stateClock = this.eruptionDelay; }; }; }; if (this.currentState != LavaGeyser.STATE_QUIET){ super.update(); }; } override public function initialize():void{ super.initialize(); this.minEruptionSpeed = this.minSpeed; this.maxEruptionSpeed = this.maxSpeed; this.minBubblingSpeed = (this.minSpeed * 0.4); this.maxBubblingSpeed = (this.maxSpeed * 0.4); } } }//package com.wasabi.tr.objects.traps
Section 303
//MovingAcidDripper (com.wasabi.tr.objects.traps.MovingAcidDripper) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.states.*; public class MovingAcidDripper extends AcidDripper { public var initialVelocity:FlxPoint; public function MovingAcidDripper(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2, _arg3, _arg4); this.initialVelocity = new FlxPoint(30, 0); } override public function initialize():void{ super.initialize(); this.play("move"); this.velocity.x = this.initialVelocity.x; this.facing = ((this.velocity.x > 0)) ? FlxSprite.RIGHT : FlxSprite.LEFT; } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ if (this.velocity.x > 0){ this.velocity.x = (this.velocity.x * -1); this.facing = ((this.velocity.x > 0)) ? FlxSprite.RIGHT : FlxSprite.LEFT; }; } override public function update():void{ var _local1:int; if (this.velocity.x > 0){ if (((!(PlayingState.instance.pointOverlapsCollisionTilemap((this.right + 1), (this.top - (this.height / 2))))) || (PlayingState.instance.pointOverlapsCollisionTilemap((this.right + 1), (this.top + (this.height / 2)))))){ this.velocity.x = (this.velocity.x * -1); }; } else { if (((!(PlayingState.instance.pointOverlapsCollisionTilemap((this.left - 1), (this.top - (this.height / 2))))) || (PlayingState.instance.pointOverlapsCollisionTilemap((this.left - 1), (this.top + (this.height / 2)))))){ this.velocity.x = (this.velocity.x * -1); }; }; super.update(); } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ if (this.velocity.x < 0){ this.velocity.x = (this.velocity.x * -1); this.facing = ((this.velocity.x > 0)) ? FlxSprite.RIGHT : FlxSprite.LEFT; }; } } }//package com.wasabi.tr.objects.traps
Section 304
//Trap (com.wasabi.tr.objects.traps.Trap) package com.wasabi.tr.objects.traps { import org.flixel.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.states.*; public class Trap extends GameObject { public function Trap(_arg1:int, _arg2:int){ super(_arg1, _arg2); } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ if ((_arg1 is Player)){ PlayingState.instance.killPlayer(); }; } override public function update():void{ super.update(); } override public function hitTop(_arg1:FlxObject, _arg2:Number):void{ if ((_arg1 is Player)){ PlayingState.instance.killPlayer(); }; } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ if ((_arg1 is Player)){ PlayingState.instance.killPlayer(); }; } override public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ if ((_arg1 is Player)){ PlayingState.instance.killPlayer(); }; } } }//package com.wasabi.tr.objects.traps
Section 305
//FlagTrigger (com.wasabi.tr.objects.utility.FlagTrigger) package com.wasabi.tr.objects.utility { import com.wasabi.tr.objects.*; import com.wasabi.tr.*; public class FlagTrigger extends Trigger { public var value:Boolean; public var flag:String; public function FlagTrigger(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2, _arg3, _arg4); } override public function activate(_arg1:Player):void{ super.activate(_arg1); Main.instance.setFlag(this.flag, this.value); this.kill(); } } }//package com.wasabi.tr.objects.utility
Section 306
//Message (com.wasabi.tr.objects.utility.Message) package com.wasabi.tr.objects.utility { import com.wasabi.tr.objects.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class Message extends Trigger { public var flagToCheck:String; public var text:String; public function Message(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2, _arg3, _arg4); this.text = ""; this.flagToCheck = ""; } override public function initialize():void{ super.initialize(); if (this.flagToCheck != ""){ if (Main.instance.getFlag(this.flagToCheck) == true){ this.kill(); }; }; } override public function deactivate():void{ super.deactivate(); this.active = false; PlayingState.instance.hidePopupMessage(); } override public function update():void{ super.update(); if (this.player != null){ PlayingState.instance.movePopupMessage(this.player.center.x, (this.player.top - 10)); }; } override public function activate(_arg1:Player):void{ super.activate(_arg1); this.active = true; PlayingState.instance.showPopupMessage(this.text); } } }//package com.wasabi.tr.objects.utility
Section 307
//Transition (com.wasabi.tr.objects.utility.Transition) package com.wasabi.tr.objects.utility { import com.wasabi.tr.objects.*; import com.wasabi.tr.states.*; public class Transition extends Trigger { public var targetTag:String; public var targetMap:String; public function Transition(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2, _arg3, _arg4); } override public function activate(_arg1:Player):void{ super.activate(_arg1); PlayingState.instance.switchMaps(this.targetMap, this.targetTag); } } }//package com.wasabi.tr.objects.utility
Section 308
//Trigger (com.wasabi.tr.objects.utility.Trigger) package com.wasabi.tr.objects.utility { import com.wasabi.tr.objects.*; public class Trigger extends GameObject { protected var player:Player; protected var triggerIsActive:Boolean; public function Trigger(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.createGraphic(_arg3, _arg4, 2281753634); this.solid = false; this.debuggingSymbol = true; this.triggerIsActive = false; this.player = null; } public function get isAlreadyActive():Boolean{ return (this.triggerIsActive); } public function get isEnabled():Boolean{ return (true); } override public function update():void{ super.update(); if (((this.triggerIsActive) && (!((this.player == null))))){ if (!this.overlaps(this.player)){ this.deactivate(); }; }; } public function activate(_arg1:Player):void{ this.player = _arg1; this.triggerIsActive = true; } public function deactivate():void{ this.player = null; this.triggerIsActive = false; } } }//package com.wasabi.tr.objects.utility
Section 309
//CrumbleBlock (com.wasabi.tr.objects.CrumbleBlock) package com.wasabi.tr.objects { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class CrumbleBlock extends GameObject { private var crumbleClock:Number; public var resets:Boolean; private var delayClock:Number; public var crumbleTime:Number; private var isCrumbling:Boolean; private var delayTime:Number; private var isResetting:Boolean; public var resetTime:Number; private var resetClock:Number; public function CrumbleBlock(_arg1:int, _arg2:int, _arg3:int, _arg4:int){ super(_arg1, _arg2); this.fixed = true; this.crumbleTime = 0.3; this.resets = true; this.delayTime = 1; this.resetTime = 0.25; this.resetClock = 0; this.crumbleClock = 0; this.isResetting = false; this.isCrumbling = false; this.createGraphic(_arg3, 8, 0xFF0000, true); } override public function update():void{ super.update(); if (this.isCrumbling){ this.crumbleClock = (this.crumbleClock + FlxG.elapsed); if (this.crumbleClock >= this.crumbleTime){ this.solid = false; this.visible = false; this.alpha = 0; this.isCrumbling = false; this.delayClock = 0; } else { this.alpha = (1 - (this.crumbleClock / this.crumbleTime)); }; } else { if (this.isResetting){ this.resetClock = (this.resetClock + FlxG.elapsed); if (this.resetClock >= this.resetTime){ this.alpha = 1; this.isResetting = false; } else { this.alpha = (this.resetClock / this.resetTime); }; } else { if (((!(this.solid)) && (this.resets))){ this.delayClock = (this.delayClock + FlxG.elapsed); if (this.delayClock >= this.delayTime){ this.isResetting = true; this.resetClock = 0; this.alpha = 0; this.visible = true; this.solid = true; FlxG.playAt(Assets.SFX_BLOCK_APPEAR, this.center, PlayingState.instance.activePlayer); }; }; }; }; } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ super.hitRight(_arg1, _arg2); } override public function hitTop(_arg1:FlxObject, _arg2:Number):void{ super.hitTop(_arg1, _arg2); if ((_arg1 is Player)){ this.crumble(); }; } override public function initialize():void{ super.initialize(); this.prepareSprite(this.width); } protected function prepareSprite(_arg1:uint):void{ var _local2:int; var _local3:int; var _local5:int; var _local6:int; var _local4 = 8; this.createGraphic(_arg1, 8, 0xFF0000, true); if (this.width > _local4){ _local5 = (_arg1 / _local4); CrumbleBlockSpriteHelper.instance.setSize(_local4, _local4); _local2 = 0; while (_local2 < _local5) { if (_local2 == 0){ CrumbleBlockSpriteHelper.instance.play((this.resets) ? "left" : "left-onetime", true); } else { if (_local2 == (_local5 - 1)){ CrumbleBlockSpriteHelper.instance.play((this.resets) ? "right" : "right-onetime", true); } else { CrumbleBlockSpriteHelper.instance.play((this.resets) ? "center" : "center-onetime", true); }; }; this.draw(CrumbleBlockSpriteHelper.instance, (_local2 * _local4), 0); _local2++; }; } else { CrumbleBlockSpriteHelper.instance.play((this.resets) ? "single" : "single-onetime", true); CrumbleBlockSpriteHelper.instance.setSize(_arg1, this.height); this.draw(CrumbleBlockSpriteHelper.instance, 0, 0); }; } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ super.hitLeft(_arg1, _arg2); } private function crumble():void{ if (!this.isCrumbling){ this.isCrumbling = true; this.crumbleClock = 0; FlxG.playAt(Assets.SFX_BLOCK_CRUMBLE, this.center, PlayingState.instance.activePlayer); }; } } }//package com.wasabi.tr.objects
Section 310
//GameObject (com.wasabi.tr.objects.GameObject) package com.wasabi.tr.objects { import org.flixel.*; import com.wasabi.tr.*; public class GameObject extends FlxSprite { protected var debuggingSymbol:Boolean; protected var hasBeenOnScreen:Boolean; public var uniqueID:String; public var parentGroup:FlxGroup; public var tag:String; protected var initialized:Boolean; public function GameObject(_arg1:int=0, _arg2:int=0, _arg3:Class=null){ super(_arg1, _arg2, _arg3); this.debuggingSymbol = false; this.parentGroup = null; } public function get isDebuggingSymbol():Boolean{ return (this.debuggingSymbol); } protected function onLeftWorld():void{ } override public function update():void{ super.update(); if (!this.initialized){ this.initialize(); }; if (((this.hasBeenOnScreen) && (!(this.onScreen())))){ this.onLeftScreen(); }; if (((!(this.hasBeenOnScreen)) && (this.onScreen()))){ this.hasBeenOnScreen = true; }; if (!this.insideWorld()){ this.onLeftWorld(); }; if (this.isDebuggingSymbol){ this.visible = Main.showDebuggingSymbols; }; } public function initialize():void{ this.initialized = true; } protected function onLeftScreen():void{ } public function get center():FlxSprite{ return (new FlxSprite((this.x + (this.width / 2)), (this.y + (this.height / 2)))); } public function spawn(_arg1:int, _arg2:int):void{ this.reset(_arg1, _arg2); this.hasBeenOnScreen = false; this.visible = true; this.active = true; this.exists = true; this.dead = false; } } }//package com.wasabi.tr.objects
Section 311
//LockedDoor (com.wasabi.tr.objects.LockedDoor) package com.wasabi.tr.objects { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class LockedDoor extends GameObject { public function LockedDoor(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.fixed = true; this.loadGraphic(Assets.GFX_DOOR, true, false, 8, 16); this.addAnimation("exist", [0]); this.addAnimation("open", [0, 1, 2, 3, 4, 5, 6, 7, 8], 12, false); this.play("exist"); } override public function initialize():void{ super.initialize(); var _local1:Object = PlayingState.instance.getObjectData(this.uniqueID); if (_local1["Unlocked"] == true){ this.kill(); }; } override public function update():void{ super.update(); if ((((this._curAnim.name == "open")) && (this.finished))){ this.kill(); }; } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ super.hitLeft(_arg1, _arg2); if (((this.exists) && ((_arg1 is Player)))){ this.collideWithPlayer((_arg1 as Player)); }; } private function collideWithPlayer(_arg1:Player):void{ var _local2:Object = PlayingState.instance.getObjectData(this.uniqueID); if (((!((_local2["Unlocked"] == true))) && ((Main.instance.keys > 0)))){ Main.instance.keys--; _local2["Unlocked"] = true; this.play("open"); }; } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ super.hitRight(_arg1, _arg2); if (((this.exists) && ((_arg1 is Player)))){ this.collideWithPlayer((_arg1 as Player)); }; } } }//package com.wasabi.tr.objects
Section 312
//Player (com.wasabi.tr.objects.Player) package com.wasabi.tr.objects { import org.flixel.*; import com.wasabi.tr.objects.platforms.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; import com.wasabi.tr.objects.particles.*; public class Player extends GameObject { private var maxJumps:int; private var previousVelocity:FlxPoint; private var blinkClock:Number; public var seals:uint; private var warpTimer:Number; private var canWallKick:Boolean; private var groundFriction:Number; private var warpCompleted:Boolean; private var isHanging:Boolean; private var groundAcceleration:Number; private var lastWarpGateIndex:int; private var jumpVelocity:Number; private var isDroppingFromLedge:Boolean; public var attachedPlatform:Platform; private var ledgeCenterX:int; private var wallCheckSprite:FlxSprite; private var previousPosition:FlxPoint; public var warpEmitter:WarpEmitter; private var movementAcceleration:Number; private var lastWallJumpDirection:int; private var warpingSound:FlxSound; private var ledgeY:int; private var airFriction:Number; private var ledgeCheckOrigin:int; private var footstepDelay:Number;// = 0.25 private var airAcceleration:Number; private var isInTheAir:Boolean; private var jumpsRemaining:int; private var footstepClock:Number; public var keys:uint; private static const WALL_JUMP_VY:Number = 135; public function Player(){ this.movementAcceleration = 400; this.jumpVelocity = -200; this.warpTimer = 0; this.lastWarpGateIndex = -1; this.warpCompleted = false; this.warpEmitter = new WarpEmitter(0, 0, 8, 2); this.footstepClock = this.footstepDelay; this.keys = 0; this.maxJumps = 1; this.jumpsRemaining = this.maxJumps; this.isInTheAir = false; this.canWallKick = false; this.isDroppingFromLedge = false; this.lastWallJumpDirection = -1; this.maxVelocity.x = 100; this.maxVelocity.y = 400; this.groundAcceleration = 400; this.groundFriction = 900; this.airAcceleration = 300; this.airFriction = 200; this.drag.x = this.groundFriction; this.ledgeCheckOrigin = (this.y - 1000); this.previousPosition = new FlxPoint(this.x, this.y); this.previousVelocity = new FlxPoint(this.velocity.x, this.velocity.y); this.wallCheckSprite = new FlxSprite(); this.wallCheckSprite.createGraphic(2, this.height, 2281766656); this.loadGraphic(Assets.GFX_PLAYER, true, true, 8, 8); this.addAnimation("standing", [0]); this.addAnimation("running", [1, 2, 1, 3], 8); this.addAnimation("blinking", [7]); this.addAnimation("jumping", [5]); this.addAnimation("falling", [6]); this.addAnimation("hanging", [4]); } private function checkForLedge(_arg1:int):Boolean{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:Boolean; var _local7:Boolean; var _local8:Boolean; var _local9:int; _local9 = PlayingState.instance.interactiveTilemap.TileWidth; _local2 = (this.y - this.previousPosition.y); _local3 = Math.floor((this.previousPosition.y - 1)); _local4 = Math.floor((this.y - 1)); if (_arg1 == FlxSprite.LEFT){ _local5 = Math.floor((this.x - 1)); } else { _local5 = Math.floor(((this.x + this.width) + 1)); }; _local6 = PlayingState.instance.isCollisionTileSolidAt(_local5, _local3); _local7 = PlayingState.instance.isCollisionTileSolidAt(_local5, _local4); _local8 = PlayingState.instance.isCollisionTileSolidAt(this.center.x, (this.bottom + 1)); if (((((!(_local6)) && (_local7))) && (!(_local8)))){ this.ledgeY = _local4; this.ledgeY = PlayingState.instance.findCollisionTileTop(_local5, this.ledgeY); this.ledgeCenterX = this.center.x; return (true); }; return (false); } private function checkForWall(_arg1:int):Boolean{ var _local2:int; var _local3:int; if (!this.isInTheAir){ return (false); }; if (_arg1 == FlxSprite.LEFT){ this.wallCheckSprite.reset((this.x - this.wallCheckSprite.width), this.y); } else { this.wallCheckSprite.reset((this.x + this.width), this.y); }; return (PlayingState.instance.overlapsCollisionTilemap(this.wallCheckSprite)); } override public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ this.previousVelocity.y = this.velocity.y; super.hitBottom(_arg1, _arg2); if (this.isInTheAir){ FlxG.play(Assets.SFX_LAND); }; this.jumpsRemaining = this.maxJumps; this.isInTheAir = false; this.isHanging = false; this.isDroppingFromLedge = false; this.lastWallJumpDirection = -1; this.drag.x = this.groundFriction; this.movementAcceleration = this.groundAcceleration; if ((_arg1 is Platform)){ this.attachedPlatform = (_arg1 as Platform); this.attachedPlatform.attachPlayer(this); }; if ((((this.attachedPlatform == null)) && ((this.previousVelocity.y > 20)))){ PlayingState.instance.spawnSmallDustCloud(this.center.x, this.bottom); }; } override public function update():void{ var _local2:uint; var _local1:Boolean; if (((((((((FlxG.keys.justPressed("UP")) || (FlxG.keys.justPressed("W")))) || (FlxG.keys.justPressed("SPACE")))) && ((this.jumpsRemaining > 0)))) && (((this.onFloor) || (this.isHanging))))){ this.velocity.y = this.jumpVelocity; this.jumpsRemaining--; this.isInTheAir = true; this.isHanging = false; this.drag.x = this.airFriction; this.movementAcceleration = this.airAcceleration; this.acceleration.y = Main.GRAVITY; if (this.attachedPlatform != null){ this.attachedPlatform.attachPlayer(null); }; this.attachedPlatform = null; }; if (this.attachedPlatform != null){ _local1 = true; this.attachedPlatform.attachPlayer(null); this.attachedPlatform = null; }; this.previousPosition.x = this.x; this.previousPosition.y = this.y; this.additionalAcceleration.x = PlayingState.instance.wind.x; this.acceleration.x = 0; if (!this.isHanging){ this.acceleration.y = Main.GRAVITY; }; if (((this.isDroppingFromLedge) && (((this.y - this.ledgeCheckOrigin) >= 8)))){ this.isDroppingFromLedge = false; }; if (((this.isHanging) && ((FlxU.abs((this.center.x - this.ledgeCenterX)) > 1)))){ this.fallFromLedge(); }; if (this.isHanging){ if (((FlxG.keys.DOWN) || (FlxG.keys.S))){ this.dropFromLedge(); }; } else { if (((FlxG.keys.LEFT) || (FlxG.keys.A))){ this.facing = FlxSprite.LEFT; if ((((((((this.jumpsRemaining < this.maxJumps)) && ((this.velocity.y < Player.WALL_JUMP_VY)))) && (this.checkForWall(FlxSprite.RIGHT)))) && (!((this.lastWallJumpDirection == FlxSprite.LEFT))))){ this.velocity.x = (this.maxVelocity.x * -1); this.velocity.y = (this.jumpVelocity * 0.75); PlayingState.instance.spawnSmallDustCloud(this.right, this.bottom); this.lastWallJumpDirection = FlxSprite.LEFT; } else { this.acceleration.x = -(this.movementAcceleration); }; } else { if (((FlxG.keys.RIGHT) || (FlxG.keys.D))){ this.facing = FlxSprite.RIGHT; if ((((((((this.jumpsRemaining < this.maxJumps)) && ((this.velocity.y < Player.WALL_JUMP_VY)))) && (this.checkForWall(FlxSprite.LEFT)))) && (!((this.lastWallJumpDirection == FlxSprite.RIGHT))))){ this.velocity.x = (this.maxVelocity.x * 1); this.velocity.y = (this.jumpVelocity * 0.75); PlayingState.instance.spawnSmallDustCloud(this.left, this.bottom); this.lastWallJumpDirection = FlxSprite.RIGHT; } else { this.acceleration.x = this.movementAcceleration; }; }; }; }; if (((FlxG.keys.pressed(Main.KEY_WARP)) || (FlxG.keys.pressed("M")))){ if (this.warpTimer == 0){ this.warpEmitter.reset(this.left, (this.bottom - 3)); this.warpEmitter.start(false, 0.025); this.warpingSound = FlxG.play(Assets.SFX_WARPING, 0.8, true); }; this.warpTimer = (this.warpTimer + FlxG.elapsed); this.acceleration.x = 0; if (((!(this.warpCompleted)) && ((this.warpTimer > 1.5)))){ this.warpCompleted = true; this.warpEmitter.stop(); this.lastWarpGateIndex = PlayingState.instance.getNextAvailableWarpGateIndex(this.lastWarpGateIndex); if (this.warpingSound != null){ this.warpingSound.stop(); }; FlxG.play(Assets.SFX_WARP_COMPLETE); FlxG.flash.start(WarpGate.WARP_COLOR, 0.2, this.completeWarp); }; } else { if (this.warpTimer > 0){ this.warpTimer = 0; this.warpCompleted = false; this.warpEmitter.stop(); if (this.warpingSound != null){ this.warpingSound.stop(); }; }; }; if (((((((FlxG.keys.justPressed("LEFT")) || (FlxG.keys.justPressed("RIGHT")))) || (FlxG.keys.justPressed("A")))) || (FlxG.keys.justPressed("D")))){ this.footstepClock = 0; }; if (this.isHanging){ this.play("hanging"); }; if (this.isInTheAir){ if (this.velocity.y < -1){ this.play("jumping"); } else { if (this.velocity.y > 1){ this.play("falling"); }; }; } else { if (this.acceleration.x != 0){ this.play("running"); if (((!(this.isInTheAir)) && ((FlxU.abs(this.velocity.y) < 1)))){ this.footstepClock = (this.footstepClock - FlxG.elapsed); if (this.footstepClock < 0){ this.footstepClock = this.footstepDelay; FlxG.play(Assets.SFX_FOOTSTEP, 0.2); }; }; } else { if (this.blinkClock > 0){ this.play("blinking"); this.blinkClock = (this.blinkClock - FlxG.elapsed); } else { this.play("standing"); if (FlxU.random() < 0.015){ this.blinkClock = 0.15; }; }; }; }; super.update(); if (((((!(this.isHanging)) && (!(this.isDroppingFromLedge)))) && ((this.velocity.y > 0)))){ if (this.checkForLedge(this.facing)){ this.y = this.ledgeY; this.isHanging = true; this.jumpsRemaining = 1; this.velocity.y = 0; this.acceleration.y = 0; }; }; if (((((!(_local1)) && ((this.velocity.y > 25)))) && ((this.y > this.previousPosition.y)))){ this.isInTheAir = true; }; _local2 = PlayingState.instance.hazardTilemap.getTileAt(this.center.x, this.center.y); if (_local2 == 1){ PlayingState.instance.killPlayer(); }; } private function completeWarp():void{ PlayingState.instance.warpToGate(this.lastWarpGateIndex); } private function fallFromLedge():void{ this.isHanging = false; this.canWallKick = false; this.jumpsRemaining = 0; this.acceleration.y = Main.GRAVITY; this.isDroppingFromLedge = true; this.ledgeCheckOrigin = this.y; } private function dropFromLedge():void{ this.isHanging = false; this.canWallKick = false; this.jumpsRemaining = 0; this.acceleration.y = Main.GRAVITY; this.isDroppingFromLedge = true; this.ledgeCheckOrigin = this.y; } } }//package com.wasabi.tr.objects
Section 313
//RuneDoor (com.wasabi.tr.objects.RuneDoor) package com.wasabi.tr.objects { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; import com.wasabi.tr.objects.pickups.*; public class RuneDoor extends GameObject { public var sealType:uint; public static const SEAL_B:uint = Seal.TYPE_B; public static const SEAL_C:uint = Seal.TYPE_C; public static const SEAL_D:uint = Seal.TYPE_D; public static const SEAL_A:uint = Seal.TYPE_A; public function RuneDoor(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.fixed = true; this.loadGraphic(Assets.GFX_RUNE_DOOR); this.sealType = RuneDoor.SEAL_A; } override public function initialize():void{ super.initialize(); var _local1:Object = PlayingState.instance.getObjectData(this.uniqueID); if (_local1["Unlocked"] == true){ this.kill(); }; } override public function hitTop(_arg1:FlxObject, _arg2:Number):void{ if (((this.exists) && ((_arg1 is Player)))){ this.collideWithPlayer((_arg1 as Player)); }; } private function collideWithPlayer(_arg1:Player):void{ var _local2:Object = PlayingState.instance.getObjectData(this.uniqueID); if ((Main.instance.runes & this.sealType) > 0){ FlxG.flash.start(); FlxG.quake.start(0.02, 0.75); FlxG.play(Assets.SFX_RUNE_DOOR_OPEN); this.kill(); _local2["Unlocked"] = true; }; } override public function hitRight(_arg1:FlxObject, _arg2:Number):void{ if (((this.exists) && ((_arg1 is Player)))){ this.collideWithPlayer((_arg1 as Player)); }; } override public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ if (((this.exists) && ((_arg1 is Player)))){ this.collideWithPlayer((_arg1 as Player)); }; } override public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ if (((this.exists) && ((_arg1 is Player)))){ this.collideWithPlayer((_arg1 as Player)); }; } } }//package com.wasabi.tr.objects
Section 314
//WarpGate (com.wasabi.tr.objects.WarpGate) package com.wasabi.tr.objects { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; import com.wasabi.tr.objects.utility.*; public class WarpGate extends Trigger { private var isActive:Boolean; public static const WARP_COLOR:uint = 4278233804; public function WarpGate(_arg1:int, _arg2:int){ super(_arg1, _arg2, 16, 16); this.loadGraphic(Assets.GFX_WARP_GATE, true, false, 16, 16); this.addAnimation("off", [0]); this.addAnimation("on", [1, 2, 3], 10); this.play("off"); this.isActive = false; this.debuggingSymbol = false; this.visible = true; } override public function initialize():void{ var _local1:Object; super.initialize(); _local1 = PlayingState.instance.getObjectData(this.uniqueID); if (((!((_local1 == null))) && ((_local1["Active"] == true)))){ this.play("on"); this.isActive = true; }; } override public function activate(_arg1:Player):void{ var _local2:Object; super.activate(_arg1); if (!this.isActive){ FlxG.flash.start(WarpGate.WARP_COLOR, 0.2); FlxG.play(Assets.SFX_WARP_GATE_ACTIVATED); this.play("on"); this.isActive = true; _local2 = PlayingState.instance.getObjectData(this.uniqueID); _local2["Active"] = true; if (Main.instance.countWarpGates() >= 4){ Main.instance.setAward(Main.DATA_AWARD_GATEKEEPER, true); }; }; } } }//package com.wasabi.tr.objects
Section 315
//GameState (com.wasabi.tr.states.base.GameState) package com.wasabi.tr.states.base { import com.wasabi.shared.states.*; public class GameState extends WasabiGameState { } }//package com.wasabi.tr.states.base
Section 316
//MenuState (com.wasabi.tr.states.base.MenuState) package com.wasabi.tr.states.base { import com.wasabi.shared.states.*; public class MenuState extends WasabiGameState { } }//package com.wasabi.tr.states.base
Section 317
//AwardsState (com.wasabi.tr.states.AwardsState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.tr.ui.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; public class AwardsState extends MenuState { private var instructions:FlxText; public var awardPanels:Object; private var panelX:int; private var panelY:int; private var panelSpacing:int; public static const AWARD_DATA:Array = [["Gatekeeper", "Gatekeeper", "Activate all four warp gates"], ["Keymaster", "Keymaster", "Collect all 10 keys"], ["Archaeologist", "Archaeologist", "Collect all 20 tablets"], ["Explorer", "Explorer", "Explore 100% of the labyrinth"], ["Lightbringer", "Lightbringer", "Recover the Deeplight Stone"]]; private function fadeComplete():void{ FlxG.state = new TitleState(); } override public function update():void{ super.update(); if (((FlxG.keys.justPressed("X")) || (FlxG.mouse.justPressed()))){ FlxG.fade.start(4278190080, 0.5, this.fadeComplete); }; } private function addAwardPanel(_arg1:String, _arg2:String, _arg3:String):int{ var _local4:AwardPanel; _local4 = new AwardPanel(this.panelX, this.panelY, _arg2, _arg3); this.awardPanels[_arg1] = _local4; this.add(_local4); return (((this.panelY + AwardPanel.HEIGHT) + this.panelSpacing)); } override public function create():void{ var _local3:String; super.create(); var _local1 = 5; FlxG.flash.start(4278190080, 0.5); this.awardPanels = new Object(); this.panelSpacing = 2; this.panelX = ((FlxG.width / 2) - (AwardPanel.WIDTH / 2)); this.panelY = ((FlxG.height / 2) - (((AwardPanel.HEIGHT * _local1) + (this.panelSpacing * (_local1 - 1))) / 2)); var _local2:int; while (_local2 < AwardsState.AWARD_DATA.length) { this.panelY = this.addAwardPanel(AwardsState.AWARD_DATA[_local2][0], AwardsState.AWARD_DATA[_local2][1], AwardsState.AWARD_DATA[_local2][2]); _local2++; }; for (_local3 in this.awardPanels) { if (Main.instance.getAward(_local3) == true){ this.awardPanels[_local3].earned = true; }; }; this.instructions = new FlxText(10, (FlxG.height - 15), (FlxG.width - 20), "Press X to return to the title"); this.instructions.color = Main.TEXT_HELP_COLOR; this.instructions.alignment = "right"; this.add(this.instructions); } } }//package com.wasabi.tr.states
Section 318
//ConfirmEraseDataState (com.wasabi.tr.states.ConfirmEraseDataState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.tr.ui.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; public class ConfirmEraseDataState extends MenuState { private var menu:Menu; private function eraseData():void{ Main.instance.eraseData(); FlxG.flash.start(4294967295, 0.3, this.eraseDataComplete); FlxG.play(Assets.SFX_ERASE_DATA); } private function eraseDataComplete():void{ this.returnToTitle(); } private function eraseEverything():void{ Main.instance.eraseEverything(); FlxG.flash.start(4294901760, 0.3, this.eraseDataComplete); FlxG.play(Assets.SFX_ERASE_DATA); } private function cancel():void{ this.returnToTitle(); } override public function create():void{ var _local1:FlxText; var _local2:int; super.create(); FlxG.flash.start(4278190080, 0.5); FlxG.mouse.show(); var _local3 = 270; var _local4 = 220; _local2 = ((FlxG.height / 2) - 50); _local1 = new FlxText(((FlxG.width / 2) - (_local3 / 2)), _local2, _local3, "You can erase just your current progress,\nor you can erase everything, including your awards.\nWhat would you like to do?"); _local1.alignment = "center"; _local1.shadow = Main.TEXT_SHADOW_COLOR; this.add(_local1); _local2 = (_local2 + (_local1.height + 10)); this.menu = new Menu(((FlxG.width / 2) - (_local4 / 2)), _local2, _local4); this.menu.addItem("Don't erase anything", this.cancel); this.menu.addItem("Erase my progress, keep my awards", this.eraseData); this.menu.addItem("Erase everything, even my awards", this.eraseEverything); this.add(this.menu); } private function returnToTitle():void{ FlxG.fade.start(4278190080, 0.5, function ():void{ FlxG.state = new TitleState(); }); } } }//package com.wasabi.tr.states
Section 319
//CreditsState (com.wasabi.tr.states.CreditsState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.shared.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; public class CreditsState extends MenuState { private var lastLine:FlxText; private var creditsText:Array; private var scrollSpeed:Number; private var skipText:FlxText; private static const TEXT_CREDITS:Class = CreditsState_TEXT_CREDITS; public function CreditsState(){ this.scrollSpeed = 10; } override public function update():void{ var _local1:int; super.update(); if (this.lastLine.bottom > 10){ _local1 = 0; while (_local1 < this.creditsText.length) { this.creditsText[_local1].y = (this.creditsText[_local1].y - (this.scrollSpeed * FlxG.elapsed)); _local1++; }; }; if ((((((((this.lastLine.bottom <= 10)) || (FlxG.keys.justPressed("X")))) || (FlxG.keys.justPressed("N")))) || (FlxG.mouse.justPressed()))){ if (!this.transitioning){ FlxG.fade.start(4278190080, 0.5, this.fadeComplete); }; }; } private function fadeComplete():void{ FlxG.state = new TitleState(); } override public function create():void{ var _local1:FlxSprite; var _local2:FlxText; var _local3:String; var _local4:Array; var _local5:int; var _local6:int; super.create(); FlxG.flash.start(4278190080, 0.5); this.creditsText = new Array(); _local3 = WasabiU.loadString(_slot1.TEXT_CREDITS); _local4 = _local3.split("\n"); _local6 = (FlxG.height - 30); _local5 = 0; while (_local5 < _local4.length) { _local2 = new FlxText(10, _local6, (FlxG.width - 20), _local4[_local5]); _local2.alignment = "center"; _local2.shadow = Main.TEXT_SHADOW_COLOR; this.add(_local2); this.creditsText.push(_local2); _local6 = (_local6 + _local2.height); _local5++; }; this.lastLine = _local2; _local1 = new FlxSprite(0, 0, UIAssets.GFX_FADE_TOP); this.add(_local1); _local1 = new FlxSprite(0, (FlxG.height - _local1.height), UIAssets.GFX_FADE_BOTTOM); this.add(_local1); this.skipText = new FlxText(10, (FlxG.height - 15), (FlxG.width - 20), "Press X to return to the title"); this.skipText.alignment = "right"; this.skipText.color = 0x888888; this.add(this.skipText); } } }//package com.wasabi.tr.states
Section 320
//CreditsState_TEXT_CREDITS (com.wasabi.tr.states.CreditsState_TEXT_CREDITS) package com.wasabi.tr.states { import mx.core.*; public class CreditsState_TEXT_CREDITS extends ByteArrayAsset { } }//package com.wasabi.tr.states
Section 321
//InstructionsState (com.wasabi.tr.states.InstructionsState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.shared.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; public class InstructionsState extends MenuState { private var instructionsTextB:FlxText; private var helpTextA:FlxText; private var helpTextB:FlxText; private var instructionsTextA:FlxText; private static const TEXT_INSTRUCTIONS_A:Class = InstructionsState_TEXT_INSTRUCTIONS_A; private static const TEXT_INSTRUCTIONS_B:Class = InstructionsState_TEXT_INSTRUCTIONS_B; private function fadeToTitleComplete():void{ FlxG.state = new TitleState(); } override public function update():void{ super.update(); if (((FlxG.keys.justPressed("X")) || (FlxG.keys.justPressed("N")))){ if (!this.transitioning){ FlxG.fade.start(4278190080, 0.5, this.fadeToTitleComplete); }; } else { if (((((((FlxG.keys.justPressed("LEFT")) || (FlxG.keys.justPressed("RIGHT")))) || (FlxG.keys.justPressed("A")))) || (FlxG.keys.justPressed("D")))){ this.instructionsTextA.visible = !(this.instructionsTextA.visible); this.instructionsTextB.visible = !(this.instructionsTextB.visible); FlxG.play(Assets.SFX_PAGE_FLIP); }; }; } override public function create():void{ var _local1:String; super.create(); FlxG.flash.start(4278190080, 0.5); this.instructionsTextA = new FlxText(10, 10, (FlxG.width - 20), WasabiU.loadString(_slot1.TEXT_INSTRUCTIONS_A)); this.instructionsTextA.visible = true; this.instructionsTextA.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.instructionsTextA); this.instructionsTextB = new FlxText(10, 10, (FlxG.width - 20), WasabiU.loadString(_slot1.TEXT_INSTRUCTIONS_B)); this.instructionsTextB.visible = false; this.instructionsTextB.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.instructionsTextB); this.helpTextA = new FlxText(10, (FlxG.height - 15), (FlxG.width - 20), "Press X to return to the title"); this.helpTextA.alignment = "right"; this.helpTextA.color = 0x888888; this.add(this.helpTextA); this.helpTextB = new FlxText(10, (FlxG.height - 15), (FlxG.width - 20), "Press left / right for next page"); this.helpTextB.alignment = "left"; this.helpTextB.color = 0x888888; this.add(this.helpTextB); } } }//package com.wasabi.tr.states
Section 322
//InstructionsState_TEXT_INSTRUCTIONS_A (com.wasabi.tr.states.InstructionsState_TEXT_INSTRUCTIONS_A) package com.wasabi.tr.states { import mx.core.*; public class InstructionsState_TEXT_INSTRUCTIONS_A extends ByteArrayAsset { } }//package com.wasabi.tr.states
Section 323
//InstructionsState_TEXT_INSTRUCTIONS_B (com.wasabi.tr.states.InstructionsState_TEXT_INSTRUCTIONS_B) package com.wasabi.tr.states { import mx.core.*; public class InstructionsState_TEXT_INSTRUCTIONS_B extends ByteArrayAsset { } }//package com.wasabi.tr.states
Section 324
//IntroState (com.wasabi.tr.states.IntroState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.shared.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; public class IntroState extends GameState { private var introText:FlxText; private var scrollSpeed:Number; private var skipText:FlxText; private static const TEXT_INTRODUCTION:Class = IntroState_TEXT_INTRODUCTION; public function IntroState(){ this.scrollSpeed = 10; } override public function update():void{ super.update(); if (this.introText.bottom > 0){ this.introText.y = (this.introText.y - (this.scrollSpeed * FlxG.elapsed)); }; if ((((((((this.introText.bottom <= 0)) || (FlxG.keys.justPressed("X")))) || (FlxG.keys.justPressed("N")))) || (FlxG.mouse.justPressed()))){ if (!this.transitioning){ FlxG.fade.start(4278190080, 0.5, this.fadeComplete); }; }; } override public function destroy():void{ super.destroy(); Main.instance.setFlag(Main.FLAG_INTRO_VIEWED, true); } private function fadeComplete():void{ FlxG.state = new PlayingState(); } override public function create():void{ var _local1:FlxSprite; super.create(); this.introText = new FlxText(10, (FlxG.height - 30), (FlxG.width - 20), WasabiU.loadString(_slot1.TEXT_INTRODUCTION)); this.introText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.introText); _local1 = new FlxSprite(0, 0, UIAssets.GFX_FADE_TOP); this.add(_local1); _local1 = new FlxSprite(0, (FlxG.height - _local1.height), UIAssets.GFX_FADE_BOTTOM); this.add(_local1); this.skipText = new FlxText(10, (FlxG.height - 15), (FlxG.width - 20), "Press X to skip"); this.skipText.alignment = "right"; this.skipText.color = Main.TEXT_HELP_COLOR; this.add(this.skipText); } } }//package com.wasabi.tr.states
Section 325
//IntroState_TEXT_INTRODUCTION (com.wasabi.tr.states.IntroState_TEXT_INTRODUCTION) package com.wasabi.tr.states { import mx.core.*; public class IntroState_TEXT_INTRODUCTION extends ByteArrayAsset { } }//package com.wasabi.tr.states
Section 326
//PlayingState (com.wasabi.tr.states.PlayingState) package com.wasabi.tr.states { import org.flixel.*; import flash.display.*; import com.wasabi.tr.objects.*; import com.wasabi.tr.maps.*; import com.wasabi.tr.ui.*; import com.wasabi.tr.objects.platforms.*; import flash.geom.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; import com.wasabi.shared.ui.*; import com.wasabi.tr.objects.particles.*; import com.wasabi.tr.objects.pickups.*; import com.wasabi.tr.objects.utility.*; public class PlayingState extends GameState { private var roomName:FlxText; public var wind:FlxPoint; private var worldGroup:FlxGroup; private var collisionLayers:Array; private var bloodEmitter:BloodEmitter; private var currentMap:Map; private var gameOverHUD:FlxGroup; private var pulseLayer:FlxTilemap; private var gameOverText:FlxText; private var uiGroup:FlxGroup; private var pulseLayerAlphaDelta:Number;// = 0.5 private var lastMusicName:String; private var primaryCollisionTileMap:FlxTilemap; private var hazardLayer:FlxTilemap; private var gameOverMenu:Menu; private var statusDisplay:StatusDisplay; private var largeDustEmitters:FlxGroup; private var textPopup:TextFrame; private var hazardGroup:FlxGroup; private var minimapHighlight:FlxSprite; private var nextMapName:String; private var collisionTilemaps:Array; private var MUSIC_LIST:Object; private var nextTargetTag:String; private var dustEmitters:FlxGroup; private var roomNameAlphaDelta:Number; private var minimap:MinimapDisplay; private var awardPanel:AwardToaster; private var gameOverBackground:FlxSprite; private var musicB:FlxSound; private var backgroundLayer:FlxSprite; private var musicA:FlxSound; private var pulseLayerAlphaRange:FlxPoint; private var player:Player; private var sponsorLogo:FlashButton; private var minimapHighlightAlphaDelta:Number; private var hud:HUD; private static const MAP_INDEX:Object = {A00:A00, B00:B00, B01:B01, B02:B02, B03:B03, B04:B04, C01:C01, C02:C02, C03:C03, C04:C04, C05:C05, C06:C06, C07:C07, C08:C08, C09:C09, D01:D01, D02:D02, D03:D03, D04:D04, D05:D05, D06:D06, D07:D07, D08:D08, D09:D09, D10:D10, E01:E01, E02:E02, E03:E03, E04:E04, E05:E05, E06:E06, E07:E07, E08:E08, E09:E09, F01:F01, F02:F02, F03:F03, F04:F04}; private static const WARP_GATES:Array = [["GameStart", "A00", true], ["Gate_A", "C01", false], ["Gate_B", "D04", false], ["Gate_C", "D10", false], ["Gate_D", "C04", false]]; private static const WGI_TAG:uint = 0; private static const WGI_MAP:uint = 1; private static const WGI_ALWAYS:uint = 2; public static var instance:PlayingState; public function PlayingState(){ pulseLayerAlphaRange = new FlxPoint(0, 1); MUSIC_LIST = {Standard:Assets.MUSIC_STANDARD, Damp:Assets.MUSIC_DAMP, Lava:Assets.MUSIC_LAVA, Acid:Assets.MUSIC_ACID, Tense Fire:Assets.MUSIC_TENSE_FIRE, Tense Liquid:Assets.MUSIC_TENSE_LIQUID, Exploring:Assets.MUSIC_EXPLORING, Theme:Assets.MUSIC_EXPLORING}; super(); } private function collidePlayerWithPickup(_arg1:FlxObject, _arg2:FlxObject):void{ var _local3:Player = (_arg1 as Player); var _local4:GameObject = (_arg2 as GameObject); var _local5:Pickup; if (_local4 != null){ _local5 = (_local4.parentGroup as Pickup); }; if (((!((_local3 == null))) && (!((_local5 == null))))){ _local5.onCollected(_local3); }; } public function spawnLargeDustCloud(_arg1:int, _arg2:int, _arg3:int=16, _arg4:int=3):void{ var _local5:LargeDustEmitter; _local5 = (this.largeDustEmitters.getFirstAvail() as LargeDustEmitter); if (_local5 != null){ if (_arg3 > _arg4){ _local5.prepareHorizontal(); } else { _local5.prepareVertical(); }; _local5.x = _arg1; _local5.y = _arg2; _local5.start(true, 0.2); }; } public function findCollisionTileTop(_arg1:int, _arg2:int):int{ var _local3:int; var _local4:uint; _local3 = 0; while (_local3 < this.collisionTilemaps.length) { if (this.collisionTilemaps[_local3].getTileAt(_arg1, _arg2) >= this.collisionTilemaps[_local3].collideIndex){ if (this.collisionTilemaps[_local3].TileWidth > _local4){ _local4 = this.collisionTilemaps[_local3].TileHeight; }; }; _local3++; }; if (_local4 > 0){ return ((Math.floor((_arg2 / _local4)) * _local4)); }; return (_arg2); } private function finishSwitchingMaps():void{ FlxG.flash.stop(); } public function hidePopupMessage():void{ this.textPopup.visible = false; } public function movePopupMessage(_arg1:int, _arg2:int):void{ var _local3:int; var _local4:int; _local3 = (_arg1 - (this.textPopup.width / 2)); _local4 = (Math.ceil(_arg2) - this.textPopup.height); _local3 = Math.max(FlxU.quadTreeBounds.left, _local3); _local3 = Math.min((FlxU.quadTreeBounds.right - this.textPopup.width), _local3); _local4 = Math.max(FlxU.quadTreeBounds.top, _local4); _local4 = Math.min((FlxU.quadTreeBounds.bottom - this.textPopup.height), _local4); if (FlxU.abs((_local4 - this.textPopup.y)) < 2){ _local4 = this.textPopup.y; }; this.textPopup.reset(_local3, _local4); } private function collidePlatformWithPlatformKillZone(_arg1:FlxObject, _arg2:FlxObject):void{ var _local3:PlatformKillZone = (_arg1 as PlatformKillZone); var _local4:Platform = (_arg2 as Platform); if (((!((_local3 == null))) && (!((_local4 == null))))){ _local4.kill(); }; } public function pointOverlapsCollisionTilemap(_arg1:int, _arg2:int):Boolean{ var _local3:int; _local3 = 0; while (_local3 < this.collisionTilemaps.length) { if (this.collisionTilemaps[_local3].overlapsPoint(_arg1, _arg2, true)){ return (true); }; _local3++; }; return (false); } public function get hazardSpriteGroup():FlxGroup{ return (this.hazardGroup); } public function getRenderingGroup(_arg1:String):FlxGroup{ return (this.currentMap.GetGroup(_arg1)); } private function returnToTitle():void{ if (this.musicA != null){ this.musicA.fadeOut(0.4); }; if (this.musicB != null){ this.musicB.fadeOut(0.4); }; FlxG.fade.start(4278190080, 0.5, this.returnToTitleFadeComplete); } private function collideWithCollisionLayers(_arg1:FlxObject):void{ var _local2:int; _local2 = 0; while (_local2 < this.collisionLayers.length) { _arg1.collide(this.collisionLayers[_local2]); _local2++; }; } private function switchMusic(_arg1:String):void{ var _local2:FlxSound; if ((((this.lastMusicName == _arg1)) || ((this.MUSIC_LIST[_arg1] == null)))){ return; }; if (this.musicB != null){ this.musicB.stop(); }; if (this.musicA.active){ this.musicA.fadeOut(1); this.musicB.loadEmbedded(this.MUSIC_LIST[_arg1], true); this.musicB.fadeIn(1); _local2 = this.musicA; this.musicA = this.musicB; this.musicB = _local2; } else { this.musicA.loadEmbedded(this.MUSIC_LIST[_arg1], true); this.musicA.fadeIn(1); }; this.lastMusicName = _arg1; } public function showPopupMessage(_arg1:String):void{ this.textPopup.setSizeAndText(150, _arg1); this.movePopupMessage(this.player.center.x, (this.player.top - 10)); this.textPopup.visible = true; } public function overlapsCollisionLayer(_arg1:FlxObject):Boolean{ var _local2:int; _local2 = 0; while (_local2 < this.collisionLayers.length) { if (_arg1.overlaps(this.collisionLayers[_local2])){ return (true); }; _local2++; }; return (false); } private function tryAgain():void{ if (this.musicA != null){ this.musicA.fadeOut(0.4); }; if (this.musicB != null){ this.musicB.fadeOut(0.4); }; FlxG.fade.start(4278190080, 0.5, this.tryAgainFadeComplete); } public function isCollisionTileSolidAt(_arg1:int, _arg2:int):Boolean{ var _local3:int; _local3 = 0; while (_local3 < this.collisionTilemaps.length) { if (this.collisionTilemaps[_local3].getTileAt(_arg1, _arg2) >= this.collisionTilemaps[_local3].collideIndex){ return (true); }; _local3++; }; return (false); } public function get activeMap():Map{ return (this.currentMap); } public function get hazardTilemap():FlxTilemap{ return (this.currentMap.GetTilemap("InteractiveLayer")); } private function continueSwitchingMaps():void{ var _local1:FlxSound; while (this.worldGroup.members.length > 0) { this.worldGroup.members.pop(); }; this.hidePopupMessage(); this.loadMap(this.nextMapName, this.nextTargetTag); var _local2:int; while (_local2 < FlxG.sounds.length) { _local1 = FlxG.sounds[_local2]; if (!_local1.survive){ _local1.fadeOut(0.1); }; _local2++; }; FlxG.fade.stop(); FlxG.flash.start(4278190080, 0.2, this.finishSwitchingMaps); } private function generateBackground():void{ var _local1:int; var _local2:int; var _local5:Array; var _local6:Array; var _local7:Array; var _local8:int; var _local3:Sprite = new Sprite(); var _local4:Matrix = new Matrix(); if ((this.currentMap.GetProperty("BackgroundGradient") is Array)){ if ((((this.currentMap.GetProperty("BackgroundScrolls") is Boolean)) && ((this.currentMap.GetProperty("BackgroundScrolls") == true)))){ _local8 = this.primaryCollisionTileMap.height; } else { _local8 = FlxG.height; }; _local5 = (this.currentMap.GetProperty("BackgroundGradient") as Array); _local6 = new Array(); _local7 = new Array(); _local2 = 0; _local1 = 0; while (_local1 < _local5.length) { _local6[_local1] = 1; _local7[_local1] = _local2; _local2 = (_local2 + (0xFF / _local5.length)); _local2 = ((_local2 > 0xFF)) ? 0xFF : _local2; _local1++; }; _local4.createGradientBox(FlxG.width, _local8, (Math.PI / 2)); _local3.graphics.beginGradientFill(GradientType.LINEAR, _local5, _local6, _local7, _local4); _local3.graphics.drawRect(0, 0, FlxG.width, _local8); _local3.graphics.endFill(); this.backgroundLayer.scrollFactor.x = 0; this.backgroundLayer.scrollFactor.y = ((_local8)==FlxG.height) ? 0 : 1; this.backgroundLayer.createGraphic(FlxG.width, _local8, 0); this.backgroundLayer.pixels.draw(_local3); this.backgroundLayer.resetHelpers(); } else { this.backgroundLayer.scrollFactor.x = 0; this.backgroundLayer.scrollFactor.y = 0; this.backgroundLayer.createGraphic(FlxG.width, FlxG.height, 0); }; } public function get activePlayer():Player{ return (this.player); } public function overlapsCollisionTilemap(_arg1:FlxObject):Boolean{ var _local2:int; _local2 = 0; while (_local2 < this.collisionTilemaps.length) { if (this.collisionTilemaps[_local2].overlaps(_arg1)){ return (true); }; _local2++; }; return (false); } private function isWarpGateAvailable(_arg1:String):Boolean{ var _local2:Object; _local2 = this.getObjectData(_arg1); if (((!((_local2 == null))) && ((_local2["Active"] == true)))){ return (true); }; return (false); } public function getObjectByTag(_arg1:String, _arg2:String=null):GameObject{ var _local3:FlxGroup; var _local4:int; var _local5:int; if (_arg2 == null){ _local4 = 0; while (_local4 < this.currentMap.Groups.length) { _local3 = (this.currentMap.Groups[_local4] as FlxGroup); _local5 = 0; while (_local5 < _local3.members.length) { if ((((_local3.members[_local5] is GameObject)) && ((_local3.members[_local5].tag == _arg1)))){ return ((_local3.members[_local5] as GameObject)); }; _local5++; }; _local4++; }; } else { _local3 = this.currentMap.GetSpriteList(_arg2); _local5 = 0; while (_local5 < _local3.members.length) { if ((((_local3.members[_local5] is GameObject)) && ((_local3.members[_local5].tag == _arg1)))){ return ((_local3.members[_local5] as GameObject)); }; _local5++; }; }; return (null); } public function warpToGate(_arg1:int):void{ this.switchMaps(PlayingState.WARP_GATES[_arg1][PlayingState.WGI_MAP], PlayingState.WARP_GATES[_arg1][PlayingState.WGI_TAG]); } public function showAwardToaster(_arg1:int):void{ FlxG.play(Assets.SFX_AWARD_EARNED); this.awardPanel.show(AwardsState.AWARD_DATA[_arg1][1], AwardsState.AWARD_DATA[_arg1][2]); } public function getNextAvailableWarpGateIndex(_arg1:int):int{ var _local2:int; var _local3:Array; var _local4:int; _local2 = ((_arg1 + 1) % PlayingState.WARP_GATES.length); _local4 = (((_local2 + PlayingState.WARP_GATES.length) % PlayingState.WARP_GATES.length) - 1); if (_local2 > PlayingState.WARP_GATES.length){ _local2 = 0; }; do { _local3 = PlayingState.WARP_GATES[_local2]; if ((((_local3[PlayingState.WGI_ALWAYS] == true)) || (this.isWarpGateAvailable(_local3[PlayingState.WGI_TAG])))){ return (_local2); }; if (_local2 == _local4){ break; }; _local2 = ((_local2 + 1) % PlayingState.WARP_GATES.length); } while (true); return (_arg1); } public function getObjectData(_arg1:String):Object{ if (Main.instance.objectData[_arg1] == null){ Main.instance.objectData[_arg1] = {}; }; return (Main.instance.objectData[_arg1]); } public function get interactiveTilemap():FlxTilemap{ return (this.primaryCollisionTileMap); } public function spawnSmallDustCloud(_arg1:int, _arg2:int, _arg3:int=8, _arg4:int=2):void{ var _local5:SmallDustEmitter; _local5 = (this.dustEmitters.getFirstAvail() as SmallDustEmitter); if (_local5 != null){ _local5.x = _arg1; _local5.y = _arg2; _local5.start(true, 0.2); }; } private function loadMap(_arg1:String, _arg2:String):void{ var _local3:int; var _local4:Class; var _local7:String; var _local8:Array; Main.instance.respawnMapTag = _arg1; Main.instance.respawnMarkerTag = _arg2; _local3 = 0; while (_local3 < this.minimap.BaseTileMap.tileVisible.length) { Main.instance.minimapVisiblilty[_local3] = this.minimap.BaseTileMap.tileVisible[_local3]; _local3++; }; Main.instance.storeDatum(Main.DATA_RESPAWN_MAP_TAG, _arg1); Main.instance.storeDatum(Main.DATA_RESPAWN_MARKER_TAG, _arg2); Main.instance.storeDatum(Main.DATA_MINIMAP_VISIBILTY, Main.instance.minimapVisiblilty); Main.instance.storeDatum(Main.DATA_KEYS, Main.instance.keys); Main.instance.storeDatum(Main.DATA_TOTAL_KEYS, Main.instance.totalKeys); Main.instance.storeObjectDatum(Main.DATA_OBJECT_DATA, Main.instance.objectData); Main.instance.storeObjectDatum(Main.DATA_FLAGS, Main.instance.flags); Main.instance.storeDatum(Main.DATA_RUNES, Main.instance.runes); Main.instance.storeDatum(Main.DATA_TABLETS, Main.instance.tablets); Main.instance.storeDatum(Main.DATA_TIME, Main.instance.playTime); Main.instance.flushStoredData(); _local4 = PlayingState.MAP_INDEX[_arg1]; this.backgroundLayer = new FlxSprite(0, 0); this.backgroundLayer.scrollFactor.x = (this.backgroundLayer.scrollFactor.y = 0); this.worldGroup.add(this.backgroundLayer); this.pulseLayer = null; this.hazardGroup = new FlxGroup(); this.currentMap = new (_local4); this.currentMap.create(); _local3 = 0; while (_local3 < this.currentMap.Tilemaps.length) { this.worldGroup.add(this.currentMap.Tilemaps[_local3]); this.worldGroup.add(this.currentMap.Groups[_local3]); _local3++; }; this.currentMap.GetTilemap("InteractiveLayer").follow(); this.currentMap.GetTilemap("InteractiveLayer").visible = ((Main.showDebuggingSymbols) && (false)); if (this.currentMap.GetProperty("HazardLayer") != null){ this.hazardLayer = this.currentMap.GetTilemap(this.currentMap.GetProperty("HazardLayer")); this.currentMap.GetGroup(this.currentMap.GetProperty("HazardLayer")).add(this.hazardGroup); } else { this.hazardLayer = this.currentMap.GetTilemap("InteractiveLayer"); this.currentMap.GetGroup("InteractiveLayer").add(this.hazardGroup); }; if (this.currentMap.GetTilemap("PulseLayer") != null){ this.pulseLayer = this.currentMap.GetTilemap("PulseLayer"); if ((this.currentMap.GetProperty("PulseAlphaRange") is FlxPoint)){ this.pulseLayerAlphaRange = (this.currentMap.GetProperty("PulseAlphaRange") as FlxPoint); } else { this.pulseLayerAlphaRange = new FlxPoint(0, 1); }; if ((this.currentMap.GetProperty("PulseAlphaDelta") is Number)){ this.pulseLayerAlphaDelta = (this.currentMap.GetProperty("PulseAlphaDelta") as Number); } else { this.pulseLayerAlphaDelta = 0.5; }; }; if (this.currentMap.GetSpriteList("MovingPlatforms") == null){ this.currentMap.SpriteLists["MovingPlatforms"] = new FlxGroup(); this.interactiveGroup.add(this.currentMap.GetSpriteList("MovingPlatforms")); }; this.collisionLayers = new Array(); this.collisionTilemaps = new Array(); if (this.currentMap.GetProperty("CollisionLayers") != null){ _local7 = (this.currentMap.GetProperty("CollisionLayers") as String); _local8 = _local7.split(","); _local3 = 0; while (_local3 < _local8.length) { this.collisionLayers.push(this.currentMap.GetLayer(_local8[_local3])); this.collisionTilemaps.push(this.currentMap.GetTilemap(_local8[_local3])); _local3++; }; this.primaryCollisionTileMap = this.currentMap.GetTilemap(_local8[0]); } else { this.primaryCollisionTileMap = this.currentMap.GetTilemap("InteractiveLayer"); this.collisionTilemaps.push(this.primaryCollisionTileMap); this.collisionLayers.push(this.currentMap.GetLayer("InteractiveLayer")); }; this.generateBackground(); this.currentMap.GetGroup("InteractiveLayer").add(this.player); this.currentMap.GetGroup("InteractiveLayer").add(this.player.warpEmitter); this.currentMap.GetGroup("InteractiveLayer").add(this.bloodEmitter); this.currentMap.GetGroup("InteractiveLayer").add(this.dustEmitters); this.currentMap.GetGroup("InteractiveLayer").add(this.largeDustEmitters); var _local5:GameObject = (this.getObjectByTag(_arg2, "Markers") as GameObject); if (_local5 == null){ _local5 = (this.getObjectByTag(_arg2) as GameObject); }; this.player.x = _local5.x; this.player.y = _local5.y; FlxG.snapCameraToObject(this.player); FlxG.follow(this.player); FlxG.followLerp = 3; this.worldGroup.add(this.textPopup); if (this.currentMap.GetProperty("RoomName") != null){ this.roomName.alpha = 0; this.roomNameAlphaDelta = 0.5; this.roomName.text = this.currentMap.GetProperty("RoomName"); } else { this.roomName.alpha = 0; this.roomNameAlphaDelta = -0.5; }; var _local6:String = this.currentMap.GetProperty("Music"); this.switchMusic(((_local6 == null)) ? "Standard" : _local6); } public function get interactiveGroup():FlxGroup{ return (this.currentMap.GetGroup("InteractiveLayer")); } override public function update():void{ var _local1:int; if (this.statusDisplay.visible){ this.statusDisplay.update(); this.hud.update(); this.minimap.update(); } else { super.update(); }; if (this.player.exists){ Main.instance.playTime = (Main.instance.playTime + FlxG.realElapsed); }; this.musicA.update(); this.musicB.update(); if ((((this.roomNameAlphaDelta > 0)) && ((this.roomName.alpha < 1)))){ this.roomName.alpha = (this.roomName.alpha + (this.roomNameAlphaDelta * FlxG.elapsed)); if (this.roomName.alpha >= 1){ this.roomName.alpha = 1; this.roomNameAlphaDelta = -1; }; } else { if ((((this.roomNameAlphaDelta < 0)) && ((this.roomName.alpha > 0)))){ this.roomName.alpha = (this.roomName.alpha + (this.roomNameAlphaDelta * FlxG.elapsed)); if (this.roomName.alpha <= 0){ this.roomName.alpha = 0; }; }; }; this.player.collide(this.currentMap.GetGroup("InteractiveLayer")); this.collideWithCollisionLayers(this.player); if (this.currentMap.GetSpriteList("Traps") != null){ this.collideWithCollisionLayers(this.currentMap.GetSpriteList("Traps")); FlxU.overlap(this.activePlayer, this.currentMap.GetSpriteList("Traps"), this.collidePlayerWithTrap); }; if (this.currentMap.GetSpriteList("Pickups") != null){ FlxU.overlap(this.player, this.currentMap.GetSpriteList("Pickups"), this.collidePlayerWithPickup); }; FlxU.overlap(this.player, this.currentMap.GetSpriteList("Triggers"), this.collidePlayerWithTrigger); FlxU.overlap(this.currentMap.GetSpriteList("PlatformKillZones"), this.currentMap.GetSpriteList("MovingPlatforms"), this.collidePlatformWithPlatformKillZone); if (this.pulseLayer != null){ this.pulseLayer.alpha = (this.pulseLayer.alpha + (this.pulseLayerAlphaDelta * FlxG.elapsed)); if ((((this.pulseLayer.alpha >= this.pulseLayerAlphaRange.y)) && ((this.pulseLayerAlphaDelta > 0)))){ this.pulseLayer.alpha = this.pulseLayerAlphaRange.y; this.pulseLayerAlphaDelta = (this.pulseLayerAlphaDelta * -1); } else { if ((((this.pulseLayer.alpha <= this.pulseLayerAlphaRange.x)) && ((this.pulseLayerAlphaDelta < 0)))){ this.pulseLayer.alpha = this.pulseLayerAlphaRange.x; this.pulseLayerAlphaDelta = (this.pulseLayerAlphaDelta * -1); }; }; }; if (this.transitioning){ this.endTransition(); }; } private function createEffectsObjects():void{ var _local1:int; this.bloodEmitter = new BloodEmitter(); this.dustEmitters = new FlxGroup(); _local1 = 0; while (_local1 < 6) { this.dustEmitters.add(new SmallDustEmitter(), true); _local1++; }; this.largeDustEmitters = new FlxGroup(); _local1 = 0; while (_local1 < 6) { this.largeDustEmitters.add(new LargeDustEmitter(), true); _local1++; }; } private function collidePlayerWithTrigger(_arg1:FlxObject, _arg2:FlxObject):void{ var _local3:Player = (_arg1 as Player); var _local4:Trigger = (_arg2 as Trigger); if (((!((_local3 == null))) && (!((_local4 == null))))){ if (((_local4.isEnabled) && (!(_local4.isAlreadyActive)))){ _local4.activate(_local3); }; }; } private function tryAgainFadeComplete():void{ Main.instance.preparePlayerData(); this.switchState(new PlayingState()); } public function killPlayer():void{ FlxG.flash.start(4294901760); FlxG.play(Assets.SFX_PLAYER_DIE); this.bloodEmitter.at(this.activePlayer); this.bloodEmitter.start(); this.activePlayer.kill(); this.gameOverHUD.active = (this.gameOverHUD.visible = true); Main.instance.storeDatum(Main.DATA_TIME, Main.instance.playTime); } public function switchMaps(_arg1:String, _arg2:String):void{ this.nextMapName = _arg1; this.nextTargetTag = _arg2; FlxG.fade.start(4278190080, 0.2, this.continueSwitchingMaps, false); } private function returnToTitleFadeComplete():void{ this.switchState(new TitleState()); } private function collidePlayerWithTrap(_arg1:FlxObject, _arg2:FlxObject):void{ var _local3:Player = (_arg1 as Player); if (_local3 != null){ this.killPlayer(); }; } public function getSpriteList(_arg1:String):FlxGroup{ return (this.currentMap.GetSpriteList(_arg1)); } override public function destroy():void{ super.destroy(); if (this.musicA != null){ this.musicA.stop(); }; if (this.musicB != null){ this.musicB.stop(); }; } override public function create():void{ var _local3:int; PlayingState.instance = this; if (FlxG.music != null){ FlxG.music.fadeOut(0.5); }; FlxG.flash.start(4278190080, 0.5); super.create(); this.musicA = new FlxSound(); this.musicB = new FlxSound(); this.musicA.survive = (this.musicB.survive = true); this.lastMusicName = ""; this.worldGroup = new FlxGroup(); this.add(this.worldGroup); this.uiGroup = new FlxGroup(); this.uiGroup.scrollFactor.x = (this.uiGroup.scrollFactor.y = 0); this.hud = new HUD(); this.uiGroup.add(this.hud); this.awardPanel = new AwardToaster(); this.awardPanel.earned = true; this.uiGroup.add(this.awardPanel); this.statusDisplay = new StatusDisplay(); this.statusDisplay.visible = false; this.uiGroup.add(this.statusDisplay); this.roomName = new FlxText(0, 5, FlxG.width); this.roomName.alignment = "center"; this.roomName.alpha = 0; this.roomName.shadow = Main.TEXT_SHADOW_COLOR; this.uiGroup.add(this.roomName, true); var _local1 = 150; var _local2 = 100; this.gameOverHUD = new FlxGroup(); this.gameOverHUD.scrollFactor.x = (this.gameOverHUD.scrollFactor.y = 0); this.gameOverBackground = new FlxSprite(0, ((FlxG.height / 2) - (_local2 / 2))); this.gameOverBackground.createGraphic(FlxG.width, _local2, 3657433088); this.gameOverHUD.add(this.gameOverBackground, true); this.gameOverMenu = new Menu(((FlxG.width / 2) - (_local1 / 2)), ((FlxG.height / 2) + 5), _local1); this.gameOverMenu.addItem("Try again", this.tryAgain); this.gameOverMenu.addItem("Return to the title", this.returnToTitle); this.gameOverHUD.add(this.gameOverMenu, true); this.gameOverText = new FlxText(0, ((FlxG.height / 2) - 35), FlxG.width, "You Have Died"); this.gameOverText.size = 16; this.gameOverText.color = 4292870144; this.gameOverText.shadow = 4284874752; this.gameOverText.alignment = "center"; this.gameOverHUD.add(this.gameOverText, true); this.gameOverHUD.active = (this.gameOverHUD.visible = false); this.uiGroup.add(this.gameOverHUD); this.add(this.uiGroup); this.player = new Player(); this.createEffectsObjects(); this.textPopup = new TextFrame(UIAssets.GFX_FRAME); this.textPopup.visible = false; this.wind = new FlxPoint(); this.minimap = new MinimapDisplay(); this.uiGroup.add(this.minimap); this.loadMap(Main.instance.respawnMapTag, Main.instance.respawnMarkerTag); Main.instance.determineExploration(); this.sponsorLogo = new FlashButton(Main.visitSponsor, null); this.sponsorLogo.loadImages(new UIAssets.GFX_SPONSOR_LOGO_MEDIUM()); this.sponsorLogo.scaleX = (this.sponsorLogo.scaleY = 0.5); this.sponsorLogo.x = 10; this.sponsorLogo.y = ((FlxG.height - this.sponsorLogo.height) - 8); this.addChild(this.sponsorLogo); } } }//package com.wasabi.tr.states
Section 327
//SponsorLogoState (com.wasabi.tr.states.SponsorLogoState) package com.wasabi.tr.states { import org.flixel.*; import flash.events.*; import flash.display.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; import flash.ui.*; import flash.filters.*; public class SponsorLogoState extends GameState { private var logo:MovieClip; private var background:Sprite; private var fadeOverlay:Sprite; private var isFlashing:Boolean; private static const CLIP_DRAGON:Class = SponsorLogoState_CLIP_DRAGON; private static const LOGO_BACKGROUND_COLOR:uint = 3558499; private function flashComplete():void{ FlxG.mouse.retainFlashCursor = true; Mouse.show(); FlxG.framerate = 24; this.logo.play(); } override public function create():void{ super.create(); this.background = new Sprite(); this.background.graphics.beginFill(SponsorLogoState.LOGO_BACKGROUND_COLOR); this.background.graphics.drawRect(0, 0, FlxG.width, FlxG.height); this.background.graphics.endFill(); this.addChild(this.background); var _local1:Number = 1.825; this.logo = new SponsorLogoState.CLIP_DRAGON(); this.logo.scaleX = (this.logo.scaleY = (1 / _local1)); this.logo.x = ((FlxG.width / 2) - ((344 / 2) / _local1)); this.logo.y = ((FlxG.height / 2) - (this.logo.height / _local1)); this.logo.stop(); this.logo.filters = [new GlowFilter(0, 1, 2, 2, 10)]; this.addChild(this.logo); this.fadeOverlay = new Sprite(); this.fadeOverlay.graphics.beginFill(0, 1); this.fadeOverlay.graphics.drawRect(0, 0, FlxG.width, FlxG.height); this.fadeOverlay.graphics.endFill(); this.fadeOverlay.buttonMode = true; this.fadeOverlay.addEventListener(MouseEvent.CLICK, this.onClick); this.addChild(this.fadeOverlay); FlxG.flash.start(0, 0.5, this.flashComplete); this.isFlashing = true; } override public function update():void{ super.update(); if (this.isFlashing){ this.fadeOverlay.alpha = FlxG.flash.alpha; } else { this.fadeOverlay.alpha = FlxG.fade.alpha; }; if (this.logo.currentFrame >= this.logo.totalFrames){ this.logo.stop(); FlxG.framerate = 60; FlxG.fade.start(0, 0.5, this.fadeComplete); this.isFlashing = false; }; } private function onClick(_arg1:Event):void{ Main.visitSponsor(); } private function fadeComplete():void{ FlxG.mouse.retainFlashCursor = false; Mouse.hide(); FlxG.state = new TitleState(); } } }//package com.wasabi.tr.states
Section 328
//SponsorLogoState_CLIP_DRAGON (com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON) package com.wasabi.tr.states { import mx.core.*; public class SponsorLogoState_CLIP_DRAGON extends MovieClipAsset { } }//package com.wasabi.tr.states
Section 329
//TitleState (com.wasabi.tr.states.TitleState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.tr.ui.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; import com.wasabi.shared.ui.*; public class TitleState extends MenuState { private var eraseDataItem:MenuItem; private var sponsorLogo:FlashButton; private var logo:FlxSprite; private var menu:Menu; private var backgroundImage:FlxSprite; private var testFrame:Frame; private var startPlayingItem:MenuItem; public static const GFX_BACKGROUND:Class = TitleState_GFX_BACKGROUND; private function showInstructions():void{ FlxG.fade.start(4278190080, 0.5, function ():void{ FlxG.fade.stop(); FlxG.state = new InstructionsState(); }); } private function showCredits():void{ FlxG.fade.start(4278190080, 0.5, function ():void{ FlxG.fade.stop(); FlxG.state = new CreditsState(); }); } override public function update():void{ super.update(); } private function startPlaying():void{ Main.instance.preparePlayerData(); if (Main.instance.getFlag(Main.FLAG_INTRO_VIEWED) == true){ this.switchState(new PlayingState()); } else { this.switchState(new IntroState()); }; } private function eraseData():void{ FlxG.fade.start(4278190080, 0.5, function ():void{ FlxG.fade.stop(); FlxG.state = new ConfirmEraseDataState(); }); } private function reviewAwards():void{ FlxG.fade.start(4278190080, 0.5, function ():void{ FlxG.fade.stop(); FlxG.state = new AwardsState(); }); } override public function create():void{ var _local1:FlxText; var _local2:int; var _local3:int; super.create(); FlxG.log(((Main.TITLE + ": ") + Main.COPYRIGHT)); FlxG.log(("Version: " + Main.VERSION)); if (FlxG.music == null){ FlxG.music = new FlxSound(); FlxG.music.survive = true; }; if (FlxG.music.playing == false){ FlxG.music.loadEmbedded(Assets.MUSIC_TITLE, true); FlxG.music.fadeIn(0.5); }; FlxG.flash.start(4278190080, 0.5); FlxG.mouse.show(); Main.instance.preparePlayerData(); var _local4 = 10; _local2 = 5; _local3 = 20; this.backgroundImage = new FlxSprite(0, 0, TitleState.GFX_BACKGROUND); this.backgroundImage.scale = new FlxPoint(0.5, 0.5); this.backgroundImage.x = (this.backgroundImage.x - (this.backgroundImage.width / 4)); this.backgroundImage.y = (this.backgroundImage.y - (this.backgroundImage.height / 4)); this.backgroundImage.alpha = 0.575; this.add(this.backgroundImage); this.logo = new FlxSprite(_local2, _local3, UIAssets.GFX_TITLE); this.logo.x = ((FlxG.width / 2) - (this.logo.width / 2)); this.add(this.logo); _local3 = (_local3 + (this.logo.height + (_local4 * 2))); var _local5 = 250; this.menu = new Menu(((FlxG.width / 2) - (_local5 / 2)), (this.logo.bottom + (_local4 * 2)), _local5); this.startPlayingItem = this.menu.addItem("Continue Game", this.startPlaying); this.menu.addItem("Review Achievements", this.reviewAwards); this.eraseDataItem = this.menu.addItem("Erase Saved Data", this.eraseData); this.menu.addItem("Instructions", this.showInstructions); this.menu.addItem("Credits", this.showCredits); this.menu.addItem("More games at Gamesfree.com", Main.visitSponsor, true); this.add(menu); this.menu.addProxyItems(this); if (Main.instance.getFlag(Main.FLAG_INTRO_VIEWED)){ this.startPlayingItem.text = "Continue Game"; } else { this.startPlayingItem.text = "Begin Game"; }; if (((Main.instance.getFlag(Main.FLAG_INTRO_VIEWED)) || (Main.instance.hasAnyAwards()))){ this.eraseDataItem.enabled = true; } else { this.eraseDataItem.enabled = false; }; _local1 = new FlxText(0, 0, FlxG.width); _local1.font = new UIAssets.FONT_SILKSCREEN().fontName; _local1.y = (FlxG.height - _local1.height); _local1.text = "Developed by The Wasabi Project"; _local1.alignment = "center"; _local1.size = 8; _local1.color = 4284506208; _local1.shadow = 4278190080; this.add(_local1); } } }//package com.wasabi.tr.states
Section 330
//TitleState_GFX_BACKGROUND (com.wasabi.tr.states.TitleState_GFX_BACKGROUND) package com.wasabi.tr.states { import mx.core.*; public class TitleState_GFX_BACKGROUND extends BitmapAsset { } }//package com.wasabi.tr.states
Section 331
//VictoryState (com.wasabi.tr.states.VictoryState) package com.wasabi.tr.states { import org.flixel.*; import com.wasabi.shared.*; import com.wasabi.tr.*; import com.wasabi.tr.states.base.*; public class VictoryState extends GameState { private var scrollSpeed:Number; private var victoryText:FlxText; private static const TEXT_VICTORY_1:Class = VictoryState_TEXT_VICTORY_1; private static const TEXT_VICTORY_2:Class = VictoryState_TEXT_VICTORY_2; public function VictoryState(){ this.scrollSpeed = 10; } override public function destroy():void{ super.destroy(); } private function formatClearTime():String{ var _local1:int; var _local2:int; var _local3:int; var _local4:Number = Main.instance.playTime; _local1 = Math.floor((_local4 / (60 * 60))); _local4 = (_local4 - ((_local1 * 60) * 60)); _local2 = Math.floor((_local4 / 60)); _local4 = (_local4 - (_local2 * 60)); _local3 = Math.floor(_local4); return (((((((("" + _local1) + ":") + ((_local2 < 10)) ? "0" : "") + _local2) + ":") + ((_local3 < 10)) ? "0" : "") + _local3)); } private function fadeComplete():void{ FlxG.state = new TitleState(); } override public function update():void{ super.update(); if (this.victoryText.bottom > 0){ this.victoryText.y = (this.victoryText.y - (this.scrollSpeed * FlxG.elapsed)); }; if (this.victoryText.bottom <= 0){ if (!this.transitioning){ FlxG.fade.start(4278190080, 0.5, this.fadeComplete); }; }; } override public function create():void{ var _local1:FlxSprite; super.create(); if (FlxG.music == null){ FlxG.music = new FlxSound(); FlxG.music.survive = true; }; if (FlxG.music.playing == false){ FlxG.music.loadEmbedded(Assets.MUSIC_TITLE, true); FlxG.music.fadeIn(0.5); }; FlxG.flash.start(4281217426); this.victoryText = new FlxText(10, (FlxG.height - 30), (FlxG.width - 20), ((Main.instance.tablets >= 20)) ? WasabiU.loadString(VictoryState.TEXT_VICTORY_2) : WasabiU.loadString(VictoryState.TEXT_VICTORY_1)); this.victoryText.text = (this.victoryText.text + "\n\n\n\n"); this.victoryText.text = (this.victoryText.text + (("Keys Found: " + Main.instance.totalKeys) + "\n")); this.victoryText.text = (this.victoryText.text + (("Tablets Found: " + Main.instance.tablets) + "\n")); this.victoryText.text = (this.victoryText.text + (("Exploration: " + Main.instance.quickExplorationCheck()) + "%\n")); this.victoryText.text = (this.victoryText.text + ("Clear Time: " + this.formatClearTime())); this.victoryText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.victoryText); _local1 = new FlxSprite(0, 0, UIAssets.GFX_FADE_TOP); this.add(_local1); _local1 = new FlxSprite(0, (FlxG.height - _local1.height), UIAssets.GFX_FADE_BOTTOM); this.add(_local1); } } }//package com.wasabi.tr.states
Section 332
//VictoryState_TEXT_VICTORY_1 (com.wasabi.tr.states.VictoryState_TEXT_VICTORY_1) package com.wasabi.tr.states { import mx.core.*; public class VictoryState_TEXT_VICTORY_1 extends ByteArrayAsset { } }//package com.wasabi.tr.states
Section 333
//VictoryState_TEXT_VICTORY_2 (com.wasabi.tr.states.VictoryState_TEXT_VICTORY_2) package com.wasabi.tr.states { import mx.core.*; public class VictoryState_TEXT_VICTORY_2 extends ByteArrayAsset { } }//package com.wasabi.tr.states
Section 334
//AwardIcon (com.wasabi.tr.ui.AwardIcon) package com.wasabi.tr.ui { import org.flixel.*; import com.wasabi.tr.*; public class AwardIcon extends FlxSprite { public function AwardIcon(_arg1:int, _arg2:int){ super(_arg1, _arg2); this.loadGraphic(UIAssets.GFX_AWARDS, true, false, 16, 16); this.addAnimation("Unlocked", [0]); this.addAnimation("Locked", [1]); this.play("Locked"); } } }//package com.wasabi.tr.ui
Section 335
//AwardPanel (com.wasabi.tr.ui.AwardPanel) package com.wasabi.tr.ui { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.shared.ui.*; public class AwardPanel extends FlxGroup { private var basePosition:FlxPoint; private var titleText:FlxText; private var frame:Frame; private var icon:AwardIcon; private var hasBeenEarned:Boolean; private var detailText:FlxText; public static const PADDING:uint = 4; public static const WIDTH:uint = 180; public static const HEIGHT:uint = 36; public function AwardPanel(_arg1:int, _arg2:int, _arg3:String, _arg4:String){ this.scrollFactor.x = (this.scrollFactor.y = 0); this.basePosition = new FlxPoint(_arg1, _arg2); this.hasBeenEarned = false; this.frame = new Frame(UIAssets.GFX_FRAME, 8); this.frame.setSize(AwardPanel.WIDTH, AwardPanel.HEIGHT); this.frame.reset(this.basePosition.x, this.basePosition.y); this.add(this.frame, true); this.icon = new AwardIcon(((this.basePosition.x + AwardPanel.PADDING) + 2), ((this.basePosition.y + (AwardPanel.HEIGHT / 2)) - 8)); this.add(this.icon, true); this.titleText = new FlxText((this.icon.right + AwardPanel.PADDING), (this.basePosition.y + AwardPanel.PADDING), ((AwardPanel.WIDTH - this.icon.right) - (AwardPanel.PADDING * 2)), _arg3); this.titleText.color = 0; this.titleText.shadow = Main.TEXT_LIGHT_SHADOW_COLOR; this.add(this.titleText, true); this.detailText = new FlxText((this.icon.right + AwardPanel.PADDING), this.titleText.bottom, (AwardPanel.WIDTH - this.icon.width), _arg4); this.detailText.color = 0x888888; this.add(this.detailText, true); } public function setLabels(_arg1:String, _arg2:String):void{ this.titleText.text = _arg1; this.detailText.text = _arg2; } public function set earned(_arg1:Boolean):void{ this.hasBeenEarned = _arg1; this.icon.play((this.hasBeenEarned) ? "Unlocked" : "Locked"); } public function setScrollFactor(_arg1:int, _arg2:int):void{ this.scrollFactor.x = _arg1; this.scrollFactor.y = _arg2; this.frame.scrollFactor.x = _arg1; this.frame.scrollFactor.y = _arg2; this.frame.setSize(this.frame.width, this.frame.height); } public function get earned():Boolean{ return (this.hasBeenEarned); } } }//package com.wasabi.tr.ui
Section 336
//AwardToaster (com.wasabi.tr.ui.AwardToaster) package com.wasabi.tr.ui { import org.flixel.*; public class AwardToaster extends AwardPanel { private var deltaY:Number; private var currentState:int; private var stateClock:Number; private var targetY:int; private static const STATE_APPEARING:int = 1; private static const STATE_HIDDEN:int = 0; private static const STATE_DISAPPEARING:int = 3; private static const STATE_WAITING:int = 2; public function AwardToaster(){ super(0, 0, "test", "test"); this.visible = false; this.solid = false; this.currentState = _slot1.STATE_HIDDEN; this.stateClock = 0; this.deltaY = 50; this.reset(5, (FlxG.height - 20)); this.targetY = ((FlxG.height - AwardPanel.HEIGHT) - 5); this.setScrollFactor(0, 0); } public function show(_arg1:String, _arg2:String):void{ this.currentState = _slot1.STATE_APPEARING; this.stateClock = 0; this.setLabels(_arg1, _arg2); } override public function update():void{ var _local1:Number; super.update(); switch (this.currentState){ case _slot1.STATE_HIDDEN: break; case _slot1.STATE_APPEARING: if (this.y > this.targetY){ _local1 = (this.y - (this.deltaY * FlxG.elapsed)); if (_local1 <= this.targetY){ _local1 = this.targetY; this.currentState = _slot1.STATE_WAITING; this.stateClock = 0; }; this.reset(this.x, _local1); if (!this.visible){ this.visible = true; }; }; break; case _slot1.STATE_DISAPPEARING: if (this.y < FlxG.height){ _local1 = (this.y + (this.deltaY * FlxG.elapsed)); if (_local1 >= FlxG.height){ _local1 = FlxG.height; this.currentState = _slot1.STATE_HIDDEN; this.stateClock = 0; this.visible = false; }; this.reset(this.x, _local1); }; break; case _slot1.STATE_WAITING: this.stateClock = (this.stateClock + FlxG.elapsed); if (this.stateClock > 1){ this.currentState = _slot1.STATE_DISAPPEARING; this.stateClock = 0; }; break; }; } } }//package com.wasabi.tr.ui
Section 337
//HUD (com.wasabi.tr.ui.HUD) package com.wasabi.tr.ui { import org.flixel.*; import com.wasabi.tr.*; import com.wasabi.tr.objects.pickups.*; public class HUD extends FlxGroup { private var keyDisplay:FlxText; private var runeA:FlxSprite; private var runeB:FlxSprite; private var runeC:FlxSprite; private var runeD:FlxSprite; private var tabletDisplay:FlxText; private var background:FlxSprite; public function HUD(){ this.scrollFactor.x = (this.scrollFactor.y = 0); this.background = new FlxSprite(2, 2, Assets.GFX_HUD); this.add(this.background, true); this.keyDisplay = new FlxText((this.background.left - 1), (10 + this.background.top), 14, "0"); this.keyDisplay.alignment = "center"; this.add(this.keyDisplay, true); this.tabletDisplay = new FlxText((32 - 1), (10 + this.background.top), 16, "0"); this.tabletDisplay.alignment = "center"; this.add(this.tabletDisplay, true); this.runeA = new FlxSprite((15 + this.background.x), (3 + this.background.y)); this.runeA.loadGraphic(Assets.GFX_RUNES, true, false, 8, 8); this.runeA.addAnimation("A", [0]); this.runeB = new FlxSprite((15 + this.background.x), (12 + this.background.y)); this.runeB.loadGraphic(Assets.GFX_RUNES, true, false, 8, 8); this.runeB.addAnimation("B", [1]); this.runeC = new FlxSprite((24 + this.background.x), (3 + this.background.y)); this.runeC.loadGraphic(Assets.GFX_RUNES, true, false, 8, 8); this.runeC.addAnimation("C", [2]); this.runeD = new FlxSprite((24 + this.background.x), (12 + this.background.y)); this.runeD.loadGraphic(Assets.GFX_RUNES, true, false, 8, 8); this.runeD.addAnimation("D", [3]); this.runeA.play("A"); this.runeB.play("B"); this.runeC.play("C"); this.runeD.play("D"); this.runeA.visible = true; this.runeB.visible = true; this.runeC.visible = false; this.runeD.visible = false; this.add(this.runeA, true); this.add(this.runeB, true); this.add(this.runeC, true); this.add(this.runeD, true); } override public function update():void{ this.keyDisplay.text = ("" + Main.instance.keys); this.tabletDisplay.text = ("" + Main.instance.tablets); this.runeA.visible = ((Main.instance.runes & Seal.TYPE_A) > 0); this.runeB.visible = ((Main.instance.runes & Seal.TYPE_B) > 0); this.runeC.visible = ((Main.instance.runes & Seal.TYPE_C) > 0); this.runeD.visible = ((Main.instance.runes & Seal.TYPE_D) > 0); } } }//package com.wasabi.tr.ui
Section 338
//Menu (com.wasabi.tr.ui.Menu) package com.wasabi.tr.ui { import org.flixel.*; import flash.display.*; import com.wasabi.tr.*; import com.wasabi.shared.ui.*; public class Menu extends FlxGroup { private var selectionFrame:Frame; private var spacing:int; private var iconSpacing:int; private var firstUpdate:Boolean; private var menuItems:Array; private var baseX:int; private var baseY:int; private var proxyItems:Array; private var nextItemY:int; private var menuWidth:int; private var selectedIndex:int; private var ignoreMouse:Boolean; private var ignoreMousePosition:FlxPoint; public function Menu(_arg1:int, _arg2:int, _arg3:int){ var _local4:int; var _local5:MenuItem; var _local6:FlxText; super(); this.baseX = _arg1; this.baseY = _arg2; this.nextItemY = this.baseY; this.menuWidth = _arg3; this.firstUpdate = true; this.scrollFactor.x = (this.scrollFactor.y = 0); this.ignoreMouse = false; this.ignoreMousePosition = new FlxPoint(); this.selectionFrame = new Frame(UIAssets.GFX_MENU_FRAME, 8); this.selectionFrame.scrollFactor.x = (this.selectionFrame.scrollFactor.y = 0); this.spacing = 2; this.iconSpacing = 8; _local4 = baseY; this.menuItems = new Array(); this.proxyItems = new Array(); _local6 = new FlxText(0, 0, FlxG.width, "XX"); this.selectedIndex = 0; this.selectionFrame.reset((baseX - 1), (baseY - 1)); this.selectionFrame.setSize(_arg3, (_local6.height + 2)); this.add(this.selectionFrame, true); } override public function update():void{ super.update(); if (((this.firstUpdate) && ((this.menuItems.length > 0)))){ this.updateSelectionFrame(); this.firstUpdate = false; }; var _local1:Boolean; if (((!((FlxG.mouse.x == this.ignoreMousePosition.x))) || (!((FlxG.mouse.y == this.ignoreMousePosition.y))))){ this.ignoreMouse = false; }; if (((FlxG.keys.justPressed("DOWN")) || (FlxG.keys.justPressed("S")))){ _local1 = true; do { this.selectedIndex++; if (this.selectedIndex >= this.menuItems.length){ this.selectedIndex = 0; }; } while (!(this.menuItems[this.selectedIndex].enabled)); } else { if (((FlxG.keys.justPressed("UP")) || (FlxG.keys.justPressed("W")))){ _local1 = true; do { this.selectedIndex--; if (this.selectedIndex < 0){ this.selectedIndex = (this.menuItems.length - 1); }; } while (!(this.menuItems[this.selectedIndex].enabled)); } else { if (((((((((((((FlxG.keys.justPressed("Z")) || (FlxG.keys.justPressed("X")))) || (FlxG.keys.justPressed("C")))) || (FlxG.keys.justPressed("B")))) || (FlxG.keys.justPressed("N")))) || (FlxG.keys.justPressed("M")))) || (FlxG.keys.justPressed("ENTER")))){ this.activateSelectedItem(); }; }; }; if (_local1){ this.ignoreMouse = true; this.ignoreMousePosition.x = FlxG.mouse.x; this.ignoreMousePosition.y = FlxG.mouse.y; FlxG.play(Assets.SFX_MENU_SELECT, 0.4); this.updateSelectionFrame(); }; } public function addItem(_arg1:String, _arg2:Function, _arg3:Boolean=false):MenuItem{ var _local4:MenuItem; _local4 = new MenuItem(((this.baseX + this.spacing) + this.iconSpacing), this.nextItemY, this.menuWidth, _arg1, _arg3); _local4.parentMenu = this; _local4.parentMenuItemIndex = this.menuItems.length; _local4.callback = _arg2; this.add(_local4, true); this.menuItems.push(_local4); if (_local4.needsMouseProxy){ _local4.mouseProxy.width = (_local4.mouseProxy.width - this.spacing); _local4.mouseProxy.x = (_local4.mouseProxy.x - this.iconSpacing); this.proxyItems.push(_local4.mouseProxy); }; this.nextItemY = (this.nextItemY + (_local4.height + spacing)); return (_local4); } public function addProxyItems(_arg1:DisplayObjectContainer):void{ var _local2:int; while (_local2 < this.proxyItems.length) { _arg1.addChild(this.proxyItems[_local2]); _local2++; }; } private function updateSelectionFrame():void{ this.selectionFrame.reset(this.selectionFrame.x, (this.menuItems[this.selectedIndex].y - 1)); } public function activateSelectedItem():void{ var _local1:MenuItem; _local1 = this.menuItems[this.selectedIndex]; if (_local1.callback != null){ _local1.callback(); }; FlxG.play(Assets.SFX_MENU_ACTIVATE, 0.6); } public function selectMenuItem(_arg1:int, _arg2:Boolean=false):Boolean{ if (((!(_arg2)) || (!(this.ignoreMouse)))){ if (this.menuItems[_arg1].enabled){ if (this.selectedIndex != _arg1){ FlxG.play(Assets.SFX_MENU_SELECT, 0.5); }; this.selectedIndex = _arg1; this.updateSelectionFrame(); return (true); }; }; return (false); } } }//package com.wasabi.tr.ui
Section 339
//MenuItem (com.wasabi.tr.ui.MenuItem) package com.wasabi.tr.ui { import org.flixel.*; import flash.events.*; import flash.display.*; import com.wasabi.tr.*; public class MenuItem extends FlxText { public var callback:Function; public var needsMouseProxy:Boolean; public var mouseProxy:Sprite; public var parentMenu:Menu; public var parentMenuItemIndex:int; private var isEnabled:Boolean; public function MenuItem(_arg1:int, _arg2:int, _arg3:uint, _arg4:String=null, _arg5:Boolean=false){ super(_arg1, _arg2, _arg3, _arg4, true); this.color = 0xFFFFFF; this.shadow = Main.TEXT_SHADOW_COLOR; this.parentMenuItemIndex = 0; this.callback = null; this.isEnabled = true; this.needsMouseProxy = _arg5; if (this.needsMouseProxy){ this.mouseProxy = new Sprite(); this.mouseProxy.graphics.beginFill(0xFF0000, 0); this.mouseProxy.graphics.drawRect(this.x, this.y, this.width, this.height); this.mouseProxy.graphics.endFill(); this.mouseProxy.addEventListener(MouseEvent.CLICK, this.onClick); }; } private function onClick(_arg1:Event):void{ this.callback(); } public function set enabled(_arg1:Boolean):void{ this.isEnabled = _arg1; if (this.isEnabled){ this.color = 0xFFFFFF; this.shadow = 0x444444; } else { this.color = 0x666666; this.shadow = 0; }; } public function get enabled():Boolean{ return (this.isEnabled); } override public function update():void{ super.update(); if (((!((this.parentMenu == null))) && (this.overlapsPoint(FlxG.mouse.screenX, FlxG.mouse.screenY)))){ if (this.parentMenu.selectMenuItem(this.parentMenuItemIndex, true)){ if (((!(this.needsMouseProxy)) && (FlxG.mouse.justPressed()))){ this.parentMenu.activateSelectedItem(); }; }; }; } } }//package com.wasabi.tr.ui
Section 340
//MinimapDisplay (com.wasabi.tr.ui.MinimapDisplay) package com.wasabi.tr.ui { import org.flixel.*; import com.wasabi.tr.maps.*; import com.wasabi.shared.*; import com.wasabi.tr.*; import com.wasabi.tr.states.*; public class MinimapDisplay extends FlxGroup { private var minimapHighlight:FlxSprite; private var minimapHighlightAlphaDelta:Number; private var baseTiles:WasabiTilemap; private var doorTiles:WasabiTilemap; private var displayAlpha:Number; public function MinimapDisplay(){ var _local1:int; super(); this.scrollFactor = new FlxPoint(); this.baseTiles = new WasabiTilemap(); this.baseTiles.loadMap(new Minimap.CSV_MAP_BASE(), MapAssets.GFX_TILESET_MINIMAPTILES_PNG, 5, 5); this.baseTiles.setGlobalVisibility(false); this.doorTiles = new WasabiTilemap(); this.doorTiles.loadMap(new Minimap.CSV_MAP_DOORS(), MapAssets.GFX_TILESET_MINIMAPTILES_PNG, 5, 5); this.doorTiles.setGlobalVisibility(false); this.baseTiles.x = (this.doorTiles.x = ((FlxG.width - this.baseTiles.width) - 2)); this.baseTiles.y = (this.doorTiles.y = ((FlxG.height - this.baseTiles.height) - 2)); this.add(this.baseTiles, true); this.add(this.doorTiles, true); this.minimapHighlight = new FlxSprite(0, 0); this.minimapHighlight.alpha = 0; this.minimapHighlight.createGraphic(3, 3); this.add(this.minimapHighlight, true); this.minimapHighlightAlphaDelta = 0.8; this.displayAlpha = 1; if (Main.instance.minimapVisiblilty != null){ _local1 = 0; while (_local1 < Main.instance.minimapVisiblilty.length) { this.baseTiles.tileVisible[_local1] = (this.doorTiles.tileVisible[_local1] = Main.instance.minimapVisiblilty[_local1]); _local1++; }; }; } override public function update():void{ var _local1:FlxPoint; var _local2:FlxPoint; var _local3:int; super.update(); if (((FlxG.keys.justPressed(Main.KEY_TOGGLE_MINIMAP)) || (FlxG.keys.justPressed("B")))){ this.visible = !(this.visible); }; _local1 = (PlayingState.instance.activeMap.Properties["MinimapOffset"] as FlxPoint); if (_local1 != null){ _local2 = new FlxPoint((PlayingState.instance.activePlayer.x / Main.WIDTH), (PlayingState.instance.activePlayer.y / Main.HEIGHT)); _local2.x = (_local2.x + _local1.x); _local2.y = (_local2.y + _local1.y); _local3 = (int(_local2.x) + (int(_local2.y) * this.baseTiles.widthInTiles)); if (this.baseTiles.tileVisible[_local3] != true){ Main.instance.exploredRooms++; this.baseTiles.tileVisible[_local3] = true; this.doorTiles.tileVisible[_local3] = true; if (Main.instance.quickExplorationCheck() >= 100){ Main.instance.setAward(Main.DATA_AWARD_EXPLORER, true); }; }; this.minimapHighlight.x = ((this.baseTiles.x + (_local2.x * 5)) - (this.minimapHighlight.width / 2)); this.minimapHighlight.y = ((this.baseTiles.y + (_local2.y * 5)) - (this.minimapHighlight.height / 2)); this.minimapHighlight.alpha = (this.minimapHighlight.alpha + (this.minimapHighlightAlphaDelta * FlxG.elapsed)); if ((((this.minimapHighlight.alpha >= 1)) && ((this.minimapHighlightAlphaDelta > 0)))){ this.minimapHighlight.alpha = 1; this.minimapHighlightAlphaDelta = (this.minimapHighlightAlphaDelta * -1); } else { if ((((this.minimapHighlight.alpha <= 0)) && ((this.minimapHighlightAlphaDelta < 0)))){ this.minimapHighlight.alpha = 0; this.minimapHighlightAlphaDelta = (this.minimapHighlightAlphaDelta * -1); }; }; }; } public function get BaseTileMap():WasabiTilemap{ return (this.baseTiles); } } }//package com.wasabi.tr.ui
Section 341
//StatusDisplay (com.wasabi.tr.ui.StatusDisplay) package com.wasabi.tr.ui { import org.flixel.*; import com.wasabi.tr.*; public class StatusDisplay extends FlxGroup { private var keysText:FlxText; private var runesText:FlxText; private var warpGateText:FlxText; private var currentTabletIndex:int; private var tabletContentText:FlxText; private var timeText:FlxText; private var tabletTitleText:FlxText; private var tabletsText:FlxText; private var explorationText:FlxText; private var instructionsText:FlxText; private var tabletContent:Array; private static const TEXT_TABLETS:Class = StatusDisplay_TEXT_TABLETS; public function StatusDisplay(){ var _local1:int; var _local2:int; var _local3:int; var _local4:int; var _local5:int; var _local6:int; var _local7:int; var _local8:int; var _local9:FlxSprite; var _local10:String; var _local11:Array; super(); this.currentTabletIndex = 1; this.tabletContent = new Array(); _local10 = new StatusDisplay.TEXT_TABLETS(); _local11 = _local10.split("\n"); _local1 = 0; while (_local1 < _local11.length) { this.tabletContent.push(_local11[_local1]); _local1++; }; _local4 = 30; _local2 = 20; _local3 = _local4; _local8 = 2; this.scrollFactor.x = (this.scrollFactor.y = 0); _local5 = (((FlxG.width - (_local2 * 2)) - (_local8 * 2)) / 2); _local6 = (FlxG.width - (_local2 * 2)); _local7 = 180; this.keysText = new FlxText(_local2, _local3, _local5, "X"); _local9 = new FlxSprite(_local2, _local3); _local9.createGraphic(_local6, ((this.keysText.height * 3) + 2), 3422552064); this.add(_local9, true); _local9 = new FlxSprite(_local2, ((_local3 + _local9.height) + 4)); _local9.createGraphic(_local6, ((_local7 - ((this.keysText.height * 3) + 2)) - 2), 3422552064); this.add(_local9, true); this.keysText = new FlxText(_local2, _local3, _local5, "Keys Found: 0 of 10"); this.keysText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.keysText, true); _local3 = (_local3 + (keysText.height + _local8)); this.runesText = new FlxText(_local2, _local3, _local5, (("Runes Found: " + Main.instance.countRunes()) + " of 4")); this.runesText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.runesText, true); _local3 = (_local3 + (runesText.height + _local8)); this.warpGateText = new FlxText(_local2, _local3, _local5, (("Warp Gates Found: " + Main.instance.countWarpGates()) + " of 4")); this.warpGateText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.warpGateText, true); _local3 = _local4; _local2 = (_local2 + (runesText.width + (_local8 * 2))); this.tabletsText = new FlxText(_local2, _local3, _local5, (("Tablets Found: " + Main.instance.tablets) + " of 20")); this.tabletsText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.tabletsText, true); _local3 = (_local3 + (tabletsText.height + _local8)); this.explorationText = new FlxText(_local2, _local3, _local5, (("Exploration: " + Main.instance.determineExploration()) + "%")); this.explorationText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.explorationText, true); _local3 = (_local3 + (explorationText.height + _local8)); this.timeText = new FlxText(_local2, _local3, _local5, ("Time: " + Main.instance.playTime.toFixed(2))); this.timeText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.timeText, true); _local3 = (_local3 + (timeText.height + (_local8 * 2))); this.tabletTitleText = new FlxText(20, _local3, (_local6 - _local8), "Tablet Text (1 of 20):"); this.tabletTitleText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.tabletTitleText, true); _local3 = (_local3 + (this.tabletTitleText.height + (_local8 * 2))); this.tabletContentText = new FlxText(20, _local3, (_local6 - _local8), ""); this.tabletContentText.shadow = Main.TEXT_SHADOW_COLOR; this.add(this.tabletContentText, true); this.instructionsText = new FlxText(20, ((_local4 + _local7) - this.tabletTitleText.height), (_local6 - 4), "Press left / right to read tablets"); this.instructionsText.color = 0x606060; this.add(this.instructionsText, true); this.updateTabletText(); } override public function update():void{ super.update(); if (((FlxG.keys.justPressed(Main.KEY_REVIEW_RUNES)) || (FlxG.keys.justPressed("N")))){ this.visible = !(this.visible); this.updateTotals(); this.updateTabletText(); }; if (this.visible){ this.updateTime(); if (((FlxG.keys.justPressed("LEFT")) || (FlxG.keys.justPressed("A")))){ this.currentTabletIndex--; if (this.currentTabletIndex < 1){ this.currentTabletIndex = 20; }; FlxG.play(Assets.SFX_PAGE_FLIP, 0.7); this.updateTabletText(); } else { if (((FlxG.keys.justPressed("RIGHT")) || (FlxG.keys.justPressed("D")))){ this.currentTabletIndex++; if (this.currentTabletIndex > 20){ this.currentTabletIndex = 1; }; FlxG.play(Assets.SFX_PAGE_FLIP, 0.7); this.updateTabletText(); }; }; }; } public function updateTabletText():void{ this.tabletTitleText.text = (("Tablet Text (" + this.currentTabletIndex) + " of 20):"); if (Main.instance.tabletHasBeenFound(this.currentTabletIndex)){ this.tabletContentText.text = this.tabletContent[(this.currentTabletIndex - 1)]; this.tabletContentText.color = 0xFFFFFF; this.tabletContentText.shadow = Main.TEXT_SHADOW_COLOR; } else { this.tabletContentText.text = "You have not recovered this tablet yet."; this.tabletContentText.color = 0x606060; this.tabletContentText.shadow = 0; }; } private function updateTotals():void{ this.keysText.text = (("Keys Found: " + Main.instance.totalKeys) + " of 10"); this.runesText.text = (("Runes Found: " + Main.instance.countRunes()) + " of 4"); this.tabletsText.text = (("Tablets Found: " + Main.instance.tablets) + " of 20"); this.explorationText.text = (("Exploration: " + Main.instance.quickExplorationCheck()) + "%"); this.warpGateText.text = (("Warp Gates Found: " + Main.instance.countWarpGates()) + " of 4"); this.updateTime(); } private function updateTime():void{ var _local1:int; var _local2:int; var _local3:int; var _local4:Number = Main.instance.playTime; _local1 = Math.floor((_local4 / (60 * 60))); _local4 = (_local4 - ((_local1 * 60) * 60)); _local2 = Math.floor((_local4 / 60)); _local4 = (_local4 - (_local2 * 60)); _local3 = Math.floor(_local4); this.timeText.text = ((((((("Time: " + _local1) + ":") + ((_local2 < 10)) ? "0" : "") + _local2) + ":") + ((_local3 < 10)) ? "0" : "") + _local3); } } }//package com.wasabi.tr.ui
Section 342
//StatusDisplay_TEXT_TABLETS (com.wasabi.tr.ui.StatusDisplay_TEXT_TABLETS) package com.wasabi.tr.ui { import mx.core.*; public class StatusDisplay_TEXT_TABLETS extends ByteArrayAsset { } }//package com.wasabi.tr.ui
Section 343
//Assets (com.wasabi.tr.Assets) package com.wasabi.tr { public class Assets { public static const SFX_MENU_SELECT:Class = Assets_SFX_MENU_SELECT; public static const GFX_LAVABALL:Class = Assets_GFX_LAVABALL; public static const GFX_LAVA:Class = Assets_GFX_LAVA; public static const GFX_HOPPER_8:Class = Assets_GFX_HOPPER_8; public static const GFX_TABLET:Class = Assets_GFX_TABLET; public static const SFX_PLAYER_DIE:Class = Assets_SFX_PLAYER_DIE; public static const GFX_FLOATING_PLATFORM:Class = Assets_GFX_FLOATING_PLATFORM; public static const SFX_TABLET_COLLECTED:Class = Assets_SFX_TABLET_COLLECTED; public static const GFX_RUNE_DOOR:Class = Assets_GFX_RUNE_DOOR; public static const GFX_ACID_DRIP:Class = Assets_GFX_ACID_DRIP; public static const SFX_BLOCK_APPEAR:Class = Assets_SFX_BLOCK_APPEAR; public static const GFX_ACID_DRIPPER:Class = Assets_GFX_ACID_DRIPPER; public static const GFX_CIRCLER_8:Class = Assets_GFX_CIRCLER_8; public static const GFX_KEY:Class = Assets_GFX_KEY; public static const SFX_CRUSHER_RESET:Class = Assets_SFX_CRUSHER_RESET; public static const GFX_BOUNCER_16:Class = Assets_GFX_BOUNCER_16; public static const SFX_AWARD_EARNED:Class = Assets_SFX_AWARD_EARNED; public static const MUSIC_TENSE_LIQUID:Class = Assets_MUSIC_TENSE_LIQUID; public static const SFX_WARPING:Class = Assets_SFX_WARPING; public static const SFX_BLOCK_CRUMBLE:Class = Assets_SFX_BLOCK_CRUMBLE; public static const GFX_DEEPLIGHT_STONE:Class = Assets_GFX_DEEPLIGHT_STONE; public static const SFX_MENU_ACTIVATE:Class = Assets_SFX_MENU_ACTIVATE; public static const SFX_RUNE_COLLECTED:Class = Assets_SFX_RUNE_COLLECTED; public static const SFX_OPEN_SEAL:Class = Assets_SFX_OPEN_SEAL; public static const GFX_SMASHER:Class = Assets_GFX_SMASHER; public static const SFX_LAND:Class = Assets_SFX_LAND; public static const GFX_PLAYER:Class = Assets_GFX_PLAYER; public static const GFX_PICKUP_GLOW:Class = Assets_GFX_PICKUP_GLOW; public static const GFX_WATERFALL:Class = Assets_GFX_WATERFALL; public static const MUSIC_TITLE:Class = Assets_MUSIC_TITLE; public static const GFX_LAVABALL_GLOW:Class = Assets_GFX_LAVABALL_GLOW; public static const GFX_SEALS:Class = Assets_GFX_SEALS; public static const GFX_WATER:Class = Assets_GFX_WATER; public static const SFX_RUNE_DOOR_OPEN:Class = Assets_SFX_RUNE_DOOR_OPEN; public static const GFX_CRUMBLE_BLOCK:Class = Assets_GFX_CRUMBLE_BLOCK; public static const GFX_BOUNCER_8:Class = Assets_GFX_BOUNCER_8; public static const SFX_DEEPLIGHT_STONE_COLLECTED:Class = Assets_SFX_DEEPLIGHT_STONE_COLLECTED; public static const GFX_CIRCLER_16:Class = Assets_GFX_CIRCLER_16; public static const GFX_HOPPER_16:Class = Assets_GFX_HOPPER_16; public static const SFX_WARP_COMPLETE:Class = Assets_SFX_WARP_COMPLETE; public static const SFX_ACID_HIT_GROUND:Class = Assets_SFX_ACID_HIT_GROUND; public static const GFX_WARP_GATE:Class = Assets_GFX_WARP_GATE; public static const MUSIC_EXPLORING:Class = Assets_MUSIC_EXPLORING; public static const SFX_BOUNCER_BOUNCE:Class = Assets_SFX_BOUNCER_BOUNCE; public static const SFX_CRUSHER_CRUSH:Class = Assets_SFX_CRUSHER_CRUSH; public static const MUSIC_STANDARD:Class = Assets_MUSIC_STANDARD; public static const SFX_PAGE_FLIP:Class = Assets_SFX_PAGE_FLIP; public static const GFX_DOOR:Class = Assets_GFX_DOOR; public static const MUSIC_ACID:Class = Assets_MUSIC_ACID; public static const MUSIC_DAMP:Class = Assets_MUSIC_DAMP; public static const SFX_GET_KEY:Class = Assets_SFX_GET_KEY; public static const SFX_ERASE_DATA:Class = Assets_SFX_ERASE_DATA; public static const MUSIC_TENSE_FIRE:Class = Assets_MUSIC_TENSE_FIRE; public static const MUSIC_LAVA:Class = Assets_MUSIC_LAVA; public static const GFX_ACID:Class = Assets_GFX_ACID; public static const SFX_FOOTSTEP:Class = Assets_SFX_FOOTSTEP; public static const GFX_HUD:Class = Assets_GFX_HUD; public static const GFX_RUNES:Class = Assets_GFX_RUNES; public static const SFX_LAVA_RUMBLE:Class = Assets_SFX_LAVA_RUMBLE; public static const SFX_WARP_GATE_ACTIVATED:Class = Assets_SFX_WARP_GATE_ACTIVATED; } }//package com.wasabi.tr
Section 344
//Assets_GFX_ACID (com.wasabi.tr.Assets_GFX_ACID) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_ACID extends BitmapAsset { } }//package com.wasabi.tr
Section 345
//Assets_GFX_ACID_DRIP (com.wasabi.tr.Assets_GFX_ACID_DRIP) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_ACID_DRIP extends BitmapAsset { } }//package com.wasabi.tr
Section 346
//Assets_GFX_ACID_DRIPPER (com.wasabi.tr.Assets_GFX_ACID_DRIPPER) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_ACID_DRIPPER extends BitmapAsset { } }//package com.wasabi.tr
Section 347
//Assets_GFX_BOUNCER_16 (com.wasabi.tr.Assets_GFX_BOUNCER_16) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_BOUNCER_16 extends BitmapAsset { } }//package com.wasabi.tr
Section 348
//Assets_GFX_BOUNCER_8 (com.wasabi.tr.Assets_GFX_BOUNCER_8) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_BOUNCER_8 extends BitmapAsset { } }//package com.wasabi.tr
Section 349
//Assets_GFX_CIRCLER_16 (com.wasabi.tr.Assets_GFX_CIRCLER_16) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_CIRCLER_16 extends BitmapAsset { } }//package com.wasabi.tr
Section 350
//Assets_GFX_CIRCLER_8 (com.wasabi.tr.Assets_GFX_CIRCLER_8) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_CIRCLER_8 extends BitmapAsset { } }//package com.wasabi.tr
Section 351
//Assets_GFX_CRUMBLE_BLOCK (com.wasabi.tr.Assets_GFX_CRUMBLE_BLOCK) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_CRUMBLE_BLOCK extends BitmapAsset { } }//package com.wasabi.tr
Section 352
//Assets_GFX_DEEPLIGHT_STONE (com.wasabi.tr.Assets_GFX_DEEPLIGHT_STONE) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_DEEPLIGHT_STONE extends BitmapAsset { } }//package com.wasabi.tr
Section 353
//Assets_GFX_DOOR (com.wasabi.tr.Assets_GFX_DOOR) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_DOOR extends BitmapAsset { } }//package com.wasabi.tr
Section 354
//Assets_GFX_FLOATING_PLATFORM (com.wasabi.tr.Assets_GFX_FLOATING_PLATFORM) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_FLOATING_PLATFORM extends BitmapAsset { } }//package com.wasabi.tr
Section 355
//Assets_GFX_HOPPER_16 (com.wasabi.tr.Assets_GFX_HOPPER_16) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_HOPPER_16 extends BitmapAsset { } }//package com.wasabi.tr
Section 356
//Assets_GFX_HOPPER_8 (com.wasabi.tr.Assets_GFX_HOPPER_8) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_HOPPER_8 extends BitmapAsset { } }//package com.wasabi.tr
Section 357
//Assets_GFX_HUD (com.wasabi.tr.Assets_GFX_HUD) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_HUD extends BitmapAsset { } }//package com.wasabi.tr
Section 358
//Assets_GFX_KEY (com.wasabi.tr.Assets_GFX_KEY) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_KEY extends BitmapAsset { } }//package com.wasabi.tr
Section 359
//Assets_GFX_LAVA (com.wasabi.tr.Assets_GFX_LAVA) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_LAVA extends BitmapAsset { } }//package com.wasabi.tr
Section 360
//Assets_GFX_LAVABALL (com.wasabi.tr.Assets_GFX_LAVABALL) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_LAVABALL extends BitmapAsset { } }//package com.wasabi.tr
Section 361
//Assets_GFX_LAVABALL_GLOW (com.wasabi.tr.Assets_GFX_LAVABALL_GLOW) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_LAVABALL_GLOW extends BitmapAsset { } }//package com.wasabi.tr
Section 362
//Assets_GFX_PICKUP_GLOW (com.wasabi.tr.Assets_GFX_PICKUP_GLOW) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_PICKUP_GLOW extends BitmapAsset { } }//package com.wasabi.tr
Section 363
//Assets_GFX_PLAYER (com.wasabi.tr.Assets_GFX_PLAYER) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_PLAYER extends BitmapAsset { } }//package com.wasabi.tr
Section 364
//Assets_GFX_RUNE_DOOR (com.wasabi.tr.Assets_GFX_RUNE_DOOR) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_RUNE_DOOR extends BitmapAsset { } }//package com.wasabi.tr
Section 365
//Assets_GFX_RUNES (com.wasabi.tr.Assets_GFX_RUNES) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_RUNES extends BitmapAsset { } }//package com.wasabi.tr
Section 366
//Assets_GFX_SEALS (com.wasabi.tr.Assets_GFX_SEALS) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_SEALS extends BitmapAsset { } }//package com.wasabi.tr
Section 367
//Assets_GFX_SMASHER (com.wasabi.tr.Assets_GFX_SMASHER) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_SMASHER extends BitmapAsset { } }//package com.wasabi.tr
Section 368
//Assets_GFX_TABLET (com.wasabi.tr.Assets_GFX_TABLET) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_TABLET extends BitmapAsset { } }//package com.wasabi.tr
Section 369
//Assets_GFX_WARP_GATE (com.wasabi.tr.Assets_GFX_WARP_GATE) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_WARP_GATE extends BitmapAsset { } }//package com.wasabi.tr
Section 370
//Assets_GFX_WATER (com.wasabi.tr.Assets_GFX_WATER) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_WATER extends BitmapAsset { } }//package com.wasabi.tr
Section 371
//Assets_GFX_WATERFALL (com.wasabi.tr.Assets_GFX_WATERFALL) package com.wasabi.tr { import mx.core.*; public class Assets_GFX_WATERFALL extends BitmapAsset { } }//package com.wasabi.tr
Section 372
//Assets_MUSIC_ACID (com.wasabi.tr.Assets_MUSIC_ACID) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_ACID extends SoundAsset { } }//package com.wasabi.tr
Section 373
//Assets_MUSIC_DAMP (com.wasabi.tr.Assets_MUSIC_DAMP) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_DAMP extends SoundAsset { } }//package com.wasabi.tr
Section 374
//Assets_MUSIC_EXPLORING (com.wasabi.tr.Assets_MUSIC_EXPLORING) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_EXPLORING extends SoundAsset { } }//package com.wasabi.tr
Section 375
//Assets_MUSIC_LAVA (com.wasabi.tr.Assets_MUSIC_LAVA) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_LAVA extends SoundAsset { } }//package com.wasabi.tr
Section 376
//Assets_MUSIC_STANDARD (com.wasabi.tr.Assets_MUSIC_STANDARD) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_STANDARD extends SoundAsset { } }//package com.wasabi.tr
Section 377
//Assets_MUSIC_TENSE_FIRE (com.wasabi.tr.Assets_MUSIC_TENSE_FIRE) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_TENSE_FIRE extends SoundAsset { } }//package com.wasabi.tr
Section 378
//Assets_MUSIC_TENSE_LIQUID (com.wasabi.tr.Assets_MUSIC_TENSE_LIQUID) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_TENSE_LIQUID extends SoundAsset { } }//package com.wasabi.tr
Section 379
//Assets_MUSIC_TITLE (com.wasabi.tr.Assets_MUSIC_TITLE) package com.wasabi.tr { import mx.core.*; public class Assets_MUSIC_TITLE extends SoundAsset { } }//package com.wasabi.tr
Section 380
//Assets_SFX_ACID_HIT_GROUND (com.wasabi.tr.Assets_SFX_ACID_HIT_GROUND) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_ACID_HIT_GROUND extends SoundAsset { } }//package com.wasabi.tr
Section 381
//Assets_SFX_AWARD_EARNED (com.wasabi.tr.Assets_SFX_AWARD_EARNED) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_AWARD_EARNED extends SoundAsset { } }//package com.wasabi.tr
Section 382
//Assets_SFX_BLOCK_APPEAR (com.wasabi.tr.Assets_SFX_BLOCK_APPEAR) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_BLOCK_APPEAR extends SoundAsset { } }//package com.wasabi.tr
Section 383
//Assets_SFX_BLOCK_CRUMBLE (com.wasabi.tr.Assets_SFX_BLOCK_CRUMBLE) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_BLOCK_CRUMBLE extends SoundAsset { } }//package com.wasabi.tr
Section 384
//Assets_SFX_BOUNCER_BOUNCE (com.wasabi.tr.Assets_SFX_BOUNCER_BOUNCE) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_BOUNCER_BOUNCE extends SoundAsset { } }//package com.wasabi.tr
Section 385
//Assets_SFX_CRUSHER_CRUSH (com.wasabi.tr.Assets_SFX_CRUSHER_CRUSH) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_CRUSHER_CRUSH extends SoundAsset { } }//package com.wasabi.tr
Section 386
//Assets_SFX_CRUSHER_RESET (com.wasabi.tr.Assets_SFX_CRUSHER_RESET) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_CRUSHER_RESET extends SoundAsset { } }//package com.wasabi.tr
Section 387
//Assets_SFX_DEEPLIGHT_STONE_COLLECTED (com.wasabi.tr.Assets_SFX_DEEPLIGHT_STONE_COLLECTED) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_DEEPLIGHT_STONE_COLLECTED extends SoundAsset { } }//package com.wasabi.tr
Section 388
//Assets_SFX_ERASE_DATA (com.wasabi.tr.Assets_SFX_ERASE_DATA) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_ERASE_DATA extends SoundAsset { } }//package com.wasabi.tr
Section 389
//Assets_SFX_FOOTSTEP (com.wasabi.tr.Assets_SFX_FOOTSTEP) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_FOOTSTEP extends SoundAsset { } }//package com.wasabi.tr
Section 390
//Assets_SFX_GET_KEY (com.wasabi.tr.Assets_SFX_GET_KEY) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_GET_KEY extends SoundAsset { } }//package com.wasabi.tr
Section 391
//Assets_SFX_LAND (com.wasabi.tr.Assets_SFX_LAND) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_LAND extends SoundAsset { } }//package com.wasabi.tr
Section 392
//Assets_SFX_LAVA_RUMBLE (com.wasabi.tr.Assets_SFX_LAVA_RUMBLE) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_LAVA_RUMBLE extends SoundAsset { } }//package com.wasabi.tr
Section 393
//Assets_SFX_MENU_ACTIVATE (com.wasabi.tr.Assets_SFX_MENU_ACTIVATE) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_MENU_ACTIVATE extends SoundAsset { } }//package com.wasabi.tr
Section 394
//Assets_SFX_MENU_SELECT (com.wasabi.tr.Assets_SFX_MENU_SELECT) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_MENU_SELECT extends SoundAsset { } }//package com.wasabi.tr
Section 395
//Assets_SFX_OPEN_SEAL (com.wasabi.tr.Assets_SFX_OPEN_SEAL) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_OPEN_SEAL extends SoundAsset { } }//package com.wasabi.tr
Section 396
//Assets_SFX_PAGE_FLIP (com.wasabi.tr.Assets_SFX_PAGE_FLIP) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_PAGE_FLIP extends SoundAsset { } }//package com.wasabi.tr
Section 397
//Assets_SFX_PLAYER_DIE (com.wasabi.tr.Assets_SFX_PLAYER_DIE) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_PLAYER_DIE extends SoundAsset { } }//package com.wasabi.tr
Section 398
//Assets_SFX_RUNE_COLLECTED (com.wasabi.tr.Assets_SFX_RUNE_COLLECTED) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_RUNE_COLLECTED extends SoundAsset { } }//package com.wasabi.tr
Section 399
//Assets_SFX_RUNE_DOOR_OPEN (com.wasabi.tr.Assets_SFX_RUNE_DOOR_OPEN) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_RUNE_DOOR_OPEN extends SoundAsset { } }//package com.wasabi.tr
Section 400
//Assets_SFX_TABLET_COLLECTED (com.wasabi.tr.Assets_SFX_TABLET_COLLECTED) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_TABLET_COLLECTED extends SoundAsset { } }//package com.wasabi.tr
Section 401
//Assets_SFX_WARP_COMPLETE (com.wasabi.tr.Assets_SFX_WARP_COMPLETE) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_WARP_COMPLETE extends SoundAsset { } }//package com.wasabi.tr
Section 402
//Assets_SFX_WARP_GATE_ACTIVATED (com.wasabi.tr.Assets_SFX_WARP_GATE_ACTIVATED) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_WARP_GATE_ACTIVATED extends SoundAsset { } }//package com.wasabi.tr
Section 403
//Assets_SFX_WARPING (com.wasabi.tr.Assets_SFX_WARPING) package com.wasabi.tr { import mx.core.*; public class Assets_SFX_WARPING extends SoundAsset { } }//package com.wasabi.tr
Section 404
//Main (com.wasabi.tr.Main) package com.wasabi.tr { import org.flixel.*; import flash.events.*; import flash.display.*; import com.wasabi.tr.objects.*; import flash.net.*; import com.wasabi.tr.states.*; import flash.system.*; public class Main extends FlxGame { public var minimapVisiblilty:Array; public var objectData:Object; public var tablets:uint; public var flags:Object; public var totalRooms:int; public var exploredRooms:int; public var totalKeys:int; public var playTime:Number; public var respawnMapTag:String; public var keys:int; public var respawnMarkerTag:String; public var runes:uint; public static const DATA_RUNES:String = "Runes"; public static const SPONSOR_URL:String = "http://www.gamesfree.com"; public static const SO_NAME:String = "Wasabi_Deeplight_Expedition"; public static const DATA_FLAGS:String = "Flags"; public static const DATA_AWARD_ARCHAEOLOGIST:String = "Archaeologist"; public static const DATA_OBJECT_DATA:String = "ObjectData"; public static const KEY_WARP:String = "C"; public static const DATA_TABLETS:String = "Tablets"; public static const KEY_TOGGLE_MINIMAP:String = "Z"; public static const TEXT_HELP_COLOR:uint = 0x888888; public static const COPYRIGHT:String = "Copyright (C) 2010 - Charles Berube"; public static const WIDTH:int = 320; public static const DATA_RESPAWN_MAP_TAG:String = "RespawnMapTag"; public static const DATA_AWARD_GATEKEEPER:String = "Gatekeeper"; public static const GRAVITY:Number = 600; public static const DATA_AWARD_EXPLORER:String = "Explorer"; public static const TITLE:String = "The Deeplight Expedition"; public static const KEY_REVIEW_RUNES:String = "X"; public static const TEXT_SHADOW_COLOR:uint = 0x444444; public static const VERSION:String = "1.9.4-Gamesfree"; public static const DATA_RESPAWN_MARKER_TAG:String = "RespawnMarkerTag"; public static const DATA_TIME:String = "Time"; public static const HEIGHT:int = 240; public static const FLAG_INTRO_VIEWED:String = "IntroViewed"; public static const DATA_AWARD_KEYMASTER:String = "Keymaster"; public static const ZOOM:int = 2; public static const TEXT_LIGHT_SHADOW_COLOR:uint = 0xE0E0E0; public static const DATA_AWARD_LIGHTBRINGER:String = "Lightbringer"; public static const DATA_KEYS:String = "Keys"; public static const DATA_MINIMAP_VISIBILTY:String = "MinimapVisibility"; public static const DATA_TOTAL_KEYS:String = "TotalKeys"; public static const DATA_AWARDS:String = "Awards"; public static var instance:Main; public static var showDebuggingSymbols:Boolean = false; public function Main():void{ _slot1.instance = this; FlxG.saves = new Array(); this.respawnMapTag = "A00"; this.respawnMarkerTag = "GameStart"; this.minimapVisiblilty = null; _slot1.instance.flags = new Object(); _slot1.instance.objectData = new Object(); if (stage){ init(); } else { addEventListener(Event.ADDED_TO_STAGE, init); }; super(_slot1.WIDTH, _slot1.HEIGHT, SponsorLogoState, _slot1.ZOOM); } public function quickExplorationCheck():int{ return (Math.min(Math.round(((this.exploredRooms / 135) * 100)), 100)); } public function hasAnyAwards():Boolean{ var _local1:int; _local1 = 0; while (_local1 < AwardsState.AWARD_DATA.length) { if (this.getAward(AwardsState.AWARD_DATA[_local1][0])){ return (true); }; _local1++; }; return (false); } public function storeObjectDatum(_arg1:String, _arg2:Object):void{ _slot1.instance.getSaveData(0).data[_arg1] = new Object(); this.copyObjectData(_arg2, _slot1.instance.getSaveData(0).data[_arg1]); } private function init(_arg1:Event=null):void{ var _local2:LoaderInfo; var _local3:URLVariables; var _local4:URLRequest; var _local5:URLLoader; removeEventListener(Event.ADDED_TO_STAGE, init); _local2 = this.loaderInfo; if (((!((_local2 == null))) && (!((_local2.url.substring(0, 4) == "file"))))){ Security.allowDomain("*"); Security.loadPolicyFile("http://track.g-bot.net/crossdomain.xml"); _local3 = new URLVariables(); _local3.id = "thedeeplightexpedition"; _local3.ui = _local2.url; _local4 = new URLRequest("http://track.g-bot.net/track.php"); _local4.method = "POST"; _local4.data = _local3; _local5 = new URLLoader(); _local5.load(_local4); }; } public function flushStoredData():void{ _slot1.instance.getSaveData(0).forceSave(); } public function storeArrayDatum(_arg1:String, _arg2:Array):void{ _slot1.instance.getSaveData(0).data[_arg1] = new Array(); this.copyArrayData(_arg2, _slot1.instance.getSaveData(0).data[_arg1]); } public function preparePlayerData():void{ var _local1:FlxSave = _slot1.instance.getSaveData(0); if (((!((_local1.data[_slot1.DATA_RESPAWN_MAP_TAG] == null))) && (!((_local1.data[_slot1.DATA_RESPAWN_MARKER_TAG] == null))))){ _slot1.instance.minimapVisiblilty = new Array(); _slot1.instance.objectData = new Object(); _slot1.instance.flags = new Object(); _slot1.instance.respawnMapTag = _local1.data[_slot1.DATA_RESPAWN_MAP_TAG]; _slot1.instance.respawnMarkerTag = _local1.data[_slot1.DATA_RESPAWN_MARKER_TAG]; _slot1.instance.keys = _local1.data[_slot1.DATA_KEYS]; _slot1.instance.totalKeys = _local1.data[_slot1.DATA_TOTAL_KEYS]; _slot1.instance.tablets = _local1.data[_slot1.DATA_TABLETS]; _slot1.instance.runes = _local1.data[_slot1.DATA_RUNES]; _slot1.instance.playTime = _local1.data[_slot1.DATA_TIME]; if (isNaN(_slot1.instance.playTime)){ _slot1.instance.playTime = 0; }; this.copyObjectData(_local1.data[_slot1.DATA_OBJECT_DATA], _slot1.instance.objectData); this.copyObjectData(_local1.data[_slot1.DATA_FLAGS], _slot1.instance.flags); this.copyArrayData(_local1.data[_slot1.DATA_MINIMAP_VISIBILTY], _slot1.instance.minimapVisiblilty); } else { _slot1.instance.setupNewGameData(); }; _slot1.instance.getSaveData(0).forceSave(); } public function setAward(_arg1:String, _arg2:Boolean):void{ var _local4:Boolean; var _local3:FlxSave = _slot1.instance.getSaveData(0); _local4 = this.getAward(_arg1); if (_local3.data[_slot1.DATA_AWARDS] == null){ _local3.data[_slot1.DATA_AWARDS] = new Object(); }; _local3.data[_slot1.DATA_AWARDS][_arg1] = true; if ((((((_arg2 == true)) && (!(_local4)))) && (!((PlayingState.instance == null))))){ PlayingState.instance.showAwardToaster(this.getAwardIndexByName(_arg1)); }; } public function getAwardIndexByName(_arg1:String):int{ var _local2:int; _local2 = 0; while (_local2 < AwardsState.AWARD_DATA.length) { if (AwardsState.AWARD_DATA[_local2][0] == _arg1){ return (_local2); }; _local2++; }; return (0); } public function copyObjectData(_arg1:Object, _arg2:Object):void{ var _local3:String; for (_local3 in _arg1) { if ((((((((_arg1[_local3] is Boolean)) || ((_arg1[_local3] is Number)))) || ((_arg1[_local3] is int)))) || ((_arg1[_local3] is String)))){ _arg2[_local3] = _arg1[_local3]; } else { _arg2[_local3] = new Object(); this.copyObjectData(_arg1[_local3], _arg2[_local3]); }; }; } public function determineExploration():int{ var _local1:int; var _local2:Number; _local2 = 0; _local1 = 0; while (_local1 < _slot1.instance.minimapVisiblilty.length) { if (_slot1.instance.minimapVisiblilty[_local1] == true){ _local2++; }; _local1++; }; this.exploredRooms = _local2; _local2 = Math.min(Math.round(((_local2 / 135) * 100)), 100); return (_local2); } public function countWarpGates():int{ var _local1:int; _local1 = 0; if (((!((_slot1.instance.objectData["Gate_A"] == null))) && ((_slot1.instance.objectData["Gate_A"]["Active"] == true)))){ _local1++; }; if (((!((_slot1.instance.objectData["Gate_B"] == null))) && ((_slot1.instance.objectData["Gate_B"]["Active"] == true)))){ _local1++; }; if (((!((_slot1.instance.objectData["Gate_C"] == null))) && ((_slot1.instance.objectData["Gate_C"]["Active"] == true)))){ _local1++; }; if (((!((_slot1.instance.objectData["Gate_D"] == null))) && ((_slot1.instance.objectData["Gate_D"]["Active"] == true)))){ _local1++; }; return (_local1); } public function getFlag(_arg1:String):Boolean{ if (_slot1.instance.flags[_arg1] == null){ return (false); }; return (_slot1.instance.flags[_arg1]); } public function tabletHasBeenFound(_arg1:int):Boolean{ var _local2:Object; _local2 = PlayingState.instance.getObjectData(("Tablet_" + _arg1)); if (((!((_local2 == null))) && ((_local2["Collected"] == true)))){ return (true); }; return (false); } public function getAward(_arg1:String):Boolean{ var _local2:FlxSave = _slot1.instance.getSaveData(0); if (_local2.data[_slot1.DATA_AWARDS] != null){ if (_local2.data[_slot1.DATA_AWARDS][_arg1] == true){ return (true); }; }; return (false); } public function eraseData():void{ this.setupNewGameData(); _slot1.instance.getSaveData(0).forceSave(); } public function countRunes():int{ var _local1:int; _local1 = 0; if ((_slot1.instance.runes & RuneDoor.SEAL_A) > 0){ _local1++; }; if ((_slot1.instance.runes & RuneDoor.SEAL_B) > 0){ _local1++; }; if ((_slot1.instance.runes & RuneDoor.SEAL_C) > 0){ _local1++; }; if ((_slot1.instance.runes & RuneDoor.SEAL_D) > 0){ _local1++; }; return (_local1); } public function storeData(_arg1:Object):void{ var _local2:String; for (_local2 in _arg1) { _slot1.instance.getSaveData(0).write(_local2, _arg1[_local2]); }; } public function eraseEverything():void{ this.setupNewGameData(); this.eraseAwards(); _slot1.instance.getSaveData(0).forceSave(); } public function copyArrayData(_arg1:Array, _arg2:Array):void{ var _local3:int; while (_local3 < _arg1.length) { _arg2[_local3] = _arg1[_local3]; _local3++; }; } public function setFlag(_arg1:String, _arg2:Boolean):void{ _slot1.instance.flags[_arg1] = _arg2; } public function storeDatum(_arg1:String, _arg2:Object):void{ _slot1.instance.getSaveData(0).write(_arg1, _arg2); } public function eraseAwards():void{ var _local1:FlxSave = _slot1.instance.getSaveData(0); _local1.data[_slot1.DATA_AWARDS] = new Object(); } public function getSaveData(_arg1:int):FlxSave{ var _local2:FlxSave; _local2 = (FlxG.saves[_arg1] as FlxSave); if (_local2 == null){ _local2 = new FlxSave(); _local2.bind(_slot1.SO_NAME); FlxG.saves[_arg1] = _local2; }; return (_local2); } public function setupNewGameData():void{ var _local2:int; var _local3:int; var _local4:int; var _local1:FlxSave = _slot1.instance.getSaveData(0); _slot1.instance.respawnMapTag = (_local1.data[_slot1.DATA_RESPAWN_MAP_TAG] = "A00"); _slot1.instance.respawnMarkerTag = (_local1.data[_slot1.DATA_RESPAWN_MARKER_TAG] = "GameStart"); _slot1.instance.minimapVisiblilty = new Array(); _slot1.instance.objectData = new Object(); _slot1.instance.flags = new Object(); _slot1.instance.keys = (_local1.data[_slot1.DATA_KEYS] = 0); _slot1.instance.totalKeys = (_local1.data[_slot1.DATA_TOTAL_KEYS] = 0); _slot1.instance.tablets = (_local1.data[_slot1.DATA_TABLETS] = 0); _slot1.instance.runes = (_local1.data[_slot1.DATA_RUNES] = 0); _slot1.instance.playTime = (_local1.data[_slot1.DATA_TIME] = 0); _local1.data[_slot1.DATA_MINIMAP_VISIBILTY] = new Array(); _local1.data[_slot1.DATA_OBJECT_DATA] = new Object(); _local1.data[_slot1.DATA_FLAGS] = new Object(); _local3 = 3; while (_local3 <= 4) { _local2 = 5; while (_local2 <= 7) { _local4 = ((_local3 * 15) + _local2); _local1.data[_slot1.DATA_MINIMAP_VISIBILTY][_local4] = (_slot1.instance.minimapVisiblilty[_local4] = true); _local2++; }; _local3++; }; } public static function visitWasabiProject():void{ FlxU.openURL("http://www.thewasabiproject.com"); } public static function wasabiLogoFinished():void{ FlxG.state = new TitleState(); } public static function visitSponsor():void{ FlxU.openURL(_slot1.SPONSOR_URL); } } }//package com.wasabi.tr
Section 405
//Preloader (com.wasabi.tr.Preloader) package com.wasabi.tr { import flash.events.*; import flash.display.*; import flash.text.*; import flash.utils.*; public class Preloader extends MovieClip { private const maxCounter:int = 100; private var debugText:TextField; private var counter:int; private var title:Sprite; private var background:Sprite; private var barWidth:int; private var barFill:Sprite; private var barBorder:Sprite; private static const SCREEN_HEIGHT:int = 480; private static const SPACING:int = 20; private static const BAR_GAP:int = 5; private static const SCREEN_WIDTH:int = 640; private static const BAR_BORDER_HEIGHT:int = 20; private static const GFX_TITLE:Class = Preloader_GFX_TITLE; private static const BAR_HEIGHT:int = 10; private static const BAR_WIDTH:int = 100; private static const BAR_BORDER_WIDTH:int = 110; public function Preloader(){ addEventListener(Event.ENTER_FRAME, checkFrame); loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress); this.background = new Sprite(); this.background.graphics.beginFill(0); this.background.graphics.drawRect(0, 0, 640, 480); this.background.graphics.endFill(); this.addChild(this.background); this.title = new Sprite(); this.title.addChild(new _slot1.GFX_TITLE()); this.title.x = ((_slot1.SCREEN_WIDTH / 2) - (this.title.width / 2)); this.title.y = (((_slot1.SCREEN_HEIGHT / 2) - (this.title.height / 2)) - _slot1.SPACING); this.addChild(this.title); this.barWidth = (this.title.width - (_slot1.BAR_GAP * 2)); this.barBorder = new Sprite(); this.barBorder.graphics.beginFill(6235737); this.barBorder.graphics.drawRect(0, 0, (this.barWidth + (_slot1.BAR_GAP * 2)), _slot1.BAR_BORDER_HEIGHT); this.barBorder.graphics.endFill(); this.barBorder.graphics.beginFill(0); this.barBorder.graphics.drawRect(1, 1, (this.barBorder.width - 2), (this.barBorder.height - 2)); this.barBorder.graphics.endFill(); this.barBorder.x = ((_slot1.SCREEN_WIDTH / 2) - (this.barBorder.width / 2)); this.barBorder.y = ((this.title.y + this.title.height) + _slot1.SPACING); this.addChild(this.barBorder); this.barFill = new Sprite(); this.barFill.graphics.beginFill(6235737); this.barFill.graphics.drawRect(0, 0, (this.barBorder.width - (_slot1.BAR_GAP * 2)), (this.barBorder.height - (_slot1.BAR_GAP * 2))); this.barFill.graphics.endFill(); this.barFill.x = (this.barBorder.x + _slot1.BAR_GAP); this.barFill.y = (this.barBorder.y + _slot1.BAR_GAP); this.addChild(this.barFill); } private function onLogoClick(_arg1:Event):void{ } private function progress(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = (_arg1.bytesLoaded / _arg1.bytesTotal); if (_local2 >= 1){ _local2 = 1; }; this.barFill.width = (this.barWidth * _local2); } private function checkFrame(_arg1:Event):void{ if (currentFrame == totalFrames){ removeEventListener(Event.ENTER_FRAME, checkFrame); startup(); }; } private function startup():void{ stop(); loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress); if (this.contains(this.title)){ this.removeChild(this.title); }; if (this.contains(this.barBorder)){ this.removeChild(this.barBorder); }; if (this.contains(this.barFill)){ this.removeChild(this.barFill); }; if (this.contains(this.background)){ this.removeChild(this.background); }; var _local1:Class = (getDefinitionByName("com.wasabi.tr.Main") as Class); addChild((new (_local1) as DisplayObject)); } } }//package com.wasabi.tr
Section 406
//Preloader_GFX_TITLE (com.wasabi.tr.Preloader_GFX_TITLE) package com.wasabi.tr { import mx.core.*; public class Preloader_GFX_TITLE extends BitmapAsset { } }//package com.wasabi.tr
Section 407
//UIAssets (com.wasabi.tr.UIAssets) package com.wasabi.tr { public class UIAssets { public static const GFX_AWARDS:Class = UIAssets_GFX_AWARDS; public static const GFX_FRAME:Class = UIAssets_GFX_FRAME; public static const GFX_FADE_BOTTOM:Class = UIAssets_GFX_FADE_BOTTOM; public static const FONT_SILKSCREEN:Class = UIAssets_FONT_SILKSCREEN; public static const GFX_TITLE:Class = UIAssets_GFX_TITLE; public static const GFX_MENU_FRAME:Class = UIAssets_GFX_MENU_FRAME; public static const GFX_FADE_TOP:Class = UIAssets_GFX_FADE_TOP; public static const GFX_SPONSOR_LOGO_MEDIUM:Class = UIAssets_GFX_SPONSOR_LOGO_MEDIUM; } }//package com.wasabi.tr
Section 408
//UIAssets_FONT_SILKSCREEN (com.wasabi.tr.UIAssets_FONT_SILKSCREEN) package com.wasabi.tr { import mx.core.*; public class UIAssets_FONT_SILKSCREEN extends FontAsset { } }//package com.wasabi.tr
Section 409
//UIAssets_GFX_AWARDS (com.wasabi.tr.UIAssets_GFX_AWARDS) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_AWARDS extends BitmapAsset { } }//package com.wasabi.tr
Section 410
//UIAssets_GFX_FADE_BOTTOM (com.wasabi.tr.UIAssets_GFX_FADE_BOTTOM) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_FADE_BOTTOM extends BitmapAsset { } }//package com.wasabi.tr
Section 411
//UIAssets_GFX_FADE_TOP (com.wasabi.tr.UIAssets_GFX_FADE_TOP) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_FADE_TOP extends BitmapAsset { } }//package com.wasabi.tr
Section 412
//UIAssets_GFX_FRAME (com.wasabi.tr.UIAssets_GFX_FRAME) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_FRAME extends BitmapAsset { } }//package com.wasabi.tr
Section 413
//UIAssets_GFX_MENU_FRAME (com.wasabi.tr.UIAssets_GFX_MENU_FRAME) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_MENU_FRAME extends BitmapAsset { } }//package com.wasabi.tr
Section 414
//UIAssets_GFX_SPONSOR_LOGO_MEDIUM (com.wasabi.tr.UIAssets_GFX_SPONSOR_LOGO_MEDIUM) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_SPONSOR_LOGO_MEDIUM extends ButtonAsset { } }//package com.wasabi.tr
Section 415
//UIAssets_GFX_TITLE (com.wasabi.tr.UIAssets_GFX_TITLE) package com.wasabi.tr { import mx.core.*; public class UIAssets_GFX_TITLE extends BitmapAsset { } }//package com.wasabi.tr
Section 416
//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.4.1.10084"; 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 417
//ButtonAsset (mx.core.ButtonAsset) package mx.core { public class ButtonAsset extends FlexSimpleButton implements IFlexAsset, IFlexDisplayObject { private var _measuredHeight:Number; private var _measuredWidth:Number; mx_internal static const VERSION:String = "3.4.1.10084"; public function ButtonAsset(){ _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; } } }//package mx.core
Section 418
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.4.1.10084"; } }//package mx.core
Section 419
//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.4.1.10084"; 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 420
//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.4.1.10084"; 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 421
//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.4.1.10084"; 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 422
//FlexSimpleButton (mx.core.FlexSimpleButton) package mx.core { import flash.display.*; import mx.utils.*; public class FlexSimpleButton extends SimpleButton { mx_internal static const VERSION:String = "3.4.1.10084"; public function FlexSimpleButton(){ super(); try { name = NameUtil.createUniqueName(this); } catch(e:Error) { }; } override public function toString():String{ return (NameUtil.displayObjectToString(this)); } } }//package mx.core
Section 423
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.4.1.10084"; } }//package mx.core
Section 424
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 425
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 426
//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 427
//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 428
//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.4.1.10084"; 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 429
//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 430
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.4.1.10084"; } }//package mx.core
Section 431
//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.4.1.10084"; 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 432
//FlxAnim (org.flixel.data.FlxAnim) package org.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 = 0; if (_arg3 > 0){ delay = (1 / _arg3); }; frames = _arg2; looped = _arg4; } } }//package org.flixel.data
Section 433
//FlxConsole (org.flixel.data.FlxConsole) package org.flixel.data { import org.flixel.*; import flash.display.*; import flash.text.*; public class FlxConsole extends Sprite { protected const MAX_CONSOLE_LINES:uint = 0x0100; protected var _lines:Array; protected var _text:TextField; public var mtrUpdate:FlxMonitor; public var mtrTotal:FlxMonitor; protected var _Y:Number; protected var _console:Sprite; public var mtrRender:FlxMonitor; protected var _curFPS:uint; protected var _extraDisplay:TextField; protected var _bx:int; protected var _by:int; protected var _YT:Number; protected var _byt:int; protected var _fpsDisplay:TextField; public function FlxConsole(_arg1:uint, _arg2:uint, _arg3:uint){ visible = false; x = (_arg1 * _arg3); _by = (_arg2 * _arg3); _byt = (_by - (FlxG.height * _arg3)); _YT = (_Y = (y = _byt)); var _local4:Bitmap = new Bitmap(new BitmapData((FlxG.width * _arg3), (FlxG.height * _arg3), true, 2130706432)); addChild(_local4); mtrUpdate = new FlxMonitor(8); mtrRender = new FlxMonitor(8); mtrTotal = new FlxMonitor(8); _text = new TextField(); _text.width = _local4.width; _text.height = _local4.height; _text.multiline = true; _text.wordWrap = true; _text.embedFonts = true; _text.selectable = false; _text.antiAliasType = AntiAliasType.NORMAL; _text.gridFitType = GridFitType.PIXEL; _text.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF); addChild(_text); _fpsDisplay = new TextField(); _fpsDisplay.width = 100; _fpsDisplay.x = (_local4.width - 100); _fpsDisplay.height = 20; _fpsDisplay.multiline = true; _fpsDisplay.wordWrap = true; _fpsDisplay.embedFonts = true; _fpsDisplay.selectable = false; _fpsDisplay.antiAliasType = AntiAliasType.NORMAL; _fpsDisplay.gridFitType = GridFitType.PIXEL; _fpsDisplay.defaultTextFormat = new TextFormat("system", 16, 0xFFFFFF, true, null, null, null, null, "right"); addChild(_fpsDisplay); _extraDisplay = new TextField(); _extraDisplay.width = 100; _extraDisplay.x = (_local4.width - 100); _extraDisplay.height = 64; _extraDisplay.y = 20; _extraDisplay.alpha = 0.5; _extraDisplay.multiline = true; _extraDisplay.wordWrap = true; _extraDisplay.embedFonts = true; _extraDisplay.selectable = false; _extraDisplay.antiAliasType = AntiAliasType.NORMAL; _extraDisplay.gridFitType = GridFitType.PIXEL; _extraDisplay.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF, true, null, null, null, null, "right"); addChild(_extraDisplay); _lines = new Array(); } public function log(_arg1:String):void{ var _local2:String; var _local3:uint; if (_arg1 == null){ _arg1 = "NULL"; }; trace(_arg1); _lines.push(_arg1); if (_lines.length > MAX_CONSOLE_LINES){ _lines.shift(); _local2 = ""; _local3 = 0; while (_local3 < _lines.length) { _local2 = (_local2 + (_lines[_local3] + "\n")); _local3++; }; _text.text = _local2; } else { _text.appendText((_arg1 + "\n")); }; _text.scrollV = _text.height; } public function update():void{ var _local1:Number = mtrTotal.average(); _fpsDisplay.text = (uint((1000 / _local1)) + " fps"); var _local2:uint = mtrUpdate.average(); var _local3:uint = mtrRender.average(); var _local4:uint = (_local2 + _local3); var _local5:uint = uint(_local1); _extraDisplay.text = (((((((((_local2 + "ms update\n") + _local3) + "ms render\n") + _local4) + "ms flixel\n") + (_local5 - _local4)) + "ms flash\n") + _local5) + "ms total"); if (_Y < _YT){ _Y = (_Y + ((FlxG.height * 10) * FlxG.elapsed)); } else { if (_Y > _YT){ _Y = (_Y - ((FlxG.height * 10) * FlxG.elapsed)); }; }; if (_Y > _by){ _Y = _by; } else { if (_Y < _byt){ _Y = _byt; visible = false; }; }; y = Math.floor(_Y); } public function toggle():void{ if (_YT == _by){ _YT = _byt; } else { _YT = _by; visible = true; }; } } }//package org.flixel.data
Section 434
//FlxFade (org.flixel.data.FlxFade) package org.flixel.data { import org.flixel.*; public class FlxFade extends FlxSprite { protected var _delay:Number; protected var _complete:Function; public function FlxFade(){ createGraphic(FlxG.width, FlxG.height, 0, true); scrollFactor.x = 0; scrollFactor.y = 0; exists = false; solid = false; fixed = true; } override public function update():void{ alpha = (alpha + (FlxG.elapsed / _delay)); if (alpha >= 1){ alpha = 1; if (_complete != null){ _complete(); }; }; } public function start(_arg1:uint=4278190080, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{ if (((!(_arg4)) && (exists))){ return; }; fill(_arg1); _delay = _arg2; _complete = _arg3; alpha = 0; exists = true; } public function stop():void{ exists = false; } } }//package org.flixel.data
Section 435
//FlxFlash (org.flixel.data.FlxFlash) package org.flixel.data { import org.flixel.*; public class FlxFlash extends FlxSprite { protected var _delay:Number; protected var _complete:Function; public function FlxFlash(){ createGraphic(FlxG.width, FlxG.height, 0, true); scrollFactor.x = 0; scrollFactor.y = 0; exists = false; solid = false; fixed = true; } override public function update():void{ alpha = (alpha - (FlxG.elapsed / _delay)); if (alpha <= 0){ exists = false; if (_complete != null){ _complete(); }; }; } public function start(_arg1:uint=4294967295, _arg2:Number=1, _arg3:Function=null, _arg4:Boolean=false):void{ if (((!(_arg4)) && (exists))){ return; }; fill(_arg1); _delay = _arg2; _complete = _arg3; alpha = 1; exists = true; } public function stop():void{ exists = false; } } }//package org.flixel.data
Section 436
//FlxKeyboard (org.flixel.data.FlxKeyboard) package org.flixel.data { import flash.events.*; public class FlxKeyboard { protected const _t:uint = 0x0100; public var RIGHT:Boolean; public var LEFT:Boolean; public var FOUR:Boolean; public var TWO:Boolean; public var CONTROL:Boolean; public var A:Boolean; public var B:Boolean; public var C:Boolean; public var D:Boolean; public var E:Boolean; public var ONE:Boolean; public var G:Boolean; public var H:Boolean; public var I:Boolean; public var J:Boolean; public var K:Boolean; public var F:Boolean; public var N:Boolean; public var O:Boolean; public var Q:Boolean; public var R:Boolean; public var S:Boolean; public var T:Boolean; public var U:Boolean; public var MINUS:Boolean; public var Y:Boolean; public var L:Boolean; public var Z:Boolean; public var QUOTE:Boolean; public var V:Boolean; public var X:Boolean; public var P:Boolean; public var SHIFT:Boolean; public var SLASH:Boolean; public var BACKSPACE:Boolean; public var EIGHT:Boolean; public var W:Boolean; public var M:Boolean; public var THREE:Boolean; public var ESCAPE:Boolean; public var SEMICOLON:Boolean; public var CAPSLOCK:Boolean; protected var _lookup:Object; public var PLUS:Boolean; protected var _map:Array; public var ZERO:Boolean; public var DOWN:Boolean; public var F1:Boolean; public var F2:Boolean; public var F3:Boolean; public var F4:Boolean; public var F5:Boolean; public var F6:Boolean; public var F7:Boolean; public var NINE:Boolean; public var F9:Boolean; public var ALT:Boolean; public var F8:Boolean; public var DELETE:Boolean; public var LBRACKET:Boolean; public var UP:Boolean; public var ENTER:Boolean; public var FIVE:Boolean; public var SIX:Boolean; public var COMMA:Boolean; public var PERIOD:Boolean; public var BACKSLASH:Boolean; public var F10:Boolean; public var F11:Boolean; public var F12:Boolean; public var SEVEN:Boolean; public var SPACE:Boolean; public var RBRACKET:Boolean; public function FlxKeyboard(){ var _local1:uint; _lookup = new Object(); _map = new Array(_t); _local1 = 65; while (_local1 <= 90) { addKey(String.fromCharCode(_local1), _local1); _local1++; }; _local1 = 48; var _temp1 = _local1; _local1 = (_local1 + 1); addKey("ZERO", _temp1); var _temp2 = _local1; _local1 = (_local1 + 1); addKey("ONE", _temp2); var _temp3 = _local1; _local1 = (_local1 + 1); addKey("TWO", _temp3); var _temp4 = _local1; _local1 = (_local1 + 1); addKey("THREE", _temp4); var _temp5 = _local1; _local1 = (_local1 + 1); addKey("FOUR", _temp5); var _temp6 = _local1; _local1 = (_local1 + 1); addKey("FIVE", _temp6); var _temp7 = _local1; _local1 = (_local1 + 1); addKey("SIX", _temp7); var _temp8 = _local1; _local1 = (_local1 + 1); addKey("SEVEN", _temp8); var _temp9 = _local1; _local1 = (_local1 + 1); addKey("EIGHT", _temp9); var _temp10 = _local1; _local1 = (_local1 + 1); addKey("NINE", _temp10); _local1 = 1; while (_local1 <= 12) { addKey(("F" + _local1), (111 + _local1)); _local1++; }; addKey("ESCAPE", 27); addKey("MINUS", 189); addKey("PLUS", 187); addKey("DELETE", 46); addKey("BACKSPACE", 8); addKey("LBRACKET", 219); addKey("RBRACKET", 221); addKey("BACKSLASH", 220); addKey("CAPSLOCK", 20); addKey("SEMICOLON", 186); addKey("QUOTE", 222); addKey("ENTER", 13); addKey("SHIFT", 16); addKey("COMMA", 188); addKey("PERIOD", 190); addKey("SLASH", 191); addKey("CONTROL", 17); addKey("ALT", 18); addKey("SPACE", 32); addKey("UP", 38); addKey("DOWN", 40); addKey("LEFT", 37); addKey("RIGHT", 39); } public function handleKeyUp(_arg1:KeyboardEvent):void{ var _local2:Object = _map[_arg1.keyCode]; if (_local2 == null){ return; }; if (_local2.current > 0){ _local2.current = -1; } else { _local2.current = 0; }; this[_local2.name] = false; } public function pressed(_arg1:String):Boolean{ return (this[_arg1]); } public function justReleased(_arg1:String):Boolean{ return ((_map[_lookup[_arg1]].current == -1)); } public function handleKeyDown(_arg1:KeyboardEvent):void{ var _local2:Object = _map[_arg1.keyCode]; if (_local2 == null){ return; }; if (_local2.current > 0){ _local2.current = 1; } else { _local2.current = 2; }; this[_local2.name] = true; } public function reset():void{ var _local2:Object; var _local1:uint; while (_local1 < _t) { if (_map[_local1] == null){ } else { _local2 = _map[_local1]; this[_local2.name] = false; _local2.current = 0; _local2.last = 0; }; _local1++; }; } public function justPressed(_arg1:String):Boolean{ return ((_map[_lookup[_arg1]].current == 2)); } public function update():void{ var _local2:Object; var _local1:uint; while (_local1 < _t) { if (_map[_local1] == null){ } else { _local2 = _map[_local1]; if ((((_local2.last == -1)) && ((_local2.current == -1)))){ _local2.current = 0; } else { if ((((_local2.last == 2)) && ((_local2.current == 2)))){ _local2.current = 1; }; }; _local2.last = _local2.current; }; _local1++; }; } protected function addKey(_arg1:String, _arg2:uint):void{ _lookup[_arg1] = _arg2; _map[_arg2] = {name:_arg1, current:0, last:0}; } } }//package org.flixel.data
Section 437
//FlxKong (org.flixel.data.FlxKong) package org.flixel.data { import flash.events.*; import flash.display.*; import flash.net.*; public class FlxKong extends Sprite { public var API; public function FlxKong(){ API = null; } public function init():void{ var _local1:Object = LoaderInfo(root.loaderInfo).parameters; var _local2:String = ((_local1.api_path) || ("http://www.kongregate.com/flash/API_AS3_Local.swf")); var _local3:URLRequest = new URLRequest(_local2); var _local4:Loader = new Loader(); _local4.contentLoaderInfo.addEventListener(Event.COMPLETE, APILoaded); _local4.load(_local3); this.addChild(_local4); } protected function APILoaded(_arg1:Event):void{ API = _arg1.target.content; API.services.connect(); } } }//package org.flixel.data
Section 438
//FlxList (org.flixel.data.FlxList) package org.flixel.data { import org.flixel.*; public class FlxList { public var next:FlxList; public var object:FlxObject; public function FlxList(){ object = null; next = null; } } }//package org.flixel.data
Section 439
//FlxMouse (org.flixel.data.FlxMouse) package org.flixel.data { import org.flixel.*; import flash.events.*; public class FlxMouse { protected var _out:Boolean; protected var ImgDefaultCursor:Class; public var cursor:FlxSprite; public var retainFlashCursor:Boolean; public var screenY:int; protected var _last:int; public var x:int; public var y:int; protected var _current:int; public var screenX:int; public function FlxMouse(){ ImgDefaultCursor = FlxMouse_ImgDefaultCursor; super(); x = 0; y = 0; screenX = 0; screenY = 0; _current = 0; _last = 0; cursor = null; _out = false; retainFlashCursor = false; } public function handleMouseUp(_arg1:MouseEvent):void{ if (_current > 0){ _current = -1; } else { _current = 0; }; } public function hide():void{ if (cursor != null){ cursor.visible = false; _out = false; }; } public function update(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number):void{ screenX = _arg1; screenY = _arg2; x = (screenX - FlxU.floor(_arg3)); y = (screenY - FlxU.floor(_arg4)); if (cursor != null){ cursor.x = x; cursor.y = y; }; if ((((_last == -1)) && ((_current == -1)))){ _current = 0; } else { if ((((_last == 2)) && ((_current == 2)))){ _current = 1; }; }; _last = _current; } public function handleMouseOver(_arg1:MouseEvent):void{ if (cursor != null){ cursor.visible = _out; }; } public function justPressed():Boolean{ return ((_current == 2)); } public function handleMouseDown(_arg1:MouseEvent):void{ if (_current > 0){ _current = 1; } else { _current = 2; }; } public function pressed():Boolean{ return ((_current > 0)); } public function load(_arg1:Class, _arg2:int=0, _arg3:int=0):void{ if (_arg1 == null){ _arg1 = ImgDefaultCursor; }; cursor = new FlxSprite(screenX, screenY, _arg1); cursor.offset.x = _arg2; cursor.offset.y = _arg3; } public function reset():void{ _current = 0; _last = 0; } public function justReleased():Boolean{ return ((_current == -1)); } public function handleMouseOut(_arg1:MouseEvent):void{ if (cursor != null){ _out = cursor.visible; cursor.visible = false; }; } public function show(_arg1:Class=null, _arg2:int=0, _arg3:int=0):void{ _out = true; if (_arg1 != null){ load(_arg1, _arg2, _arg3); } else { if (cursor != null){ cursor.visible = true; } else { load(null); }; }; } public function unload():void{ if (cursor != null){ if (cursor.visible){ load(null); } else { cursor = null; }; }; } } }//package org.flixel.data
Section 440
//FlxMouse_ImgDefaultCursor (org.flixel.data.FlxMouse_ImgDefaultCursor) package org.flixel.data { import mx.core.*; public class FlxMouse_ImgDefaultCursor extends BitmapAsset { } }//package org.flixel.data
Section 441
//FlxPanel (org.flixel.data.FlxPanel) package org.flixel.data { import org.flixel.*; import flash.ui.*; public class FlxPanel extends FlxObject { protected var _close:FlxButton; protected var _digg:FlxButton; protected var _gameTitle:String; protected var _closed:Boolean; protected var _payPalID:String; protected var _donate:FlxButton; private var ImgClose:Class; protected var _topBar:FlxSprite; protected var _ty:Number; protected var _caption:FlxText; protected var _initialized:Boolean; protected var _twitter:FlxButton; protected var _delicious:FlxButton; protected var _stumble:FlxButton; private var ImgDelicious:Class; private var ImgTwitter:Class; protected var _mainBar:FlxSprite; protected var _gameURL:String; private var ImgStumble:Class; private var ImgReddit:Class; private var ImgDigg:Class; protected var _bottomBar:FlxSprite; protected var _payPalAmount:Number; protected var _s:Number; private var ImgDonate:Class; protected var _reddit:FlxButton; public function FlxPanel(){ ImgDonate = FlxPanel_ImgDonate; ImgStumble = FlxPanel_ImgStumble; ImgDigg = FlxPanel_ImgDigg; ImgReddit = FlxPanel_ImgReddit; ImgDelicious = FlxPanel_ImgDelicious; ImgTwitter = FlxPanel_ImgTwitter; ImgClose = FlxPanel_ImgClose; super(); y = -21; _ty = y; _closed = false; _initialized = false; _topBar = new FlxSprite(); _topBar.createGraphic(FlxG.width, 1, 2147483647); _topBar.scrollFactor.x = 0; _topBar.scrollFactor.y = 0; _mainBar = new FlxSprite(); _mainBar.createGraphic(FlxG.width, 19, 2130706432); _mainBar.scrollFactor.x = 0; _mainBar.scrollFactor.y = 0; _bottomBar = new FlxSprite(); _bottomBar.createGraphic(FlxG.width, 1, 2147483647); _bottomBar.scrollFactor.x = 0; _bottomBar.scrollFactor.y = 0; _donate = new FlxButton(3, 0, onDonate); _donate.loadGraphic(new FlxSprite(0, 0, ImgDonate)); _donate.scrollFactor.x = 0; _donate.scrollFactor.y = 0; _stumble = new FlxButton(((((((FlxG.width / 2) - 6) - 13) - 6) - 13) - 6), 0, onStumble); _stumble.loadGraphic(new FlxSprite(0, 0, ImgStumble)); _stumble.scrollFactor.x = 0; _stumble.scrollFactor.y = 0; _digg = new FlxButton(((((FlxG.width / 2) - 6) - 13) - 6), 0, onDigg); _digg.loadGraphic(new FlxSprite(0, 0, ImgDigg)); _digg.scrollFactor.x = 0; _digg.scrollFactor.y = 0; _reddit = new FlxButton(((FlxG.width / 2) - 6), 0, onReddit); _reddit.loadGraphic(new FlxSprite(0, 0, ImgReddit)); _reddit.scrollFactor.x = 0; _reddit.scrollFactor.y = 0; _delicious = new FlxButton((((FlxG.width / 2) + 7) + 6), 0, onDelicious); _delicious.loadGraphic(new FlxSprite(0, 0, ImgDelicious)); _delicious.scrollFactor.x = 0; _delicious.scrollFactor.y = 0; _twitter = new FlxButton((((((FlxG.width / 2) + 7) + 6) + 12) + 6), 0, onTwitter); _twitter.loadGraphic(new FlxSprite(0, 0, ImgTwitter)); _twitter.scrollFactor.x = 0; _twitter.scrollFactor.y = 0; _caption = new FlxText((FlxG.width / 2), 0, ((FlxG.width / 2) - 19), ""); _caption.alignment = "right"; _caption.scrollFactor.x = 0; _caption.scrollFactor.y = 0; _close = new FlxButton((FlxG.width - 16), 0, onClose); _close.loadGraphic(new FlxSprite(0, 0, ImgClose)); _close.scrollFactor.x = 0; _close.scrollFactor.y = 0; hide(); visible = false; _s = 50; } public function onDelicious():void{ FlxU.openURL(((("http://delicious.com/save?v=5&amp;noui&amp;jump=close&amp;url=" + encodeURIComponent(_gameURL)) + "&amp;title=") + encodeURIComponent(_gameTitle))); } public function onTwitter():void{ FlxU.openURL(("http://twitter.com/home?status=Playing" + encodeURIComponent((((" " + _gameTitle) + " - ") + _gameURL)))); } public function setup(_arg1:String, _arg2:Number, _arg3:String, _arg4:String, _arg5:String):void{ _payPalID = _arg1; if (_payPalID.length <= 0){ _donate.visible = false; }; _payPalAmount = _arg2; _gameTitle = _arg3; _gameURL = _arg4; _caption.text = _arg5; _initialized = true; } public function onStumble():void{ FlxU.openURL(("http://www.stumbleupon.com/submit?url=" + encodeURIComponent(_gameURL))); } override public function render():void{ if (!_initialized){ return; }; if (_topBar.visible){ _topBar.render(); }; if (_mainBar.visible){ _mainBar.render(); }; if (_bottomBar.visible){ _bottomBar.render(); }; if (_donate.visible){ _donate.render(); }; if (_stumble.visible){ _stumble.render(); }; if (_digg.visible){ _digg.render(); }; if (_reddit.visible){ _reddit.render(); }; if (_delicious.visible){ _delicious.render(); }; if (_twitter.visible){ _twitter.render(); }; if (_caption.visible){ _caption.render(); }; if (_close.visible){ _close.render(); }; } public function onDigg():void{ FlxU.openURL(((("http://digg.com/submit?url=" + encodeURIComponent(_gameURL)) + "&title=") + encodeURIComponent(_gameTitle))); } public function onReddit():void{ FlxU.openURL(("http://www.reddit.com/submit?url=" + encodeURIComponent(_gameURL))); } public function onDonate():void{ FlxU.openURL(((((("https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=" + encodeURIComponent(_payPalID)) + "&item_name=") + encodeURIComponent(((_gameTitle + " Contribution (") + _gameURL))) + ")&currency_code=USD&amount=") + _payPalAmount)); } override public function update():void{ if (!_initialized){ return; }; if (_ty != y){ if (y < _ty){ y = (y + (FlxG.elapsed * _s)); if (y > _ty){ y = _ty; }; } else { y = (y - (FlxG.elapsed * _s)); if (y < _ty){ y = _ty; }; }; _topBar.y = y; _mainBar.y = (y + 1); _bottomBar.y = (y + 20); _donate.reset(_donate.x, (y + 4)); _stumble.reset(_stumble.x, (y + 4)); _digg.reset(_digg.x, (y + 4)); _reddit.reset(_reddit.x, (y + 4)); _delicious.reset(_delicious.x, (y + 5)); _twitter.reset(_twitter.x, (y + 4)); _caption.reset(_caption.x, (y + 4)); _close.reset(_close.x, (y + 4)); }; if ((((y <= -21)) || ((y >= FlxG.height)))){ visible = false; } else { visible = true; }; if (visible){ if (_donate.active){ _donate.update(); }; if (_stumble.active){ _stumble.update(); }; if (_digg.active){ _digg.update(); }; if (_reddit.active){ _reddit.update(); }; if (_delicious.active){ _delicious.update(); }; if (_twitter.active){ _twitter.update(); }; if (_caption.active){ _caption.update(); }; if (_close.active){ _close.update(); }; }; } public function show(_arg1:Boolean=true):void{ if (_closed){ return; }; if (!_initialized){ FlxG.log("SUPPORT PANEL ERROR: Uninitialized.\nYou forgot to call FlxGame.setupSupportPanel()\nfrom your game constructor."); return; }; if (_arg1){ y = -21; _ty = -1; } else { y = FlxG.height; _ty = (FlxG.height - 20); }; _donate.reset(_donate.x, (y + 4)); _stumble.reset(_stumble.x, (y + 4)); _digg.reset(_digg.x, (y + 4)); _reddit.reset(_reddit.x, (y + 4)); _delicious.reset(_delicious.x, (y + 5)); _twitter.reset(_twitter.x, (y + 4)); _caption.reset(_caption.x, (y + 4)); _close.reset(_close.x, (y + 4)); if (!FlxG.mouse.cursor.visible){ Mouse.show(); }; visible = true; } public function onClose():void{ _closed = true; hide(); } public function hide():void{ if (y < 0){ _ty = -21; } else { _ty = FlxG.height; }; Mouse.hide(); } } }//package org.flixel.data
Section 442
//FlxPanel_ImgClose (org.flixel.data.FlxPanel_ImgClose) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgClose extends BitmapAsset { } }//package org.flixel.data
Section 443
//FlxPanel_ImgDelicious (org.flixel.data.FlxPanel_ImgDelicious) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgDelicious extends BitmapAsset { } }//package org.flixel.data
Section 444
//FlxPanel_ImgDigg (org.flixel.data.FlxPanel_ImgDigg) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgDigg extends BitmapAsset { } }//package org.flixel.data
Section 445
//FlxPanel_ImgDonate (org.flixel.data.FlxPanel_ImgDonate) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgDonate extends BitmapAsset { } }//package org.flixel.data
Section 446
//FlxPanel_ImgReddit (org.flixel.data.FlxPanel_ImgReddit) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgReddit extends BitmapAsset { } }//package org.flixel.data
Section 447
//FlxPanel_ImgStumble (org.flixel.data.FlxPanel_ImgStumble) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgStumble extends BitmapAsset { } }//package org.flixel.data
Section 448
//FlxPanel_ImgTwitter (org.flixel.data.FlxPanel_ImgTwitter) package org.flixel.data { import mx.core.*; public class FlxPanel_ImgTwitter extends BitmapAsset { } }//package org.flixel.data
Section 449
//FlxPause (org.flixel.data.FlxPause) package org.flixel.data { import org.flixel.*; public class FlxPause extends FlxGroup { private var ImgKeyP:Class; private var ImgKey0:Class; private var ImgKeyPlus:Class; private var ImgKeyMinus:Class; public function FlxPause(){ var _local2:uint; ImgKeyMinus = FlxPause_ImgKeyMinus; ImgKeyPlus = FlxPause_ImgKeyPlus; ImgKey0 = FlxPause_ImgKey0; ImgKeyP = FlxPause_ImgKeyP; super(); scrollFactor.x = 0; scrollFactor.y = 0; var _local1:uint = 80; _local2 = 92; x = ((FlxG.width - _local1) / 2); y = ((FlxG.height - _local2) / 2); add(new FlxSprite().createGraphic(_local1, _local2, 2852126720, true), true); (add(new FlxText(0, 0, _local1, "this game is"), true) as FlxText).alignment = "center"; add(new FlxText(0, 10, _local1, "PAUSED").setFormat(null, 16, 0xFFFFFF, "center"), true); add(new FlxSprite(4, 36, ImgKeyP), true); add(new FlxText(16, 36, (_local1 - 16), "Pause Game"), true); add(new FlxSprite(4, 50, ImgKey0), true); add(new FlxText(16, 50, (_local1 - 16), "Mute Sound"), true); add(new FlxSprite(4, 64, ImgKeyMinus), true); add(new FlxText(16, 64, (_local1 - 16), "Sound Down"), true); add(new FlxSprite(4, 78, ImgKeyPlus), true); add(new FlxText(16, 78, (_local1 - 16), "Sound Up"), true); } } }//package org.flixel.data
Section 450
//FlxPause_ImgKey0 (org.flixel.data.FlxPause_ImgKey0) package org.flixel.data { import mx.core.*; public class FlxPause_ImgKey0 extends BitmapAsset { } }//package org.flixel.data
Section 451
//FlxPause_ImgKeyMinus (org.flixel.data.FlxPause_ImgKeyMinus) package org.flixel.data { import mx.core.*; public class FlxPause_ImgKeyMinus extends BitmapAsset { } }//package org.flixel.data
Section 452
//FlxPause_ImgKeyP (org.flixel.data.FlxPause_ImgKeyP) package org.flixel.data { import mx.core.*; public class FlxPause_ImgKeyP extends BitmapAsset { } }//package org.flixel.data
Section 453
//FlxPause_ImgKeyPlus (org.flixel.data.FlxPause_ImgKeyPlus) package org.flixel.data { import mx.core.*; public class FlxPause_ImgKeyPlus extends BitmapAsset { } }//package org.flixel.data
Section 454
//FlxQuake (org.flixel.data.FlxQuake) package org.flixel.data { import org.flixel.*; public class FlxQuake { public var y:int; protected var _timer:Number; protected var _intensity:Number; public var x:int; protected var _zoom:uint; public function FlxQuake(_arg1:uint){ _zoom = _arg1; start(0); } public function update():void{ if (_timer > 0){ _timer = (_timer - FlxG.elapsed); if (_timer <= 0){ _timer = 0; x = 0; y = 0; } else { x = (((((Math.random() * _intensity) * FlxG.width) * 2) - (_intensity * FlxG.width)) * _zoom); y = (((((Math.random() * _intensity) * FlxG.height) * 2) - (_intensity * FlxG.height)) * _zoom); }; }; } public function start(_arg1:Number=0.05, _arg2:Number=0.5):void{ stop(); _intensity = _arg1; _timer = _arg2; } public function stop():void{ x = 0; y = 0; _intensity = 0; _timer = 0; } } }//package org.flixel.data
Section 455
//FlxButton (org.flixel.FlxButton) package org.flixel { import flash.events.*; public class FlxButton extends FlxGroup { protected var _on:FlxSprite; protected var _offT:FlxText; protected var _initialized:Boolean; protected var _onT:FlxText; protected var _pressed:Boolean; protected var _callback:Function; protected var _off:FlxSprite; protected var _onToggle:Boolean; protected var _sf:FlxPoint; public function FlxButton(_arg1:int, _arg2:int, _arg3:Function){ x = _arg1; y = _arg2; width = 100; height = 20; _off = new FlxSprite().createGraphic(width, height, 4286545791); _off.solid = false; add(_off, true); _on = new FlxSprite().createGraphic(width, height, 4294967295); _on.solid = false; add(_on, true); _offT = null; _onT = null; _callback = _arg3; _onToggle = false; _pressed = false; _initialized = false; _sf = null; } protected function onMouseUp(_arg1:MouseEvent):void{ if (((((((((!(exists)) || (!(visible)))) || (!(active)))) || (!(FlxG.mouse.justReleased())))) || ((_callback == null)))){ return; }; if (overlapsPoint(FlxG.mouse.x, FlxG.mouse.y)){ _callback(); }; } override public function update():void{ if (!_initialized){ if (FlxG.stage != null){ FlxG.stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp); _initialized = true; }; }; super.update(); visibility(false); if (overlapsPoint(FlxG.mouse.x, FlxG.mouse.y)){ if (!FlxG.mouse.pressed()){ _pressed = false; } else { if (!_pressed){ _pressed = true; }; }; visibility(!(_pressed)); }; if (_onToggle){ visibility(_off.visible); }; } protected 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; }; }; } public function get on():Boolean{ return (_onToggle); } public function loadGraphic(_arg1:FlxSprite, _arg2:FlxSprite=null):FlxButton{ _off = (replace(_off, _arg1) as FlxSprite); if (_arg2 == null){ if (_on != _off){ remove(_on); }; _on = _off; } else { _on = (replace(_on, _arg2) as FlxSprite); }; _on.solid = (_off.solid = false); _off.scrollFactor = scrollFactor; _on.scrollFactor = scrollFactor; width = _off.width; height = _off.height; refreshHulls(); return (this); } public function loadText(_arg1:FlxText, _arg2:FlxText=null):FlxButton{ if (_arg1 != null){ if (_offT == null){ _offT = _arg1; add(_offT); } else { _offT = (replace(_offT, _arg1) as FlxText); }; }; if (_arg2 == null){ _onT = _offT; } else { if (_onT == null){ _onT = _arg2; add(_onT); } else { _onT = (replace(_onT, _arg2) as FlxText); }; }; _offT.scrollFactor = scrollFactor; _onT.scrollFactor = scrollFactor; return (this); } override public function destroy():void{ if (FlxG.stage != null){ FlxG.stage.removeEventListener(MouseEvent.MOUSE_UP, onMouseUp); }; } public function set on(_arg1:Boolean):void{ _onToggle = _arg1; } } }//package org.flixel
Section 456
//FlxEmitter (org.flixel.FlxEmitter) package org.flixel { public class FlxEmitter extends FlxGroup { public var maxRotation:Number; public var delay:Number; public var quantity:uint; protected var _timer:Number; public var gravity:Number; public var particleDrag:FlxPoint; public var maxParticleSpeed:FlxPoint; public var on:Boolean; protected var _explode:Boolean; protected var _particle:uint; public var minParticleSpeed:FlxPoint; public var minRotation:Number; protected var _counter:uint; public function FlxEmitter(_arg1:Number=0, _arg2:Number=0){ x = _arg1; y = _arg2; width = 0; height = 0; minParticleSpeed = new FlxPoint(-100, -100); maxParticleSpeed = new FlxPoint(100, 100); minRotation = -360; maxRotation = 360; gravity = 400; particleDrag = new FlxPoint(); delay = 0; quantity = 0; _counter = 0; _explode = true; exists = false; on = false; } public function setRotation(_arg1:Number=0, _arg2:Number=0):void{ minRotation = _arg1; maxRotation = _arg2; } override public function update():void{ super.update(); updateEmitter(); } public function setYSpeed(_arg1:Number=0, _arg2:Number=0):void{ minParticleSpeed.y = _arg1; maxParticleSpeed.y = _arg2; } public function stop(_arg1:Number=3):void{ _explode = true; delay = _arg1; if (delay < 0){ delay = -(_arg1); }; on = false; } public function setSize(_arg1:uint, _arg2:uint):void{ width = _arg1; height = _arg2; } public function at(_arg1:FlxObject):void{ x = (_arg1.x + _arg1.origin.x); y = (_arg1.y + _arg1.origin.y); } override protected function updateMembers():void{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (((((!((_local1 == null))) && (_local1.exists))) && (_local1.active))){ _local1.update(); }; _local3++; }; } public function start(_arg1:Boolean=true, _arg2:Number=0, _arg3:uint=0):void{ if (members.length <= 0){ FlxG.log("WARNING: there are no sprites loaded in your emitter.\nAdd some to FlxEmitter.members or use FlxEmitter.createSprites()."); return; }; _explode = _arg1; if (!_explode){ _counter = 0; }; if (!exists){ _particle = 0; }; exists = true; visible = true; active = true; dead = false; on = true; _timer = 0; if (quantity == 0){ quantity = _arg3; }; if (_arg2 != 0){ delay = _arg2; }; if (delay < 0){ delay = -(delay); }; if (delay == 0){ if (_arg1){ delay = 3; } else { delay = 0.1; }; }; } protected function updateEmitter():void{ var _local1:uint; var _local2:uint; if (_explode){ _timer = (_timer + FlxG.elapsed); if ((((delay > 0)) && ((_timer > delay)))){ kill(); return; }; if (on){ on = false; _local2 = members.length; if (quantity > 0){ _local2 = quantity; }; _local2 = (_local2 + _particle); _local1 = _particle; while (_local1 < _local2) { emitParticle(); _local1++; }; }; return; }; if (!on){ return; }; _timer = (_timer + FlxG.elapsed); while ((((_timer > delay)) && ((((quantity <= 0)) || ((_counter < quantity)))))) { _timer = (_timer - delay); emitParticle(); }; } override public function kill():void{ super.kill(); on = false; } public function setXSpeed(_arg1:Number=0, _arg2:Number=0):void{ minParticleSpeed.x = _arg1; maxParticleSpeed.x = _arg2; } public function createSprites(_arg1:Class, _arg2:uint=50, _arg3:uint=16, _arg4:Boolean=true, _arg5:Number=0):FlxEmitter{ var _local6:uint; var _local7:FlxSprite; var _local9:Number; var _local10:Number; members = new Array(); var _local8:uint = 1; if (_arg4){ _local7 = new FlxSprite(0, 0, _arg1); _local8 = (_local7.width / _local7.height); }; var _local11:uint; while (_local11 < _arg2) { _local7 = new FlxSprite(); if (_arg4){ _local6 = (FlxU.random() * _local8); if (_arg3 > 0){ _local7.loadRotatedGraphic(_arg1, _arg3, _local6); } else { _local7.loadGraphic(_arg1, true); _local7.frame = _local6; }; } else { if (_arg3 > 0){ _local7.loadRotatedGraphic(_arg1, _arg3); } else { _local7.loadGraphic(_arg1); }; }; if (_arg5 > 0){ _local9 = _local7.width; _local10 = _local7.height; _local7.width = (_local7.width * _arg5); _local7.height = (_local7.height * _arg5); _local7.offset.x = ((_local9 - _local7.width) / 2); _local7.offset.y = ((_local10 - _local7.height) / 2); _local7.solid = true; } else { _local7.solid = false; }; _local7.exists = false; _local7.scrollFactor = scrollFactor; add(_local7); _local11++; }; return (this); } public function emitParticle():void{ var _local1:FlxSprite; _counter++; _local1 = (members[_particle] as FlxSprite); _local1.visible = true; _local1.exists = true; _local1.active = true; _local1.x = ((x - (_local1.width >> 1)) + (FlxU.random() * width)); _local1.y = ((y - (_local1.height >> 1)) + (FlxU.random() * height)); _local1.velocity.x = minParticleSpeed.x; if (minParticleSpeed.x != maxParticleSpeed.x){ _local1.velocity.x = (_local1.velocity.x + (FlxU.random() * (maxParticleSpeed.x - minParticleSpeed.x))); }; _local1.velocity.y = minParticleSpeed.y; if (minParticleSpeed.y != maxParticleSpeed.y){ _local1.velocity.y = (_local1.velocity.y + (FlxU.random() * (maxParticleSpeed.y - minParticleSpeed.y))); }; _local1.acceleration.y = gravity; _local1.angularVelocity = minRotation; if (minRotation != maxRotation){ _local1.angularVelocity = (_local1.angularVelocity + (FlxU.random() * (maxRotation - minRotation))); }; if (_local1.angularVelocity != 0){ _local1.angle = ((FlxU.random() * 360) - 180); }; _local1.drag.x = particleDrag.x; _local1.drag.y = particleDrag.y; _local1.visible = true; _particle++; if (_particle >= members.length){ _particle = 0; }; _local1.onEmit(); } } }//package org.flixel
Section 457
//FlxG (org.flixel.FlxG) package org.flixel { import flash.display.*; import org.flixel.data.*; import flash.geom.*; public class FlxG { public static var panel:FlxPanel; protected static var _mute:Boolean; public static var kong:FlxKong; public static var scores:Array; public static var music:FlxSound; public static var height:uint; protected static var _pause:Boolean; protected static var _volume:Number; public static var buffer:BitmapData; public static var sounds:Array; public static var debug:Boolean; public static var LIBRARY_MINOR_VERSION:uint = 35; public static var LIBRARY_MAJOR_VERSION:uint = 2; public static var levels:Array; public static var maxElapsed:Number; public static var elapsed:Number; public static var timeScale:Number; protected static var _cache:Object; public static var level:int; public static var fade:FlxFade; public static var score:int; public static var save:int; public static var saves:Array; protected static var _scrollTarget:Point; public static var mouse:FlxMouse; public static var followTarget:FlxObject; public static var followLead:Point; public static var LIBRARY_NAME:String = "flixel"; protected static var _showBounds:Boolean; public static var width:uint; public static var followLerp:Number; protected static var _game:FlxGame; public static var scroll:Point; public static var quake:FlxQuake; public static var followMin:Point; public static var flash:FlxFlash; public static var followMax:Point; public static var keys:FlxKeyboard; public static var realElapsed:Number; public static function get stage():Stage{ if (((!((_game._state == null))) && (!((_game._state.parent == null))))){ return (_game._state.parent.stage); }; return (null); } public static function get showBounds():Boolean{ return (_showBounds); } protected static function changeSounds():void{ var _local1:FlxSound; if (((!((music == null))) && (music.active))){ music.updateTransform(); }; var _local2:uint = sounds.length; var _local3:uint; while (_local3 < _local2) { _local1 = (sounds[_local3] as FlxSound); if (((!((_local1 == null))) && (_local1.active))){ _local1.updateTransform(); }; _local3++; }; } public static function get mute():Boolean{ return (_mute); } public static function get volume():Number{ return (_volume); } static function doFollow():void{ if (followTarget != null){ _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 getMuteValue():uint{ if (_mute){ return (0); }; return (1); } public static function set showBounds(_arg1:Boolean):void{ var _local2:Boolean = _showBounds; _showBounds = _arg1; if (_showBounds != _local2){ FlxObject._refreshBounds = true; }; } public static function set state(_arg1:FlxState):void{ _game.switchState(_arg1); } public static function set mute(_arg1:Boolean):void{ _mute = _arg1; changeSounds(); } public static function play(_arg1:Class, _arg2:Number=1, _arg3:Boolean=false):FlxSound{ var _local4:uint = sounds.length; var _local5:uint; while (_local5 < _local4) { if (!(sounds[_local5] as FlxSound).active){ break; }; _local5++; }; if (sounds[_local5] == null){ sounds[_local5] = new FlxSound(); }; var _local6:FlxSound = sounds[_local5]; _local6.loadEmbedded(_arg1, _arg3); _local6.volume = _arg2; _local6.play(); return (_local6); } public static function addBitmap(_arg1:Class, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:String=null):BitmapData{ var _local8:uint; var _local9:String; var _local10:BitmapData; var _local11:Matrix; var _local5:Boolean; var _local6:String = _arg4; if (_local6 == null){ _local6 = String(_arg1); if (((((_arg3) && (!((_cache[_local6] == undefined))))) && (!((_cache[_local6] == null))))){ _local8 = 0; do { var _temp1 = _local8; _local8 = (_local8 + 1); _local9 = (_local6 + _temp1); } while (((!((_cache[_local9] == undefined))) && (!((_cache[_local9] == null))))); _local6 = _local9; }; }; if (!checkBitmapCache(_local6)){ _cache[_local6] = new (_arg1).bitmapData; if (_arg2){ _local5 = true; }; }; var _local7:BitmapData = _cache[_local6]; if (((((!(_local5)) && (_arg2))) && ((_local7.width == new (_arg1).bitmapData.width)))){ _local5 = true; }; if (_local5){ _local10 = new BitmapData((_local7.width << 1), _local7.height, true, 0); _local10.draw(_local7); _local11 = new Matrix(); _local11.scale(-1, 1); _local11.translate(_local10.width, 0); _local10.draw(_local7, _local11); _local7 = _local10; }; return (_local7); } public static function set volume(_arg1:Number):void{ _volume = _arg1; if (_volume < 0){ _volume = 0; } else { if (_volume > 1){ _volume = 1; }; }; changeSounds(); } static function setGameData(_arg1:FlxGame, _arg2:uint, _arg3:uint, _arg4:uint):void{ _game = _arg1; _cache = new Object(); width = _arg2; height = _arg3; _mute = false; _volume = 0.5; sounds = new Array(); mouse = new FlxMouse(); keys = new FlxKeyboard(); scroll = null; _scrollTarget = null; unfollow(); FlxG.levels = new Array(); FlxG.scores = new Array(); level = 0; score = 0; FlxU.seed = NaN; kong = null; pause = false; timeScale = 1; framerate = 60; frameratePaused = 10; maxElapsed = 0.0333333; FlxG.elapsed = 0; _showBounds = false; FlxObject._refreshBounds = false; panel = new FlxPanel(); quake = new FlxQuake(_arg4); flash = new FlxFlash(); fade = new FlxFade(); FlxU.setWorldBounds(0, 0, FlxG.width, FlxG.height); } public static function snapCameraToObject(_arg1:FlxObject):void{ scroll.x = -(_arg1.x); scroll.y = -(_arg1.y); } public static function playMusic(_arg1:Class, _arg2:Number=1):void{ if (music == null){ music = new FlxSound(); } else { if (music.active){ music.stop(); }; }; music.loadEmbedded(_arg1, true); music.volume = _arg2; music.survive = true; music.play(); } public static function createBitmap(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Boolean=false, _arg5:String=null):BitmapData{ var _local7:uint; var _local8:String; var _local6:String = _arg5; if (_local6 == null){ _local6 = ((((_arg1 + "x") + _arg2) + ":") + _arg3); if (((((_arg4) && (!((_cache[_local6] == undefined))))) && (!((_cache[_local6] == null))))){ _local7 = 0; do { var _temp1 = _local7; _local7 = (_local7 + 1); _local8 = (_local6 + _temp1); } while (((!((_cache[_local8] == undefined))) && (!((_cache[_local8] == null))))); _local6 = _local8; }; }; if (!checkBitmapCache(_local6)){ _cache[_local6] = new BitmapData(_arg1, _arg2, true, _arg3); }; return (_cache[_local6]); } public static function get frameratePaused():uint{ return (_game._frameratePaused); } public static function log(_arg1:Object):void{ if (((!((_game == null))) && (!((_game._console == null))))){ _game._console.log(((_arg1)==null) ? "ERROR: null object" : _arg1.toString()); }; } public static function checkBitmapCache(_arg1:String):Boolean{ return (((!((_cache[_arg1] == undefined))) && (!((_cache[_arg1] == null))))); } static function updateSounds():void{ var _local1:FlxSound; if (((!((music == null))) && (music.active))){ music.update(); }; var _local2:uint = sounds.length; var _local3:uint; while (_local3 < _local2) { _local1 = (sounds[_local3] as FlxSound); if (((!((_local1 == null))) && (_local1.active))){ _local1.update(); }; _local3++; }; } static function updateInput():void{ keys.update(); mouse.update(state.mouseX, state.mouseY, scroll.x, scroll.y); } public static function playAt(_arg1:Class, _arg2:FlxPoint, _arg3:FlxObject, _arg4:Number=100, _arg5:Boolean=false):FlxSound{ var _local6:uint = sounds.length; var _local7:uint; while (_local7 < _local6) { if (!(sounds[_local7] as FlxSound).active){ break; }; _local7++; }; if (sounds[_local7] == null){ sounds[_local7] = new FlxSound(); }; var _local8:FlxSound = sounds[_local7]; _local8.loadEmbedded(_arg1, _arg5); _local8.volume = 1; _local8.proximity(_arg2.x, _arg2.y, _arg3, _arg4); _local8.update(); _local8.play(); return (_local8); } static function unfollow():void{ followTarget = null; followLead = null; followLerp = 1; followMin = null; followMax = null; if (scroll == null){ scroll = new Point(); } else { scroll.x = (scroll.y = 0); }; if (_scrollTarget == null){ _scrollTarget = new Point(); } else { _scrollTarget.x = (_scrollTarget.y = 0); }; } public static function stream(_arg1:String, _arg2:Number=1, _arg3:Boolean=false):FlxSound{ var _local4:uint = sounds.length; var _local5:uint; while (_local5 < _local4) { if (!(sounds[_local5] as FlxSound).active){ break; }; _local5++; }; if (sounds[_local5] == null){ sounds[_local5] = new FlxSound(); }; var _local6:FlxSound = sounds[_local5]; _local6.loadStream(_arg1, _arg3); _local6.volume = _arg2; _local6.play(); return (_local6); } public static function get state():FlxState{ return (_game._state); } protected static function playSounds():void{ var _local1:FlxSound; if (((!((music == null))) && (music.active))){ music.play(); }; var _local2:uint = sounds.length; var _local3:uint; while (_local3 < _local2) { _local1 = (sounds[_local3] as FlxSound); if (((!((_local1 == null))) && (_local1.active))){ _local1.play(); }; _local3++; }; } public static function followAdjust(_arg1:Number=0, _arg2:Number=0):void{ followLead = new Point(_arg1, _arg2); } public static function set framerate(_arg1:uint):void{ _game._framerate = _arg1; if (((!(_game._paused)) && (!((_game.stage == null))))){ _game.stage.frameRate = _arg1; }; } public static function set frameratePaused(_arg1:uint):void{ _game._frameratePaused = _arg1; if (((_game._paused) && (!((_game.stage == null))))){ _game.stage.frameRate = _arg1; }; } public static function follow(_arg1:FlxObject, _arg2:Number=1):void{ followTarget = _arg1; followLerp = _arg2; _scrollTarget.x = (((width >> 1) - followTarget.x) - (followTarget.width >> 1)); _scrollTarget.y = (((height >> 1) - followTarget.y) - (followTarget.height >> 1)); scroll.x = _scrollTarget.x; scroll.y = _scrollTarget.y; doFollow(); } public static function resetInput():void{ keys.reset(); mouse.reset(); } public static function get framerate():uint{ return (_game._framerate); } public static function followBounds(_arg1:int=0, _arg2:int=0, _arg3:int=0, _arg4:int=0, _arg5:Boolean=true):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; }; if (_arg5){ FlxU.setWorldBounds(_arg1, _arg2, (_arg3 - _arg1), (_arg4 - _arg2)); }; doFollow(); } protected static function pauseSounds():void{ var _local1:FlxSound; if (((!((music == null))) && (music.active))){ music.pause(); }; var _local2:uint = sounds.length; var _local3:uint; while (_local3 < _local2) { _local1 = (sounds[_local3] as FlxSound); if (((!((_local1 == null))) && (_local1.active))){ _local1.pause(); }; _local3++; }; } static function destroySounds(_arg1:Boolean=false):void{ var _local2:FlxSound; if (sounds == null){ return; }; if (((!((music == null))) && (((_arg1) || (!(music.survive)))))){ music.destroy(); }; var _local3:uint = sounds.length; var _local4:uint; while (_local4 < _local3) { _local2 = (sounds[_local4] as FlxSound); if (((!((_local2 == null))) && (((_arg1) || (!(_local2.survive)))))){ _local2.destroy(); }; _local4++; }; } public static function set pause(_arg1:Boolean):void{ var _local2:Boolean = _pause; _pause = _arg1; if (_pause != _local2){ if (_pause){ _game.pauseGame(); pauseSounds(); } else { _game.unpauseGame(); playSounds(); }; }; } public static function get pause():Boolean{ return (_pause); } } }//package org.flixel
Section 458
//FlxGame (org.flixel.FlxGame) package org.flixel { import flash.events.*; import flash.display.*; import flash.text.*; import org.flixel.data.*; import flash.geom.*; import flash.utils.*; import flash.ui.*; public class FlxGame extends Sprite { protected var SndFlixel:Class; var _screen:Sprite; var _state:FlxState; protected var SndBeep:Class; var _console:FlxConsole; var _gameXOffset:int; var _frameratePaused:uint; var _created:Boolean; var _zoom:uint; var _elapsed:Number; var _total:uint; var _soundTrayBars:Array; var _iState:Class; protected var junk:String;// = "FlxGame_junk" var _zeroPoint:Point; var _paused:Boolean; public var useDefaultHotKeys:Boolean; var _framerate:uint; var _gameYOffset:int; var _buffer:Bitmap; var _soundTray:Sprite; var _frame:Class; public var pause:FlxGroup; var _soundTrayTimer:Number; public function FlxGame(_arg1:uint, _arg2:uint, _arg3:Class, _arg4:uint=2){ SndBeep = FlxGame_SndBeep; SndFlixel = FlxGame_SndFlixel; super(); Mouse.hide(); _zoom = _arg4; FlxState.bgColor = 4278190080; FlxG.setGameData(this, _arg1, _arg2, _arg4); _elapsed = 0; _total = 0; pause = new FlxPause(); _state = null; _iState = _arg3; _zeroPoint = new Point(); useDefaultHotKeys = true; _frame = null; _gameXOffset = 0; _gameYOffset = 0; _paused = false; _created = false; addEventListener(Event.ENTER_FRAME, create); } function pauseGame():void{ if (((!((x == 0))) || (!((y == 0))))){ x = 0; y = 0; }; Mouse.show(); _paused = true; stage.frameRate = _frameratePaused; } function unpauseGame():void{ if (((!(FlxG.panel.visible)) && (!(FlxG.mouse.retainFlashCursor)))){ Mouse.hide(); }; FlxG.resetInput(); _paused = false; stage.frameRate = _framerate; } protected function onFocus(_arg1:Event=null):void{ if (FlxG.pause){ FlxG.pause = false; }; } protected function onKeyUp(_arg1:KeyboardEvent):void{ var _local2:int; var _local3:String; if ((((_arg1.keyCode == 192)) || ((_arg1.keyCode == 220)))){ _console.toggle(); return; }; if (useDefaultHotKeys){ _local2 = _arg1.keyCode; _local3 = String.fromCharCode(_arg1.charCode); switch (_local2){ case 48: case 96: FlxG.mute = !(FlxG.mute); showSoundTray(); return; case 109: case 189: FlxG.mute = false; FlxG.volume = (FlxG.volume - 0.1); showSoundTray(); return; case 107: case 187: FlxG.mute = false; FlxG.volume = (FlxG.volume + 0.1); showSoundTray(); return; case 80: FlxG.pause = !(FlxG.pause); default: break; }; }; FlxG.keys.handleKeyUp(_arg1); } public function switchState(_arg1:FlxState):void{ FlxG.panel.hide(); FlxG.unfollow(); FlxG.resetInput(); FlxG.destroySounds(); FlxG.flash.stop(); FlxG.fade.stop(); FlxG.quake.stop(); _screen.x = 0; _screen.y = 0; _screen.addChild(_arg1); if (_state != null){ _state.destroy(); _screen.swapChildren(_arg1, _state); _screen.removeChild(_state); }; _state = _arg1; _state.scaleX = (_state.scaleY = _zoom); _state.create(); } protected function update(_arg1:Event):void{ var _local3:uint; var _local4:FlxSave; var _local2:uint = getTimer(); var _local5:uint = (_local2 - _total); _elapsed = (_local5 / 1000); _console.mtrTotal.add(_local5); _total = _local2; FlxG.elapsed = _elapsed; FlxG.realElapsed = _elapsed; if (FlxG.elapsed > FlxG.maxElapsed){ FlxG.elapsed = FlxG.maxElapsed; }; FlxG.elapsed = (FlxG.elapsed * FlxG.timeScale); if (_soundTray != null){ 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; _local4 = new FlxSave(); if (_local4.bind("flixel")){ if (_local4.data.sound == null){ _local4.data.sound = new Object(); }; _local4.data.mute = FlxG.mute; _local4.data.volume = FlxG.volume; _local4.forceSave(); }; }; }; }; }; FlxG.panel.update(); if (_console.visible){ _console.update(); }; FlxObject._refreshBounds = false; FlxG.updateInput(); FlxG.updateSounds(); if (_paused){ pause.update(); } else { FlxG.doFollow(); _state.update(); if (FlxG.flash.exists){ FlxG.flash.update(); }; if (FlxG.fade.exists){ FlxG.fade.update(); }; FlxG.quake.update(); _screen.x = FlxG.quake.x; _screen.y = FlxG.quake.y; }; var _local6:uint = getTimer(); _console.mtrUpdate.add((_local6 - _local2)); FlxG.buffer.lock(); _state.preProcess(); _state.render(); if (FlxG.flash.exists){ FlxG.flash.render(); }; if (FlxG.fade.exists){ FlxG.fade.render(); }; if (FlxG.panel.visible){ FlxG.panel.render(); }; if (FlxG.mouse.cursor != null){ if (FlxG.mouse.cursor.active){ FlxG.mouse.cursor.update(); }; if (FlxG.mouse.cursor.visible){ FlxG.mouse.cursor.render(); }; }; _state.postProcess(); if (_paused){ pause.render(); }; FlxG.buffer.unlock(); _console.mtrRender.add((getTimer() - _local6)); } protected function addFrame(_arg1:Class, _arg2:uint, _arg3:uint):FlxGame{ _frame = _arg1; _gameXOffset = _arg2; _gameYOffset = _arg3; return (this); } public function showSoundTray(_arg1:Boolean=false):void{ if (!_arg1){ FlxG.play(SndBeep); }; _soundTrayTimer = 1; _soundTray.y = (_gameYOffset * _zoom); _soundTray.visible = true; var _local2:uint = Math.round((FlxG.volume * 10)); if (FlxG.mute){ _local2 = 0; }; var _local3:uint; while (_local3 < _soundTrayBars.length) { if (_local3 < _local2){ _soundTrayBars[_local3].alpha = 1; } else { _soundTrayBars[_local3].alpha = 0.5; }; _local3++; }; } function create(_arg1:Event):void{ var _local2:uint; var _local3:FlxSave; var _local10:Bitmap; if (root == null){ return; }; stage.scaleMode = StageScaleMode.SHOW_ALL; stage.align = StageAlign.TOP; stage.frameRate = _framerate; _screen = new Sprite(); addChild(_screen); var _local4:Bitmap = new Bitmap(new BitmapData(FlxG.width, FlxG.height, true, FlxState.bgColor)); _local4.x = _gameXOffset; _local4.y = _gameYOffset; _local4.scaleX = (_local4.scaleY = _zoom); _screen.addChild(_local4); FlxG.buffer = _local4.bitmapData; _console = new FlxConsole(_gameXOffset, _gameYOffset, _zoom); addChild(_console); var _local5:String = ((((FlxG.LIBRARY_NAME + " v") + FlxG.LIBRARY_MAJOR_VERSION) + ".") + FlxG.LIBRARY_MINOR_VERSION); if (FlxG.debug){ _local5 = (_local5 + " [debug]"); } else { _local5 = (_local5 + " [release]"); }; var _local6 = ""; _local2 = 0; while (_local2 < (_local5.length + 32)) { _local6 = (_local6 + "-"); _local2++; }; FlxG.log(_local5); FlxG.log(_local6); stage.addEventListener(KeyboardEvent.KEY_DOWN, FlxG.keys.handleKeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp); stage.addEventListener(MouseEvent.MOUSE_DOWN, FlxG.mouse.handleMouseDown); stage.addEventListener(MouseEvent.MOUSE_UP, FlxG.mouse.handleMouseUp); stage.addEventListener(MouseEvent.MOUSE_OUT, FlxG.mouse.handleMouseOut); stage.addEventListener(MouseEvent.MOUSE_OVER, FlxG.mouse.handleMouseOver); stage.addEventListener(Event.DEACTIVATE, onFocusLost); stage.addEventListener(Event.ACTIVATE, onFocus); _soundTray = new Sprite(); _soundTray.visible = false; _soundTray.scaleX = 2; _soundTray.scaleY = 2; _local4 = new Bitmap(new BitmapData(80, 30, true, 2130706432)); _soundTray.x = (((_gameXOffset + (FlxG.width / 2)) * _zoom) - ((_local4.width / 2) * _soundTray.scaleX)); _soundTray.addChild(_local4); var _local7:TextField = new TextField(); _local7.width = _local4.width; _local7.height = _local4.height; _local7.multiline = true; _local7.wordWrap = true; _local7.selectable = false; _local7.embedFonts = true; _local7.antiAliasType = AntiAliasType.NORMAL; _local7.gridFitType = GridFitType.PIXEL; _local7.defaultTextFormat = new TextFormat("system", 8, 0xFFFFFF, null, null, null, null, null, "center"); _soundTray.addChild(_local7); _local7.text = "VOLUME"; _local7.y = 16; var _local8:uint = 10; var _local9:uint = 14; _soundTrayBars = new Array(); _local2 = 0; while (_local2 < 10) { _local4 = new Bitmap(new BitmapData(4, (_local2 + 1), false, 0xFFFFFF)); _local4.x = _local8; _local4.y = _local9; _soundTrayBars.push(_soundTray.addChild(_local4)); _local8 = (_local8 + 6); _local9--; _local2++; }; addChild(_soundTray); if (_frame != null){ _local10 = new _frame(); _local10.scaleX = _zoom; _local10.scaleY = _zoom; addChild(_local10); }; _local3 = new FlxSave(); if (((_local3.bind("flixel")) && (!((_local3.data.sound == null))))){ if (_local3.data.volume != null){ FlxG.volume = _local3.data.volume; }; if (_local3.data.mute != null){ FlxG.mute = _local3.data.mute; }; showSoundTray(true); }; switchState(new _iState()); FlxState.screen.unsafeBind(FlxG.buffer); removeEventListener(Event.ENTER_FRAME, create); addEventListener(Event.ENTER_FRAME, update); } protected function onFocusLost(_arg1:Event=null):void{ FlxG.pause = true; } } }//package org.flixel
Section 459
//FlxGame_junk (org.flixel.FlxGame_junk) package org.flixel { import mx.core.*; public class FlxGame_junk extends FontAsset { } }//package org.flixel
Section 460
//FlxGame_SndBeep (org.flixel.FlxGame_SndBeep) package org.flixel { import mx.core.*; public class FlxGame_SndBeep extends SoundAsset { } }//package org.flixel
Section 461
//FlxGame_SndFlixel (org.flixel.FlxGame_SndFlixel) package org.flixel { import mx.core.*; public class FlxGame_SndFlixel extends SoundAsset { } }//package org.flixel
Section 462
//FlxGroup (org.flixel.FlxGroup) package org.flixel { public class FlxGroup extends FlxObject { public var members:Array; protected var _first:Boolean; protected var _last:FlxPoint; public function FlxGroup(){ _group = true; solid = false; members = new Array(); _last = new FlxPoint(); _first = true; } public function getFirstExtant():FlxObject{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (((!((_local1 == null))) && (_local1.exists))){ return (_local1); }; _local3++; }; return (null); } override public function destroy():void{ destroyMembers(); super.destroy(); } public function getFirstAlive():FlxObject{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (((((!((_local1 == null))) && (_local1.exists))) && (!(_local1.dead)))){ return (_local1); }; _local3++; }; return (null); } public function remove(_arg1:FlxObject, _arg2:Boolean=false):FlxObject{ var _local3:int = members.indexOf(_arg1); if ((((_local3 < 0)) || ((_local3 >= members.length)))){ return (null); }; if (_arg2){ members.splice(_local3, 1); } else { members[_local3] = null; }; return (_arg1); } override public function update():void{ saveOldPosition(); updateMotion(); updateMembers(); updateFlickering(); } public function resetFirstAvail(_arg1:Number=0, _arg2:Number=0):Boolean{ var _local3:FlxObject = getFirstAvail(); if (_local3 == null){ return (false); }; _local3.reset(_arg1, _arg2); return (true); } override public function reset(_arg1:Number, _arg2:Number):void{ var _local3:Number; var _local4:Number; var _local6:FlxObject; var _local7:uint; var _local8:uint; saveOldPosition(); super.reset(_arg1, _arg2); var _local5:Boolean; if (((!((x == _last.x))) || (!((y == _last.y))))){ _local5 = true; _local3 = (x - _last.x); _local4 = (y - _last.y); }; if (_local5){ _local7 = members.length; _local8 = 0; while (_local8 < _local7) { _local6 = (members[_local8] as FlxObject); if (((!((_local6 == null))) && (_local6.exists))){ if (_local6._group){ _local6.reset((_local6.x + _local3), (_local6.y + _local4)); } else { _local6.x = (_local6.x + _local3); _local6.y = (_local6.y + _local4); if (solid){ _local6.colHullX.width = (_local6.colHullX.width + ((_local3)>0) ? _local3 : -(_local3)); if (_local3 < 0){ _local6.colHullX.x = (_local6.colHullX.x + _local3); }; _local6.colHullY.x = x; _local6.colHullY.height = (_local6.colHullY.height + ((_local4)>0) ? _local4 : -(_local4)); if (_local4 < 0){ _local6.colHullY.y = (_local6.colHullY.y + _local4); }; _local6.colVector.x = (_local6.colVector.x + _local3); _local6.colVector.y = (_local6.colVector.y + _local4); }; }; }; _local8++; }; }; } protected function updateMembers():void{ var _local1:Number; var _local2:Number; var _local4:FlxObject; var _local3:Boolean; if (((!((x == _last.x))) || (!((y == _last.y))))){ _local3 = true; _local1 = (x - _last.x); _local2 = (y - _last.y); }; var _local5:uint = members.length; var _local6:uint; while (_local6 < _local5) { _local4 = (members[_local6] as FlxObject); if (((!((_local4 == null))) && (_local4.exists))){ if (_local3){ if (_local4._group){ _local4.reset((_local4.x + _local1), (_local4.y + _local2)); } else { _local4.x = (_local4.x + _local1); _local4.y = (_local4.y + _local2); }; }; if (_local4.active){ _local4.update(); }; if (((_local3) && (_local4.solid))){ _local4.colHullX.width = (_local4.colHullX.width + ((_local1)>0) ? _local1 : -(_local1)); if (_local1 < 0){ _local4.colHullX.x = (_local4.colHullX.x + _local1); }; _local4.colHullY.x = x; _local4.colHullY.height = (_local4.colHullY.height + ((_local2)>0) ? _local2 : -(_local2)); if (_local2 < 0){ _local4.colHullY.y = (_local4.colHullY.y + _local2); }; _local4.colVector.x = (_local4.colVector.x + _local1); _local4.colVector.y = (_local4.colVector.y + _local2); }; }; _local6++; }; } public function countDead():int{ var _local1:FlxObject; var _local2 = -1; var _local3:uint = members.length; var _local4:uint; while (_local4 < _local3) { _local1 = (members[_local4] as FlxObject); if (_local1 != null){ if (_local2 < 0){ _local2 = 0; }; if (_local1.dead){ _local2++; }; }; _local4++; }; return (_local2); } public function getFirstAvail():FlxObject{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (((!((_local1 == null))) && (!(_local1.exists)))){ return (_local1); }; _local3++; }; return (null); } override public function render():void{ renderMembers(); } public function countLiving():int{ var _local1:FlxObject; var _local2 = -1; var _local3:uint = members.length; var _local4:uint; while (_local4 < _local3) { _local1 = (members[_local4] as FlxObject); if (_local1 != null){ if (_local2 < 0){ _local2 = 0; }; if (((_local1.exists) && (!(_local1.dead)))){ _local2++; }; }; _local4++; }; return (_local2); } public function countOnScreen():int{ var _local1:FlxObject; var _local2 = -1; var _local3:uint = members.length; var _local4:uint; while (_local4 < _local3) { _local1 = (members[_local4] as FlxObject); if (_local1 != null){ if (_local2 < 0){ _local2 = 0; }; if (_local1.onScreen()){ _local2++; }; }; _local4++; }; return (_local2); } protected function killMembers():void{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (_local1 != null){ _local1.kill(); }; _local3++; }; } override public function kill():void{ killMembers(); super.kill(); } public function getFirstNull():int{ var _local1:uint = members.length; var _local2:uint; while (_local2 < _local1) { if (members[_local2] == null){ return (_local2); }; _local2++; }; return (-1); } protected function renderMembers():void{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (((((!((_local1 == null))) && (_local1.exists))) && (_local1.visible))){ _local1.render(); }; _local3++; }; } public function add(_arg1:FlxObject, _arg2:Boolean=false):FlxObject{ members.push(_arg1); if (_arg2){ _arg1.scrollFactor = scrollFactor; }; return (_arg1); } protected function saveOldPosition():void{ if (_first){ _first = false; _last.x = 0; _last.y = 0; return; }; _last.x = x; _last.y = y; } public function replace(_arg1:FlxObject, _arg2:FlxObject):FlxObject{ var _local3:int = members.indexOf(_arg1); if ((((_local3 < 0)) || ((_local3 >= members.length)))){ return (null); }; members[_local3] = _arg2; return (_arg2); } public function getRandom():FlxObject{ var _local1:uint; var _local2:FlxObject; var _local3:uint = members.length; var _local4:uint = uint((FlxU.random() * _local3)); while ((((_local2 == null)) && ((_local1 < members.length)))) { ++_local4; _local2 = (members[(_local4 % _local3)] as FlxObject); _local1++; }; return (_local2); } public function getFirstDead():FlxObject{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (((!((_local1 == null))) && (_local1.dead))){ return (_local1); }; _local3++; }; return (null); } protected function destroyMembers():void{ var _local1:FlxObject; var _local2:uint = members.length; var _local3:uint; while (_local3 < _local2) { _local1 = (members[_local3] as FlxObject); if (_local1 != null){ _local1.destroy(); }; _local3++; }; members.length = 0; } } }//package org.flixel
Section 463
//FlxMonitor (org.flixel.FlxMonitor) package org.flixel { public class FlxMonitor { protected var _size:uint; protected var _itr:uint; protected var _data:Array; public function FlxMonitor(_arg1:uint, _arg2:Number=0){ _size = _arg1; if (_size <= 0){ _size = 1; }; _itr = 0; _data = new Array(_size); var _local3:uint; while (_local3 < _size) { _data[_local3] = _arg2; _local3++; }; } public function add(_arg1:Number):void{ var _local2 = _itr++; _data[_local2] = _arg1; if (_itr >= _size){ _itr = 0; }; } public function average():Number{ var _local1:Number = 0; var _local2:uint; while (_local2 < _size) { _local1 = (_local1 + _data[_local2]); _local2++; }; return ((_local1 / _size)); } } }//package org.flixel
Section 464
//FlxObject (org.flixel.FlxObject) package org.flixel { import flash.geom.*; public class FlxObject extends FlxRect { public var acceleration:FlxPoint; public var angularAcceleration:Number; public var active:Boolean; public var collideBottom:Boolean; var _group:Boolean; protected var _point:FlxPoint; public var colHullX:FlxRect; protected var _flickerTimer:Number; public var colHullY:FlxRect; protected var _flashPoint:Point; public var colOffsets:Array; protected var _solid:Boolean; public var origin:FlxPoint; public var drag:FlxPoint; public var angularDrag:Number; public var collideTop:Boolean; protected var _flicker:Boolean; protected var _rect:FlxRect; public var additionalAcceleration:FlxPoint; public var moves:Boolean; public var angle:Number; public var exists:Boolean; public var velocity:FlxPoint; public var maxAngular:Number; public var angularVelocity:Number; public var maxVelocity:FlxPoint; public var maxThrust:Number; public var dead:Boolean; public var collideLeft:Boolean; public var thrust:Number; public var onFloor:Boolean; public var health:Number; protected var _fixed:Boolean; public var visible:Boolean; public var colVector:FlxPoint; public var scrollFactor:FlxPoint; public var collideRight:Boolean; protected static const _pZero:FlxPoint = new FlxPoint(); static var _refreshBounds:Boolean; public function FlxObject(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ super(_arg1, _arg2, _arg3, _arg4); exists = true; active = true; visible = true; _solid = true; _fixed = false; moves = true; collideLeft = true; collideRight = true; collideTop = true; collideBottom = true; origin = new FlxPoint(); velocity = new FlxPoint(); acceleration = new FlxPoint(); additionalAcceleration = new FlxPoint(); drag = new FlxPoint(); maxVelocity = new FlxPoint(10000, 10000); angle = 0; angularVelocity = 0; angularAcceleration = 0; angularDrag = 0; maxAngular = 10000; thrust = 0; scrollFactor = new FlxPoint(1, 1); _flicker = false; _flickerTimer = -1; health = 1; dead = false; _point = new FlxPoint(); _rect = new FlxRect(); _flashPoint = new Point(); colHullX = new FlxRect(); colHullY = new FlxRect(); colVector = new FlxPoint(); colOffsets = new Array(new FlxPoint()); _group = false; } public function getScreenXY(_arg1:FlxPoint=null):FlxPoint{ if (_arg1 == null){ _arg1 = new FlxPoint(); }; _arg1.x = (FlxU.floor((x + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.x * scrollFactor.x))); _arg1.y = (FlxU.floor((y + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.y * scrollFactor.y))); return (_arg1); } public function kill():void{ exists = false; dead = true; } protected function updateFlickering():void{ if (flickering()){ if (_flickerTimer > 0){ _flickerTimer = (_flickerTimer - FlxG.elapsed); if (_flickerTimer == 0){ _flickerTimer = -1; }; }; if (_flickerTimer < 0){ flicker(-1); } else { _flicker = !(_flicker); visible = !(_flicker); }; }; } public function render():void{ } public function hitBottom(_arg1:FlxObject, _arg2:Number):void{ onFloor = true; if (!fixed){ velocity.y = _arg2; }; } public function get fixed():Boolean{ return (_fixed); } public function overlaps(_arg1:FlxObject):Boolean{ var _local10:FlxSprite; var _local11:FlxSprite; getScreenXY(_point); var _local2:Number = _point.x; var _local3:Number = _point.y; var _local4:Number = width; var _local5:Number = height; if ((this is FlxSprite)){ _local10 = (this as FlxSprite); _local4 = _local10.frameWidth; _local5 = _local10.frameHeight; }; _arg1.getScreenXY(_point); var _local6:Number = _point.x; var _local7:Number = _point.y; var _local8:Number = _arg1.width; var _local9:Number = _arg1.height; if ((_arg1 is FlxSprite)){ _local11 = (_arg1 as FlxSprite); _local8 = _local11.frameWidth; _local9 = _local11.frameHeight; }; if ((((((((_local6 <= (_local2 - _local8))) || ((_local6 >= (_local2 + _local4))))) || ((_local7 <= (_local3 - _local9))))) || ((_local7 >= (_local3 + _local5))))){ return (false); }; return (true); } public function preCollide(_arg1:FlxObject, _arg2:Boolean):Boolean{ return (true); } public function get solid():Boolean{ return (_solid); } public function onScreen():Boolean{ getScreenXY(_point); if (((((((((_point.x + width) < 0)) || ((_point.x > FlxG.width)))) || (((_point.y + height) < 0)))) || ((_point.y > FlxG.height)))){ return (false); }; return (true); } public function hitRight(_arg1:FlxObject, _arg2:Number):void{ if (!fixed){ velocity.x = _arg2; }; } public function refreshHulls():void{ colHullX.x = x; colHullX.y = y; colHullX.width = width; colHullX.height = height; colHullY.x = x; colHullY.y = y; colHullY.width = width; colHullY.height = height; } public function hitLeft(_arg1:FlxObject, _arg2:Number):void{ if (!fixed){ velocity.x = _arg2; }; } public function collide(_arg1:FlxObject=null):Boolean{ return (FlxU.collide(this, ((_arg1)==null) ? this : _arg1)); } public function reset(_arg1:Number, _arg2:Number):void{ x = _arg1; y = _arg2; exists = true; dead = false; } public function hitTop(_arg1:FlxObject, _arg2:Number):void{ if (!fixed){ velocity.y = _arg2; }; } public function hurt(_arg1:Number):void{ if ((health = (health - _arg1)) <= 0){ kill(); }; } public function set solid(_arg1:Boolean):void{ _solid = _arg1; } protected function updateMotion():void{ var _local1:Number; var _local2:FlxPoint; var _local4:Number; var _local5:FlxPoint; var _local6:Number; if (!moves){ return; }; if (_solid){ refreshHulls(); }; onFloor = false; _local1 = ((FlxU.computeVelocity(angularVelocity, angularAcceleration, 0, angularDrag, maxAngular) - angularVelocity) / 2); angularVelocity = (angularVelocity + _local1); angle = (angle + (angularVelocity * FlxG.elapsed)); angularVelocity = (angularVelocity + _local1); if (thrust != 0){ _local2 = FlxU.rotatePoint(-(thrust), 0, 0, 0, angle); _local5 = FlxU.rotatePoint(-(maxThrust), 0, 0, 0, angle); _local6 = ((_local5.x)>0) ? _local5.x : -(_local5.x); if (_local6 > ((_local5.y)>0) ? _local5.y : -(_local5.y)){ _local5.y = _local6; } else { _local6 = ((_local5.y)>0) ? _local5.y : -(_local5.y); }; maxVelocity.x = (maxVelocity.y = ((_local6)>0) ? _local6 : -(_local6)); } else { _local2 = _pZero; }; _local1 = ((FlxU.computeVelocity(velocity.x, (acceleration.x + _local2.x), additionalAcceleration.x, drag.x, maxVelocity.x) - velocity.x) / 2); velocity.x = (velocity.x + _local1); var _local3:Number = (velocity.x * FlxG.elapsed); velocity.x = (velocity.x + _local1); _local1 = ((FlxU.computeVelocity(velocity.y, (acceleration.y + _local2.y), additionalAcceleration.y, drag.y, maxVelocity.y) - velocity.y) / 2); velocity.y = (velocity.y + _local1); _local4 = (velocity.y * FlxG.elapsed); velocity.y = (velocity.y + _local1); x = (x + _local3); y = (y + _local4); if (!_solid){ return; }; colVector.x = _local3; colVector.y = _local4; colHullX.width = (colHullX.width + ((colVector.x)>0) ? colVector.x : -(colVector.x)); if (colVector.x < 0){ colHullX.x = (colHullX.x + colVector.x); }; colHullY.x = x; colHullY.height = (colHullY.height + ((colVector.y)>0) ? colVector.y : -(colVector.y)); if (colVector.y < 0){ colHullY.y = (colHullY.y + colVector.y); }; } public function getBoundingColor():uint{ if (solid){ if (fixed){ return (2130768421); }; return (2147418130); //unresolved jump }; return (2130743529); } public function set fixed(_arg1:Boolean):void{ _fixed = _arg1; } public function flickering():Boolean{ return ((_flickerTimer >= 0)); } public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{ _arg1 = (_arg1 + FlxU.floor(FlxG.scroll.x)); _arg2 = (_arg2 + FlxU.floor(FlxG.scroll.y)); getScreenXY(_point); if ((((((((_arg1 <= _point.x)) || ((_arg1 >= (_point.x + width))))) || ((_arg2 <= _point.y)))) || ((_arg2 >= (_point.y + height))))){ return (false); }; return (true); } public function update():void{ updateMotion(); updateFlickering(); } public function destroy():void{ } public function insideWorld():Boolean{ if ((((((((this.x < FlxU.quadTreeBounds.left)) || ((this.x > FlxU.quadTreeBounds.right)))) || ((this.y < FlxU.quadTreeBounds.top)))) || ((this.y > FlxU.quadTreeBounds.bottom)))){ return (false); }; return (true); } public function flicker(_arg1:Number=1):void{ _flickerTimer = _arg1; if (_flickerTimer < 0){ _flicker = false; visible = true; }; } } }//package org.flixel
Section 465
//FlxPoint (org.flixel.FlxPoint) package org.flixel { public class FlxPoint { public var x:Number; public var y:Number; public function FlxPoint(_arg1:Number=0, _arg2:Number=0){ x = _arg1; y = _arg2; } public function toString():String{ return (FlxU.getClassName(this, true)); } public static function magnitude(_arg1:FlxPoint):Number{ return (Math.sqrt(((_arg1.x * _arg1.x) + (_arg1.y * _arg1.y)))); } public static function normalize(_arg1:FlxPoint):FlxPoint{ var _local2:Number = FlxPoint.magnitude(_arg1); if ((((_local2 == 0)) || ((_local2 == 1)))){ return (_arg1); }; return (new FlxPoint((_arg1.x / _local2), (_arg1.y / _local2))); } public static function distance(_arg1:FlxPoint, _arg2:FlxPoint):Number{ return (Math.sqrt((((_arg1.x - _arg2.x) * (_arg1.x - _arg2.x)) + ((_arg1.y - _arg2.y) * (_arg1.y - _arg2.y))))); } } }//package org.flixel
Section 466
//FlxQuadTree (org.flixel.FlxQuadTree) package org.flixel { import org.flixel.data.*; public class FlxQuadTree extends FlxRect { protected var _sw:FlxQuadTree; protected var _mx:Number; protected var _my:Number; protected var _ne:FlxQuadTree; protected var _hh:Number; protected var _headA:FlxList; protected var _headB:FlxList; protected var _canSubdivide:Boolean; protected var _l:Number; protected var _hw:Number; protected var _nw:FlxQuadTree; protected var _se:FlxQuadTree; protected var _tailA:FlxList; protected var _r:Number; protected var _t:Number; protected var _tailB:FlxList; protected var _b:Number; public static const A_LIST:uint = 0; public static const B_LIST:uint = 1; protected static var _ot:Number; protected static var _or:Number; protected static var _o:FlxObject; protected static var _ob:Number; protected static var _min:uint; protected static var _oc:Function; protected static var _ol:Number; protected static var _oa:uint; public function FlxQuadTree(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:FlxQuadTree=null){ var _local6:FlxList; var _local7:FlxList; super(_arg1, _arg2, _arg3, _arg4); _headA = (_tailA = new FlxList()); _headB = (_tailB = new FlxList()); if (_arg5 != null){ if (_arg5._headA.object != null){ _local6 = _arg5._headA; while (_local6 != null) { if (_tailA.object != null){ _local7 = _tailA; _tailA = new FlxList(); _local7.next = _tailA; }; _tailA.object = _local6.object; _local6 = _local6.next; }; }; if (_arg5._headB.object != null){ _local6 = _arg5._headB; while (_local6 != null) { if (_tailB.object != null){ _local7 = _tailB; _tailB = new FlxList(); _local7.next = _tailB; }; _tailB.object = _local6.object; _local6 = _local6.next; }; }; } else { _min = ((width + height) / (2 * FlxU.quadTreeDivisions)); }; _canSubdivide = (((width > _min)) || ((height > _min))); _nw = null; _ne = null; _se = null; _sw = null; _l = x; _r = (x + width); _hw = (width / 2); _mx = (_l + _hw); _t = y; _b = (y + height); _hh = (height / 2); _my = (_t + _hh); } protected function addObject():void{ if (((!(_canSubdivide)) || ((((((((_l >= _ol)) && ((_r <= _or)))) && ((_t >= _ot)))) && ((_b <= _ob)))))){ addToList(); return; }; if ((((_ol > _l)) && ((_or < _mx)))){ if ((((_ot > _t)) && ((_ob < _my)))){ if (_nw == null){ _nw = new FlxQuadTree(_l, _t, _hw, _hh, this); }; _nw.addObject(); return; }; if ((((_ot > _my)) && ((_ob < _b)))){ if (_sw == null){ _sw = new FlxQuadTree(_l, _my, _hw, _hh, this); }; _sw.addObject(); return; }; }; if ((((_ol > _mx)) && ((_or < _r)))){ if ((((_ot > _t)) && ((_ob < _my)))){ if (_ne == null){ _ne = new FlxQuadTree(_mx, _t, _hw, _hh, this); }; _ne.addObject(); return; }; if ((((_ot > _my)) && ((_ob < _b)))){ if (_se == null){ _se = new FlxQuadTree(_mx, _my, _hw, _hh, this); }; _se.addObject(); return; }; }; if ((((((((_or > _l)) && ((_ol < _mx)))) && ((_ob > _t)))) && ((_ot < _my)))){ if (_nw == null){ _nw = new FlxQuadTree(_l, _t, _hw, _hh, this); }; _nw.addObject(); }; if ((((((((_or > _mx)) && ((_ol < _r)))) && ((_ob > _t)))) && ((_ot < _my)))){ if (_ne == null){ _ne = new FlxQuadTree(_mx, _t, _hw, _hh, this); }; _ne.addObject(); }; if ((((((((_or > _mx)) && ((_ol < _r)))) && ((_ob > _my)))) && ((_ot < _b)))){ if (_se == null){ _se = new FlxQuadTree(_mx, _my, _hw, _hh, this); }; _se.addObject(); }; if ((((((((_or > _l)) && ((_ol < _mx)))) && ((_ob > _my)))) && ((_ot < _b)))){ if (_sw == null){ _sw = new FlxQuadTree(_l, _my, _hw, _hh, this); }; _sw.addObject(); }; } protected function addToList():void{ var _local1:FlxList; if (_oa == A_LIST){ if (_tailA.object != null){ _local1 = _tailA; _tailA = new FlxList(); _local1.next = _tailA; }; _tailA.object = _o; } else { if (_tailB.object != null){ _local1 = _tailB; _tailB = new FlxList(); _local1.next = _tailB; }; _tailB.object = _o; }; if (!_canSubdivide){ return; }; if (_nw != null){ _nw.addToList(); }; if (_ne != null){ _ne.addToList(); }; if (_se != null){ _se.addToList(); }; if (_sw != null){ _sw.addToList(); }; } public function overlap(_arg1:Boolean=true, _arg2:Function=null, _arg3:Boolean=false):Boolean{ var _local5:FlxList; _oc = _arg2; var _local4:Boolean; if (_arg1){ _oa = B_LIST; if (_headA.object != null){ _local5 = _headA; while (_local5 != null) { _o = _local5.object; if (((((_o.exists) && (((_o.solid) || (_arg3))))) && (overlapNode(null, _arg3)))){ _local4 = true; }; _local5 = _local5.next; }; }; _oa = A_LIST; if (_headB.object != null){ _local5 = _headB; while (_local5 != null) { _o = _local5.object; if (((_o.exists) && (((_o.solid) || (_arg3))))){ if (((!((_nw == null))) && (_nw.overlapNode(null, _arg3)))){ _local4 = true; }; if (((!((_ne == null))) && (_ne.overlapNode(null, _arg3)))){ _local4 = true; }; if (((!((_se == null))) && (_se.overlapNode(null, _arg3)))){ _local4 = true; }; if (((!((_sw == null))) && (_sw.overlapNode(null, _arg3)))){ _local4 = true; }; }; _local5 = _local5.next; }; }; } else { if (_headA.object != null){ _local5 = _headA; while (_local5 != null) { _o = _local5.object; if (((((_o.exists) && (((_o.solid) || (_arg3))))) && (overlapNode(_local5.next, _arg3)))){ _local4 = true; }; _local5 = _local5.next; }; }; }; if (((!((_nw == null))) && (_nw.overlap(_arg1, _oc, _arg3)))){ _local4 = true; }; if (((!((_ne == null))) && (_ne.overlap(_arg1, _oc, _arg3)))){ _local4 = true; }; if (((!((_se == null))) && (_se.overlap(_arg1, _oc, _arg3)))){ _local4 = true; }; if (((!((_sw == null))) && (_sw.overlap(_arg1, _oc, _arg3)))){ _local4 = true; }; return (_local4); } public function add(_arg1:FlxObject, _arg2:uint, _arg3:Boolean=false):void{ var _local4:FlxObject; var _local5:Array; var _local6:uint; var _local7:uint; _oa = _arg2; if (_arg1._group){ _local5 = (_arg1 as FlxGroup).members; _local6 = _local5.length; _local7 = 0; while (_local7 < _local6) { _local4 = (_local5[_local7] as FlxObject); if (((!((_local4 == null))) && (_local4.exists))){ if (_local4._group){ add(_local4, _arg2, _arg3); } else { if (((_local4.solid) || (_arg3))){ _o = _local4; _ol = _o.x; _ot = _o.y; _or = (_o.x + _o.width); _ob = (_o.y + _o.height); addObject(); }; }; }; _local7++; }; }; if (_arg1.solid){ _o = _arg1; _ol = _o.x; _ot = _o.y; _or = (_o.x + _o.width); _ob = (_o.y + _o.height); addObject(); }; } protected function overlapNode(_arg1:FlxList=null, _arg2:Boolean=false):Boolean{ var _local4:FlxObject; var _local3:Boolean; var _local5:FlxList = _arg1; if (_local5 == null){ if (_oa == A_LIST){ _local5 = _headA; } else { _local5 = _headB; }; }; if (_local5.object != null){ while (_local5 != null) { _local4 = _local5.object; if ((((((((((((((((_o === _local4)) || (!(_local4.exists)))) || (!(_o.exists)))) || (((!(_arg2)) && (((!(_local4.solid)) || (!(_o.solid)))))))) || (((_o.x + _o.width) < (_local4.x + FlxU.roundingError))))) || (((_o.x + FlxU.roundingError) > (_local4.x + _local4.width))))) || (((_o.y + _o.height) < (_local4.y + FlxU.roundingError))))) || (((_o.y + FlxU.roundingError) > (_local4.y + _local4.height))))){ _local5 = _local5.next; } else { if (_oc == null){ _local3 = true; } else { if (_oc(_o, _local4)){ _local3 = true; }; }; _local5 = _local5.next; }; }; }; return (_local3); } } }//package org.flixel
Section 467
//FlxRect (org.flixel.FlxRect) package org.flixel { public class FlxRect extends FlxPoint { public var width:Number; public var height:Number; public function FlxRect(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0){ super(_arg1, _arg2); width = _arg3; height = _arg4; } public function get bottom():Number{ return ((y + height)); } public function get top():Number{ return (y); } public function get left():Number{ return (x); } public function get right():Number{ return ((x + width)); } } }//package org.flixel
Section 468
//FlxSave (org.flixel.FlxSave) package org.flixel { import flash.net.*; public class FlxSave { protected var _so:SharedObject; public var data:Object; public var name:String; public function FlxSave(){ name = null; _so = null; data = null; } public function read(_arg1:String):Object{ if (_so == null){ FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.read()."); return (null); }; return (data[_arg1]); } public function forceSave(_arg1:uint=0):Boolean{ var MinFileSize = _arg1; if (_so == null){ FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.forceSave()."); return (false); }; var status:Object; try { status = _so.flush(MinFileSize); } catch(e:Error) { FlxG.log("WARNING: There was a problem flushing\nthe shared object data from FlxSave."); return (false); }; return ((status == SharedObjectFlushStatus.FLUSHED)); } public function bind(_arg1:String):Boolean{ var Name = _arg1; name = null; _so = null; data = null; name = Name; try { _so = SharedObject.getLocal(name); } catch(e:Error) { FlxG.log("WARNING: There was a problem binding to\nthe shared object data from FlxSave."); name = null; _so = null; data = null; return (false); }; data = _so.data; return (true); } public function erase(_arg1:uint=0):Boolean{ if (_so == null){ FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.erase()."); return (false); }; _so.clear(); return (forceSave(_arg1)); } public function write(_arg1:String, _arg2:Object, _arg3:uint=0):Boolean{ if (_so == null){ FlxG.log("WARNING: You must call FlxSave.bind()\nbefore calling FlxSave.write()."); return (false); }; data[_arg1] = _arg2; return (forceSave(_arg3)); } } }//package org.flixel
Section 469
//FlxSound (org.flixel.FlxSound) package org.flixel { import flash.events.*; import flash.net.*; import flash.media.*; public class FlxSound extends FlxObject { public var name:String; protected var _position:Number; protected var _fadeOutTotal:Number; protected var _fadeOutTimer:Number; protected var _sound:Sound; protected var _pauseOnFadeOut:Boolean; protected var _volumeAdjust:Number; public var playing:Boolean; protected var _radius:Number; protected var _volume:Number; protected var _point2:FlxPoint; protected var _fadeInTimer:Number; public var artist:String; protected var _channel:SoundChannel; protected var _fadeInTotal:Number; protected var _looped:Boolean; protected var _pan:Boolean; protected var _transform:SoundTransform; protected var _init:Boolean; public var survive:Boolean; protected var _core:FlxObject; public function FlxSound(){ _point2 = new FlxPoint(); _transform = new SoundTransform(); init(); fixed = true; } public function loadStream(_arg1:String, _arg2:Boolean=false):FlxSound{ stop(); init(); _sound = new Sound(); _sound.addEventListener(Event.ID3, gotID3); _sound.load(new URLRequest(_arg1)); _looped = _arg2; updateTransform(); active = true; return (this); } public function stop():void{ _position = 0; if (_channel != null){ _channel.stop(); stopped(); }; } public function loadEmbedded(_arg1:Class, _arg2:Boolean=false):FlxSound{ stop(); init(); _sound = new (_arg1); _looped = _arg2; updateTransform(); active = true; return (this); } public function get volume():Number{ return (_volume); } function updateTransform():void{ _transform.volume = (((FlxG.getMuteValue() * FlxG.volume) * _volume) * _volumeAdjust); if (_channel != null){ _channel.soundTransform = _transform; }; } public function fadeOut(_arg1:Number, _arg2:Boolean=false):void{ _pauseOnFadeOut = _arg2; _fadeInTimer = 0; _fadeOutTimer = _arg1; _fadeOutTotal = _fadeOutTimer; } public function play():void{ if (_position < 0){ return; }; if (_looped){ if (_position == 0){ if (_channel == null){ _channel = _sound.play(0, 9999, _transform); }; if (_channel == null){ active = false; }; } else { _channel = _sound.play(_position, 0, _transform); if (_channel == null){ active = false; } else { _channel.addEventListener(Event.SOUND_COMPLETE, looped); }; }; } else { if (_position == 0){ if (_channel == null){ _channel = _sound.play(0, 0, _transform); if (_channel == null){ active = false; } else { _channel.addEventListener(Event.SOUND_COMPLETE, stopped); }; }; } else { _channel = _sound.play(_position, 0, _transform); if (_channel == null){ active = false; }; }; }; playing = !((_channel == null)); _position = 0; } public function set volume(_arg1:Number):void{ _volume = _arg1; if (_volume < 0){ _volume = 0; } else { if (_volume > 1){ _volume = 1; }; }; updateTransform(); } protected function init():void{ _transform.pan = 0; _sound = null; _position = 0; _volume = 1; _volumeAdjust = 1; _looped = false; _core = null; _radius = 0; _pan = false; _fadeOutTimer = 0; _fadeOutTotal = 0; _pauseOnFadeOut = false; _fadeInTimer = 0; _fadeInTotal = 0; active = false; visible = false; solid = false; playing = false; name = null; artist = null; } protected function looped(_arg1:Event=null):void{ if (_channel == null){ return; }; _channel.removeEventListener(Event.SOUND_COMPLETE, looped); _channel = null; play(); } protected function updateSound():void{ var _local3:FlxPoint; var _local4:FlxPoint; var _local5:Number; var _local6:Number; var _local7:Number; if (_position != 0){ return; }; var _local1:Number = 1; var _local2:Number = 1; if (_core != null){ _local3 = new FlxPoint(); _local4 = new FlxPoint(); _core.getScreenXY(_local3); getScreenXY(_local4); _local5 = (_local3.x - _local4.x); _local6 = (_local3.y - _local4.y); _local1 = ((_radius - Math.sqrt(((_local5 * _local5) + (_local6 * _local6)))) / _radius); if (_local1 < 0){ _local1 = 0; }; if (_local1 > 1){ _local1 = 1; }; if (_pan){ _local7 = (-(_local5) / _radius); if (_local7 < -1){ _local7 = -1; } else { if (_local7 > 1){ _local7 = 1; }; }; _transform.pan = _local7; }; }; if (_fadeOutTimer > 0){ _fadeOutTimer = (_fadeOutTimer - FlxG.elapsed); if (_fadeOutTimer <= 0){ if (_pauseOnFadeOut){ pause(); } else { stop(); }; }; _local2 = (_fadeOutTimer / _fadeOutTotal); if (_local2 < 0){ _local2 = 0; }; } else { if (_fadeInTimer > 0){ _fadeInTimer = (_fadeInTimer - FlxG.elapsed); _local2 = (_fadeInTimer / _fadeInTotal); if (_local2 < 0){ _local2 = 0; }; _local2 = (1 - _local2); }; }; _volumeAdjust = (_local1 * _local2); updateTransform(); } public function fadeIn(_arg1:Number):void{ _fadeOutTimer = 0; _fadeInTimer = _arg1; _fadeInTotal = _fadeInTimer; play(); } override public function update():void{ super.update(); updateSound(); } protected function stopped(_arg1:Event=null):void{ if (!_looped){ _channel.removeEventListener(Event.SOUND_COMPLETE, stopped); } else { _channel.removeEventListener(Event.SOUND_COMPLETE, looped); }; _channel = null; active = false; playing = false; } protected function gotID3(_arg1:Event=null):void{ FlxG.log("got ID3 info!"); if (_sound.id3.songName.length > 0){ name = _sound.id3.songName; }; if (_sound.id3.artist.length > 0){ artist = _sound.id3.artist; }; _sound.removeEventListener(Event.ID3, gotID3); } public function pause():void{ if (_channel == null){ _position = -1; return; }; _position = _channel.position; _channel.stop(); if (_looped){ while (_position >= _sound.length) { _position = (_position - _sound.length); }; }; _channel = null; playing = false; } override public function destroy():void{ if (active){ stop(); }; } public function proximity(_arg1:Number, _arg2:Number, _arg3:FlxObject, _arg4:Number, _arg5:Boolean=true):FlxSound{ x = _arg1; y = _arg2; _core = _arg3; _radius = _arg4; _pan = _arg5; return (this); } } }//package org.flixel
Section 470
//FlxSprite (org.flixel.FlxSprite) package org.flixel { import flash.display.*; import org.flixel.data.*; import flash.geom.*; public class FlxSprite extends FlxObject { protected var _mtx:Matrix; protected var _caf:uint; public var finished:Boolean; protected var _animations:Array; protected var _ct:ColorTransform; public var offset:FlxPoint; protected var _callback:Function; protected var _curAnim:FlxAnim; protected var _framePixels:BitmapData; protected var _flipped:uint; public var scale:FlxPoint; protected var _pixels:BitmapData; protected var _bakedRotation:Number; public var blend:String; public var frameWidth:uint; protected var _flashRect2:Rectangle; protected var _bbb:BitmapData; protected var _alpha:Number; protected var _flashPointZero:Point; protected var _curFrame:uint; public var frameHeight:uint; protected var _flashRect:Rectangle; protected var _frameTimer:Number; protected var _facing:uint; public var antialiasing:Boolean; protected var _color:uint; public static const LEFT:uint = 0; public static const DOWN:uint = 3; public static const UP:uint = 2; public static const RIGHT:uint = 1; public function FlxSprite(_arg1:Number=0, _arg2:Number=0, _arg3:Class=null){ x = _arg1; y = _arg2; _flashRect = new Rectangle(); _flashRect2 = new Rectangle(); _flashPointZero = new Point(); offset = new FlxPoint(); scale = new FlxPoint(1, 1); _alpha = 1; _color = 0xFFFFFF; blend = null; antialiasing = false; finished = false; _facing = RIGHT; _animations = new Array(); _flipped = 0; _curAnim = null; _curFrame = 0; _caf = 0; _frameTimer = 0; _mtx = new Matrix(); _callback = null; if (_arg3 == null){ createGraphic(8, 8); } else { loadGraphic(_arg3); }; } override public function set fixed(_arg1:Boolean):void{ var _local2:Boolean = _fixed; _fixed = _arg1; if (((!((_local2 == _fixed))) && (FlxG.showBounds))){ calcFrame(); }; } protected function renderSprite():void{ if (_refreshBounds){ calcFrame(); }; getScreenXY(_point); _flashPoint.x = _point.x; _flashPoint.y = _point.y; if ((((((((((angle == 0)) || ((_bakedRotation > 0)))) && ((scale.x == 1)))) && ((scale.y == 1)))) && ((blend == null)))){ FlxG.buffer.copyPixels(_framePixels, _flashRect, _flashPoint, null, null, true); return; }; _mtx.identity(); _mtx.translate(-(origin.x), -(origin.y)); _mtx.scale(scale.x, scale.y); if (angle != 0){ _mtx.rotate(((Math.PI * 2) * (angle / 360))); }; _mtx.translate((_point.x + origin.x), (_point.y + origin.y)); FlxG.buffer.draw(_framePixels, _mtx, null, blend, null, antialiasing); } public function fill(_arg1:uint):void{ _pixels.fillRect(_flashRect2, _arg1); if (_pixels != _framePixels){ calcFrame(); }; } public function get color():uint{ return (_color); } override public function getScreenXY(_arg1:FlxPoint=null):FlxPoint{ if (_arg1 == null){ _arg1 = new FlxPoint(); }; _arg1.x = ((FlxU.floor((x + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.x * scrollFactor.x))) - offset.x); _arg1.y = ((FlxU.floor((y + FlxU.roundingError)) + FlxU.floor((FlxG.scroll.y * scrollFactor.y))) - offset.y); return (_arg1); } public function get frame():uint{ return (_caf); } override public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{ _arg1 = (_arg1 - FlxU.floor(FlxG.scroll.x)); _arg2 = (_arg2 - FlxU.floor(FlxG.scroll.y)); getScreenXY(_point); if (_arg3){ return (_framePixels.hitTest(new Point(0, 0), 0xFF, new Point((_arg1 - _point.x), (_arg2 - _point.y)))); }; if ((((((((_arg1 <= _point.x)) || ((_arg1 >= (_point.x + frameWidth))))) || ((_arg2 <= _point.y)))) || ((_arg2 >= (_point.y + frameHeight))))){ return (false); }; return (true); } override public function render():void{ renderSprite(); } protected function drawBounds():void{ var _local1:uint = getBoundingColor(); _bbb.fillRect(_flashRect, 0); var _local2:uint = _flashRect.width; var _local3:uint = _flashRect.height; _flashRect.width = width; _flashRect.height = height; _flashRect.x = int(offset.x); _flashRect.y = int(offset.y); _bbb.fillRect(_flashRect, _local1); _flashRect.width = (_flashRect.width - 2); _flashRect.height = (_flashRect.height - 2); _flashRect.x++; _flashRect.y++; _bbb.fillRect(_flashRect, 0); _flashRect.width = _local2; _flashRect.height = _local3; _flashRect.x = (_flashRect.y = 0); _framePixels.copyPixels(_bbb, _flashRect, _flashPointZero, null, null, true); } protected function calcFrame():void{ var _local1:uint = (_caf * frameWidth); var _local2:uint; var _local3:uint = (_flipped) ? _flipped : _pixels.width; if (_local1 >= _local3){ _local2 = (uint((_local1 / _local3)) * frameHeight); _local1 = (_local1 % _local3); }; if (((_flipped) && ((_facing == LEFT)))){ _local1 = (((_flipped << 1) - _local1) - frameWidth); }; _flashRect.x = _local1; _flashRect.y = _local2; _framePixels.copyPixels(_pixels, _flashRect, _flashPointZero); _flashRect.x = (_flashRect.y = 0); if (_ct != null){ _framePixels.colorTransform(_flashRect, _ct); }; if (FlxG.showBounds){ drawBounds(); }; if (_callback != null){ _callback(_curAnim.name, _curFrame, _caf); }; } function unsafeBind(_arg1:BitmapData):void{ _pixels = (_framePixels = _arg1); } public function loadGraphic(_arg1:Class, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:uint=0, _arg5:uint=0, _arg6:Boolean=false):FlxSprite{ _bakedRotation = 0; _pixels = FlxG.addBitmap(_arg1, _arg3, _arg6); if (_arg3){ _flipped = (_pixels.width >> 1); } else { _flipped = 0; }; if (_arg4 == 0){ if (_arg2){ _arg4 = _pixels.height; } else { if (_flipped > 0){ _arg4 = (_pixels.width / 2); } else { _arg4 = _pixels.width; }; }; }; width = (frameWidth = _arg4); if (_arg5 == 0){ if (_arg2){ _arg5 = width; } else { _arg5 = _pixels.height; }; }; height = (frameHeight = _arg5); resetHelpers(); return (this); } public function get pixels():BitmapData{ return (_pixels); } public function set facing(_arg1:uint):void{ var _local2 = !((_facing == _arg1)); _facing = _arg1; if (_local2){ calcFrame(); }; } public function resetHelpers():void{ _flashRect.x = 0; _flashRect.y = 0; _flashRect.width = frameWidth; _flashRect.height = frameHeight; _flashRect2.x = 0; _flashRect2.y = 0; _flashRect2.width = _pixels.width; _flashRect2.height = _pixels.height; if ((((((_framePixels == null)) || (!((_framePixels.width == width))))) || (!((_framePixels.height == height))))){ _framePixels = new BitmapData(width, height); }; if ((((((_bbb == null)) || (!((_bbb.width == width))))) || (!((_bbb.height == height))))){ _bbb = new BitmapData(width, height); }; origin.x = (frameWidth / 2); origin.y = (frameHeight / 2); _framePixels.copyPixels(_pixels, _flashRect, _flashPointZero); if (FlxG.showBounds){ drawBounds(); }; _caf = 0; refreshHulls(); } public function addAnimation(_arg1:String, _arg2:Array, _arg3:Number=0, _arg4:Boolean=true):void{ _animations.push(new FlxAnim(_arg1, _arg2, _arg3, _arg4)); } public function set alpha(_arg1:Number):void{ if (_arg1 > 1){ _arg1 = 1; }; if (_arg1 < 0){ _arg1 = 0; }; if (_arg1 == _alpha){ return; }; _alpha = _arg1; if (((!((_alpha == 1))) || (!((_color == 0xFFFFFF))))){ _ct = new ColorTransform((Number((_color >> 16)) / 0xFF), (Number(((_color >> 8) & 0xFF)) / 0xFF), (Number((_color & 0xFF)) / 0xFF), _alpha); } else { _ct = null; }; calcFrame(); } protected function updateAnimation():void{ var _local1:uint; var _local2:int; if (_bakedRotation){ _local1 = _caf; _local2 = (angle % 360); if (_local2 < 0){ _local2 = (_local2 + 360); }; _caf = (_local2 / _bakedRotation); if (_local1 != _caf){ calcFrame(); }; 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++; }; _caf = _curAnim.frames[_curFrame]; calcFrame(); }; }; } public function draw(_arg1:FlxSprite, _arg2:int=0, _arg3:int=0):void{ var _local4:BitmapData = _arg1._framePixels; if ((((((((((_arg1.angle == 0)) || ((_arg1._bakedRotation > 0)))) && ((_arg1.scale.x == 1)))) && ((_arg1.scale.y == 1)))) && ((_arg1.blend == null)))){ _flashPoint.x = _arg2; _flashPoint.y = _arg3; _flashRect2.width = _local4.width; _flashRect2.height = _local4.height; _pixels.copyPixels(_local4, _flashRect2, _flashPoint, null, null, true); _flashRect2.width = _pixels.width; _flashRect2.height = _pixels.height; calcFrame(); return; }; _mtx.identity(); _mtx.translate(-(_arg1.origin.x), -(_arg1.origin.y)); _mtx.scale(_arg1.scale.x, _arg1.scale.y); if (_arg1.angle != 0){ _mtx.rotate(((Math.PI * 2) * (_arg1.angle / 360))); }; _mtx.translate((_arg2 + _arg1.origin.x), (_arg3 + _arg1.origin.y)); _pixels.draw(_local4, _mtx, null, _arg1.blend, null, _arg1.antialiasing); calcFrame(); } public function loadRotatedGraphic(_arg1:Class, _arg2:uint=16, _arg3:int=-1, _arg4:Boolean=false, _arg5:Boolean=false):FlxSprite{ var _local12:BitmapData; var _local13:uint; var _local14:uint; var _local15:uint; var _local16:uint; var _local17:uint; var _local18:Number; var _local19:uint; var _local20:uint; var _local21:uint; var _local22:uint; var _local6:uint = Math.sqrt(_arg2); var _local7:BitmapData = FlxG.addBitmap(_arg1); if (_arg3 >= 0){ _local12 = _local7; _local7 = new BitmapData(_local12.height, _local12.height); _local13 = (_arg3 * _local7.width); _local14 = 0; _local15 = _local12.width; if (_local13 >= _local15){ _local14 = (uint((_local13 / _local15)) * _local7.height); _local13 = (_local13 % _local15); }; _flashRect.x = _local13; _flashRect.y = _local14; _flashRect.width = _local7.width; _flashRect.height = _local7.height; _local7.copyPixels(_local12, _flashRect, _flashPointZero); }; var _local8:uint = _local7.width; if (_local7.height > _local8){ _local8 = _local7.height; }; if (_arg5){ _local8 = (_local8 * 1.5); }; var _local9:uint = FlxU.ceil((_arg2 / _local6)); width = (_local8 * _local9); height = (_local8 * _local6); var _local10:String = ((((((String(_arg1) + ":") + _arg3) + ":") + width) + "x") + height); var _local11:Boolean = FlxG.checkBitmapCache(_local10); _pixels = FlxG.createBitmap(width, height, 0, true, _local10); width = (frameWidth = _pixels.width); height = (frameHeight = _pixels.height); _bakedRotation = (360 / _arg2); if (!_local11){ _local18 = 0; _local19 = (_local7.width / 2); _local20 = (_local7.height / 2); _local21 = (_local8 / 2); _local22 = (_local8 / 2); _local16 = 0; while (_local16 < _local6) { _local17 = 0; while (_local17 < _local9) { _mtx.identity(); _mtx.translate(-(_local19), -(_local20)); _mtx.rotate(((Math.PI * 2) * (_local18 / 360))); _mtx.translate(((_local8 * _local17) + _local21), _local22); _local18 = (_local18 + _bakedRotation); _pixels.draw(_local7, _mtx, null, null, null, _arg4); _local17++; }; _local22 = (_local22 + _local8); _local16++; }; }; frameWidth = (frameHeight = (width = (height = _local8))); resetHelpers(); return (this); } override public function update():void{ updateMotion(); updateAnimation(); updateFlickering(); } public function setAnimationFrame(_arg1:uint):void{ _caf = (_curFrame = _arg1); _frameTimer = 0; calcFrame(); } public function set color(_arg1:uint):void{ _arg1 = (_arg1 & 0xFFFFFF); if (_color == _arg1){ return; }; _color = _arg1; if (((!((_alpha == 1))) || (!((_color == 0xFFFFFF))))){ _ct = new ColorTransform((Number((_color >> 16)) / 0xFF), (Number(((_color >> 8) & 0xFF)) / 0xFF), (Number((_color & 0xFF)) / 0xFF), _alpha); } else { _ct = null; }; calcFrame(); } public function onEmit():void{ } public function createGraphic(_arg1:uint, _arg2:uint, _arg3:uint=4294967295, _arg4:Boolean=false, _arg5:String=null):FlxSprite{ _bakedRotation = 0; _pixels = FlxG.createBitmap(_arg1, _arg2, _arg3, _arg4, _arg5); width = (frameWidth = _pixels.width); height = (frameHeight = _pixels.height); resetHelpers(); return (this); } override public function set solid(_arg1:Boolean):void{ var _local2:Boolean = _solid; _solid = _arg1; if (((!((_local2 == _solid))) && (FlxG.showBounds))){ calcFrame(); }; } public function addAnimationCallback(_arg1:Function):void{ _callback = _arg1; } public function set pixels(_arg1:BitmapData):void{ _pixels = _arg1; width = (frameWidth = _pixels.width); height = (frameHeight = _pixels.height); resetHelpers(); } public function get alpha():Number{ return (_alpha); } public function get facing():uint{ return (_facing); } public function set frame(_arg1:uint):void{ _curAnim = null; _caf = _arg1; calcFrame(); } public function play(_arg1:String, _arg2:Boolean=false):void{ if (((((!(_arg2)) && (!((_curAnim == null))))) && ((_arg1 == _curAnim.name)))){ return; }; _curFrame = 0; _caf = 0; _frameTimer = 0; var _local3:uint = _animations.length; var _local4:uint; while (_local4 < _local3) { if (_animations[_local4].name == _arg1){ _curAnim = _animations[_local4]; if (_curAnim.delay <= 0){ finished = true; } else { finished = false; }; _caf = _curAnim.frames[_curFrame]; calcFrame(); return; }; _local4++; }; } public function randomFrame():void{ _curAnim = null; _caf = int((FlxU.random() * (_pixels.width / frameWidth))); calcFrame(); } } }//package org.flixel
Section 471
//FlxState (org.flixel.FlxState) package org.flixel { import flash.display.*; public class FlxState extends Sprite { public var defaultGroup:FlxGroup; public static var screen:FlxSprite; public static var bgColor:uint; public function FlxState(){ defaultGroup = new FlxGroup(); if (screen == null){ screen = new FlxSprite(); screen.createGraphic(FlxG.width, FlxG.height, 0, true); screen.origin.x = (screen.origin.y = 0); screen.antialiasing = true; screen.exists = false; screen.solid = false; screen.fixed = true; }; } public function add(_arg1:FlxObject):FlxObject{ return (defaultGroup.add(_arg1)); } public function preProcess():void{ screen.fill(bgColor); } public function collide():void{ FlxU.collide(defaultGroup, defaultGroup); } public function render():void{ defaultGroup.render(); } public function update():void{ defaultGroup.update(); } public function destroy():void{ defaultGroup.destroy(); } public function create():void{ } public function postProcess():void{ } } }//package org.flixel
Section 472
//FlxText (org.flixel.FlxText) package org.flixel { import flash.display.*; import flash.text.*; public class FlxText extends FlxSprite { protected var _tf:TextField; protected var _regen:Boolean; protected var _shadow:uint; public function FlxText(_arg1:Number, _arg2:Number, _arg3:uint, _arg4:String=null, _arg5:Boolean=true){ super(_arg1, _arg2); createGraphic(_arg3, 1, 0); if (_arg4 == null){ _arg4 = ""; }; _tf = new TextField(); _tf.width = _arg3; _tf.embedFonts = _arg5; _tf.selectable = false; _tf.sharpness = 100; _tf.multiline = true; _tf.wordWrap = true; _tf.text = _arg4; var _local6:TextFormat = new TextFormat("system", 8, 0xFFFFFF); _tf.defaultTextFormat = _local6; _tf.setTextFormat(_local6); if (_arg4.length <= 0){ _tf.height = 1; } else { _tf.height = 10; }; _regen = true; _shadow = 0; solid = false; calcFrame(); } public function get shadow():uint{ return (_shadow); } public function get size():Number{ return ((_tf.defaultTextFormat.size as Number)); } override public function get color():uint{ return ((_tf.defaultTextFormat.color as uint)); } override public function set color(_arg1:uint):void{ var _local2:TextFormat = dtfCopy(); _local2.color = _arg1; _tf.defaultTextFormat = _local2; _tf.setTextFormat(_local2); _regen = true; calcFrame(); } public function set shadow(_arg1:uint):void{ _shadow = _arg1; calcFrame(); } public function set size(_arg1:Number):void{ var _local2:TextFormat = dtfCopy(); _local2.size = _arg1; _tf.defaultTextFormat = _local2; _tf.setTextFormat(_local2); _regen = true; calcFrame(); } public function get alignment():String{ return (_tf.defaultTextFormat.align); } protected function dtfCopy():TextFormat{ var _local1:TextFormat = _tf.defaultTextFormat; return (new TextFormat(_local1.font, _local1.size, _local1.color, _local1.bold, _local1.italic, _local1.underline, _local1.url, _local1.target, _local1.align)); } public function get text():String{ return (_tf.text); } public function get font():String{ return (_tf.defaultTextFormat.font); } public function set alignment(_arg1:String):void{ var _local2:TextFormat = dtfCopy(); _local2.align = _arg1; _tf.defaultTextFormat = _local2; _tf.setTextFormat(_local2); calcFrame(); } public function set font(_arg1:String):void{ var _local2:TextFormat = dtfCopy(); _local2.font = _arg1; _tf.defaultTextFormat = _local2; _tf.setTextFormat(_local2); _regen = true; calcFrame(); } override protected function calcFrame():void{ var _local1:uint; var _local2:uint; var _local3:TextFormat; var _local4:TextFormat; if (_regen){ _local1 = _tf.numLines; height = 0; _local2 = 0; while (_local2 < _local1) { height = (height + _tf.getLineMetrics(_local2).height); _local2++; }; height = (height + 4); _pixels = new BitmapData(width, height, true, 0); _bbb = new BitmapData(width, height, true, 0); frameHeight = height; _tf.height = (height * 1.2); _flashRect.x = 0; _flashRect.y = 0; _flashRect.width = width; _flashRect.height = height; _regen = false; } else { _pixels.fillRect(_flashRect, 0); }; if (((((!((_tf == null))) && (!((_tf.text == null))))) && ((_tf.text.length > 0)))){ _local3 = _tf.defaultTextFormat; _local4 = _local3; _mtx.identity(); if ((((_local3.align == "center")) && ((_tf.numLines == 1)))){ _local4 = new TextFormat(_local3.font, _local3.size, _local3.color, null, null, null, null, null, "left"); _tf.setTextFormat(_local4); _mtx.translate(Math.floor(((width - _tf.getLineMetrics(0).width) / 2)), 0); }; if (_shadow > 0){ _tf.setTextFormat(new TextFormat(_local4.font, _local4.size, _shadow, null, null, null, null, null, _local4.align)); _mtx.translate(1, 1); _pixels.draw(_tf, _mtx, _ct); _mtx.translate(-1, -1); _tf.setTextFormat(new TextFormat(_local4.font, _local4.size, _local4.color, null, null, null, null, null, _local4.align)); }; _pixels.draw(_tf, _mtx, _ct); _tf.setTextFormat(new TextFormat(_local3.font, _local3.size, _local3.color, null, null, null, null, null, _local3.align)); }; if ((((((_framePixels == null)) || (!((_framePixels.width == _pixels.width))))) || (!((_framePixels.height == _pixels.height))))){ _framePixels = new BitmapData(_pixels.width, _pixels.height, true, 0); }; _framePixels.copyPixels(_pixels, _flashRect, _flashPointZero); if (FlxG.showBounds){ drawBounds(); }; if (solid){ refreshHulls(); }; } public function setFormat(_arg1:String=null, _arg2:Number=8, _arg3:uint=0xFFFFFF, _arg4:String=null, _arg5:uint=0):FlxText{ if (_arg1 == null){ _arg1 = ""; }; var _local6:TextFormat = dtfCopy(); _local6.font = _arg1; _local6.size = _arg2; _local6.color = _arg3; _local6.align = _arg4; _tf.defaultTextFormat = _local6; _tf.setTextFormat(_local6); _shadow = _arg5; _regen = true; calcFrame(); return (this); } public function set text(_arg1:String):void{ var _local2:String = _tf.text; _tf.text = _arg1; if (_tf.text != _local2){ _regen = true; calcFrame(); }; } public function changeWidth(_arg1:int):void{ this._tf.width = (this.width = _arg1); this._regen = true; calcFrame(); } } }//package org.flixel
Section 473
//FlxTilemap (org.flixel.FlxTilemap) package org.flixel { import flash.display.*; import flash.geom.*; public class FlxTilemap extends FlxObject { protected var _bbKey:String; protected var _screenRows:uint; protected var _data:Array; protected var _block:FlxObject; protected var _rects:Array; protected var _tileHeight:uint; protected var alphaMap:BitmapData;// = null public var totalTiles:uint; protected var _screenCols:uint; public var auto:uint; public var collideIndex:uint; protected var _tileWidth:uint; public var widthInTiles:uint; public var heightInTiles:uint; protected var _pixels:BitmapData; protected var _callbacks:Array; public var alpha:Number;// = 1 protected var _bbPixels:BitmapData; public var drawIndex:uint; public var startingIndex:uint; protected var _flashRect:Rectangle; public static const ALT:uint = 2; public static const AUTO:uint = 1; public static const OFF:uint = 0; public static var ImgAutoAlt:Class = FlxTilemap_ImgAutoAlt; public static var ImgAuto:Class = FlxTilemap_ImgAuto; public function FlxTilemap(){ auto = OFF; collideIndex = 1; startingIndex = 0; drawIndex = 1; widthInTiles = 0; heightInTiles = 0; totalTiles = 0; _data = null; _tileWidth = 0; _tileHeight = 0; _rects = null; _pixels = null; _block = new FlxObject(); _block.width = (_block.height = 0); _block.fixed = true; _callbacks = new Array(); fixed = true; } override public function overlaps(_arg1:FlxObject):Boolean{ var _local2:uint; var _local3:uint; var _local4:uint; var _local5:uint; var _local6:Array = new Array(); var _local7:uint = Math.floor(((_arg1.x - x) / _tileWidth)); var _local8:uint = Math.floor(((_arg1.y - y) / _tileHeight)); var _local9:uint = (Math.ceil((_arg1.width / _tileWidth)) + 1); var _local10:uint = (Math.ceil((_arg1.height / _tileHeight)) + 1); var _local11:uint; while (_local11 < _local10) { if (_local11 >= heightInTiles){ break; }; _local3 = (((_local8 + _local11) * widthInTiles) + _local7); _local2 = 0; while (_local2 < _local9) { if (_local2 >= widthInTiles){ break; }; _local5 = (_data[(_local3 + _local2)] as uint); if (_local5 >= collideIndex){ _local6.push({x:(x + ((_local7 + _local2) * _tileWidth)), y:(y + ((_local8 + _local11) * _tileHeight)), data:_local5}); }; _local2++; }; _local11++; }; var _local12:uint = _local6.length; var _local13:Boolean; _local4 = 0; while (_local4 < _local12) { _block.x = _local6[_local4].x; _block.y = _local6[_local4].y; if (_block.overlaps(_arg1)){ return (true); }; _local4++; }; return (false); } public function get TileHeight():uint{ return (this._tileHeight); } public function loadMap(_arg1:String, _arg2:Class, _arg3:uint=0, _arg4:uint=0):FlxTilemap{ var _local5:uint; var _local6:Array; var _local9:uint; var _local7:Array = _arg1.split("\n"); heightInTiles = _local7.length; _data = new Array(); 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++; }; totalTiles = (widthInTiles * heightInTiles); if (auto > OFF){ collideIndex = (startingIndex = (drawIndex = 1)); _local9 = 0; while (_local9 < totalTiles) { autoTile(_local9); _local9++; }; }; _pixels = FlxG.addBitmap(_arg2); _tileWidth = _arg3; if (_tileWidth == 0){ _tileWidth = _pixels.height; }; _tileHeight = _arg4; if (_tileHeight == 0){ _tileHeight = _tileWidth; }; _block.width = _tileWidth; _block.height = _tileHeight; width = (widthInTiles * _tileWidth); height = (heightInTiles * _tileHeight); _rects = new Array(totalTiles); _local9 = 0; while (_local9 < totalTiles) { updateTile(_local9); _local9++; }; _screenRows = (Math.ceil((FlxG.height / _tileHeight)) + 1); if (_screenRows > heightInTiles){ _screenRows = heightInTiles; }; _screenCols = (Math.ceil((FlxG.width / _tileWidth)) + 1); if (_screenCols > widthInTiles){ _screenCols = widthInTiles; }; _bbKey = String(_arg2); generateBoundingTiles(); refreshHulls(); return (this); } protected function updateTile(_arg1:uint):void{ if (_data[_arg1] < drawIndex){ _rects[_arg1] = null; return; }; var _local2:uint = ((_data[_arg1] - startingIndex) * _tileWidth); var _local3:uint; if (_local2 >= _pixels.width){ _local3 = (uint((_local2 / _pixels.width)) * _tileHeight); _local2 = (_local2 % _pixels.width); }; _rects[_arg1] = new Rectangle(_local2, _local3, _tileWidth, _tileHeight); } override public function preCollide(_arg1:FlxObject, _arg2:Boolean):Boolean{ var _local3:uint; var _local4:uint; var _local5:uint; var _local6:uint; var _local7:int = FlxU.floor(((_arg1.x - x) / _tileWidth)); var _local8:int = FlxU.floor(((_arg1.y - y) / _tileHeight)); var _local9:uint = ((_local7 + FlxU.ceil((_arg1.width / _tileWidth))) + 1); var _local10:uint = ((_local8 + FlxU.ceil((_arg1.height / _tileHeight))) + 1); if (_local7 < 0){ _local7 = 0; }; if (_local8 < 0){ _local8 = 0; }; if (_local9 > widthInTiles){ _local9 = widthInTiles; }; if (_local10 > heightInTiles){ _local10 = heightInTiles; }; _local5 = (_local8 * widthInTiles); _local3 = _local8; while (_local3 < _local10) { _local4 = _local7; while (_local4 < _local9) { if ((_data[(_local5 + _local4)] as uint) >= collideIndex){ var _temp1 = _local6; _local6 = (_local6 + 1); var _local11 = _temp1; colOffsets[_local11] = new FlxPoint((x + (_local4 * _tileWidth)), (y + (_local3 * _tileHeight))); }; _local4++; }; _local5 = (_local5 + widthInTiles); _local3++; }; if (colOffsets.length != _local6){ colOffsets.length = _local6; }; return (true); } override public function render():void{ renderTilemap(); } public function get TileWidth():uint{ return (this._tileWidth); } public function getTile(_arg1:uint, _arg2:uint):uint{ return (getTileByIndex(((_arg2 * widthInTiles) + _arg1))); } public function ray(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:FlxPoint, _arg6:Number=1):Boolean{ var _local16:uint; var _local17:uint; var _local19:Number; var _local20:Number; var _local21:Number; var _local22:Number; var _local23:Number; var _local7:Number = _tileWidth; if (_tileHeight < _tileWidth){ _local7 = _tileHeight; }; _local7 = (_local7 / _arg6); var _local8:Number = (_arg3 - _arg1); var _local9:Number = (_arg4 - _arg2); var _local10:Number = Math.sqrt(((_local8 * _local8) + (_local9 * _local9))); var _local11:uint = Math.ceil((_local10 / _local7)); var _local12:Number = (_local8 / _local11); var _local13:Number = (_local9 / _local11); var _local14:Number = (_arg1 - _local12); var _local15:Number = (_arg2 - _local13); var _local18:uint; while (_local18 < _local11) { _local14 = (_local14 + _local12); _local15 = (_local15 + _local13); if ((((((((_local14 < 0)) || ((_local14 > width)))) || ((_local15 < 0)))) || ((_local15 > height)))){ } else { _local16 = (_local14 / _tileWidth); _local17 = (_local15 / _tileHeight); if ((_data[((_local17 * widthInTiles) + _local16)] as uint) >= collideIndex){ _local16 = (_local16 * _tileWidth); _local17 = (_local17 * _tileHeight); _local19 = 0; _local20 = 0; _local22 = (_local14 - _local12); _local23 = (_local15 - _local13); _local21 = _local16; if (_local8 < 0){ _local21 = (_local21 + _tileWidth); }; _local19 = _local21; _local20 = (_local23 + (_local13 * ((_local21 - _local22) / _local12))); if ((((_local20 > _local17)) && ((_local20 < (_local17 + _tileHeight))))){ if (_arg5 == null){ _arg5 = new FlxPoint(); }; _arg5.x = _local19; _arg5.y = _local20; return (true); }; _local21 = _local17; if (_local9 < 0){ _local21 = (_local21 + _tileHeight); }; _local19 = (_local22 + (_local12 * ((_local21 - _local23) / _local13))); _local20 = _local21; if ((((_local19 > _local16)) && ((_local19 < (_local16 + _tileWidth))))){ if (_arg5 == null){ _arg5 = new FlxPoint(); }; _arg5.x = _local19; _arg5.y = _local20; return (true); }; return (false); }; }; _local18++; }; return (false); } override public function refreshHulls():void{ colHullX.x = 0; colHullX.y = 0; colHullX.width = _tileWidth; colHullX.height = _tileHeight; colHullY.x = 0; colHullY.y = 0; colHullY.width = _tileWidth; colHullY.height = _tileHeight; } public function setTile(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Boolean=true):Boolean{ if ((((_arg1 >= widthInTiles)) || ((_arg2 >= heightInTiles)))){ return (false); }; return (setTileByIndex(((_arg2 * widthInTiles) + _arg1), _arg3, _arg4)); } public function follow(_arg1:int=0):void{ FlxG.followBounds((x + (_arg1 * _tileWidth)), (y + (_arg1 * _tileHeight)), (width - (_arg1 * _tileWidth)), (height - (_arg1 * _tileHeight))); } public function setCallback(_arg1:uint, _arg2:Function, _arg3:uint=1):void{ FlxG.log("FlxTilemap.setCallback() has been temporarily deprecated, sorry!"); if (_arg3 <= 0){ return; }; var _local4:uint = _arg1; while (_local4 < (_arg1 + _arg3)) { _callbacks[_local4] = _arg2; _local4++; }; } protected function generateBoundingTiles():void{ var _local4:Boolean; var _local5:BitmapData; var _local6:BitmapData; var _local7:uint; var _local8:uint; var _local9:uint; if ((((_bbKey == null)) || ((_bbKey.length <= 0)))){ return; }; var _local1:uint = getBoundingColor(); var _local2:String = ((_bbKey + ":BBTILES") + _local1); var _local3:Boolean = FlxG.checkBitmapCache(_local2); _bbPixels = FlxG.createBitmap(_pixels.width, _pixels.height, 0, true, _local2); if (!_local3){ _flashRect = new Rectangle(); _flashRect.width = _pixels.width; _flashRect.height = _pixels.height; _flashPoint.x = 0; _flashPoint.y = 0; _bbPixels.copyPixels(_pixels, _flashRect, _flashPoint); _flashRect.width = _tileWidth; _flashRect.height = _tileHeight; _local4 = _solid; _solid = false; _local1 = getBoundingColor(); _local2 = (((("BBTILESTAMP" + _tileWidth) + "X") + _tileHeight) + _local1); _local3 = FlxG.checkBitmapCache(_local2); _local5 = FlxG.createBitmap(_tileWidth, _tileHeight, 0, true, _local2); if (!_local3){ _local5.fillRect(_flashRect, _local1); _flashRect.x = (_flashRect.y = 1); _flashRect.width = (_flashRect.width - 2); _flashRect.height = (_flashRect.height - 2); _local5.fillRect(_flashRect, 0); _flashRect.x = (_flashRect.y = 0); _flashRect.width = _tileWidth; _flashRect.height = _tileHeight; }; _solid = _local4; _local1 = getBoundingColor(); _local2 = (((("BBTILESTAMP" + _tileWidth) + "X") + _tileHeight) + _local1); _local3 = FlxG.checkBitmapCache(_local2); _local6 = FlxG.createBitmap(_tileWidth, _tileHeight, 0, true, _local2); if (!_local3){ _local6.fillRect(_flashRect, _local1); _flashRect.x = (_flashRect.y = 1); _flashRect.width = (_flashRect.width - 2); _flashRect.height = (_flashRect.height - 2); _local6.fillRect(_flashRect, 0); _flashRect.x = (_flashRect.y = 0); _flashRect.width = _tileWidth; _flashRect.height = _tileHeight; }; _local9 = 0; _local7 = 0; while (_local7 < _bbPixels.height) { _local8 = 0; while (_local8 < _bbPixels.width) { _flashPoint.x = _local8; _flashPoint.y = _local7; var _temp1 = _local9; _local9 = (_local9 + 1); if (_temp1 < collideIndex){ _bbPixels.copyPixels(_local5, _flashRect, _flashPoint, null, null, true); } else { _bbPixels.copyPixels(_local6, _flashRect, _flashPoint, null, null, true); }; _local8 = (_local8 + _tileWidth); }; _local7 = (_local7 + _tileHeight); }; }; } override public function set solid(_arg1:Boolean):void{ var _local2:Boolean = _solid; _solid = _arg1; if (_local2 != _solid){ generateBoundingTiles(); }; } override public function set fixed(_arg1:Boolean):void{ var _local2:Boolean = _fixed; _fixed = _arg1; if (_local2 != _fixed){ generateBoundingTiles(); }; } override public function overlapsPoint(_arg1:Number, _arg2:Number, _arg3:Boolean=false):Boolean{ var _local4:int; var _local5:int; _local4 = (_arg1 / this.TileWidth); _local5 = (_arg2 / this.TileWidth); if (this.getTileAt(_arg1, _arg2) >= this.collideIndex){ return (true); }; return (false); } public function getTileAt(_arg1:uint, _arg2:uint):uint{ return (this.getTile(Math.floor((_arg1 / this._tileWidth)), Math.floor((_arg2 / this._tileHeight)))); } protected function renderTilemap():void{ var _local1:Point; var _local2:BitmapData; var _local7:uint; var _local8:uint; var _local10:int; var _local11:int; var _local12:int; var _local13:int; var _local14:int; var _local15:int; var _local16:int; if (this.alpha == 0){ return; }; if (this.alpha != 1){ if ((this.TileWidth * 0xFF) > 2880){ _local12 = FlxU.floor((2880 / this.TileWidth)); _local11 = (_local12 * this.TileWidth); _local13 = (FlxU.ceil((0xFF / _local12)) * this.TileHeight); } else { _local11 = (0xFF * this.TileWidth); _local12 = 0xFF; _local13 = this.TileHeight; }; if (this.alphaMap == null){ this.alphaMap = new BitmapData(_local11, _local13, true, 0); _local15 = 0; _local14 = _local15; _local10 = 0; while (_local10 <= 0xFF) { this.alphaMap.fillRect(new Rectangle(_local14, _local15, this.TileWidth, this.TileHeight), FlxU.getColor(_local10, _local10, _local10, _local10)); _local14 = (_local14 + this.TileWidth); if (_local14 >= _local11){ _local14 = 0; _local15 = (_local15 + this.TileHeight); }; _local10++; }; }; _local16 = FlxU.floor((this.alpha * 0xFF)); _local16 = ((_local16 < 2)) ? 2 : _local16; _local15 = FlxU.floor((_local16 / _local12)); _local14 = (_local16 - (_local15 * _local12)); _local1 = new Point((_local14 * this.TileWidth), (_local15 * this.TileHeight)); }; if (FlxG.showBounds){ _local2 = _bbPixels; } else { _local2 = _pixels; }; getScreenXY(_point); _flashPoint.x = _point.x; _flashPoint.y = _point.y; var _local3:int = Math.floor((-(_flashPoint.x) / _tileWidth)); var _local4:int = Math.floor((-(_flashPoint.y) / _tileHeight)); if (_local3 < 0){ _local3 = 0; }; if (_local3 > (widthInTiles - _screenCols)){ _local3 = (widthInTiles - _screenCols); }; if (_local4 < 0){ _local4 = 0; }; if (_local4 > (heightInTiles - _screenRows)){ _local4 = (heightInTiles - _screenRows); }; var _local5:int = ((_local4 * widthInTiles) + _local3); _flashPoint.x = (_flashPoint.x + (_local3 * _tileWidth)); _flashPoint.y = (_flashPoint.y + (_local4 * _tileHeight)); var _local6:int = _flashPoint.x; var _local9:uint; while (_local9 < _screenRows) { _local8 = _local5; _local7 = 0; while (_local7 < _screenCols) { var _temp1 = _local8; _local8 = (_local8 + 1); _flashRect = (_rects[_temp1] as Rectangle); if (_flashRect != null){ if (this.alpha != 1){ FlxG.buffer.copyPixels(_local2, _flashRect, _flashPoint, this.alphaMap, _local1, true); } else { FlxG.buffer.copyPixels(_local2, _flashRect, _flashPoint, null, null, true); }; }; _flashPoint.x = (_flashPoint.x + _tileWidth); _local7++; }; _local5 = (_local5 + widthInTiles); _flashPoint.x = _local6; _flashPoint.y = (_flashPoint.y + _tileHeight); _local9++; }; } public function setTileByIndex(_arg1:uint, _arg2:uint, _arg3:Boolean=true):Boolean{ var _local5:uint; if (_arg1 >= _data.length){ return (false); }; var _local4:Boolean; _data[_arg1] = _arg2; if (!_arg3){ return (_local4); }; if (auto == OFF){ updateTile(_arg1); return (_local4); }; var _local6:int = (int((_arg1 / widthInTiles)) - 1); var _local7:int = (_local6 + 3); var _local8:int = ((_arg1 % widthInTiles) - 1); var _local9:int = (_local8 + 3); while (_local6 < _local7) { _local8 = (_local9 - 3); while (_local8 < _local9) { if ((((((((_local6 >= 0)) && ((_local6 < heightInTiles)))) && ((_local8 >= 0)))) && ((_local8 < widthInTiles)))){ _local5 = ((_local6 * widthInTiles) + _local8); autoTile(_local5); updateTile(_local5); }; _local8++; }; _local6++; }; return (_local4); } protected function autoTile(_arg1:uint):void{ if (_data[_arg1] == 0){ return; }; _data[_arg1] = 0; if (((((_arg1 - widthInTiles) < 0)) || ((_data[(_arg1 - widthInTiles)] > 0)))){ _data[_arg1] = (_data[_arg1] + 1); }; if (((((_arg1 % widthInTiles) >= (widthInTiles - 1))) || ((_data[(_arg1 + 1)] > 0)))){ _data[_arg1] = (_data[_arg1] + 2); }; if (((((_arg1 + widthInTiles) >= totalTiles)) || ((_data[(_arg1 + widthInTiles)] > 0)))){ _data[_arg1] = (_data[_arg1] + 4); }; if (((((_arg1 % widthInTiles) <= 0)) || ((_data[(_arg1 - 1)] > 0)))){ _data[_arg1] = (_data[_arg1] + 8); }; if ((((auto == ALT)) && ((_data[_arg1] == 15)))){ if (((((((_arg1 % widthInTiles) > 0)) && (((_arg1 + widthInTiles) < totalTiles)))) && ((_data[((_arg1 + widthInTiles) - 1)] <= 0)))){ _data[_arg1] = 1; }; if (((((((_arg1 % widthInTiles) > 0)) && (((_arg1 - widthInTiles) >= 0)))) && ((_data[((_arg1 - widthInTiles) - 1)] <= 0)))){ _data[_arg1] = 2; }; if (((((((_arg1 % widthInTiles) < widthInTiles)) && (((_arg1 - widthInTiles) >= 0)))) && ((_data[((_arg1 - widthInTiles) + 1)] <= 0)))){ _data[_arg1] = 4; }; if (((((((_arg1 % widthInTiles) < widthInTiles)) && (((_arg1 + widthInTiles) < totalTiles)))) && ((_data[((_arg1 + widthInTiles) + 1)] <= 0)))){ _data[_arg1] = 8; }; }; _data[_arg1] = (_data[_arg1] + 1); } public function getTileByIndex(_arg1:uint):uint{ return ((_data[_arg1] as uint)); } public static function arrayToCSV(_arg1:Array, _arg2:int):String{ var _local3:uint; var _local4:uint; var _local5:String; var _local6:int = (_arg1.length / _arg2); _local3 = 0; while (_local3 < _local6) { _local4 = 0; while (_local4 < _arg2) { if (_local4 == 0){ if (_local3 == 0){ _local5 = (_local5 + _arg1[0]); } else { _local5 = (_local5 + ("\n" + _arg1[(_local3 * _arg2)])); }; } else { _local5 = (_local5 + (", " + _arg1[((_local3 * _arg2) + _local4)])); }; _local4++; }; _local3++; }; return (_local5); } public static function pngToCSV(_arg1:Class, _arg2:Boolean=false, _arg3:uint=1):String{ var _local4:Bitmap; var _local6:uint; var _local7:uint; var _local8:uint; var _local9:String; var _local12:Bitmap; var _local13:Matrix; if (_arg3 <= 1){ _local4 = new (_arg1); } else { _local12 = new (_arg1); _local4 = new Bitmap(new BitmapData((_local12.width * _arg3), (_local12.height * _arg3))); _local13 = new Matrix(); _local13.scale(_arg3, _arg3); _local4.bitmapData.draw(_local12, _local13); }; var _local5:BitmapData = _local4.bitmapData; var _local10:uint = _local4.width; var _local11:uint = _local4.height; _local6 = 0; while (_local6 < _local11) { _local7 = 0; while (_local7 < _local10) { _local8 = _local5.getPixel(_local7, _local6); if (((((_arg2) && ((_local8 > 0)))) || (((!(_arg2)) && ((_local8 == 0)))))){ _local8 = 1; } else { _local8 = 0; }; if (_local7 == 0){ if (_local6 == 0){ _local9 = (_local9 + _local8); } else { _local9 = (_local9 + ("\n" + _local8)); }; } else { _local9 = (_local9 + (", " + _local8)); }; _local7++; }; _local6++; }; return (_local9); } } }//package org.flixel
Section 474
//FlxTilemap_ImgAuto (org.flixel.FlxTilemap_ImgAuto) package org.flixel { import mx.core.*; public class FlxTilemap_ImgAuto extends BitmapAsset { } }//package org.flixel
Section 475
//FlxTilemap_ImgAutoAlt (org.flixel.FlxTilemap_ImgAutoAlt) package org.flixel { import mx.core.*; public class FlxTilemap_ImgAutoAlt extends BitmapAsset { } }//package org.flixel
Section 476
//FlxU (org.flixel.FlxU) package org.flixel { import flash.net.*; import flash.utils.*; public class FlxU { protected static var _originalSeed:Number; public static var quadTree:FlxQuadTree; protected static var _seed:Number; static var roundingError:Number = 1E-7; public static var quadTreeBounds:FlxRect; public static var quadTreeDivisions:uint = 3; public static function random(_arg1:Boolean=true):Number{ var _local2:Number; if (((_arg1) && (!(isNaN(_seed))))){ _local2 = randomize(_seed); _seed = mutate(_seed, _local2); return (_local2); }; return (Math.random()); } public static function mutate(_arg1:Number, _arg2:Number):Number{ _arg1 = (_arg1 + _arg2); if (_arg1 > 1){ _arg1 = (_arg1 - int(_arg1)); }; return (_arg1); } public static function overlap(_arg1:FlxObject, _arg2:FlxObject, _arg3:Function=null, _arg4:Boolean=true):Boolean{ if ((((((((_arg1 == null)) || (!(_arg1.exists)))) || ((_arg2 == null)))) || (!(_arg2.exists)))){ return (false); }; quadTree = new FlxQuadTree(quadTreeBounds.x, quadTreeBounds.y, quadTreeBounds.width, quadTreeBounds.height); quadTree.add(_arg1, FlxQuadTree.A_LIST, _arg4); if (_arg1 === _arg2){ return (quadTree.overlap(false, _arg3, _arg4)); }; quadTree.add(_arg2, FlxQuadTree.B_LIST, _arg4); return (quadTree.overlap(true, _arg3, _arg4)); } public static function openURL(_arg1:String):void{ navigateToURL(new URLRequest(_arg1), "_blank"); } public static function endProfile(_arg1:uint, _arg2:String="Profiler", _arg3:Boolean=true):uint{ var _local4:uint = getTimer(); if (_arg3){ FlxG.log((((_arg2 + ": ") + ((_local4 - _arg1) / 1000)) + "s")); }; return (_local4); } public static function getClass(_arg1:String):Class{ return ((getDefinitionByName(_arg1) as Class)); } public static function floor(_arg1:Number):Number{ var _local2:Number = int(_arg1); return (((_arg1)>0) ? _local2 : ((_local2)!=_arg1) ? (_local2 - 1) : _local2); } public static function randomInRange(_arg1:Number, _arg2:Number):Number{ return (((FlxU.random() * (_arg2 - _arg1)) + _arg1)); } public static function solveYCollision(_arg1:FlxObject, _arg2:FlxObject):Boolean{ var _local5:Number; var _local7:Boolean; var _local14:uint; var _local15:uint; var _local22:Number; var _local23:Number; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local3:Number = _arg1.colVector.y; var _local4:Number = _arg2.colVector.y; if (_local3 == _local4){ return (false); }; if (!_arg1.preCollide(_arg2, true)){ return (false); }; if (!_arg2.preCollide(_arg1, true)){ return (false); }; var _local6:Boolean; var _local8 = (_local3 == 0); var _local9 = (_local3 < 0); var _local10 = (_local3 > 0); var _local11 = (_local4 == 0); var _local12 = (_local4 < 0); var _local13 = (_local4 > 0); var _local16:FlxRect = _arg1.colHullY; var _local17:FlxRect = _arg2.colHullY; var _local18:Array = _arg1.colOffsets; var _local19:Array = _arg2.colOffsets; var _local20:uint = _local18.length; var _local21:uint = _local19.length; _local7 = ((((((((((_local8) && (_local12))) || (((_local10) && (_local11))))) || (((_local10) && (_local12))))) || (((((_local9) && (_local12))) && ((((_local3)>0) ? _local3 : -(_local3) < ((_local4)>0) ? _local4 : -(_local4))))))) || (((((_local10) && (_local13))) && ((((_local3)>0) ? _local3 : -(_local3) > ((_local4)>0) ? _local4 : -(_local4)))))); if ((_local7) ? ((!(_arg1.collideBottom)) || (!(_arg2.collideTop))) : ((!(_arg1.collideTop)) || (!(_arg2.collideBottom)))){ return (false); }; _local14 = 0; while (_local14 < _local20) { _local22 = _local18[_local14].x; _local23 = _local18[_local14].y; _local16.x = (_local16.x + _local22); _local16.y = (_local16.y + _local23); _local15 = 0; while (_local15 < _local21) { _local24 = _local19[_local15].x; _local25 = _local19[_local15].y; _local17.x = (_local17.x + _local24); _local17.y = (_local17.y + _local25); if (((((((((_local16.x + _local16.width) < (_local17.x + roundingError))) || (((_local16.x + roundingError) > (_local17.x + _local17.width))))) || (((_local16.y + _local16.height) < (_local17.y + roundingError))))) || (((_local16.y + roundingError) > (_local17.y + _local17.height))))){ _local17.x = (_local17.x - _local24); _local17.y = (_local17.y - _local25); } else { if (_local7){ if (_local9){ _local26 = (_local16.y + _arg1.colHullX.height); } else { _local26 = (_local16.y + _local16.height); }; if (_local12){ _local27 = _local17.y; } else { _local27 = ((_local17.y + _local17.height) - _arg2.colHullX.height); }; } else { if (_local12){ _local26 = (-(_local17.y) - _arg2.colHullX.height); } else { _local26 = (-(_local17.y) - _local17.height); }; if (_local9){ _local27 = -(_local16.y); } else { _local27 = ((-(_local16.y) - _local16.height) + _arg1.colHullX.height); }; }; _local5 = (_local26 - _local27); if ((((((_local5 == 0)) || (((!(_arg1.fixed)) && ((((_local5)>0) ? _local5 : -(_local5) > (_local16.height * 0.8))))))) || (((!(_arg2.fixed)) && ((((_local5)>0) ? _local5 : -(_local5) > (_local17.height * 0.8))))))){ _local17.x = (_local17.x - _local24); _local17.y = (_local17.y - _local25); } else { _local6 = true; _local28 = _arg2.velocity.y; _local29 = _arg1.velocity.y; if (((!(_arg1.fixed)) && (_arg2.fixed))){ if (_arg1._group){ _arg1.reset(_arg1.x, (_arg1.y - _local5)); } else { _arg1.y = (_arg1.y - _local5); }; } else { if (((_arg1.fixed) && (!(_arg2.fixed)))){ if (_arg2._group){ _arg2.reset(_arg2.x, (_arg2.y + _local5)); } else { _arg2.y = (_arg2.y + _local5); }; } else { if (((!(_arg1.fixed)) && (!(_arg2.fixed)))){ _local5 = (_local5 / 2); if (_arg1._group){ _arg1.reset(_arg1.x, (_arg1.y - _local5)); } else { _arg1.y = (_arg1.y - _local5); }; if (_arg2._group){ _arg2.reset(_arg2.x, (_arg2.y + _local5)); } else { _arg2.y = (_arg2.y + _local5); }; _local28 = (_local28 / 2); _local29 = (_local29 / 2); }; }; }; if (_local7){ _arg1.hitBottom(_arg2, _local28); _arg2.hitTop(_arg1, _local29); } else { _arg1.hitTop(_arg2, _local28); _arg2.hitBottom(_arg1, _local29); }; if (((!(_arg1.fixed)) && (!((_local5 == 0))))){ if (_local7){ _local16.y = (_local16.y - _local5); if (((_arg2.fixed) && (_arg2.moves))){ _local28 = _arg2.colVector.x; _arg1.x = (_arg1.x + _local28); _local16.x = (_local16.x + _local28); _arg1.colHullX.x = (_arg1.colHullX.x + _local28); }; } else { _local16.y = (_local16.y - _local5); _local16.height = (_local16.height + _local5); }; }; if (((!(_arg2.fixed)) && (!((_local5 == 0))))){ if (_local7){ _local17.y = (_local17.y + _local5); _local17.height = (_local17.height - _local5); } else { _local17.height = (_local17.height + _local5); if (((_arg1.fixed) && (_arg1.moves))){ _local29 = _arg1.colVector.x; _arg2.x = (_arg2.x + _local29); _local17.x = (_local17.x + _local29); _arg2.colHullX.x = (_arg2.colHullX.x + _local29); }; }; }; _local17.x = (_local17.x - _local24); _local17.y = (_local17.y - _local25); }; }; _local15++; }; _local16.x = (_local16.x - _local22); _local16.y = (_local16.y - _local23); _local14++; }; return (_local6); } public static function ceil(_arg1:Number):Number{ var _local2:Number = int(_arg1); return (((_arg1)>0) ? ((_local2)!=_arg1) ? (_local2 + 1) : _local2 : _local2); } public static function getAngle(_arg1:Number, _arg2:Number):Number{ return (((Math.atan2(_arg2, _arg1) * 180) / Math.PI)); } public static function setWorldBounds(_arg1:Number=0, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:uint=3):void{ if (quadTreeBounds == null){ quadTreeBounds = new FlxRect(); }; quadTreeBounds.x = _arg1; quadTreeBounds.y = _arg2; if (_arg3 > 0){ quadTreeBounds.width = _arg3; }; if (_arg4 > 0){ quadTreeBounds.height = _arg4; }; if (_arg5 > 0){ quadTreeDivisions = _arg5; }; } public static function startProfile():uint{ return (getTimer()); } public static function set seed(_arg1:Number):void{ _seed = _arg1; _originalSeed = _seed; } public static function getClassName(_arg1:Object, _arg2:Boolean=false):String{ var _local3:String = getQualifiedClassName(_arg1); _local3 = _local3.replace("::", "."); if (_arg2){ _local3 = _local3.substr((_local3.lastIndexOf(".") + 1)); }; return (_local3); } public static function getSolidColor(_arg1:uint, _arg2:uint, _arg3:uint):uint{ return (((((_arg1 & 0xFF) << 16) | ((_arg2 & 0xFF) << 8)) | (_arg3 & 0xFF))); } public static function randomize(_arg1:Number):Number{ return ((((69621 * int((_arg1 * 2147483647))) % 2147483647) / 2147483647)); } public static function abs(_arg1:Number):Number{ return (((_arg1)>0) ? _arg1 : -(_arg1)); } public static function rotatePoint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:FlxPoint=null):FlxPoint{ if (_arg6 == null){ _arg6 = new FlxPoint(); }; var _local7:Number = ((-(_arg5) / 180) * Math.PI); var _local8:Number = (_arg1 - _arg3); var _local9:Number = (_arg4 - _arg2); _arg6.x = ((_arg3 + (Math.cos(_local7) * _local8)) - (Math.sin(_local7) * _local9)); _arg6.y = (_arg4 - ((Math.sin(_local7) * _local8) + (Math.cos(_local7) * _local9))); return (_arg6); } public static function get seed():Number{ return (_originalSeed); } public static function solveXCollision(_arg1:FlxObject, _arg2:FlxObject):Boolean{ var _local5:Boolean; var _local6:Boolean; var _local7:Number; var _local9:Boolean; var _local16:uint; var _local17:uint; var _local24:Number; var _local25:Number; var _local26:Number; var _local27:Number; var _local28:Number; var _local29:Number; var _local30:Number; var _local31:Number; var _local3:Number = _arg1.colVector.x; var _local4:Number = _arg2.colVector.x; if (_local3 == _local4){ return (false); }; if (!_arg1.preCollide(_arg2, false)){ return (false); }; if (!_arg2.preCollide(_arg1, false)){ return (false); }; var _local8:Boolean; var _local10 = (_local3 == 0); var _local11 = (_local3 < 0); var _local12 = (_local3 > 0); var _local13 = (_local4 == 0); var _local14 = (_local4 < 0); var _local15 = (_local4 > 0); var _local18:FlxRect = _arg1.colHullX; var _local19:FlxRect = _arg2.colHullX; var _local20:Array = _arg1.colOffsets; var _local21:Array = _arg2.colOffsets; var _local22:uint = _local20.length; var _local23:uint = _local21.length; _local9 = ((((((((((_local10) && (_local14))) || (((_local12) && (_local13))))) || (((_local12) && (_local14))))) || (((((_local11) && (_local14))) && ((((_local3)>0) ? _local3 : -(_local3) < ((_local4)>0) ? _local4 : -(_local4))))))) || (((((_local12) && (_local15))) && ((((_local3)>0) ? _local3 : -(_local3) > ((_local4)>0) ? _local4 : -(_local4)))))); if ((_local9) ? ((!(_arg1.collideRight)) || (!(_arg2.collideLeft))) : ((!(_arg1.collideLeft)) || (!(_arg2.collideRight)))){ return (false); }; _local16 = 0; while (_local16 < _local22) { _local24 = _local20[_local16].x; _local25 = _local20[_local16].y; _local18.x = (_local18.x + _local24); _local18.y = (_local18.y + _local25); _local17 = 0; while (_local17 < _local23) { _local26 = _local21[_local17].x; _local27 = _local21[_local17].y; _local19.x = (_local19.x + _local26); _local19.y = (_local19.y + _local27); if (((((((((_local18.x + _local18.width) < (_local19.x + roundingError))) || (((_local18.x + roundingError) > (_local19.x + _local19.width))))) || (((_local18.y + _local18.height) < (_local19.y + roundingError))))) || (((_local18.y + roundingError) > (_local19.y + _local19.height))))){ _local19.x = (_local19.x - _local26); _local19.y = (_local19.y - _local27); } else { if (_local9){ if (_local11){ _local28 = (_local18.x + _arg1.colHullY.width); } else { _local28 = (_local18.x + _local18.width); }; if (_local14){ _local29 = _local19.x; } else { _local29 = ((_local19.x + _local19.width) - _arg2.colHullY.width); }; } else { if (_local14){ _local28 = (-(_local19.x) - _arg2.colHullY.width); } else { _local28 = (-(_local19.x) - _local19.width); }; if (_local11){ _local29 = -(_local18.x); } else { _local29 = ((-(_local18.x) - _local18.width) + _arg1.colHullY.width); }; }; _local7 = (_local28 - _local29); if ((((((_local7 == 0)) || (((!(_arg1.fixed)) && ((((_local7)>0) ? _local7 : -(_local7) > (_local18.width * 0.8))))))) || (((!(_arg2.fixed)) && ((((_local7)>0) ? _local7 : -(_local7) > (_local19.width * 0.8))))))){ _local19.x = (_local19.x - _local26); _local19.y = (_local19.y - _local27); } else { _local8 = true; _local30 = _arg2.velocity.x; _local31 = _arg1.velocity.x; if (((!(_arg1.fixed)) && (_arg2.fixed))){ if (_arg1._group){ _arg1.reset((_arg1.x - _local7), _arg1.y); } else { _arg1.x = (_arg1.x - _local7); }; } else { if (((_arg1.fixed) && (!(_arg2.fixed)))){ if (_arg2._group){ _arg2.reset((_arg2.x + _local7), _arg2.y); } else { _arg2.x = (_arg2.x + _local7); }; } else { if (((!(_arg1.fixed)) && (!(_arg2.fixed)))){ _local7 = (_local7 / 2); if (_arg1._group){ _arg1.reset((_arg1.x - _local7), _arg1.y); } else { _arg1.x = (_arg1.x - _local7); }; if (_arg2._group){ _arg2.reset((_arg2.x + _local7), _arg2.y); } else { _arg2.x = (_arg2.x + _local7); }; _local30 = (_local30 / 2); _local31 = (_local31 / 2); }; }; }; if (_local9){ _arg1.hitRight(_arg2, _local30); _arg2.hitLeft(_arg1, _local31); } else { _arg1.hitLeft(_arg2, _local30); _arg2.hitRight(_arg1, _local31); }; if (((!(_arg1.fixed)) && (!((_local7 == 0))))){ if (_local9){ _local18.width = (_local18.width - _local7); } else { _local18.x = (_local18.x - _local7); _local18.width = (_local18.width + _local7); }; _arg1.colHullY.x = (_arg1.colHullY.x - _local7); }; if (((!(_arg2.fixed)) && (!((_local7 == 0))))){ if (_local9){ _local19.x = (_local19.x + _local7); _local19.width = (_local19.width - _local7); } else { _local19.width = (_local19.width + _local7); }; _arg2.colHullY.x = (_arg2.colHullY.x + _local7); }; _local19.x = (_local19.x - _local26); _local19.y = (_local19.y - _local27); }; }; _local17++; }; _local18.x = (_local18.x - _local24); _local18.y = (_local18.y - _local25); _local16++; }; return (_local8); } public static function computeVelocity(_arg1:Number, _arg2:Number=0, _arg3:Number=0, _arg4:Number=0, _arg5:Number=10000):Number{ var _local6:Number; if (_arg2 != 0){ _arg2 = (_arg2 + _arg3); }; if (_arg2 != 0){ _arg1 = (_arg1 + (_arg2 * FlxG.elapsed)); } else { if (_arg4 != 0){ _local6 = (_arg4 * FlxG.elapsed); if ((_arg1 - _local6) > 0){ _arg1 = (_arg1 - _local6); } else { if ((_arg1 + _local6) < 0){ _arg1 = (_arg1 + _local6); } else { _arg1 = 0; }; }; }; }; if (_arg2 == 0){ _arg1 = (_arg1 + (_arg3 * FlxG.elapsed)); }; if (((!((_arg1 == 0))) && (!((_arg5 == 10000))))){ if (_arg1 > _arg5){ _arg1 = _arg5; } else { if (_arg1 < -(_arg5)){ _arg1 = -(_arg5); }; }; }; return (_arg1); } public static function getColor(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:Number=1):uint{ return ((((((((_arg4)>1) ? _arg4 : (_arg4 * 0xFF) & 0xFF) << 24) | ((_arg1 & 0xFF) << 16)) | ((_arg2 & 0xFF) << 8)) | (_arg3 & 0xFF))); } public static function collide(_arg1:FlxObject, _arg2:FlxObject):Boolean{ if ((((((((_arg1 == null)) || (!(_arg1.exists)))) || ((_arg2 == null)))) || (!(_arg2.exists)))){ return (false); }; quadTree = new FlxQuadTree(quadTreeBounds.x, quadTreeBounds.y, quadTreeBounds.width, quadTreeBounds.height); quadTree.add(_arg1, FlxQuadTree.A_LIST); var _local3 = (_arg1 === _arg2); if (!_local3){ quadTree.add(_arg2, FlxQuadTree.B_LIST); }; var _local4:Boolean = quadTree.overlap(!(_local3), solveXCollision); var _local5:Boolean = quadTree.overlap(!(_local3), solveYCollision); return (((_local4) || (_local5))); } } }//package org.flixel

Library Items

Symbol 1 Bitmap {com.wasabi.tr.UIAssets_GFX_TITLE}
Symbol 2 Sound {org.flixel.FlxGame_SndFlixel} [org.flixel.FlxGame_SndFlixel]
Symbol 3 Sound {org.flixel.FlxGame_SndBeep} [org.flixel.FlxGame_SndBeep]
Symbol 4 GraphicUsed by:24
Symbol 5 GraphicUsed by:24 27 47 59
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:6Used by:24 27 47 59
Symbol 8 GraphicUsed by:24 27 47 59
Symbol 9 GraphicUsed by:11
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:9 10Used by:24 27 47 59
Symbol 12 GraphicUsed by:24 27 46 59
Symbol 13 GraphicUsed by:24 27 47
Symbol 14 GraphicUsed by:15
Symbol 15 MovieClipUses:14Used by:24 27 47
Symbol 16 GraphicUsed by:24 27 47
Symbol 17 GraphicUsed by:18
Symbol 18 MovieClipUses:17Used by:24 27 47
Symbol 19 GraphicUsed by:24 27 47
Symbol 20 GraphicUsed by:24 27 47 59
Symbol 21 GraphicUsed by:24 27 47 59
Symbol 22 GraphicUsed by:24 59
Symbol 23 GraphicUsed by:24 27 47
Symbol 24 MovieClipUses:4 5 7 8 11 12 13 15 16 18 19 20 21 22 23Used by:59
Symbol 25 GraphicUsed by:27
Symbol 26 GraphicUsed by:27 47
Symbol 27 MovieClipUses:25 5 7 8 11 12 13 15 16 18 19 20 21 26 23Used by:59
Symbol 28 SoundUsed by:59
Symbol 29 FontUsed by:30
Symbol 30 TextUses:29Used by:31
Symbol 31 MovieClipUses:30Used by:59
Symbol 32 FontUsed by:33
Symbol 33 TextUses:32Used by:59
Symbol 34 GraphicUsed by:36
Symbol 35 GraphicUsed by:36
Symbol 36 MovieClipUses:34 35Used by:59
Symbol 37 GraphicUsed by:42
Symbol 38 GraphicUsed by:42
Symbol 39 GraphicUsed by:42
Symbol 40 GraphicUsed by:42
Symbol 41 GraphicUsed by:42
Symbol 42 MovieClipUses:37 38 39 40 41Used by:47
Symbol 43 GraphicUsed by:46
Symbol 44 GraphicUsed by:46
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:12 43 44 45Used by:47
Symbol 47 MovieClipUses:42 5 7 8 11 46 13 15 16 18 19 20 21 26 23Used by:59
Symbol 48 GraphicUsed by:59
Symbol 49 GraphicUsed by:59
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClipUses:50Used by:59
Symbol 52 GraphicUsed by:59
Symbol 53 GraphicUsed by:54
Symbol 54 MovieClipUses:53Used by:59
Symbol 55 GraphicUsed by:59
Symbol 56 SoundUsed by:59
Symbol 57 GraphicUsed by:58
Symbol 58 MovieClipUses:57Used by:59
Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon]Uses:24 27 28 31 33 36 47 48 5 7 8 11 12 49 51 52 54 55 20 21 22 56 58
Symbol 60 GraphicUsed by:63
Symbol 61 GraphicUsed by:63
Symbol 62 GraphicUsed by:63
Symbol 63 Button {com.wasabi.tr.UIAssets_GFX_SPONSOR_LOGO_MEDIUM} [gamesfree_ingame_logo]Uses:60 61 62
Symbol 64 Sound {com.wasabi.tr.Assets_SFX_PAGE_FLIP} [com.wasabi.tr.Assets_SFX_PAGE_FLIP]
Symbol 65 Sound {com.wasabi.tr.Assets_SFX_MENU_ACTIVATE} [com.wasabi.tr.Assets_SFX_MENU_ACTIVATE]
Symbol 66 Sound {com.wasabi.tr.Assets_SFX_CRUSHER_CRUSH} [com.wasabi.tr.Assets_SFX_CRUSHER_CRUSH]
Symbol 67 Sound {com.wasabi.tr.Assets_SFX_WARP_COMPLETE} [com.wasabi.tr.Assets_SFX_WARP_COMPLETE]
Symbol 68 Sound {com.wasabi.tr.Assets_SFX_RUNE_COLLECTED} [com.wasabi.tr.Assets_SFX_RUNE_COLLECTED]
Symbol 69 Sound {com.wasabi.tr.Assets_MUSIC_LAVA} [com.wasabi.tr.Assets_MUSIC_LAVA]
Symbol 70 Sound {com.wasabi.tr.Assets_SFX_ACID_HIT_GROUND} [com.wasabi.tr.Assets_SFX_ACID_HIT_GROUND]
Symbol 71 Sound {com.wasabi.tr.Assets_SFX_WARPING} [com.wasabi.tr.Assets_SFX_WARPING]
Symbol 72 Sound {com.wasabi.tr.Assets_SFX_AWARD_EARNED} [com.wasabi.tr.Assets_SFX_AWARD_EARNED]
Symbol 73 Sound {com.wasabi.tr.Assets_MUSIC_ACID} [com.wasabi.tr.Assets_MUSIC_ACID]
Symbol 74 Sound {com.wasabi.tr.Assets_MUSIC_TITLE} [com.wasabi.tr.Assets_MUSIC_TITLE]
Symbol 75 Sound {com.wasabi.tr.Assets_SFX_TABLET_COLLECTED} [com.wasabi.tr.Assets_SFX_TABLET_COLLECTED]
Symbol 76 Sound {com.wasabi.tr.Assets_MUSIC_TENSE_LIQUID} [com.wasabi.tr.Assets_MUSIC_TENSE_LIQUID]
Symbol 77 Sound {com.wasabi.tr.Assets_SFX_PLAYER_DIE} [com.wasabi.tr.Assets_SFX_PLAYER_DIE]
Symbol 78 Sound {com.wasabi.tr.Assets_SFX_BOUNCER_BOUNCE} [com.wasabi.tr.Assets_SFX_BOUNCER_BOUNCE]
Symbol 79 Sound {com.wasabi.tr.Assets_MUSIC_EXPLORING} [com.wasabi.tr.Assets_MUSIC_EXPLORING]
Symbol 80 Sound {com.wasabi.tr.Assets_MUSIC_DAMP} [com.wasabi.tr.Assets_MUSIC_DAMP]
Symbol 81 Sound {com.wasabi.tr.Assets_SFX_LAND} [com.wasabi.tr.Assets_SFX_LAND]
Symbol 82 Sound {com.wasabi.tr.Assets_SFX_RUNE_DOOR_OPEN} [com.wasabi.tr.Assets_SFX_RUNE_DOOR_OPEN]
Symbol 83 Sound {com.wasabi.tr.Assets_SFX_DEEPLIGHT_STONE_COLLECTED} [com.wasabi.tr.Assets_SFX_DEEPLIGHT_STONE_COLLECTED]
Symbol 84 Sound {com.wasabi.tr.Assets_SFX_MENU_SELECT} [com.wasabi.tr.Assets_SFX_MENU_SELECT]
Symbol 85 Sound {com.wasabi.tr.Assets_SFX_ERASE_DATA} [com.wasabi.tr.Assets_SFX_ERASE_DATA]
Symbol 86 Sound {com.wasabi.tr.Assets_SFX_WARP_GATE_ACTIVATED} [com.wasabi.tr.Assets_SFX_WARP_GATE_ACTIVATED]
Symbol 87 Sound {com.wasabi.tr.Assets_SFX_FOOTSTEP} [com.wasabi.tr.Assets_SFX_FOOTSTEP]
Symbol 88 Sound {com.wasabi.tr.Assets_MUSIC_TENSE_FIRE} [com.wasabi.tr.Assets_MUSIC_TENSE_FIRE]
Symbol 89 Sound {com.wasabi.tr.Assets_SFX_BLOCK_APPEAR} [com.wasabi.tr.Assets_SFX_BLOCK_APPEAR]
Symbol 90 Sound {com.wasabi.tr.Assets_SFX_OPEN_SEAL} [com.wasabi.tr.Assets_SFX_OPEN_SEAL]
Symbol 91 Sound {com.wasabi.tr.Assets_SFX_LAVA_RUMBLE} [com.wasabi.tr.Assets_SFX_LAVA_RUMBLE]
Symbol 92 Sound {com.wasabi.tr.Assets_MUSIC_STANDARD} [com.wasabi.tr.Assets_MUSIC_STANDARD]
Symbol 93 Sound {com.wasabi.tr.Assets_SFX_GET_KEY} [com.wasabi.tr.Assets_SFX_GET_KEY]
Symbol 94 Sound {com.wasabi.tr.Assets_SFX_CRUSHER_RESET} [com.wasabi.tr.Assets_SFX_CRUSHER_RESET]
Symbol 95 Sound {com.wasabi.tr.Assets_SFX_BLOCK_CRUMBLE} [com.wasabi.tr.Assets_SFX_BLOCK_CRUMBLE]
Symbol 96 BinaryData {com.wasabi.tr.maps.E04_CSV_MAP_BACKGROUND1}
Symbol 97 BinaryData {com.wasabi.tr.maps.E03_CSV_MAP_PULSELAYER}
Symbol 98 BinaryData {com.wasabi.tr.maps.F01_CSV_MAP_INTERACTIVELAYER}
Symbol 99 BinaryData {com.wasabi.tr.maps.Minimap_CSV_MAP_BASE}
Symbol 100 BinaryData {com.wasabi.tr.maps.F03_CSV_MAP_DETAIL1}
Symbol 101 BinaryData {com.wasabi.tr.maps.C07_CSV_MAP_BACKGROUND1}
Symbol 102 BinaryData {com.wasabi.tr.maps.C05_CSV_MAP_DETAIL1}
Symbol 103 BinaryData {com.wasabi.tr.maps.F01_CSV_MAP_BACKGROUND1}
Symbol 104 BinaryData {com.wasabi.tr.states.InstructionsState_TEXT_INSTRUCTIONS_A}
Symbol 105 BinaryData {com.wasabi.tr.states.InstructionsState_TEXT_INSTRUCTIONS_B}
Symbol 106 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_PULSELAYER}
Symbol 107 BinaryData {com.wasabi.tr.maps.D09_CSV_MAP_FOREGROUND1}
Symbol 108 Bitmap {org.flixel.data.FlxMouse_ImgDefaultCursor}
Symbol 109 Bitmap {com.wasabi.tr.maps.MapAssets_GFX_TILESET_TILESET02_PNG}
Symbol 110 BinaryData {com.wasabi.tr.maps.B02_CSV_MAP_BACKGROUNDLAYER}
Symbol 111 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_DETAIL1}
Symbol 112 Bitmap {com.wasabi.tr.Assets_GFX_LAVABALL_GLOW}
Symbol 113 BinaryData {com.wasabi.tr.maps.D10_CSV_MAP_FOREGROUND1}
Symbol 114 BinaryData {com.wasabi.tr.maps.A00_CSV_MAP_FOREGROUND2}
Symbol 115 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_PULSELAYER}
Symbol 116 BinaryData {com.wasabi.tr.maps.A00_CSV_MAP_FOREGROUND1}
Symbol 117 Bitmap {com.wasabi.tr.Assets_GFX_ACID_DRIP}
Symbol 118 BinaryData {com.wasabi.tr.maps.E06_CSV_MAP_BACKGROUND1}
Symbol 119 BinaryData {com.wasabi.tr.maps.B04_CSV_MAP_INTERACTIVELAYER}
Symbol 120 BinaryData {com.wasabi.tr.maps.D02_CSV_MAP_DETAIL1}
Symbol 121 BinaryData {com.wasabi.tr.maps.D02_CSV_MAP_DETAIL2}
Symbol 122 BinaryData {com.wasabi.tr.maps.C06_CSV_MAP_BACKGROUND1}
Symbol 123 BinaryData {com.wasabi.tr.maps.E04_CSV_MAP_DETAIL2}
Symbol 124 BinaryData {com.wasabi.tr.maps.E04_CSV_MAP_DETAIL1}
Symbol 125 BinaryData {com.wasabi.tr.maps.C01_CSV_MAP_BACKGROUND1}
Symbol 126 Bitmap {com.wasabi.tr.UIAssets_GFX_AWARDS}
Symbol 127 Bitmap {com.wasabi.tr.Assets_GFX_RUNES}
Symbol 128 BinaryData {com.wasabi.tr.maps.E05_CSV_MAP_PULSELAYER}
Symbol 129 Bitmap {org.flixel.data.FlxPause_ImgKeyP}
Symbol 130 Bitmap {com.wasabi.tr.Assets_GFX_WATER}
Symbol 131 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_INTERACTIVELAYER}
Symbol 132 BinaryData {com.wasabi.tr.maps.C09_CSV_MAP_BACKGROUND1}
Symbol 133 BinaryData {com.wasabi.tr.maps.C07_CSV_MAP_INTERACTIVELAYER}
Symbol 134 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_BACKGROUND2}
Symbol 135 BinaryData {com.wasabi.tr.maps.E01_CSV_MAP_DETAIL1}
Symbol 136 BinaryData {com.wasabi.tr.maps.E05_CSV_MAP_INTERACTIVELAYER}
Symbol 137 BinaryData {com.wasabi.tr.maps.E08_CSV_MAP_INTERACTIVELAYER}
Symbol 138 BinaryData {com.wasabi.tr.maps.E07_CSV_MAP_FOREGROUND1}
Symbol 139 BinaryData {com.wasabi.tr.maps.B01_CSV_MAP_BASELAYER}
Symbol 140 BinaryData {com.wasabi.tr.maps.B00_CSV_MAP_INTERACTIVELAYER}
Symbol 141 BinaryData {com.wasabi.tr.maps.D05_CSV_MAP_FOREGROUND1}
Symbol 142 Bitmap {com.wasabi.tr.Assets_GFX_ACID_DRIPPER}
Symbol 143 BinaryData {com.wasabi.tr.maps.E03_CSV_MAP_BACKGROUND1}
Symbol 144 BinaryData {com.wasabi.tr.maps.D06_CSV_MAP_FOREGROUND1}
Symbol 145 BinaryData {com.wasabi.tr.maps.D09_CSV_MAP_INTERACTIVELAYER}
Symbol 146 BinaryData {com.wasabi.tr.maps.E07_CSV_MAP_PULSELAYER}
Symbol 147 BinaryData {com.wasabi.tr.maps.E05_CSV_MAP_BACKGROUND1}
Symbol 148 BinaryData {com.wasabi.tr.maps.E08_CSV_MAP_FOREGROUND1}
Symbol 149 BinaryData {com.wasabi.tr.maps.E01_CSV_MAP_INTERACTIVELAYER}
Symbol 150 BinaryData {com.wasabi.tr.maps.B01_CSV_MAP_INTERACTIVELAYER}
Symbol 151 BinaryData {com.wasabi.tr.maps.D08_CSV_MAP_FOREGROUND1}
Symbol 152 BinaryData {com.wasabi.tr.maps.A00_CSV_MAP_BASELAYER}
Symbol 153 BinaryData {com.wasabi.tr.maps.F01_CSV_MAP_FOREGROUND1}
Symbol 154 BinaryData {com.wasabi.tr.states.IntroState_TEXT_INTRODUCTION}
Symbol 155 Bitmap {com.wasabi.tr.Assets_GFX_LAVABALL}
Symbol 156 BinaryData {com.wasabi.tr.maps.B00_CSV_MAP_DETAILLAYER}
Symbol 157 BinaryData {com.wasabi.tr.maps.D04_CSV_MAP_BACKGROUND1}
Symbol 158 Bitmap {com.wasabi.tr.maps.MapAssets_GFX_TILESET_EFFECTTILES_PNG}
Symbol 159 BinaryData {com.wasabi.tr.maps.D08_CSV_MAP_DETAIL1}
Symbol 160 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_INTERACTIVELAYER}
Symbol 161 Bitmap {com.wasabi.tr.Assets_GFX_HUD}
Symbol 162 BinaryData {com.wasabi.tr.maps.D04_CSV_MAP_BACKGROUND2}
Symbol 163 BinaryData {com.wasabi.tr.maps.B02_CSV_MAP_FOREGROUND1}
Symbol 164 BinaryData {com.wasabi.tr.maps.B03_CSV_MAP_FOREGROUND1}
Symbol 165 Bitmap {org.flixel.data.FlxPause_ImgKey0}
Symbol 166 BinaryData {com.wasabi.tr.maps.F04_CSV_MAP_FOREGROUND1}
Symbol 167 BinaryData {com.wasabi.tr.maps.C02_CSV_MAP_FOREGROUND2}
Symbol 168 BinaryData {com.wasabi.tr.maps.C06_CSV_MAP_FOREGROUND1}
Symbol 169 Bitmap {com.wasabi.tr.UIAssets_GFX_FRAME}
Symbol 170 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_BACKGROUNDLAYER}
Symbol 171 Bitmap {com.wasabi.tr.Assets_GFX_WARP_GATE}
Symbol 172 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_FOREGROUND1}
Symbol 173 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_FOREGROUND2}
Symbol 174 BinaryData {com.wasabi.tr.maps.Minimap_CSV_MAP_DOORS}
Symbol 175 BinaryData {com.wasabi.tr.maps.C02_CSV_MAP_FOREGROUND1}
Symbol 176 Bitmap {org.flixel.FlxTilemap_ImgAutoAlt}
Symbol 177 BinaryData {com.wasabi.tr.states.CreditsState_TEXT_CREDITS}
Symbol 178 BinaryData {com.wasabi.tr.maps.B03_CSV_MAP_FOREGROUND2}
Symbol 179 BinaryData {com.wasabi.tr.maps.C01_CSV_MAP_FOREGROUND1}
Symbol 180 BinaryData {com.wasabi.tr.maps.D05_CSV_MAP_DETAIL1}
Symbol 181 BinaryData {com.wasabi.tr.maps.D05_CSV_MAP_DETAIL2}
Symbol 182 BinaryData {com.wasabi.tr.maps.F03_CSV_MAP_BACKGROUND1}
Symbol 183 BinaryData {com.wasabi.tr.maps.B03_CSV_MAP_INTERACTIVELAYER}
Symbol 184 BinaryData {com.wasabi.tr.maps.C07_CSV_MAP_FOREGROUND1}
Symbol 185 BinaryData {com.wasabi.tr.maps.B01_CSV_MAP_FOREGROUND1}
Symbol 186 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_PULSELAYER}
Symbol 187 Bitmap {com.wasabi.tr.Assets_GFX_ACID}
Symbol 188 BinaryData {com.wasabi.tr.states.VictoryState_TEXT_VICTORY_2}
Symbol 189 BinaryData {com.wasabi.tr.states.VictoryState_TEXT_VICTORY_1}
Symbol 190 BinaryData {com.wasabi.tr.maps.E09_CSV_MAP_FOREGROUND1}
Symbol 191 BinaryData {com.wasabi.tr.maps.E04_CSV_MAP_PULSELAYER}
Symbol 192 BinaryData {com.wasabi.tr.maps.D02_CSV_MAP_INTERACTIVELAYER}
Symbol 193 BinaryData {com.wasabi.tr.maps.D07_CSV_MAP_DETAIL1}
Symbol 194 Bitmap {com.wasabi.tr.states.TitleState_GFX_BACKGROUND}
Symbol 195 Bitmap {com.wasabi.tr.Assets_GFX_PICKUP_GLOW}
Symbol 196 Bitmap {com.wasabi.tr.Assets_GFX_CRUMBLE_BLOCK}
Symbol 197 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_DETAIL2}
Symbol 198 BinaryData {com.wasabi.tr.maps.E02_CSV_MAP_FOREGROUND1}
Symbol 199 BinaryData {com.wasabi.tr.maps.C05_CSV_MAP_FOREGROUND1}
Symbol 200 BinaryData {com.wasabi.tr.maps.C05_CSV_MAP_FOREGROUND2}
Symbol 201 Bitmap {org.flixel.data.FlxPanel_ImgDonate}
Symbol 202 Bitmap {org.flixel.data.FlxPanel_ImgTwitter}
Symbol 203 BinaryData {com.wasabi.tr.maps.D09_CSV_MAP_DETAIL1}
Symbol 204 Bitmap {com.wasabi.tr.Assets_GFX_LAVA}
Symbol 205 BinaryData {com.wasabi.tr.maps.D03_CSV_MAP_FOREGROUND1}
Symbol 206 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_DETAILLAYER}
Symbol 207 Bitmap {com.wasabi.tr.maps.MapAssets_GFX_TILESET_MINIMAPTILES_PNG}
Symbol 208 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_BACKGROUND1}
Symbol 209 BinaryData {com.wasabi.tr.maps.D07_CSV_MAP_PULSELAYER}
Symbol 210 BinaryData {com.wasabi.tr.maps.F04_CSV_MAP_CAMERALAYER}
Symbol 211 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_DETAILLAYER}
Symbol 212 BinaryData {com.wasabi.tr.maps.C02_CSV_MAP_DETAILLAYER}
Symbol 213 Bitmap {com.wasabi.tr.UIAssets_GFX_MENU_FRAME}
Symbol 214 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_BACKGROUND2}
Symbol 215 Bitmap {com.wasabi.tr.Assets_GFX_CIRCLER_8}
Symbol 216 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_BACKGROUND1}
Symbol 217 BinaryData {com.wasabi.tr.maps.B04_CSV_MAP_FOREGROUND2}
Symbol 218 BinaryData {com.wasabi.tr.maps.B04_CSV_MAP_FOREGROUND1}
Symbol 219 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_BACKGROUND2}
Symbol 220 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_DETAILS1}
Symbol 221 Bitmap {org.flixel.data.FlxPanel_ImgReddit}
Symbol 222 BinaryData {com.wasabi.tr.maps.D06_CSV_MAP_PULSELAYER}
Symbol 223 BinaryData {com.wasabi.tr.maps.E04_CSV_MAP_FOREGROUND1}
Symbol 224 BinaryData {com.wasabi.tr.maps.B00_CSV_MAP_DETAIL2}
Symbol 225 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_DETAILLAYER}
Symbol 226 BinaryData {com.wasabi.tr.maps.E09_CSV_MAP_DETAIL1}
Symbol 227 BinaryData {com.wasabi.tr.maps.D10_CSV_MAP_DETAIL1}
Symbol 228 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_FOREGROUND2}
Symbol 229 BinaryData {com.wasabi.tr.maps.C01_CSV_MAP_DETAILLAYER}
Symbol 230 Bitmap {org.flixel.data.FlxPanel_ImgStumble}
Symbol 231 Bitmap {org.flixel.data.FlxPause_ImgKeyPlus}
Symbol 232 BinaryData {com.wasabi.tr.maps.E01_CSV_MAP_FOREGROUND1}
Symbol 233 BinaryData {com.wasabi.tr.maps.B02_CSV_MAP_BASELAYER}
Symbol 234 BinaryData {com.wasabi.tr.maps.E09_CSV_MAP_INTERACTIVELAYER}
Symbol 235 BinaryData {com.wasabi.tr.maps.C02_CSV_MAP_BACKGROUND2}
Symbol 236 BinaryData {com.wasabi.tr.maps.C02_CSV_MAP_BACKGROUND1}
Symbol 237 BinaryData {com.wasabi.tr.maps.E08_CSV_MAP_DETAIL1}
Symbol 238 BinaryData {com.wasabi.tr.maps.E08_CSV_MAP_DETAIL2}
Symbol 239 BinaryData {com.wasabi.tr.maps.B04_CSV_MAP_DECORATIONS}
Symbol 240 BinaryData {com.wasabi.tr.maps.D06_CSV_MAP_DETAIL1}
Symbol 241 BinaryData {com.wasabi.tr.maps.A00_CSV_MAP_INTERACTIVELAYER}
Symbol 242 BinaryData {com.wasabi.tr.maps.F04_CSV_MAP_INTERACTIVELAYER}
Symbol 243 BinaryData {com.wasabi.tr.maps.D06_CSV_MAP_DETAIL2}
Symbol 244 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_FOREGROUND1}
Symbol 245 BinaryData {com.wasabi.tr.maps.D04_CSV_MAP_DETAIL1}
Symbol 246 BinaryData {com.wasabi.tr.maps.D04_CSV_MAP_DETAIL2}
Symbol 247 Bitmap {org.flixel.data.FlxPanel_ImgClose}
Symbol 248 BinaryData {com.wasabi.tr.maps.D08_CSV_MAP_BACKGROUND1}
Symbol 249 BinaryData {com.wasabi.tr.maps.E04_CSV_MAP_INTERACTIVELAYER}
Symbol 250 BinaryData {com.wasabi.tr.maps.B01_CSV_MAP_DETAIL1}
Symbol 251 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_INTERACTIVELAYER}
Symbol 252 BinaryData {com.wasabi.tr.maps.F03_CSV_MAP_INTERACTIVELAYER}
Symbol 253 Bitmap {com.wasabi.tr.Assets_GFX_BOUNCER_16}
Symbol 254 Bitmap {com.wasabi.tr.Assets_GFX_RUNE_DOOR}
Symbol 255 BinaryData {com.wasabi.tr.maps.D06_CSV_MAP_BACKGROUND1}
Symbol 256 BinaryData {com.wasabi.tr.maps.E03_CSV_MAP_INTERACTIVELAYER}
Symbol 257 Bitmap {com.wasabi.tr.maps.MapAssets_GFX_TILESET_COLLISION_PNG}
Symbol 258 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_PULSELAYER}
Symbol 259 BinaryData {com.wasabi.tr.maps.D07_CSV_MAP_BACKGROUND2}
Symbol 260 BinaryData {com.wasabi.tr.maps.D07_CSV_MAP_BACKGROUND1}
Symbol 261 BinaryData {com.wasabi.tr.maps.C01_CSV_MAP_INTERACTIVELAYER}
Symbol 262 Bitmap {com.wasabi.tr.UIAssets_GFX_FADE_BOTTOM}
Symbol 263 BinaryData {com.wasabi.tr.maps.B00_CSV_MAP_FOREGROUND1}
Symbol 264 BinaryData {com.wasabi.tr.maps.E05_CSV_MAP_FOREGROUND2}
Symbol 265 BinaryData {com.wasabi.tr.maps.E05_CSV_MAP_FOREGROUND1}
Symbol 266 BinaryData {com.wasabi.tr.maps.Minimap_CSV_MAP_ITEMS}
Symbol 267 BinaryData {com.wasabi.tr.maps.C05_CSV_MAP_PULSELAYER}
Symbol 268 Bitmap {org.flixel.FlxTilemap_ImgAuto}
Symbol 269 BinaryData {com.wasabi.tr.maps.D07_CSV_MAP_INTERACTIVELAYER}
Symbol 270 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_BACKGROUND2}
Symbol 271 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_BACKGROUND1}
Symbol 272 BinaryData {com.wasabi.tr.maps.D05_CSV_MAP_INTERACTIVELAYER}
Symbol 273 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_FOREGROUND2}
Symbol 274 Bitmap {com.wasabi.tr.Assets_GFX_HOPPER_16}
Symbol 275 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_FOREGROUND1}
Symbol 276 Bitmap {com.wasabi.tr.Assets_GFX_CIRCLER_16}
Symbol 277 BinaryData {com.wasabi.tr.maps.F03_CSV_MAP_FOREGROUND2}
Symbol 278 BinaryData {com.wasabi.tr.maps.B02_CSV_MAP_DETAILLAYER}
Symbol 279 BinaryData {com.wasabi.tr.maps.F03_CSV_MAP_FOREGROUND1}
Symbol 280 BinaryData {com.wasabi.tr.maps.E07_CSV_MAP_INTERACTIVELAYER}
Symbol 281 Bitmap {com.wasabi.tr.maps.MapAssets_GFX_TILESET_TILESET01_PNG}
Symbol 282 Bitmap {com.wasabi.tr.Assets_GFX_SMASHER}
Symbol 283 BinaryData {com.wasabi.tr.maps.B02_CSV_MAP_INTERACTIVELAYER}
Symbol 284 BinaryData {com.wasabi.tr.maps.B03_CSV_MAP_DETAIL1}
Symbol 285 Bitmap {com.wasabi.tr.Assets_GFX_BOUNCER_8}
Symbol 286 Bitmap {org.flixel.data.FlxPanel_ImgDelicious}
Symbol 287 BinaryData {com.wasabi.tr.maps.C09_CSV_MAP_PULSELAYER}
Symbol 288 BinaryData {com.wasabi.tr.maps.E03_CSV_MAP_FOREGROUND1}
Symbol 289 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_FOREGROUND2}
Symbol 290 BinaryData {com.wasabi.tr.maps.E06_CSV_MAP_INTERACTIVELAYER}
Symbol 291 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_FOREGROUND1}
Symbol 292 BinaryData {com.wasabi.tr.maps.C02_CSV_MAP_INTERACTIVELAYER}
Symbol 293 BinaryData {com.wasabi.tr.maps.F01_CSV_MAP_PULSELAYER}
Symbol 294 BinaryData {com.wasabi.tr.maps.D08_CSV_MAP_INTERACTIVELAYER}
Symbol 295 Bitmap {com.wasabi.tr.Assets_GFX_WATERFALL}
Symbol 296 BinaryData {com.wasabi.tr.maps.C06_CSV_MAP_DETAIL1}
Symbol 297 BinaryData {com.wasabi.tr.maps.D04_CSV_MAP_FOREGROUND1}
Symbol 298 BinaryData {com.wasabi.tr.maps.C09_CSV_MAP_FOREGROUND1}
Symbol 299 Bitmap {com.wasabi.tr.Assets_GFX_PLAYER}
Symbol 300 BinaryData {com.wasabi.tr.maps.F04_CSV_MAP_DETAIL1}
Symbol 301 BinaryData {com.wasabi.tr.maps.D10_CSV_MAP_BACKGROUND1}
Symbol 302 Bitmap {com.wasabi.tr.Assets_GFX_DOOR}
Symbol 303 Bitmap {com.wasabi.tr.Assets_GFX_DEEPLIGHT_STONE}
Symbol 304 BinaryData {com.wasabi.tr.maps.B04_CSV_MAP_BACKGROUND1}
Symbol 305 BinaryData {com.wasabi.tr.maps.C09_CSV_MAP_INTERACTIVELAYER}
Symbol 306 BinaryData {com.wasabi.tr.maps.D02_CSV_MAP_FOREGROUND1}
Symbol 307 BinaryData {com.wasabi.tr.maps.E01_CSV_MAP_BACKGROUND1}
Symbol 308 BinaryData {com.wasabi.tr.maps.C05_CSV_MAP_INTERACTIVELAYER}
Symbol 309 BinaryData {com.wasabi.tr.maps.E06_CSV_MAP_FOREGROUND1}
Symbol 310 BinaryData {com.wasabi.tr.maps.E06_CSV_MAP_FOREGROUND2}
Symbol 311 BinaryData {com.wasabi.tr.maps.C05_CSV_MAP_BACKGROUND1}
Symbol 312 BinaryData {com.wasabi.tr.maps.E08_CSV_MAP_BACKGROUND1}
Symbol 313 BinaryData {com.wasabi.tr.maps.B00_CSV_MAP_BACKGROUND1}
Symbol 314 BinaryData {com.wasabi.tr.maps.D09_CSV_MAP_BACKGROUND1}
Symbol 315 BinaryData {com.wasabi.tr.maps.B03_CSV_MAP_BACKGROUND1}
Symbol 316 BinaryData {com.wasabi.tr.maps.E05_CSV_MAP_DETAIL1}
Symbol 317 Bitmap {com.wasabi.tr.Assets_GFX_HOPPER_8}
Symbol 318 BinaryData {com.wasabi.tr.maps.F04_CSV_MAP_PULSELAYER}
Symbol 319 BinaryData {com.wasabi.tr.maps.D03_CSV_MAP_DETAILS}
Symbol 320 BinaryData {com.wasabi.tr.maps.C09_CSV_MAP_DETAIL1}
Symbol 321 Bitmap {org.flixel.data.FlxPause_ImgKeyMinus}
Symbol 322 BinaryData {com.wasabi.tr.maps.D05_CSV_MAP_BACKGROUND1}
Symbol 323 Font {org.flixel.FlxGame_junk}
Symbol 324 BinaryData {com.wasabi.tr.maps.C03_CSV_MAP_INTERACTIVELAYER}
Symbol 325 BinaryData {com.wasabi.tr.maps.D05_CSV_MAP_BACKGROUND2}
Symbol 326 BinaryData {com.wasabi.tr.maps.E06_CSV_MAP_DETAIL1}
Symbol 327 Bitmap {com.wasabi.tr.Assets_GFX_FLOATING_PLATFORM}
Symbol 328 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_BACKGROUND2}
Symbol 329 BinaryData {com.wasabi.tr.maps.D01_CSV_MAP_BACKGROUND1}
Symbol 330 BinaryData {com.wasabi.tr.maps.C04_CSV_MAP_DETAILLAYER}
Symbol 331 BinaryData {com.wasabi.tr.maps.E03_CSV_MAP_DETAIL1}
Symbol 332 BinaryData {com.wasabi.tr.maps.D07_CSV_MAP_FOREGROUND1}
Symbol 333 BinaryData {com.wasabi.tr.maps.D03_CSV_MAP_INTERACTIVELAYER}
Symbol 334 BinaryData {com.wasabi.tr.maps.D04_CSV_MAP_INTERACTIVELAYER}
Symbol 335 Bitmap {com.wasabi.tr.Assets_GFX_TABLET}
Symbol 336 BinaryData {com.wasabi.tr.maps.D03_CSV_MAP_BACKGROUND1}
Symbol 337 BinaryData {com.wasabi.tr.ui.StatusDisplay_TEXT_TABLETS}
Symbol 338 BinaryData {com.wasabi.tr.maps.B01_CSV_MAP_BACKGROUND1}
Symbol 339 BinaryData {com.wasabi.tr.maps.D06_CSV_MAP_INTERACTIVELAYER}
Symbol 340 BinaryData {com.wasabi.tr.maps.F03_CSV_MAP_PULSELAYER}
Symbol 341 Bitmap {com.wasabi.tr.UIAssets_GFX_FADE_TOP}
Symbol 342 BinaryData {com.wasabi.tr.maps.C08_CSV_MAP_INTERACTIVELAYER}
Symbol 343 BinaryData {com.wasabi.tr.maps.E09_CSV_MAP_PULSELAYER}
Symbol 344 BinaryData {com.wasabi.tr.maps.F01_CSV_MAP_DETAIL1}
Symbol 345 BinaryData {com.wasabi.tr.maps.F01_CSV_MAP_DETAIL2}
Symbol 346 BinaryData {com.wasabi.tr.maps.E02_CSV_MAP_DETAIL1}
Symbol 347 BinaryData {com.wasabi.tr.maps.C07_CSV_MAP_DETAIL1}
Symbol 348 BinaryData {com.wasabi.tr.maps.B00_CSV_MAP_BASELAYER}
Symbol 349 BinaryData {com.wasabi.tr.maps.E08_CSV_MAP_OBJECTLAYER}
Symbol 350 BinaryData {com.wasabi.tr.maps.E07_CSV_MAP_DETAIL2}
Symbol 351 Font {com.wasabi.tr.UIAssets_FONT_SILKSCREEN}
Symbol 352 BinaryData {com.wasabi.tr.maps.E07_CSV_MAP_DETAIL1}
Symbol 353 Bitmap {org.flixel.data.FlxPanel_ImgDigg}
Symbol 354 Bitmap {com.wasabi.tr.maps.MapAssets_GFX_TILESET_TILESET03_PNG}
Symbol 355 BinaryData {com.wasabi.tr.maps.E02_CSV_MAP_BACKGROUND2}
Symbol 356 BinaryData {com.wasabi.tr.maps.E02_CSV_MAP_BACKGROUND1}
Symbol 357 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_FOREGROUND1}
Symbol 358 BinaryData {com.wasabi.tr.maps.C01_CSV_MAP_PULSELAYER}
Symbol 359 BinaryData {com.wasabi.tr.maps.F02_CSV_MAP_FOREGROUND2}
Symbol 360 Bitmap {com.wasabi.tr.Assets_GFX_KEY}
Symbol 361 BinaryData {com.wasabi.tr.maps.E07_CSV_MAP_BACKGROUND1}

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata present, AS3.
SWFMetaData (77)Timeline Frame 1458 bytes "<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'><rdf:Description rdf:about='' xmlns ..."
ScriptLimits (65)Timeline Frame 1MaxRecursionDepth: 1000, ScriptTimeout: 60 seconds
ExportAssets (56)Timeline Frame 2Symbol 2 as "org.flixel.FlxGame_SndFlixel"
ExportAssets (56)Timeline Frame 2Symbol 3 as "org.flixel.FlxGame_SndBeep"
ExportAssets (56)Timeline Frame 2Symbol 59 as "gramesfree_preloader_dragon"
ExportAssets (56)Timeline Frame 2Symbol 63 as "gamesfree_ingame_logo"
ExportAssets (56)Timeline Frame 2Symbol 64 as "com.wasabi.tr.Assets_SFX_PAGE_FLIP"
ExportAssets (56)Timeline Frame 2Symbol 65 as "com.wasabi.tr.Assets_SFX_MENU_ACTIVATE"
ExportAssets (56)Timeline Frame 2Symbol 66 as "com.wasabi.tr.Assets_SFX_CRUSHER_CRUSH"
ExportAssets (56)Timeline Frame 2Symbol 67 as "com.wasabi.tr.Assets_SFX_WARP_COMPLETE"
ExportAssets (56)Timeline Frame 2Symbol 68 as "com.wasabi.tr.Assets_SFX_RUNE_COLLECTED"
ExportAssets (56)Timeline Frame 2Symbol 69 as "com.wasabi.tr.Assets_MUSIC_LAVA"
ExportAssets (56)Timeline Frame 2Symbol 70 as "com.wasabi.tr.Assets_SFX_ACID_HIT_GROUND"
ExportAssets (56)Timeline Frame 2Symbol 71 as "com.wasabi.tr.Assets_SFX_WARPING"
ExportAssets (56)Timeline Frame 2Symbol 72 as "com.wasabi.tr.Assets_SFX_AWARD_EARNED"
ExportAssets (56)Timeline Frame 2Symbol 73 as "com.wasabi.tr.Assets_MUSIC_ACID"
ExportAssets (56)Timeline Frame 2Symbol 74 as "com.wasabi.tr.Assets_MUSIC_TITLE"
ExportAssets (56)Timeline Frame 2Symbol 75 as "com.wasabi.tr.Assets_SFX_TABLET_COLLECTED"
ExportAssets (56)Timeline Frame 2Symbol 76 as "com.wasabi.tr.Assets_MUSIC_TENSE_LIQUID"
ExportAssets (56)Timeline Frame 2Symbol 77 as "com.wasabi.tr.Assets_SFX_PLAYER_DIE"
ExportAssets (56)Timeline Frame 2Symbol 78 as "com.wasabi.tr.Assets_SFX_BOUNCER_BOUNCE"
ExportAssets (56)Timeline Frame 2Symbol 79 as "com.wasabi.tr.Assets_MUSIC_EXPLORING"
ExportAssets (56)Timeline Frame 2Symbol 80 as "com.wasabi.tr.Assets_MUSIC_DAMP"
ExportAssets (56)Timeline Frame 2Symbol 81 as "com.wasabi.tr.Assets_SFX_LAND"
ExportAssets (56)Timeline Frame 2Symbol 82 as "com.wasabi.tr.Assets_SFX_RUNE_DOOR_OPEN"
ExportAssets (56)Timeline Frame 2Symbol 83 as "com.wasabi.tr.Assets_SFX_DEEPLIGHT_STONE_COLLECTED"
ExportAssets (56)Timeline Frame 2Symbol 84 as "com.wasabi.tr.Assets_SFX_MENU_SELECT"
ExportAssets (56)Timeline Frame 2Symbol 85 as "com.wasabi.tr.Assets_SFX_ERASE_DATA"
ExportAssets (56)Timeline Frame 2Symbol 86 as "com.wasabi.tr.Assets_SFX_WARP_GATE_ACTIVATED"
ExportAssets (56)Timeline Frame 2Symbol 87 as "com.wasabi.tr.Assets_SFX_FOOTSTEP"
ExportAssets (56)Timeline Frame 2Symbol 88 as "com.wasabi.tr.Assets_MUSIC_TENSE_FIRE"
ExportAssets (56)Timeline Frame 2Symbol 89 as "com.wasabi.tr.Assets_SFX_BLOCK_APPEAR"
ExportAssets (56)Timeline Frame 2Symbol 90 as "com.wasabi.tr.Assets_SFX_OPEN_SEAL"
ExportAssets (56)Timeline Frame 2Symbol 91 as "com.wasabi.tr.Assets_SFX_LAVA_RUMBLE"
ExportAssets (56)Timeline Frame 2Symbol 92 as "com.wasabi.tr.Assets_MUSIC_STANDARD"
ExportAssets (56)Timeline Frame 2Symbol 93 as "com.wasabi.tr.Assets_SFX_GET_KEY"
ExportAssets (56)Timeline Frame 2Symbol 94 as "com.wasabi.tr.Assets_SFX_CRUSHER_RESET"
ExportAssets (56)Timeline Frame 2Symbol 95 as "com.wasabi.tr.Assets_SFX_BLOCK_CRUMBLE"
SerialNumber (41)Timeline Frame 1

Labels

"com_wasabi_tr_Preloader"Frame 1
"start"Frame 2
"looking"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 1
"tapping1"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 20
"logotext"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 22
"puff"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 35
"flap"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 59
"lookatus"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 75
"look"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 89
"tapping2"Symbol 59 MovieClip {com.wasabi.tr.states.SponsorLogoState_CLIP_DRAGON} [gramesfree_preloader_dragon] Frame 98




http://swfchan.com/19/90568/info.shtml
Created: 28/3 -2019 08:55:00 Last modified: 28/3 -2019 08:55:00 Server time: 14/11 -2024 22:46:32