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

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

silent-conversation-4287.swf

This is the info page for
Flash #132865

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


ActionScript [AS3]
Section 1
//LevelButton (Interface.LevelButton) package Interface { import Screens.*; import flash.events.*; import flash.text.*; import flash.display.*; import Resources.*; import Util.*; public class LevelButton extends Sprite { private var titleField:TextField; private var gradeField:TextField; private var authorField:TextField; private var lockedField:TextField; private var playMode:String; private var levelID:String; public function LevelButton(_arg1:Number, _arg2:Number, _arg3:String, _arg4:String){ this.x = _arg1; this.y = _arg2; this.levelID = _arg3; this.playMode = _arg4; titleField = new TextField(); titleField.defaultTextFormat = Fonts.BODY_TEXT; titleField.embedFonts = true; titleField.text = Layouts.getTitle(_arg3); titleField.height = 20; titleField.width = 400; titleField.textColor = 0xFFFFFF; this.addChild(titleField); var _local5:String = Layouts.getAuthor(_arg3); authorField = new TextField(); authorField.defaultTextFormat = Fonts.DETAIL_TEXT; authorField.embedFonts = true; if (_local5 != null){ authorField.text = ("by " + _local5); }; authorField.height = 12; authorField.width = 400; authorField.x = 20; authorField.y = 15; authorField.textColor = 0xFFFFFF; this.addChild(authorField); gradeField = new TextField(); gradeField.defaultTextFormat = Fonts.LARGE_TEXT; gradeField.embedFonts = true; gradeField.height = 25; gradeField.width = 100; gradeField.x = (Math.max(titleField.textWidth, (authorField.textWidth + authorField.x)) + 10); gradeField.textColor = 0xFF0000; this.addChild(gradeField); lockedField = new TextField(); lockedField.defaultTextFormat = Fonts.BODY_TEXT; lockedField.embedFonts = true; switch (_arg4){ case PlayScreen.MODE_COMPLETION: lockedField.text = "LOCKED: Pass another level to unlock."; break; case PlayScreen.MODE_COMPLETIONTIMETRIAL: lockedField.text = "LOCKED: Get A+ in completion mode to unlock."; break; case PlayScreen.MODE_RACETIMETRIAL: lockedField.text = "LOCKED: Get A+ in completion mode to unlock."; }; lockedField.height = 25; lockedField.width = 400; lockedField.x = 20; lockedField.y = 5; lockedField.textColor = 0xCCCCCC; this.addChild(lockedField); mouseChildren = false; addEventListener(MouseEvent.CLICK, onClick); refresh(); } private function onClick(_arg1:MouseEvent):void{ if (lockedField.visible == false){ Main.pushScreen(new LevelIntroScreen(levelID, playMode)); }; } public function refresh():void{ var _local1:String; var _local2:int; if (playMode == PlayScreen.MODE_COMPLETION){ _local1 = SaveData.getGrade(levelID); if (_local1 == null){ _local1 = ""; }; gradeField.text = _local1; } else { _local2 = SaveData.getTime(levelID); if (_local2 == 0){ _local1 = ""; } else { gradeField.text = Scorekeeper.timeToLongString(_local2); }; }; if (SaveData.levelUnlocked(levelID, playMode)){ lockedField.visible = false; titleField.alpha = 1; authorField.alpha = 1; gradeField.alpha = 1; buttonMode = true; } else { lockedField.visible = true; titleField.alpha = 0.2; authorField.alpha = 0.2; gradeField.alpha = 0.2; buttonMode = false; }; } } }//package Interface
Section 2
//MusicButton (Interface.MusicButton) package Interface { import flash.events.*; import flash.text.*; import flash.display.*; import Resources.*; public class MusicButton extends Sprite { private var textField:TextField; public function MusicButton(){ textField = new TextField(); textField.defaultTextFormat = Fonts.BODY_TEXT; textField.embedFonts = true; textField.text = "MUSIC: ON"; textField.height = 20; textField.width = 400; textField.textColor = 0xFFFFFF; textField.selectable = false; this.addChild(textField); this.buttonMode = true; this.mouseChildren = false; this.addEventListener(MouseEvent.CLICK, onClick); } private function onClick(_arg1:MouseEvent):void{ Music.musicActive = !(Music.musicActive); if (Music.musicActive){ textField.text = "MUSIC: ON"; } else { textField.text = "MUSIC: OFF"; }; } } }//package Interface
Section 3
//Scorekeeper (Interface.Scorekeeper) package Interface { import Screens.*; import flash.events.*; import WorldObjects.*; import flash.utils.*; import flash.text.*; import flash.display.*; import Resources.*; public class Scorekeeper extends Sprite { public var totalWords:int;// = 1 private var timer:Timer; private var startTime:int; private var mainScore:TextField; private var maxTouched:int;// = -1 private var minTouched:int;// = 2147483647 private var totalScore:Number;// = 0 private var playMode:String; private var totalTouched:int; public function Scorekeeper(_arg1:String){ mainScore = new TextField(); mainScore.defaultTextFormat = Fonts.SCORECARD_LARGE; mainScore.embedFonts = true; mainScore.text = "--"; mainScore.height = 50; mainScore.width = 75; mainScore.textColor = 0xFFFFFF; this.addChild(mainScore); startTime = getTimer(); this.playMode = _arg1; if ((((_arg1 == PlayScreen.MODE_COMPLETIONTIMETRIAL)) || ((_arg1 == PlayScreen.MODE_RACETIMETRIAL)))){ timer = new Timer(100); timer.addEventListener(TimerEvent.TIMER, onTick, false, 0, true); timer.start(); }; drawProgress(); } public function get runningPercent():Number{ return ((totalScore / ((maxTouched + 1) - minTouched))); } public function get scorePercent():Number{ return (((totalPercent + runningPercent) / 2)); } public function get grade():String{ return (percentToGrade(scorePercent)); } public function get longTimeString():String{ return (timeToLongString(timeElapsed)); } public function get progressPercent():Number{ return (((maxTouched + 1) / totalWords)); } private function drawProgress():void{ graphics.clear(); if (scorePercent < 0.6){ graphics.lineStyle(1, 0xFF0000); } else { graphics.lineStyle(1, 0xFFFFFF); }; graphics.drawRect(5, 40, 65, 5); if (scorePercent < 0.6){ graphics.beginFill(0xBB0000); } else { graphics.beginFill(0xBBBBBB); }; graphics.drawRect(5, 40, (65 * progressPercent), 5); } public function get totalPercent():Number{ return (((totalScore + ((totalWords - maxTouched) - 1)) / totalWords)); } private function onTick(_arg1:TimerEvent):void{ var _local2:int = timeElapsed; var _local3:String = (int((_local2 / 1000)) % 60).toString(); if (_local3.length == 1){ _local3 = ("0" + _local3); }; mainScore.text = ((("" + int((_local2 / 60000))) + ":") + _local3); } public function get timeElapsed():int{ return ((getTimer() - startTime)); } public function touchWord(_arg1:Word):void{ totalTouched++; if (_arg1.index > maxTouched){ maxTouched = _arg1.index; }; if (_arg1.index < minTouched){ minTouched = _arg1.index; }; if (_arg1.wasUntouched){ totalScore = (totalScore + 0.5); } else { totalScore++; }; if (playMode == PlayScreen.MODE_COMPLETION){ mainScore.text = grade; }; drawProgress(); } public function get finalPercent():Number{ return ((totalScore / totalWords)); } public function untouchWord(_arg1:Word):void{ totalTouched--; if (_arg1.index > maxTouched){ maxTouched = _arg1.index; }; if (_arg1.wasUntouched){ totalScore = (totalScore - 0.5); } else { totalScore--; }; if (playMode == PlayScreen.MODE_COMPLETION){ mainScore.text = grade; }; drawProgress(); } public static function timeToLongString(_arg1:int):String{ var _local2:String = (int((_arg1 / 1000)) % 60).toString(); if (_local2.length == 1){ _local2 = ("0" + _local2); }; var _local3:String = (int((_arg1 / 10)) % 100).toString(); if (_local3.length == 1){ _local3 = ("0" + _local3); }; return (((((("" + int((_arg1 / 60000))) + ":") + _local2) + ":") + _local3)); } public static function percentToGrade(_arg1:Number):String{ if (_arg1 == 1){ return ("A+"); }; if (_arg1 >= 0.9){ return ("A"); }; if (_arg1 >= 0.8){ return ("B"); }; if (_arg1 >= 0.7){ return ("C"); }; if (_arg1 >= 0.6){ return ("D"); }; return ("F"); } } }//package Interface
Section 4
//Scrollbox (Interface.Scrollbox) package Interface { import flash.events.*; import flash.display.*; public class Scrollbox extends Sprite { private var upButton:Sprite; private var downButton:Sprite; private var scrollPanel:Sprite; private var scrollMask:Sprite; private static var bgClass:Class = Scrollbox_bgClass; public function Scrollbox(){ scrollPanel = new Sprite(); scrollMask = new Sprite(); upButton = new Sprite(); downButton = new Sprite(); super(); var _local1:Bitmap = new bgClass(); this.addChild(_local1); scrollPanel.x = 5; scrollPanel.y = 5; scrollMask.x = 5; scrollMask.y = 5; scrollMask.graphics.beginFill(0xFF0000); scrollMask.graphics.drawRect(0, 0, (_local1.width - 20), (_local1.height - 10)); this.addChild(scrollMask); this.addChild(scrollPanel); scrollPanel.mask = scrollMask; upButton.graphics.beginFill(0, 0); upButton.graphics.drawRect(0, 0, 11, 12); upButton.x = 435; upButton.y = 14; upButton.buttonMode = true; upButton.addEventListener(MouseEvent.CLICK, onUpClick); this.addChild(upButton); downButton.graphics.beginFill(0, 0); downButton.graphics.drawRect(0, 0, 11, 12); downButton.x = 435; downButton.y = 128; downButton.buttonMode = true; downButton.addEventListener(MouseEvent.CLICK, onDownClick); this.addChild(downButton); } private function onDownClick(_arg1:MouseEvent):void{ if (scrollPanel.y > -((scrollPanel.height - scrollMask.height))){ scrollPanel.y = (scrollPanel.y - 20); }; } public function addScrollChild(_arg1:DisplayObject):void{ scrollPanel.addChild(_arg1); } private function onUpClick(_arg1:MouseEvent):void{ if (scrollPanel.y < 0){ scrollPanel.y = (scrollPanel.y + 20); }; } public function refresh():void{ var _local1:int; while (_local1 < scrollPanel.numChildren) { if ((scrollPanel.getChildAt(_local1) is LevelButton)){ LevelButton(scrollPanel.getChildAt(_local1)).refresh(); }; _local1++; }; } } }//package Interface
Section 5
//Scrollbox_bgClass (Interface.Scrollbox_bgClass) package Interface { import mx.core.*; public class Scrollbox_bgClass extends BitmapAsset { } }//package Interface
Section 6
//SponsorButton (Interface.SponsorButton) package Interface { import flash.events.*; import flash.text.*; import flash.display.*; import Resources.*; import flash.net.*; public class SponsorButton extends Sprite { private static const logoBitmap:Bitmap = new clsLogo(); private static var clsLogo:Class = SponsorButton_clsLogo; public function SponsorButton(){ super(); this.addChild(logoBitmap); logoBitmap.y = 15; var playMoreField:TextField = new TextField(); playMoreField.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; playMoreField.embedFonts = true; playMoreField.text = "Play More Games at"; playMoreField.height = 20; playMoreField.width = logoBitmap.width; playMoreField.textColor = 0xFFFFFF; playMoreField.selectable = false; this.addChild(playMoreField); this.buttonMode = true; this.mouseChildren = false; this.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://armorgames.com"), "_blank"); }); } } }//package Interface
Section 7
//SponsorButton_clsLogo (Interface.SponsorButton_clsLogo) package Interface { import mx.core.*; public class SponsorButton_clsLogo extends BitmapAsset { } }//package Interface
Section 8
//TextButton (Interface.TextButton) package Interface { import flash.text.*; import flash.display.*; import Resources.*; public class TextButton extends Sprite { public function TextButton(_arg1:String){ buttonMode = true; mouseChildren = false; var _local2:TextField = new TextField(); _local2.defaultTextFormat = Fonts.BODY_TEXT; _local2.embedFonts = true; _local2.text = _arg1; _local2.height = 20; _local2.width = (_local2.textWidth + 4); _local2.textColor = 0xFFFFFF; _local2.selectable = false; addChild(_local2); } } }//package Interface
Section 9
//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.0.0.0"; 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 10
//ByteArrayAsset (mx.core.ByteArrayAsset) package mx.core { import flash.utils.*; public class ByteArrayAsset extends ByteArray implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 11
//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.0.0.0"; 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 12
//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.0.0.0"; 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 13
//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.0.0.0"; 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 14
//FontAsset (mx.core.FontAsset) package mx.core { import flash.text.*; public class FontAsset extends Font implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 15
//IBorder (mx.core.IBorder) package mx.core { public interface IBorder { function get borderMetrics():EdgeMetrics; } }//package mx.core
Section 16
//IFlexAsset (mx.core.IFlexAsset) package mx.core { public interface IFlexAsset { } }//package mx.core
Section 17
//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 18
//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 19
//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.0.0.0"; 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 20
//MovieClipLoaderAsset (mx.core.MovieClipLoaderAsset) package mx.core { import flash.events.*; import flash.utils.*; import flash.display.*; import flash.system.*; public class MovieClipLoaderAsset extends MovieClipAsset implements IFlexAsset, IFlexDisplayObject { protected var initialHeight:Number;// = 0 private var loader:Loader;// = null private var initialized:Boolean;// = false protected var initialWidth:Number;// = 0 private var requestedHeight:Number; private var requestedWidth:Number; mx_internal static const VERSION:String = "3.0.0.0"; public function MovieClipLoaderAsset(){ var _local1:LoaderContext = new LoaderContext(); _local1.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain); if (("allowLoadBytesCodeExecution" in _local1)){ _local1["allowLoadBytesCodeExecution"] = true; }; loader = new Loader(); loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler); loader.loadBytes(movieClipData, _local1); addChild(loader); } override public function get width():Number{ if (!initialized){ return (initialWidth); }; return (super.width); } override public function set width(_arg1:Number):void{ if (!initialized){ requestedWidth = _arg1; } else { loader.width = _arg1; }; } override public function get measuredHeight():Number{ return (initialHeight); } private function completeHandler(_arg1:Event):void{ initialized = true; initialWidth = loader.width; initialHeight = loader.height; if (!isNaN(requestedWidth)){ loader.width = requestedWidth; }; if (!isNaN(requestedHeight)){ loader.height = requestedHeight; }; dispatchEvent(_arg1); } override public function set height(_arg1:Number):void{ if (!initialized){ requestedHeight = _arg1; } else { loader.height = _arg1; }; } override public function get measuredWidth():Number{ return (initialWidth); } override public function get height():Number{ if (!initialized){ return (initialHeight); }; return (super.height); } public function get movieClipData():ByteArray{ return (null); } } }//package mx.core
Section 21
//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 22
//SoundAsset (mx.core.SoundAsset) package mx.core { import flash.media.*; public class SoundAsset extends Sound implements IFlexAsset { mx_internal static const VERSION:String = "3.0.0.0"; } }//package mx.core
Section 23
//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.0.0.0"; private static var counter:int = 0; public static function displayObjectToString(_arg1:DisplayObject):String{ var _local2:String; var _local4:String; var _local5:Array; var _local3:DisplayObject = _arg1; while (_local3 != null) { if (((((_local3.parent) && (_local3.stage))) && ((_local3.parent == _local3.stage)))){ break; }; _local4 = _local3.name; if ((_local3 is IRepeaterClient)){ _local5 = IRepeaterClient(_local3).instanceIndices; if (_local5){ _local4 = (_local4 + (("[" + _local5.join("][")) + "]")); }; }; _local2 = ((_local2 == null)) ? _local4 : ((_local4 + ".") + _local2); _local3 = _local3.parent; }; return (_local2); } 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 24
//Fonts (Resources.Fonts) package Resources { import flash.text.*; public class Fonts { public static const BODY_TEXT_CENTERED:TextFormat = new TextFormat(FONTIN, 16, null, null, null, null, null, null, TextFormatAlign.CENTER); public static const BODY_TEXT:TextFormat = new TextFormat(FONTIN, 16); public static const PLAYER_FONT:TextFormat = new TextFormat(FONTIN, 18, null, true); public static const LARGE_TEXT_CENTERED:TextFormat = new TextFormat(FONTIN, 24, null, null, null, null, null, null, TextFormatAlign.CENTER); public static const LARGE_TEXT:TextFormat = new TextFormat(FONTIN, 24); public static const DETAIL_TEXT:TextFormat = new TextFormat(FONTIN, 12); private static const FONTIN:String = "Fontin"; public static const BODY_TEXT_BOLD:TextFormat = new TextFormat(FONTIN, 16, null, true); public static const SCORECARD_LARGE:TextFormat = new TextFormat(FONTIN, 36, null, null, null, null, null, null, TextFormatAlign.CENTER); private static var fontinReg:String = "Fonts_fontinReg"; private static var fontinBold:String = "Fonts_fontinBold"; } }//package Resources
Section 25
//Fonts_fontinBold (Resources.Fonts_fontinBold) package Resources { import mx.core.*; public class Fonts_fontinBold extends FontAsset { } }//package Resources
Section 26
//Fonts_fontinReg (Resources.Fonts_fontinReg) package Resources { import mx.core.*; public class Fonts_fontinReg extends FontAsset { } }//package Resources
Section 27
//Layouts (Resources.Layouts) package Resources { import Screens.*; import WorldObjects.*; import flash.geom.*; import Util.*; public class Layouts { public static const BUDDHA:String = "Buddha"; public static const NAMELESS1:String = "Nameless1"; public static const NAMELESS2:String = "Nameless2"; public static const NAMELESS3:String = "Nameless3"; public static const BUFFALO:String = "Buffalo"; public static const TUTORIAL1:String = "Tutorial1"; public static const ALICE:String = "Alice"; public static const FROG:String = "Frog"; public static const PRUFROCK:String = "Prufrock"; public static const WHEELBARROW:String = "Wheelbarrow"; public static function getAuthor(_arg1:String):String{ switch (_arg1){ case Layouts.ALICE: return ("Lewis Carroll"); case Layouts.BUDDHA: return ("Kobayashi Issa"); case Layouts.BUFFALO: return ("E. E. Cummings"); case Layouts.FROG: return ("Matsuo Bashou"); case Layouts.NAMELESS1: return ("H. P. Lovecraft"); case Layouts.NAMELESS2: return ("H. P. Lovecraft"); case Layouts.NAMELESS3: return ("H. P. Lovecraft"); case Layouts.PRUFROCK: return ("T. S. Eliot"); case Layouts.TUTORIAL1: return ("Gregory Weir"); case Layouts.WHEELBARROW: return ("William Carlos Williams"); default: return ("ERROR!"); }; } public static function layoutPrufrock(_arg1:PlayScreen):void{ var _local2:Number; _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), -5, -100); var _local3:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.PRUFROCK); var _local4:uint = 0xFFFFFF; var _local5:uint = 15654297; var _local6:uint = 14531481; var _local7:uint = 16755370; var _local8:uint = 0xEECC00; _arg1.parallaxBG.fillRect(0, 0, 5300, 200, "the evening", 2232627); _arg1.FG.fillRect(0, 250, 820, 50, "certain half-deserted streets", 0x222222); _arg1.FG.fillRect(820, 216, 1620, 84, "certain half-deserted streets", 0x222222); _arg1.FG.fillRect(2440, 172, 660, 138, "certain half-deserted streets", 0x222222); _arg1.FG.fillRect(3100, 150, 700, 150, "certain half-deserted streets", 0x222222); _arg1.addWorldObject(new Wall(800, 150, _arg1), 3000, 160); _arg1.FG.fillRect(3800, 250, 1950, 50, "certain half-deserted streets", 0x222222); _arg1.addWorldObject(new Wall(1950, 50, _arg1), 3800, 250); _arg1.FG.fillRect(5750, 100, 100, 200, "the terrace", 0x222222); _arg1.addWorldObject(new Wall(100, 200, _arg1), 5750, 100); _arg1.FG.fillRect(5850, 200, 3700, 100, "the street", 0x222222); _arg1.addWorldObject(new Wall(3700, 100, _arg1), 5850, 200); _local3.setColor(_local4); _local3.cursorTo(25, 20); _local2 = _local3.cursor.x; _local3.addWordString(0, 5); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordString(6, 12); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(13, 18); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordString(19, 24); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(25, 31); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordString(32, 36); _local3.lineDown(3); _local3.cursor.x = 5; _local3.setColor(_local5); _local3.addWordString(37, 43); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(44, 52); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(53, 59); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(60, 66); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(67, 69, [68]); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(70, 76); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(77, 81); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(82, 88); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(89, 91, [90]); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(92, 98); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(99, 105); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(106, 112); _local3.lineUp(5); _local3.setColor(_local7); _local3.addDoubleLayer(113, 120, 121, 123, 2, false); _local3.cursor.x = (_local3.cursor.x + 150); _local3.lineUp(3); _local3.setColor(_local8); _local3.addWavyWordString(124, 133); _local3.lineDown(3); _local3.cursor.x = (_local3.cursor.x - 50); _local3.addWavyWordString(134, 143); _local3.lineDown(3); _local3.cursor.x = (_local3.cursor.x - 50); _local3.addWavyWordString(144, 152); _local3.lineDown(2); _local3.cursor.x = (_local3.cursor.x - 50); _local3.addWavyWordString(153, 160); _local3.lineUp(3); _local3.addWavyWordString(161, 171); _local3.lineUp(3); _local3.addWavyWordString(172, 179); _local3.lineUp(3); _local3.addWavyWordString(180, 188); _local3.lineDown(3); _local3.addWavyWordString(189, 196); _local3.lineDown(4); _local3.cursor.x = (_local3.cursor.x - 100); _local3.setColor(_local5); _local3.addWordString(197, 202); _local3.lineUp(5); _local3.setColor(_local8); _local3.addWavyWordString(203, 211); _local3.lineUp(2); _local3.addWavyWordString(212, 217); _local3.lineDown(6); _local3.setColor(_local5); _local3.addWordString(218, 225); _local3.setColor(_local6); _local3.lineUp(); _local3.addWordString(226, 236); _local3.setColor(_local5); _local3.lineDown(); _local3.addWordString(237, 244); _local3.setColor(_local6); _local3.lineUp(); _local3.addWordString(245, 254); _local3.setColor(_local5); _local3.lineUp(); _local3.addWordString(0xFF, 263); _local3.setColor(_local6); _local3.lineDown(); _local3.addWordString(264, 270); _local3.setColor(_local5); _local3.lineDown(); _local3.addWordString(271, 277); _local3.setColor(_local6); _local3.lineUp(); _local3.addWordString(278, 284); _local3.setColor(_local5); _local3.lineUp(); _local3.addWordString(285, 292); _arg1.FG.fillRect(9620, 200, 500, 440, "do I dare?", 0x222222); _arg1.addWorldObject(new Wall(100, 740, _arg1), 10110, -100); _arg1.addWorldObject(new Wall(20, 900, _arg1), 9600, 175); _arg1.addWorldObject(new ScrollColumn(900, 175, 605, _arg1), 9615, -100); _local2 = _local3.cursor.x; _local3.setColor(_local7); _local3.lineUp(5); _local3.addDoubleLayer(293, 300, 301, 303, 1, false); _local3.cursor.x = (_local2 + 60); _local3.setColor(_local5); _local3.lineDown(6); _local3.addWordString(304, 309); _local3.lineDown(); _local3.cursor.x = (_local2 - 15); _local3.addWordString(310, 318, [314, 318]); _local3.lineDown(2); _local3.cursor.x = (_local2 - 20); _local3.addWordString(319, 326); _local3.lineDown(); _local3.cursor.x = (_local2 - 35); _local3.addWordString(327, 336); _local3.lineDown(3); _local3.cursor.x = 9620; _local3.setColor(_local4); _local3.addWordString(337, 345); _local3.lineDown(3); _local3.cursor.x = 9690; _local3.setColor(_local5); _local3.addWordString(346, 355); _local3.lineDown(); _local3.cursor.x = 9685; _local3.addWordString(356, 366); _local3.lineDown(3); _local3.cursor.x = 9620; _local3.setColor(_local4); _local3.addWordString(367, 377); _local3.lineDown(3); _local3.cursor.x = 10045; _local3.setColor(_local5); _local3.addWordString(378, 380, [380]); _local3.lineDown(); _local3.cursor.x = 9960; _local3.addWordString(381, 383); _local3.lineDown(2); _local3.cursor.x = 9930; _local3.addWordString(384, 389); _local3.lineDown(); _local3.cursor.x = 9705; _local3.addWordString(390, 398); _arg1.addWorldObject(new VertScrollSetter(Main.GAME_WIDTH, _arg1), 10110, 520.5); _arg1.parallaxBG.fillRect(5350, 250, 2800, 300, "should I presume?", 2232610); _local3.lineDown(5); _local3.cursor.x = 9620; _local3.setColor(_local6); _local3.addWordString(399, 408); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(409, 414); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(415, 423); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(424, 432, [428, 431]); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(433, 439); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.addSpace(); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(440, 444); _local3.lineUp(); _local3.addSpace(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(445, 454); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(455, 463); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(464, 472, [469]); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(473, 481, [476, 478]); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(482, 486); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(487, 497); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.addSpace(); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(498, 502); _local3.lineUp(); _local3.addSpace(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(503, 0x0200); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(513, 520); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(521, 529); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(530, 535); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(536, 540); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(541, 551); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.addSpace(); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(552, 556); _local3.lineUp(); _local3.addWordString(557, 561); _arg1.addWorldObject(new Pit(650, 20, new Point(15900, 682), _arg1), 15900, 820); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 80); _local3.addWordString(562, 566); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 80); _local2 = _local3.cursor.x; _local3.setColor(_local5); _local3.addWordString(567, 577); _local3.lineDown(2); _local3.cursor.x = (_local2 + 50); _local3.addWordString(578, 586); _local3.lineDown(2); _local3.cursor.x = (_local2 + 100); _local3.addWordString(587, 595); _arg1.addWorldObject(new Pit(750, 20, new Point(16650, 641.5), _arg1), 16550, 820); _local3.lineDown(5); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local6); _local3.addWordString(596, 604, [603]); _local3.lineDown(); _local3.addWordString(605, 611, [610]); _arg1.addWorldObject(new Pit(650, 20, new Point(17300, 761.5), _arg1), 17300, 820); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 80); _local3.setColor(_local4); _local3.addWordString(612, 616); _arg1.parallaxBG.fillRect(9000, 250, 1950, 300, "I was afraid", 2232593); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 80); _local3.setColor(_local5); _local3.addWordString(617, 624); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(625, 628); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(629, 633); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(634, 642); _local3.lineUp(3); _arg1.addWorldObject(new Wall(10, (Word.LINE_HEIGHT * 3), _arg1), _local3.cursor.x, _local3.cursor.y); _local3.setColor(_local6); _local3.addWordString(643, 650); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(651, 660, [660]); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(661, 670, [665, 667, 668, 670]); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(671, 676); _local3.setColor(_local4); _local3.addWordString(677, 679); _local3.setColor(_local5); _local3.addWordString(680, 684); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(685, 693); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.addSpace(); _local3.lineDown(); _local3.addWordString(694, 702); _local3.lineDown(); _local3.addWordString(703, 714); _local3.lineDown(); _local3.addWordString(715, 720); _arg1.parallaxBG.fillRect(11050, 250, 3750, 300, "not what I meant at all", 1118498); _local3.lineUp(5); _arg1.addWorldObject(new Wall(10, (Word.LINE_HEIGHT * 5), _arg1), _local3.cursor.x, _local3.cursor.y); _local3.setColor(_local5); _local3.addWordString(721, 729); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(730, 736); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(737, 746); _local3.lineUp(2); _arg1.addWorldObject(new Wall(10, (Word.LINE_HEIGHT * 2), _arg1), _local3.cursor.x, _local3.cursor.y); _local3.setColor(_local6); _local3.addWordString(747, 752); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(753, 761); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(762, 769); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(770, 776); _local3.lineUp(2); _arg1.addWorldObject(new Wall(10, (Word.LINE_HEIGHT * 2), _arg1), _local3.cursor.x, _local3.cursor.y); _local3.setColor(_local6); _local3.addWordString(777, 785); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(786, 796); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(797, 804); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.addSpace(); _local3.lineDown(); _local3.setColor(_local5); _local3.addSpace(); _local3.addWordString(805, 814); _local3.addSpace(); _local3.setColor(_local6); _local3.addWordString(815, 820); _local3.lineUp(5); _arg1.addWorldObject(new Wall(10, (Word.LINE_HEIGHT * 5), _arg1), _local3.cursor.x, _local3.cursor.y); _local3.setColor(_local5); _local3.addWordString(821, 829); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(830, 835); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(836, 845); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(846, 859); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(860, 865); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(866, 874); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(875, 888); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(889, 894); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(895, 904); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(905, 911); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x - WordLayoutGenerator.SPACER_WIDTH); _local3.addSpace(); _local3.lineDown(); _local3.setColor(_local5); _local3.addSpace(); _local3.addWordString(912, 917); _local3.addSpace(); _local3.setColor(_local6); _local3.addWordString(918, 925); _arg1.addWorldObject(new Pit(1000, 20, new Point(29250, 761.5), _arg1), 29250, 820); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 80); _local3.setColor(_local4); _local3.addWordString(926, 930); _arg1.parallaxBG.fillRect(15000, 250, 2000, 300, "I grow old...", 2232610); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 80); _local3.setColor(_local5); _local3.addWordString(931, 941); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(942, 949); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(950, 958); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(959, 966); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(967, 972); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(973, 976); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(977, 984); _local3.lineDown(); _local3.setColor(_local6); _local3.addWordString(985, 989); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(990, 994); _arg1.addWorldObject(new Pit(1000, 20, new Point(31900, 682), _arg1), 31900, 820); _local3.lineUp(5); _local3.cursor.x = (_local3.cursor.x + 50); _local3.addDoubleLayer(995, 1000, 1001, 1009, 2, false); _local3.lineDown(5); _local3.cursor.x = (_local3.cursor.x + 50); _local3.addWordString(1010, 1022); _local3.lineUp(); _local3.setColor(_local6); _local3.addWordString(1023, 1033); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(1034, 1042); _arg1.addWorldObject(new Pit(1000, 20, new Point(33600, 681.5), _arg1), 33600, 820); _local3.lineUp(5); _local3.cursor.x = (_local3.cursor.x + 50); _local3.addWordString(1043, 1052); _local3.lineDown(3); _local3.cursor.x = (_local3.cursor.x + 50); _local2 = _local3.cursor.x; _local3.addWordString(1053, 1061); _local3.lineDown(2); _local3.cursor.x = (_local2 + 50); _local3.addWordString(1062, 1070); _local3.lineDown(2); _local3.cursor.x = (_local2 + 100); _local3.addWordString(1071, 1079); _local3.cursor.x = (_local3.cursor.x + 50); _local3.lineUp(3); _local3.setColor(_local6); _local3.addWordString(1080, 1088); _local3.lineDown(); _local3.addWordString(1089, 1096); _local3.lineDown(); _local3.addWordString(1097, 1104); _arg1.addWorldObject(new Wall(10, 800, _arg1), _local3.cursor.x, 0); _arg1.player.x = 15; _arg1.player.y = 204; _arg1.scorekeeper.totalWords = 1105; } public static function layoutBuddha(_arg1:PlayScreen):void{ _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), -10, -100); _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), Main.GAME_WIDTH, -100); _arg1.scrollEnabled = false; var _local2:Number = 165; var _local3:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.BUDDHA); _local3.setColor(14540287); _local3.cursorTo(_local2, 50); _local3.addWordString(0, 4); _local3.lineDown(3); _local3.setColor(15654382); _local3.cursor.x = _local2; _local3.addWordString(5, 10); _local3.lineDown(3); _local3.setColor(16768477); _local3.cursor.x = _local2; _local3.addWordString(11, 15); _local3.lineDown(3); _arg1.addWorldObject(new Wall(Main.GAME_WIDTH, 100, _arg1), 0, _local3.cursor.y); _arg1.FG.fillRect(0, 0, 200, Main.GAME_HEIGHT, "man is a Buddha", 4386); _arg1.FG.fillRect(300, 0, 200, Main.GAME_HEIGHT, "man is a fly", 4386); _arg1.player.x = 166; _arg1.player.y = 33.5; _arg1.scorekeeper.totalWords = 16; } public static function layoutNamelessCity2(_arg1:PlayScreen):void{ var _local2:Number; var _local3:Number; _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), 0, -100); var _local4:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.NAMELESS_CITY2); var _local5:uint = 15663086; var _local6:uint = 12311995; var _local7:uint = 16755251; var _local8:uint = 0x999999; var _local9:uint = 0x666666; var _local10:uint = 0xFFFFFF; _arg1.player.x = 15; _arg1.player.y = 114; _arg1.freeScroll = true; _local4.cursorTo(5, 70); _local4.setColor(_local5); _local4.addDoubleLayer(0, 8, 9, 18, 3); _arg1.FG.fillRect(0, _local4.cursor.y, _local4.cursor.x, (Main.GAME_HEIGHT - _local4.cursor.y), "a natural cavern", 0x333333); _local2 = _local4.cursor.x; _local4.setColor(_local6); _local4.lineUp(3); _local4.addDoubleLayer(19, 25, 26, 32, 4); _arg1.FG.fillRect(_local2, _local4.cursor.y, (_local4.cursor.x - _local2), (Main.GAME_HEIGHT - _local4.cursor.y), "a natural cavern", 0x333333); _local2 = _local4.cursor.x; _local4.setColor(_local5); _local4.lineUp(5); _local4.addDoubleLayer(33, 38, 39, 45, 6); _local4.setColor(_local6); _local4.addWordString(46, 54); _local3 = _local4.cursor.x; _local4.lineUp(6); _local4.addWordString(55, 75); _local4.lineDown(2); _local4.setColor(_local7); _local4.addWavyWordString(76, 80, null, false); _local4.lineDown(3.5); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local3), Word.LINE_HEIGHT, _arg1), _local3, _local4.cursor.y); _local4.setColor(_local5); _local4.addWordString(81, 87); _local4.addSpace(); _local4.setColor(_local6); _local4.addWordString(88, 89); _local4.lineUp(4); _local4.addCenteredWordColumn(90, 93); _local4.lineDown(); _local4.addWordString(94, 96); _local4.lineUp(2); _local4.addCenteredWordColumn(97, 98); _local4.lineDown(); _local4.addWordString(99, 104); _local3 = _local4.cursor.x; _local4.lineUp(4); _local4.setColor(_local7); _local4.addWavyWordString(105, 114, null, false); _local4.lineUp(2.5); _local4.setColor(_local5); _local4.addWordString(115, 126); _local4.addSpace(); _arg1.FG.fillRect(0, 0, _local4.cursor.x, (_local4.cursor.y + Word.LINE_HEIGHT), "a natural cavern", 0x333333); _local4.lineDown(6); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local3), Word.LINE_HEIGHT, _arg1), _local3, _local4.cursor.y); _arg1.FG.fillRect(_local2, _local4.cursor.y, (_local4.cursor.x - _local2), (Main.GAME_HEIGHT - _local4.cursor.y), "a natural cavern", 0x333333); _local4.lineUp(6); _local2 = _local4.cursor.x; _local4.setColor(_local6); _local4.addDoubleLayer(127, 132, 133, 139, 6); _local4.setColor(_local5); _local4.addWordString(140, 146); _local3 = _local4.cursor.x; _local4.lineUp(4); _local4.setColor(_local7); _local4.addWavyWordString(147, 154, null, false); _local4.lineDown(4); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local3), Word.LINE_HEIGHT, _arg1), _local3, _local4.cursor.y); _local4.lineUp(6); _local4.setColor(_local6); _local4.addDoubleLayer(155, 157, 158, 162, 6); _local4.lineUp(5); _local4.setColor(_local5); _local4.addDoubleLayer(163, 168, 169, 174, 5); _local4.lineUp(4); _local4.setColor(_local6); _local4.addDoubleLayer(175, 178, 179, 182, 4); _local4.lineUp(3); _local4.setColor(_local5); _local4.addDoubleLayer(183, 189, 190, 195, 3); _local4.lineUp(2); _local4.setColor(_local6); _local4.addDoubleLayer(196, 203, 204, 210, 2, false); _arg1.FG.fillRect(_local2, _local4.cursor.y, (_local4.cursor.x - _local2), (Main.GAME_HEIGHT - _local4.cursor.y), "too regular to be natural", 0x333333); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), (_local4.cursor.x + 25), ((_local4.cursor.y - Main.GAME_HEIGHT) - (2 * Word.LINE_HEIGHT))); _local4.setColor(_local5); _local4.addSteepStairs(211, 221); _local4.lineUp(); _local4.addSpace(); _local4.lineUp(2); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), _local4.cursor.x, (_local4.cursor.y - Main.GAME_HEIGHT)); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), (_local4.cursor.x + 320), (_local4.cursor.y - Main.GAME_HEIGHT)); _local4.setColor(_local6); _local4.addDoubleLayer(222, 230, 231, 238, 2, false, [238]); _local4.lineDown(); _local4.setColor(_local5); _local4.addSteepStairs(239, 0x0100, [0xFF]); _arg1.addWorldObject(new Pit(800, 30, _local4.cursor.add(new Point(-15, (-3 * Word.LINE_HEIGHT))), _arg1), (_local4.cursor.x - 100), (_local4.cursor.y + 200)); _local4.cursor.x = (_local4.cursor.x + 100); _local4.setColor(_local6); _local4.addWavyWordString(0x0101, 263, [260]); _local4.cursor.x = (_local4.cursor.x + 50); _local4.lineUp(3); _local4.setColor(_local5); _local4.addCenteredWordColumn(264, 268); _local4.lineUp(2); _local4.setColor(_local6); _local4.cursor.x = (_local4.cursor.x + 85); _local4.addWordString(269, 271); _arg1.addWorldObject(new Pit(750, 30, _local4.cursor.add(new Point(-50, -(Word.LINE_HEIGHT))), _arg1), (_local4.cursor.x - 50), (_local4.cursor.y + 200)); _local4.setColor(_local5); _local4.cursor.x = (_local4.cursor.x + 75); _local4.lineUp(2); _local4.addWavyWordString(272, 277); _local4.lineDown(2); _local4.setColor(_local6); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addCenteredWordColumn(278, 283, 75); _local4.lineUp(); _local4.cursor.x = (_local4.cursor.x + 75); _local4.setColor(_local5); _local4.addCenteredWordColumn(284, 292, 75); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local6); _local4.addWordString(293, 300); _local4.setColor(_local5); _local4.lineDown(); _local4.addSteepStairs(301, 320); _local4.setColor(_local6); _local4.addWordString(321, 342, [326, 327, 329, 331]); _local4.setColor(_local5); _local4.lineDown(); _local4.addSteepStairs(343, 399, [347, 351, 352, 388]); _local4.cursor.x = (_local4.cursor.x + 100); _local4.lineUp(); _arg1.addWorldObject(new Wall(10, 150, _arg1), _local4.cursor.x, (_local4.cursor.y - 150)); _local4.addBackwardsStairs(400, 404); _local4.lineDown(); _local4.cursor.x = (_local4.cursor.x - 100); _arg1.addWorldObject(new Wall(10, 150, _arg1), _local4.cursor.x, (_local4.cursor.y - 150)); _local4.addWordColumn(405, 407); _local4.lineDown(); _local4.addWordString(408, 413); _local4.addSpace(); _local4.setColor(_local6); _local4.lineUp(2); _arg1.addWorldObject(new Wall(10, 100, _arg1), _local4.cursor.x, (_local4.cursor.y - 100)); _local4.addDoubleLayer(414, 421, 422, 429); _local4.lineUp(2); _local4.setColor(_local5); _local4.addDoubleLayer(430, 437, 438, 445); _arg1.addWorldObject(new Wall(10, 100, _arg1), (_local4.cursor.x - 10), ((_local4.cursor.y - 100) - (2 * Word.LINE_HEIGHT))); _local4.setColor(_local6); _local4.lineDown(); _local4.addSteepStairs(446, 466); _local4.setColor(_local8); _local4.addSteepStairs(467, 524, [504, 507, 518, 523]); _local4.addWordString(525, 540, [539]); _arg1.addWorldObject(new Pit(750, 30, _local4.cursor.add(new Point(-50, -(Word.LINE_HEIGHT))), _arg1), (_local4.cursor.x - 50), (_local4.cursor.y + 200)); _arg1.parallaxBG.fillRect(7250, 1900, 2000, 600, "in the darkness", 0x220000); _local4.cursor.x = (_local4.cursor.x + 50); _local4.lineUp(3); _local4.addWordString(541, 546); _local4.lineDown(4); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addWordString(547, 553, [550]); _arg1.addWorldObject(new Pit(750, 30, _local4.cursor.add(new Point(-50, -(Word.LINE_HEIGHT))), _arg1), (_local4.cursor.x - 50), (_local4.cursor.y + 200)); _local4.cursor.x = (_local4.cursor.x + 20); _local4.lineUp(9); _local4.addCenteredWordColumn(554, 556, 0, [555]); _local4.lineDown(4); _local4.cursor.x = (_local4.cursor.x + 20); _local4.addWordString(557, 562, [559]); _local4.lineUp(5); _local4.cursor.x = (_local4.cursor.x + 30); _local4.addCenteredWordColumn(563, 566); _local4.lineUp(); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addWordString(567, 570); _arg1.addWorldObject(new Pit(750, 30, _local4.cursor.add(new Point(-50, -(Word.LINE_HEIGHT))), _arg1), (_local4.cursor.x - 50), (_local4.cursor.y + 200)); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x - 75); _local4.addWordString(571, 574, [574]); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x - 75); _local4.addWordString(575, 581, [577]); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x - 75); _local4.addWordString(582, 584); _local4.lineDown(4); _local4.cursor.x = (_local4.cursor.x + 100); _local4.addWordString(585, 598); _arg1.addWorldObject(new Pit(500, 30, _local4.cursor.add(new Point(-50, -(Word.LINE_HEIGHT))), _arg1), (_local4.cursor.x - 50), (_local4.cursor.y + 200)); _local4.lineUp(4); _local4.cursor.x = (_local4.cursor.x + 25); _local4.setColor(_local10); _local4.addWordString(599, 604); _local4.lineDown(4); _local4.setColor(_local8); _local4.addSteepStairs(605, 625); _arg1.addWorldObject(new Pit(500, 30, _local4.cursor.add(new Point(-50, -((2 * Word.LINE_HEIGHT)))), _arg1), (_local4.cursor.x - 50), (_local4.cursor.y + 300)); _local4.cursor.x = (_local4.cursor.x + 25); _local4.lineUp(7); _local3 = _local4.cursor.x; _local4.setColor(_local10); _local4.addWordString(626, 630, [629]); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(631, 636); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(637, 642); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(643, 649); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(650, 656, [653]); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(657, 662); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(663, 669); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(670, 675); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(676, 683, [683]); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(684, 689); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x + 25); _local4.setColor(_local8); _local4.addWordString(690, 703); _local4.addSpace(); _local4.lineUp(2); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), _local4.cursor.x, (_local4.cursor.y - Main.GAME_HEIGHT)); _local4.setColor(_local9); _local4.addDoubleLayer(704, 710, 711, 715); _local4.lineUp(2); _local4.setColor(_local8); _local4.addDoubleLayer(716, 721, 722, 727); _local4.lineUp(2); _local4.setColor(_local9); _local4.addDoubleLayer(728, 732, 733, 736); _local4.lineUp(2); _local4.setColor(_local8); _local4.addDoubleLayer(737, 743, 744, 749); _local4.lineUp(2); _local4.setColor(_local9); _local4.addDoubleLayer(750, 758, 759, 764); _local4.lineUp(2); _local4.setColor(_local8); _local4.addDoubleLayer(765, 767, 0x0300, 770); _local4.lineUp(2); _local4.setColor(_local9); _local4.addDoubleLayer(0x0303, 779, 780, 787); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), (_local4.cursor.x - 10), ((_local4.cursor.y - Main.GAME_HEIGHT) - (2 * Word.LINE_HEIGHT))); _local4.setColor(_local8); _local4.addWordString(788, 793, [789]); _local4.setColor(_local9); _local4.lineUp(2); _local4.addCenteredWordColumn(794, 795); _local4.lineDown(); _local4.setColor(_local8); _local4.addWordString(796, 809); _local4.lineUp(3); _local4.setColor(_local9); _local4.addCenteredWordColumn(810, 812); _local4.lineDown(); _local4.addWordString(813, 819, [813]); _local4.setColor(_local8); _local4.addWordString(820, 837); _local4.setColor(_local9); _local4.addWordString(838, 867, [848, 853, 859, 867]); _local4.setColor(_local8); _local4.addWordString(868, 890); _local4.setColor(_local9); _local4.addWordString(891, 921); _local4.setColor(_local8); _local4.addWordString(922, 926); _local4.setColor(_local6); _local4.addWordString(927, 929); _local4.setColor(_local5); _local4.addWordString(930, 933); _arg1.scorekeeper.totalWords = 934; } public static function layoutNamelessCity1(_arg1:PlayScreen):void{ var _local2:Number; _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), 0, -100); var _local3:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.NAMELESS_CITY1); var _local4:uint = 16772795; var _local5:uint = 16768392; var _local6:uint = 15663086; var _local7:uint = 12311995; _arg1.player.x = 37; _arg1.player.y = 134; _arg1.parallaxBG.fillRect(0, 0, 3750, 200, "under the moon", 34); _arg1.FG.fillRect(0, 225, 7500, 75, "sands of uncounted ages", 3351057); _arg1.parallaxBG.addCenteredText(750, 50, 50, 4473890, "the moon"); _arg1.parallaxBG.addCenteredText(950, 175, 75, 4465186, "the nameless city"); _local3.setColor(_local4); _local3.cursorTo(5, 150); _local3.addWordString(0, 1); _local3.lineDown(); _local3.addWordString(2, 15, [11]); _local3.lineDown(); _local3.addWordString(16, 19); _local3.lineDown(); _local3.addWordString(20, 23); _local3.lineDown(); _local3.addWordString(24, 30); _local3.lineDown(); _local3.addWordString(31, 37); _local3.addWordSpawner(38); _local3.addWordString(39, 47, [44]); _local3.lineUp(); _local3.addWordString(48, 51); _local3.lineUp(); _local3.addWordString(52, 57); _local3.lineUp(); _local3.addWordString(58, 62); _local3.addWordColumn(63, 66); _local3.addWordString(67, 83); _local3.lineDown(); _local3.addWordString(84, 91); _arg1.addWorldObject(new Wall(Word.SPACE_WIDTH, (Word.LINE_HEIGHT * 5), _arg1), _local3.cursor.x, (_local3.cursor.y - (Word.LINE_HEIGHT * 5))); _local3.cursor.x = (_local3.cursor.x - Word.LINE_HEIGHT); _local3.lineUp(5); _local3.addWordString(92, 101); _local3.lineDown(); _local3.addWordString(102, 104); _local3.lineDown(); _local3.addWordByIndex(105); _local3.lineUp(2); _local3.setColor(_local5); _local3.addWordColumn(106, 107); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordColumn(108, 110); _local3.lineDown(); _local3.addWordString(111, 115); _local3.lineUp(5); _local3.setColor(_local5); _local3.addWordColumn(116, 120); _local3.addWordString(121, 123); _local3.lineUp(3); _local3.setColor(_local4); _local3.addWordColumn(124, 126); _local3.addWordString(127, 131); _local3.lineUp(4); _local3.setColor(_local5); _local3.addWordColumn(132, 137); _local3.setColor(_local4); _local3.addWordString(138, 157); _local3.setColor(_local5); _local3.lineDown(); _local3.addWordString(158, 171, [164, 168]); _local3.setColor(_local4); _local3.lineUp(); _local3.addWordByIndex(172); _local3.lineUp(); _local3.addWordByIndex(173); _local3.lineUp(); _local3.addWordByIndex(174); _local3.lineDown(); _local3.addWordByIndex(175); _local3.lineDown(); _local3.addWordByIndex(176); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(177, 187, [182]); _local3.setColor(_local4); _local3.addWordString(188, 207); _local3.setColor(0xFFFFFF); _local2 = _local3.cursor.x; _local3.lineUp(8); _local3.addWordString(208, 215, [214]); _local3.lineDown(3); _local3.cursor.x = _local2; _local3.addWordString(216, 223, [218, 223]); _local3.lineDown(5); _arg1.addWorldObject(new Pit(((_local3.cursor.x - _local2) + 100), Word.LINE_HEIGHT, new Point((_local2 - 150), (_local3.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local2 - 50), Main.GAME_HEIGHT); _arg1.parallaxBG.fillRect(4100, 0, 2250, 200, "the night wind", 34); _arg1.FG.fillRect(8000, 225, 4300, 75, "the untrodden waste", 3351057); _local3.setColor(_local4); _local3.addWordString(224, 238); _local3.lineUp(5); _local3.setColor(_local5); _local3.addWordColumn(239, 243); _local3.addWordString(244, 247); _local3.lineUp(4); _local3.setColor(_local4); _local3.addWordColumn(248, 251); _local3.addWordString(252, 264); _local3.lineDown(); _local3.addWordString(265, 269); _local3.lineUp(); _local3.addWordString(270, 284, [282]); _local3.lineUp(); _local3.addWordString(285, 298, [291, 296]); _local3.lineUp(); _local3.addWordString(299, 303); _local3.lineUp(); _local3.addWordString(304, 307, [306]); _local3.lineUp(); _local3.addWordString(308, 311); _local3.lineDown(); _local3.addWordString(312, 314); _local3.lineUp(); _local3.addWordString(315, 326); _local3.lineUp(); _local3.addWordString(327, 339); _local3.lineUp(); _local3.addWordString(340, 342); _local3.lineUp(); _local3.addWordString(343, 345); _local3.lineUp(); _local3.addWordString(346, 347); _local3.lineUp(); _local2 = _local3.cursor.x; _local3.addWordString(348, 350); _arg1.parallaxBG.addLeftRightGradient(6300, 0, 3450, 215, [0, 0x220011, 3355460], [0, 50, 150]); _arg1.parallaxBG.addLeftRightGradient(6300, 215, 3450, 85, [0, 3351057], [0, 150]); _arg1.parallaxBG.addLeftRightGradient(9750, 0, 100, 215, [3355460, 0x220011, 0], [0, 50, 100]); _arg1.parallaxBG.addLeftRightGradient(9750, 215, 100, 85, [3351057, 0], [0, 100]); _arg1.parallaxBG.fillRect(6300, 0, 200, 200, "roseate light", 0x330022); _arg1.parallaxBG.fillRect(6450, 0, 3300, 200, "the sky was clear", 4473941); _arg1.FG.fillRect(12300, 225, 6700, 75, "the untrodden waste", 4469538); _arg1.parallaxBG.addCenteredText(7400, 50, 50, 0x993300, "the fiery disc"); _arg1.addWorldObject(new WindZone(1300, 50, "a storm of sand", 13417369, 20, _arg1), 13100, 25); _local3.setColor(_local5); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordColumn(351, 358); _local3.addWordString(359, 363); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(364, 373); _local3.lineUp(); _local3.addWordString(374, 383); _local3.lineUp(); _local3.addWordString(384, 388); _local3.lineUp(); _local3.addWordString(389, 393); _local3.lineUp(); _local3.addWordString(394, 400); _local3.lineUp(); _local3.addWordString(401, 402); _local3.lineUp(); _local3.addWordByIndex(403); _local3.lineUp(); _local3.addWordByIndex(404); _local3.lineUp(); _local3.addWordByIndex(405); _local2 = _local3.cursor.x; _local3.addWordString(406, 407); _local3.lineDown(); _local3.cursor.x = _local2; _local3.addWordColumn(408, 409); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordSpawner(410, false); _local3.lineDown(); _local3.addWordColumn(411, 417); _local3.lineDown(); _local3.cursor.x = _local2; _local3.setColor(_local5); _local3.addWordString(418, 423); _local3.lineUp(5); _local3.setColor(_local4); _local2 = _local3.cursor.x; _local3.cursor.x = (_local3.cursor.x + 12); _local3.addCenteredWordColumn(424, 433, 90, [427]); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordString(434, 435); _local3.setColor(_local5); _local3.addWordString(436, 442); _local3.lineUp(10); _local3.setColor(_local4); _local3.addCenteredWordColumn(443, 452, 0, [446]); _local3.lineUp(10); _local3.setColor(_local5); _local3.cursor.x = (_local3.cursor.x - 10); _local3.addWordString(453, 460); _local3.lineDown(); _local3.addWordString(461, 464); _local3.lineDown(); _local3.addWordString(465, 473); _local3.lineDown(); _local3.addWordString(474, 477); _local3.lineDown(); _local3.addWordString(478, 487); _local3.setColor(_local4); _arg1.addWorldObject(new Wall(5, (3 * Word.LINE_HEIGHT), _arg1), (_local3.cursor.x - 5), _local3.cursor.y); _local3.lineDown(3); _local3.addWordString(488, 492); _local3.lineUp(4); _local3.addCenteredWordColumn(493, 498, 75); _local3.lineDown(); _local3.addWordString(499, 501); _local3.lineDown(); _local3.addWordString(502, 506); _local3.lineUp(); _local3.addWordString(507, 511); _local3.lineDown(); _local3.addWordString(0x0200, 515, [0x0200, 513, 0x0202, 515]); _local3.lineUp(); _local3.addWordByIndex(516); _local3.lineUp(3); _local3.setColor(_local5); _local3.addWordColumn(517, 519); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordByIndex(520); _local3.lineUp(2); _local3.setColor(_local5); _local3.addWordColumn(521, 522); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(523, 525); _local3.lineDown(); _local3.addWordString(526, 532, [532]); _local3.lineUp(6); _local3.setColor(_local5); _local2 = _local3.cursor.x; _local3.addCenteredWordColumn(533, 545, 75); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordColumn(546, 547); _local3.addWordString(548, 551); _local3.setColor(_local4); _local3.lineUp(6); _local3.addCenteredWordColumn(552, 557, 75, [555, 557]); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(558, 565); _local3.setColor(_local4); _local3.lineUp(); _local3.addWordString(566, 575); _local3.setColor(_local5); _local3.lineUp(5); _local3.addWordColumn(576, 581, 50); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(582, 590); _local3.setColor(_local5); _local3.lineDown(); _local3.addWordString(591, 616, [600, 605]); _local3.setColor(_local4); _local3.lineUp(); _local3.addWordString(617, 649); _arg1.addWorldObject(new Wall(5, (Word.LINE_HEIGHT * 4), _arg1), _local3.cursor.x, (_local3.cursor.y - (Word.LINE_HEIGHT * 4))); _local3.lineUp(5); _local3.cursor.x = (_local3.cursor.x - 100); _arg1.addWorldObject(new WindZone(775, 50, "a small sighing sandstorm", 13417369, 20, _arg1), 20375, 25); _arg1.addWorldObject(new WindZone(400, 50, "a little sandstorm", 13417369, 20, _arg1), 22430, 25); _arg1.parallaxBG.fillRect(9850, 0, 1000, 250, "the night wind", 34); _arg1.parallaxBG.addLeftRightGradient(10800, 0, 4150, 215, [0, 0x220011, 3355460], [0, 50, 150]); _arg1.parallaxBG.addLeftRightGradient(10800, 215, 2750, 85, [0, 3351057], [0, 150]); _arg1.parallaxBG.addCenteredText(10700, 50, 50, 4473890, "the moon"); _arg1.parallaxBG.fillRect(10900, 0, 2650, 200, "quietness", 4473941); _arg1.FG.fillRect(21700, 225, 5100, 75, "the landscape", 4469538); _local3.addWordString(650, 660, [659]); _local3.lineDown(); _local3.addWordString(661, 668, [668]); _local3.setColor(_local5); _local3.lineDown(); _local3.addWordString(669, 698); _local3.setColor(_local4); _local3.lineDown(); _local3.addWordString(699, 703); _local3.setColor(_local5); _local3.lineUp(3); _local3.addCenteredWordColumn(704, 706, 0, [705]); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordByIndex(707); _local3.setColor(_local5); _local3.lineUp(3); _local3.addCenteredWordColumn(708, 711, 75, [708]); _local3.setColor(_local4); _local3.lineDown(); _local3.addWordString(712, 713); _local3.setColor(_local5); _local3.lineUp(3); _local3.addCenteredWordColumn(714, 717, 75, [714]); _local3.setColor(_local4); _local3.lineDown(); _local3.addWordString(718, 727); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(728, 731); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(732, 740); _local3.setColor(_local6); _local3.lineUp(4); _local3.addWordColumn(741, 745); _local3.setColor(_local4); _local3.addWordString(746, 747); _local3.setColor(_local6); _local3.lineUp(6); _local3.addWordColumn(748, 753); _local3.setColor(_local4); _local3.addWordString(754, 758); _local3.setColor(_local6); _local3.lineUp(4); _local3.addCenteredWordColumn(759, 762); _local3.setColor(_local4); _local3.addWordString(763, 770); _local3.setColor(_local6); _local3.lineUp(5); _local3.addWordColumn(0x0303, 780, 60); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(781, 783); _local3.lineUp(5); _local3.setColor(_local6); _local3.addCenteredWordColumn(784, 788, 0, [784]); _local3.setColor(_local5); _local3.lineDown(); _local3.addWordString(789, 791); _local3.setColor(_local6); _local3.lineUp(3); _local3.addCenteredWordColumn(792, 794, 0, [792, 794]); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(795, 798); _local3.setColor(_local6); _local3.lineUp(3); _local3.addCenteredWordColumn(799, 801, 0, [801]); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(802, 807); _local3.lineUp(); _local3.addWordSpawner(808); _local3.lineDown(); _local3.addWordString(809, 817); _arg1.parallaxBG.addLeftRightGradient(13550, 215, 1400, 85, [3351057, 3355460], [0, 10]); _arg1.parallaxBG.fillRect(13550, 0, 1400, 300, "quietness", 4473941); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(818, 827); _arg1.addWorldObject(new Pit(900, Word.LINE_HEIGHT, new Point((_local3.cursor.x - 25), 112), _arg1), (_local3.cursor.x - 150), Main.GAME_HEIGHT); _local3.setColor(_local6); _local3.lineUp(4); _local3.addCenteredWordColumn(828, 831); _local3.lineUp(5); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local4); _local3.addWordString(832, 836); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local6); _local3.lineUp(); _local3.addCenteredWordColumn(837, 839); _local3.lineUp(); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local4); _local3.addWordString(840, 845); _local3.lineDown(2); _local3.cursor.x = (_local3.cursor.x - 100); _local3.addWordString(846, 849); _local3.lineDown(2); _local3.cursor.x = (_local3.cursor.x - 100); _local3.addWordString(850, 855); _arg1.addWorldObject(new Pit(700, Word.LINE_HEIGHT, new Point((_local3.cursor.x - 100), 151), _arg1), (_local3.cursor.x - 100), Main.GAME_HEIGHT); _local3.lineUp(5); _local3.setColor(_local6); _local3.cursor.x = (_local3.cursor.x + 50); _local3.addCenteredWordColumn(856, 863, 60); _local3.cursor.x = (_local3.cursor.x + 50); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(864, 868); _local3.setColor(_local6); _local3.cursor.x = (_local3.cursor.x + 50); _local3.lineUp(5); _local3.addCenteredWordColumn(869, 873); _local3.lineDown(4); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local4); _local3.addWordString(874, 875); _local3.cursor.x = (_local3.cursor.x + 60); _local3.lineUp(8); _arg1.addWorldObject(new Pit(550, Word.LINE_HEIGHT, new Point((_local3.cursor.x - 100), 151), _arg1), (_local3.cursor.x - 100), Main.GAME_HEIGHT); _local3.setColor(_local6); _local3.addCenteredWordColumn(876, 881, 100); _local3.lineDown(2); _local3.addCenteredWordColumn(882, 887, 75); _local3.lineUp(); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local4); _local3.addWordString(888, 892); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local3.cursor.x - 100), 193), _arg1), (_local3.cursor.x - 100), Main.GAME_HEIGHT); _local3.lineUp(5); _local3.cursor.x = (_local3.cursor.x + 50); _local3.addWordString(893, 899); _local3.lineUp(6); _local3.cursor.x = (_local3.cursor.x + 75); _arg1.FG.addLeftRightGradient((_local3.cursor.x - 10), 0, 2000, 300, [3355460, 0], [0, 10]); _arg1.FG.fillRect(_local3.cursor.x, 0, 4000, 150, "the cavern", 0x333333); _arg1.FG.fillRect(_local3.cursor.x, 225, 4000, 75, "the cavern", 0x333333); _local3.setColor(_local6); _local2 = _local3.cursor.x; _local3.addWordColumn(900, 905); _local3.lineDown(); _local3.addWordString(906, 910); _local3.addSpace(2); _local3.lineDown(3); _local3.cursor.x = _local2; _local3.addWordString(911, 917); _local3.addSpace(); _local2 = _local3.cursor.x; _local3.lineUp(2); _local3.setColor(_local7); _local3.addWordString(918, 924); _local3.addSpace(2); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(925, 931); _local3.addSpace(); _local3.setColor(_local6); _local2 = _local3.cursor.x; _local3.lineUp(2); _local3.addWordString(932, 934); _local3.lineUp(); _local3.addWordString(935, 938); _local3.lineDown(); _local3.addWordString(939, 941); _local3.addSpace(4); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(942, 951); _local3.addSpace(); _local2 = _local3.cursor.x; _local3.lineUp(2); _local3.setColor(_local7); _local3.addWordString(952, 962); _local3.addSpace(); _local3.lineDown(2); _local3.cursor.x = _local2; _local3.addWordByIndex(963); _local3.lineDown(); _local3.addWordByIndex(964); _local3.lineUp(); _local3.addWordByIndex(965); _local3.lineDown(); _local3.addWordString(966, 967); _local3.lineDown(); _local3.addWordString(968, 970); _local3.lineUp(2); _local3.setColor(_local6); _local3.addCenteredWordColumn(971, 973); _local3.lineUp(); _local3.addSpace(); _local3.lineUp(3); _local2 = _local3.cursor.x; _local3.setColor(_local5); _local3.addWordString(974, 984); _local3.addSpace(2); _local3.cursor.x = _local2; _local3.lineDown(3); _local3.addWordByIndex(985); _local3.lineUp(); _local3.addWordByIndex(986); _local3.lineDown(); _local3.addWordString(987, 989); _local3.lineUp(); _local3.addWordByIndex(990); _local3.lineDown(); _local3.addWordString(991, 993); _local3.addSpace(); _local2 = _local3.cursor.x; _local3.lineUp(3); _local3.setColor(_local6); _local3.addDoubleLayer(994, 1000, 1001, 1008, 2, true, [1002]); _local3.lineUp(2); _local3.setColor(_local7); _local3.addDoubleLayer(1009, 1016, 1017, 1025); _local3.lineUp(2); _local3.setColor(_local6); _local3.addDoubleLayer(1026, 1029, 1030, 1034, 2, true, [1027]); _local3.lineUp(2); _local3.setColor(_local7); _local3.addDoubleLayer(1035, 1039, 1040, 1044); _local3.lineUp(2); _local3.setColor(_local6); _local3.addDoubleLayer(1045, 1053, 1054, 1065, 2, true, [1045, 1046, 1048]); _local3.lineUp(3); _local3.setColor(_local7); _local3.addDoubleLayer(1066, 1070, 1071, 1074, 3); _local3.lineUp(4); _local3.setColor(_local6); _local2 = _local3.cursor.x; _local3.addWordString(1075, 1080); _local3.lineUp(); _local3.addWordByIndex(1081); _local3.cursor.x = _local2; _local3.lineDown(6); _local3.addWordString(1082, 1086); _arg1.parallaxBG.fillRect(16900, 0, 650, 200, "the twilight", 34); _local3.lineDown(2); _local3.setColor(_local4); _arg1.addWorldObject(new Wall(5, Word.LINE_HEIGHT, _arg1), (_local3.cursor.x - 5), (_local3.cursor.y - Word.LINE_HEIGHT)); _local3.addWordString(1087, 1102); _local3.lineUp(); _local3.addWordString(1103, 1124); _local3.lineUp(7); _arg1.FG.fillRect(_local3.cursor.x, 0, 1900, 150, "vague stones", 0x333333); _arg1.FG.fillRect(_local3.cursor.x, 225, 1900, 75, "vague stones", 0x333333); _local2 = _local3.cursor.x; _local3.setColor(_local6); _local3.addWordColumn(1125, 1127); _local3.lineDown(); _local3.cursor.x = _local2; _local3.addDoubleLayer(1128, 1132, 1133, 1139, 3); _local3.lineUp(2); _local3.setColor(_local7); _local3.addDoubleLayer(1140, 1147, 1148, 1155); _local3.lineUp(3); _local3.setColor(_local6); _local3.addDoubleLayer(1156, 1161, 1162, 1165, 3); _local3.lineUp(2); _local3.setColor(_local7); _local3.addDoubleLayer(1166, 1171, 1172, 1177); _local3.lineUp(3); _local3.setColor(_local6); _local3.addDoubleLayer(1178, 1188, 1189, 1197, 3); _local3.lineUp(4); _local3.setColor(_local7); _local2 = _local3.cursor.x; _local3.addWordString(1198, 1202); _local3.lineUp(); _local3.addWordByIndex(1203); _local3.lineUp(); _local3.addWordByIndex(1204); _local3.lineDown(6); _local3.cursor.x = _local2; _local3.addWordString(1205, 1209); _arg1.parallaxBG.fillRect(18600, 0, 700, 200, "the twilight", 34); _arg1.parallaxBG.addCenteredText(18700, 50, 50, 4473890, "the moon"); _arg1.FG.fillRect(36800, 225, 1300, 75, "primitive ruins", 3351057); _arg1.parallaxBG.fillRect(19300, 0, 3900, 200, "the twilight", 34); _arg1.addWorldObject(new WindZone(6000, 50, "a dense cloud of sand", 13417369, -20, _arg1), 37250, 25); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(1210, 1233); _local3.lineUp(); _local3.addWordString(1234, 1238); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point(38000, (_local3.cursor.y - Word.LINE_HEIGHT)), _arg1), 38000, Main.GAME_HEIGHT); _local3.lineUp(3); _local3.setColor(_local6); _local3.addCenteredWordColumn(1239, 1242, 50); _local3.lineUp(7); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local7); _local3.addCenteredWordColumn(1243, 1250, 50); _local3.lineDown(2); _local3.setColor(_local6); _local3.addWordByIndex(1251); _local3.lineUp(); _local3.addWordByIndex(1252); _local3.lineUp(); _local3.addWordByIndex(1253); _local3.lineUp(); _local3.addWordByIndex(1254); _local3.lineUp(); _local3.addWordByIndex(1255); _local3.lineUp(3); _local3.cursor.x = (_local3.cursor.x + 50); _local2 = _local3.cursor.x; _local3.setColor(_local7); _local3.addWordString(1256, 1258); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordColumn(1259, 1262); _local3.lineDown(); _local3.addWordString(1263, 1268); _arg1.addWorldObject(new Pit(900, Word.LINE_HEIGHT, new Point(38600, (_local3.cursor.y - Word.LINE_HEIGHT)), _arg1), 38600, Main.GAME_HEIGHT); _local3.cursor.x = (_local3.cursor.x + 115); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(1269, 1277); _local3.lineUp(5); _local3.setColor(_local6); _local3.addCenteredWordColumn(1278, 1284, 75); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x + 25); _local3.setColor(_local4); _local3.addWordString(0x0505, 1292, [1286, 1291]); _arg1.addWorldObject(new Pit(700, Word.LINE_HEIGHT, new Point(39500, (_local3.cursor.y - Word.LINE_HEIGHT)), _arg1), 39500, Main.GAME_HEIGHT); _local3.cursor.x = (_local3.cursor.x + 50); _local3.lineUp(4); _local3.setColor(_local6); _local3.addCenteredWordColumn(1293, 1297, 75); _local3.lineDown(3); _local3.cursor.x = (_local3.cursor.x + 25); _local3.addCenteredWordColumn(1298, 1300, 78); _local3.cursor.x = (_local3.cursor.x + 75); _local3.lineUp(6); _local3.addCenteredWordColumn(1301, 1307, 90); _local3.cursor.x = (_local3.cursor.x + 50); _local3.addCenteredWordColumn(1308, 1311, 90); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x + 50); _local3.setColor(_local4); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point(40200, (_local3.cursor.y - Word.LINE_HEIGHT)), _arg1), 40200, Main.GAME_HEIGHT); _local3.addWordString(1312, 1318); _local3.lineDown(); _local3.cursor.x = (_local3.cursor.x + 50); _arg1.FG.fillRect(_local3.cursor.x, 210, 840, 90, "the sands", 3351057); _local3.addWordString(1319, 1330); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(1331, 1341); _arg1.FG.fillRect(_local3.cursor.x, 230, 1075, 70, "the sands", 3351057); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(1342, 1347); _local3.lineUp(); _local3.addWordString(1348, 1353, [1350]); _local3.lineDown(); _local3.addWordString(1354, 1363); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(1364, 1367, [1366]); _arg1.FG.fillRect(_local3.cursor.x, 190, 150, 110, "the sands", 3351057); _local3.lineUp(); _local3.addWordString(1368, 1369); _local3.lineUp(); _local3.addWordByIndex(1370); _local3.lineUp(); _local3.addWordByIndex(1371); _local3.lineUp(); _arg1.FG.fillRect(_local3.cursor.x, 130, 270, 170, "the sands", 3351057); _local3.addWordByIndex(1372); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(1373, 1377); _local3.lineUp(); _local3.addWordByIndex(1378); _arg1.FG.fillRect(_local3.cursor.x, 70, 650, 230, "the sands", 3351057); _local3.lineUp(); _local3.addWordByIndex(1379); _local3.lineUp(); _local3.addWordByIndex(1380); _local3.lineUp(); _local3.addWordString(1381, 1382); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(1383, 1392); _arg1.FG.fillRect(_local3.cursor.x, 230, 2700, 70, "the sands", 3351057); _arg1.addWorldObject(new WindZone(1000, 50, "the terrific force of the icy wind", 13417369, -35, _arg1), 43250, 25); _arg1.addWorldObject(new WindZone(250, 50, "the terrific force of the icy wind", 13417369, -20, _arg1), 44250, 25); _arg1.addWorldObject(new WindZone(250, 50, "the terrific force of the icy wind", 13417369, -10, _arg1), 44500, 25); _local3.setColor(_local6); _local3.addWordString(1393, 1395); _local2 = _local3.cursor.x; _local3.addWordByIndex(1396); _local3.cursor.x = _local2; _local3.lineDown(); _local3.addWordColumn(1397, 1405, 40); _local3.lineDown(); _local3.cursor.x = _local2; _local3.addWordString(1406, 1409); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(1410, 1417, [1412]); _local3.lineUp(); _local3.setColor(_local5); _local3.addWordString(1418, 1426, [1419]); _local3.lineUp(3); _local3.setColor(_local6); _local3.addCenteredWordColumn(1427, 1430, 75, [1429]); _local3.lineDown(); _local3.setColor(_local4); _local3.addWordString(1431, 1442); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(1443, 1449); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(1450, 1455, [1454]); _local3.lineUp(5); _local3.setColor(_local6); _local3.addCenteredWordColumn(1456, 1461, 50, [1457]); _local3.lineDown(); _local3.setColor(_local5); _local3.addWordString(1462, 1472, [1472]); _local3.lineUp(); _local3.setColor(_local4); _local3.addWordString(1473, 1478, [1477]); _local3.lineUp(7); _arg1.FG.fillRect(_local3.cursor.x, 0, 750, 130, "a temple", 0x333333); _arg1.FG.fillRect(_local3.cursor.x, 170, 750, 130, "a temple", 0x333333); _local2 = _local3.cursor.x; _local3.setColor(_local6); _local3.addWordColumn(1479, 1482); _local3.addWordString(1483, 1488); _local3.addSpace(2); _local3.cursor.x = _local2; _local3.lineDown(3); _local3.addWordString(1489, 1495); _local3.addSpace(); _local3.lineUp(2); _local3.setColor(_local7); _local3.addDoubleLayer(1496, 1504, 1505, 1515); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), _local3.cursor.x, 0); _arg1.scorekeeper.totalWords = 1516; } public static function layoutNamelessCity3(_arg1:PlayScreen):void{ var _local2:Number; var _local3:Number; var _local13:uint; _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), 0, -100); var _local4:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.NAMELESS_CITY3); var _local5:uint = 15663086; var _local6:uint = 12311995; var _local7:uint = 16755251; var _local8:uint = 0x999999; var _local9:uint = 0x666666; var _local10:uint = 16772795; var _local11:uint = 16768392; var _local12:uint = 6741350; _arg1.player.x = 15; _arg1.player.y = 114; var _local14:int; while (_local14 < 10) { _local13 = ((((4 * _local14) << 16) + ((4 * _local14) << 8)) + (4 * _local14)); _arg1.FG.fillRect((500 * _local14), 200, 500, 100, "this hall", _local13); _local13 = (_local13 + 0x0800); _arg1.parallaxBG.fillRect((250 * _local14), 0, 250, 200, "a corridor", _local13); _local14++; }; _local14 = 0; while (_local14 < 20) { _local13 = ((((187 * (_local14 / 20)) << 16) + ((153 * (_local14 / 20)) << 8)) + (68 * (_local14 / 20))); _arg1.parallaxBG.addCenteredText((60 + (125 * _local14)), 160, 50, _local13, "the cases"); _local14++; }; _local4.cursorTo(5, 200); _local4.setColor(_local9); _local4.addWordString(0, 10); _local4.setColor(_local8); _local4.addWordString(11, 17); _local4.setColor(_local6); _local4.addWordString(18, 41); _local4.setColor(_local5); _local4.addWordString(42, 59); _local4.setColor(_local6); _local4.addWordString(60, 79); _local4.setColor(_local5); _local4.addWordString(80, 103); _local4.lineUp(4); _local3 = _local4.cursor.x; _local4.setColor(_local7); _local4.addWavyWordString(104, 125, null, false); _local4.lineDown(3.5); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local3), Word.LINE_HEIGHT, _arg1), _local3, _local4.cursor.y); _arg1.FG.fillRect(5000, 200, 8800, 100, "this hall", 0x282828); _arg1.parallaxBG.fillRect(2500, 0, 4600, 200, "a corridor", 2633768); _local14 = 0; while (_local14 < 36) { _arg1.parallaxBG.addCenteredText((0x0A00 + (125 * _local14)), 160, 50, 12294468, "the cases"); _local14++; }; _local4.setColor(_local5); _local4.addWordString(126, 133); _local4.setColor(_local6); _local4.addWordString(134, 138); _local4.setColor(_local5); _local4.addWordString(139, 154, [148]); _local4.addSpace(); _local4.setColor(_local6); _local4.lineUp(5); _local4.addCenteredWordColumn(155, 163, 75, [161]); _local4.addSpace(); _local4.setColor(_local5); _local4.addWordString(164, 193, [176, 179, 183]); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(194, 214); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(215, 230, [216]); _local4.lineUp(5); _local4.setColor(_local6); _local4.addWordColumn(231, 238, 75); _local4.setColor(_local5); _local4.addWordString(239, 259); _local4.lineUp(5); _local4.setColor(_local6); _local4.addWordColumn(260, 270, 100, [268]); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(271, 286); _local4.lineUp(5); _local4.setColor(_local6); _local4.addCenteredWordColumn(287, 295, 65); _local4.addWordString(296, 297); _local4.setColor(_local5); _local4.addWordString(298, 303); _local4.lineUp(4); _local4.setColor(_local6); _local4.addWordColumn(304, 306); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordByIndex(307); _local4.lineUp(6); _local4.setColor(_local6); _local4.addWordColumn(308, 313, 0, [311]); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(314, 321); _local4.setColor(_local6); _local4.addWordString(322, 325, [325]); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(326, 336); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(337, 348); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(349, 358); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(359, 373); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x + 50); _arg1.parallaxBG.addLeftRightGradient(7700, 0, 8600, Main.GAME_HEIGHT, [0, 2236996], [0, 100]); _arg1.parallaxBG.fillRect(7800, 250, 8500, 50, "cities and gardens", 2245666); _local4.lineUp(4); _local4.setColor(_local7); _local4.addWavyWordString(374, 387); _local4.lineDown(4); _local4.setColor(_local5); _local4.addWordByIndex(388); _local4.lineUp(); _local4.addWordByIndex(389); _local4.lineUp(); _local4.addWordByIndex(390); _local4.lineUp(); _local4.addWordByIndex(391); _local4.lineUp(); _local4.addWordByIndex(392); _local4.lineUp(); _local4.addWordByIndex(393); _local4.lineDown(); _local4.addWordByIndex(394); _local4.lineDown(); _local4.addWordByIndex(395); _local4.lineDown(); _local4.addWordByIndex(396); _local4.lineDown(); _local4.addWordByIndex(397); _local4.lineDown(); _local4.addWordByIndex(398); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(5); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local6); _local4.addWordString(399, 411, [411]); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x - 100); _local4.addWordString(412, 421, [420]); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x - 100); _local4.addWordString(422, 449, [437, 443]); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(9); _local4.setColor(_local5); _local4.addCenteredWordColumn(450, 452); _local4.lineDown(5); _local4.addWordString(453, 463); _local4.lineDown(3); _local4.setColor(_local6); _local4.addWordString(464, 470); _local4.lineUp(); _local4.addWordByIndex(471); _local4.lineUp(); _local4.addWordByIndex(472); _local4.lineUp(); _local4.addWordByIndex(473); _local4.lineUp(); _local4.addWordByIndex(474); _local4.setColor(_local5); _local4.lineUp(5); _local4.addWordColumn(475, 481, 75); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(482, 490); _local4.lineDown(); _local4.setColor(_local10); _local4.addWordByIndex(491); _local4.lineDown(); _local4.addWordByIndex(492); _local4.lineDown(); _local4.addWordByIndex(493); _local4.lineDown(); _local4.addWordString(494, 501); _local4.lineUp(); _local4.setColor(_local11); _local4.addWordString(502, 507); _local4.lineUp(); _local4.setColor(_local10); _local4.addWordString(508, 511); _local4.lineUp(); _local4.setColor(_local11); _local4.addWordString(0x0200, 524); _local4.lineDown(); _local4.setColor(_local10); _local4.addWordString(525, 532); _local4.lineUp(); _local4.setColor(_local11); _local4.addWordString(533, 538); _local4.lineDown(); _local4.setColor(_local10); _local4.addWordString(539, 542); _local4.lineDown(); _local4.setColor(_local11); _local4.addWordString(543, 546); _local4.lineDown(); _local4.setColor(_local10); _local4.addWordString(547, 549); _local4.lineDown(); _local4.setColor(_local11); _local4.addWordString(550, 555); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(5); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(556, 562, [560]); _local4.lineUp(5); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local5); _local4.addWordString(563, 565); _local4.addSteepStairs(566, 574); _local4.addWordString(575, 579); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(5); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local6); _local4.addWordString(580, 597); _local4.cursor.x = (_local4.cursor.x + 50); _local4.lineDown(3); _local4.setColor(_local10); _local4.addWordByIndex(598); _local4.lineDown(); _local4.addWordByIndex(599); _local4.lineDown(); _local4.addWordString(600, 604); _local4.lineUp(); _local4.addWordByIndex(605); _local4.lineUp(); _local4.addWordString(606, 607); _local4.lineUp(7); _local4.setColor(_local11); _local4.addCenteredWordColumn(608, 617, 75); _local4.lineDown(); _local4.setColor(_local10); _local4.addWordString(618, 619); _local4.lineDown(); _local4.addWordByIndex(620); _local4.lineDown(); _local4.addWordString(621, 629); _local4.lineUp(); _local4.addWordByIndex(630); _local4.lineUp(); _local4.addWordByIndex(631); _arg1.addWorldObject(new Pit(250, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(632, 641); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(4); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordColumn(642, 649); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(650, 657); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local5); _local4.addWordString(658, 663); _local4.lineDown(5); _local4.setColor(_local6); _local4.addWordString(664, 670); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.setColor(_local5); _local4.addWordString(671, 680); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineDown(3); _local4.setColor(_local6); _local4.addWordString(681, 688); _local4.lineUp(8); _local4.setColor(_local5); _local4.addCenteredWordColumn(689, 694, 0, [692, 694]); _local4.lineDown(3); _local4.setColor(_local6); _local4.addWordString(695, 701); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local5); _local4.addWordByIndex(702); _local4.lineUp(); _local4.addWordByIndex(703); _local4.lineUp(); _local4.addWordByIndex(704); _local4.lineUp(); _local4.addWordByIndex(705); _local4.lineUp(); _local4.addWordByIndex(706); _local4.lineUp(); _local4.addWordByIndex(707); _local4.lineUp(); _local4.addWordByIndex(708); _local4.lineUp(); _local4.addWordString(709, 717); _local4.lineDown(5); _local4.setColor(_local6); _local4.addWordString(718, 722, [721]); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local5); _local4.addWavyWordString(723, 745); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x + 50); _local4.lineUp(4); _local4.setColor(_local6); _local4.addCenteredWordColumn(746, 755, 75); _local4.lineDown(2); _local4.setColor(_local5); _local4.addWordString(756, 770, [763]); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(0x0303, 777); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x - 50); _local4.addWordString(778, 780); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x - 50); _local4.addWordString(781, 786, [784, 786]); _local4.lineDown(5); _local4.setColor(_local11); _local4.addWordString(787, 798); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 25); _local4.setColor(_local10); _local4.addWordString(799, 817); _arg1.parallaxBG.addLeftRightGradient(16300, 0, 1000, Main.GAME_HEIGHT, [2236996, 1118498], [0, 100]); _arg1.parallaxBG.fillRect(16400, 0, 1000, 50, "golden nimbus", 6706449); _arg1.parallaxBG.fillRect(16400, 250, 1000, 50, "fallen walls", 1122833); _arg1.parallaxBG.addCenteredText(16800, 80, 100, 0x999999, "moonlight"); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(818, 831); _arg1.addWorldObject(new Pit(1000, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(5); _local4.setColor(_local10); _local4.addWordString(832, 838); _local4.lineDown(5); _local4.setColor(_local11); _local4.addWordString(839, 846); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(847, 853); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _arg1.parallaxBG.addLeftRightGradient(17300, 0, 4000, Main.GAME_HEIGHT, [1118498, 3355477], [0, 100]); _arg1.parallaxBG.fillRect(17400, 0, 3900, 200, "eternal day", 4473958); _arg1.parallaxBG.fillRect(17400, 225, 3900, 75, "glorious cities", 4482628); _local4.lineUp(4); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(854, 863); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(864, 870); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(871, 874); _local4.lineUp(); _local4.addWordByIndex(875); _local4.lineUp(); _local4.addWordByIndex(876); _local4.lineDown(); _local4.addWordByIndex(877); _local4.lineDown(); _local4.addWordByIndex(878); _local4.lineDown(); _local4.addWordByIndex(879); _local4.lineUp(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(880, 891); _local4.lineDown(); _local4.addWordByIndex(892); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordByIndex(893); _local4.lineDown(); _local4.addWordByIndex(894); _local4.lineDown(); _local4.addWordByIndex(895); _local4.lineDown(); _local4.addWordString(896, 906, [901]); _local4.lineUp(); _local4.addWordByIndex(907); _local4.lineUp(); _local4.addWordByIndex(908); _local4.lineUp(); _local4.addWordByIndex(909); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(910, 920, [916]); _local4.lineDown(); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(921, 937, [925]); _arg1.addWorldObject(new Pit(800, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(4); _local4.cursor.x = (_local4.cursor.x + 25); _local4.setColor(_local10); _local4.addWordString(938, 942); _local4.lineDown(); _local4.addWordString(943, 948); _local4.lineUp(); _local4.addWordString(949, 954); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineDown(1); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local11); _local4.addWordString(955, 968); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 100), Main.GAME_HEIGHT); _local4.lineUp(5); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local10); _local4.addWordString(969, 976, [969]); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x - 50); _local4.addWordString(977, 985, [977]); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x - 50); _local4.addWordString(986, 994, [988]); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x - 50); _local4.addWordString(995, 1004); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineDown(2); _local4.cursor.x = (_local4.cursor.x - 50); _local4.addWordString(1005, 1013, [1005]); _local4.setColor(_local11); _local4.lineUp(4); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addWordString(1014, 1016); _local4.lineUp(); _local4.addWordByIndex(1017); _local4.lineUp(); _local4.addWordByIndex(1018); _local4.lineUp(); _local4.addWordSpawner(1019); _local4.lineDown(); _local4.addWordByIndex(1020); _local4.lineDown(); _local4.addWordByIndex(1021); _local4.lineDown(); _local4.addWordByIndex(1022); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineDown(2.5); _local4.cursor.x = (_local4.cursor.x + 25); _local4.setColor(_local10); _local4.addWordString(1023, 1036); _arg1.parallaxBG.addLeftRightGradient(21300, 0, 100, Main.GAME_HEIGHT, [3355477, 0], [0, 100]); _arg1.FG.fillRect(42600, 200, 1100, 100, "this hall", 0x282828); _arg1.parallaxBG.fillRect(21500, 0, 500, 200, "a corridor", 2633768); _local14 = 0; while (_local14 < 3) { _arg1.parallaxBG.addCenteredText((21600 + (125 * _local14)), 160, 50, 12294468, "the cases"); _local14++; }; _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1037, 1060); _local4.addSpace(); _local3 = _local4.cursor.x; _local4.setColor(_local6); _local4.lineUp(6); _local4.addWordColumn(1061, 1065); _local4.cursor.x = _local3; _local4.lineDown(2); _local4.addWordString(1066, 1070); _local4.setColor(_local5); _local4.addWordString(1071, 1084); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1085, 1100, [1096]); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1101, 1119); _local4.addSpace(); _local4.lineUp(2); _arg1.addWorldObject(new Wall(10, 100, _arg1), _local4.cursor.x, (_local4.cursor.y - 100)); _local4.setColor(_local6); _local3 = _local4.cursor.x; _local4.addWordString(1120, 1126); _arg1.addWorldObject(new Wall(10, 100, _arg1), (_local4.cursor.x - 10), (_local4.cursor.y - 100)); _local4.cursor.x = _local3; _local4.lineDown(2); _local4.addWordString(1127, 1134); _local4.addSpace(); _local4.setColor(_local5); _local4.addWordString(1135, 1142, [1142]); _arg1.parallaxBG.addLeftRightGradient(22150, 0, 3700, Main.GAME_HEIGHT, [0, 0x663300], [0, 100]); _arg1.parallaxBG.fillRect(22250, 0, 3600, Main.GAME_HEIGHT, "uniform radiance", 0x664400); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1143, 1154); _local4.lineDown(); _local4.addSteepStairs(1155, 1159); _local4.setColor(_local5); _local4.addWordString(1160, 1170); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1171, 1180); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1181, 1191); _local4.addSpace(); _local4.lineUp(7); _local3 = _local4.cursor.x; _local4.setColor(_local10); _local4.addWordColumn(1192, 1196); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(1197, 1203); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1204, 1214); _local4.lineUp(); _local4.addWordString(1215, 1222); _local4.setColor(_local5); _local4.lineDown(); _local4.addSteepStairs(1223, 1227); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 25), ((_local4.cursor.y - Word.LINE_HEIGHT) - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 25); _local4.setColor(_local6); _local4.addWordString(1228, 1235); _local4.addSpace(); _local4.lineUp(6); _local3 = _local4.cursor.x; _local4.setColor(_local10); _local4.addWordColumn(1236, 1240); _local4.addWordByIndex(1241); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(1242, 1246); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1247, 1254); _local4.lineUp(); _local4.addWordString(1255, 1260); _local4.lineUp(); _local4.addWordString(1261, 1268, [1257, 1265]); _arg1.parallaxBG.addLeftRightGradient(25850, 0, 100, Main.GAME_HEIGHT, [0x663300, 0], [0, 100]); _arg1.FG.fillRect(51525, 200, 3000, 100, "this hall", 0x282828); _arg1.parallaxBG.fillRect(25950, 0, 1500, 200, "a corridor", 2633768); _local14 = 0; while (_local14 < 10) { _arg1.parallaxBG.addCenteredText((26100 + (125 * _local14)), 160, 50, 12294468, "the cases"); _local14++; }; _local4.setColor(_local6); _local4.addWordString(1269, 1278); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1279, 1296); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1297, 1304); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1305, 1320); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1321, 1349); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1350, 1359); _local4.lineUp(4); _local4.addCenteredWordColumn(1360, 1364, 50); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(1365, 1374); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1375, 1387); _local4.addSpace(); _local4.lineUp(6); _local3 = _local4.cursor.x; _local4.setColor(_local6); _local4.addWordColumn(1388, 1392); _local4.addWordString(1393, 1397); _local4.addSpace(); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(1398, 1402); _local4.addSpace(); _local4.lineUp(2); _local4.setColor(_local5); _local4.addDoubleLayer(1403, 1409, 1410, 1416); _local4.lineUp(2); _local4.setColor(_local6); _local4.addDoubleLayer(1417, 1419, 1421, 1423, 2, false); _local4.addSpace(0.2); _local4.lineUp(2); _local4.addDoubleLayer(1420, 1420, 1424, 1424, 3); _local4.lineUp(2); _local4.setColor(_local5); _local4.addDoubleLayer(1425, 1430, 1431, 1436); _local4.lineUp(2); _local4.setColor(_local6); _local4.addDoubleLayer(1437, 1440, 1441, 1445); _local4.lineUp(2); _local3 = _local4.cursor.x; _local4.setColor(_local5); _local4.addWordString(1446, 1450); _arg1.addWorldObject(new Wall(10, 100, _arg1), (_local4.cursor.x - 10), (_local4.cursor.y - 100)); _local4.cursor.x = _local3; _local4.lineDown(2); _local4.addWordString(1451, 1458); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(1459, 1468); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1469, 1475, [1474]); _local4.lineUp(); _local4.addWordString(1476, 1484, [1477]); _local4.lineUp(); _local4.addWordString(1485, 1491, [1489]); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1492, 1495); _local4.lineDown(); _local4.addWordString(1496, 1515); _local4.lineUp(); _local4.addWordString(1516, 1531); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1532, 1540); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(1541, 1545); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1546, 1554); _local4.lineUp(); _local4.addWordString(1555, 1562); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1563, 1569); _local4.lineDown(); _local4.addSteepStairs(1570, 1577, [1575]); _local4.addWordString(1578, 1581); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1582, 1587); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordByIndex(1588); _local4.lineUp(); _local4.addWordByIndex(1589); _local4.lineDown(); _local4.addWordByIndex(1590); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1591, 1598); _local4.lineUp(4); _local4.setColor(_local5); _local4.addCenteredWordColumn(1599, 1602); _local4.setColor(_local12); _local4.lineDown(); _local4.addWordByIndex(1603); _local4.lineUp(3); _local4.setColor(_local5); _local4.addCenteredWordColumn(1604, 1606); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1607, 1610); _local4.lineUp(4); _local4.setColor(_local5); _local4.addCenteredWordColumn(1611, 1614); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1615, 1616); _local4.lineUp(4); _local4.setColor(_local5); _local4.addCenteredWordColumn(1617, 1620); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1621, 1623); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1624, 1625); _local4.lineUp(); _local4.addWordByIndex(1626); _local4.lineUp(); _local4.addWordString(1627, 1633); _arg1.FG.fillRect(64500, 200, 6500, 100, "cramped corridor", 0x282828); _arg1.parallaxBG.fillRect(32500, 0, 3000, 200, "antediluvian frescoes", 2633768); _local14 = 0; while (_local14 < 22) { _arg1.parallaxBG.addCenteredText((32600 + (125 * _local14)), 160, 75, 12294468, "dead reptiles"); _local14++; }; _local4.setColor(_local6); _local4.addWordString(1634, 1651, [1638, 1644, 1650]); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordColumn(1652, 1655); _local4.addWordString(1656, 1667, [1664]); _local4.lineUp(5); _local4.setColor(_local6); _local4.addCenteredWordColumn(1668, 1672, 0, [1672]); _local4.lineUp(3); _local4.addSpace(0.5); _local4.setColor(_local5); _local4.addWordString(1673, 1684, [1677]); _local4.setColor(_local6); _local4.addWordString(1685, 1696, [1695]); _local4.setColor(_local5); _local4.lineUp(5); _local4.addCenteredWordColumn(1697, 1703, 75); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(1704, 1707); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1708, 1726); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1727, 1735); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(1736, 1760, [1751]); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(1761, 1773); _local4.setColor(_local5); _local4.addWordString(1774, 0x0707, [1783]); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineUp(7); _local4.setColor(_local6); _local4.addCenteredWordColumn(1800, 1808, 100, [1808]); _local4.lineDown(4); _local4.addCenteredWordColumn(1809, 1811); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 50); _local4.setColor(_local5); _local4.addWordString(1812, 1829, [1820]); _arg1.addWorldObject(new Pit(660, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 50), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x - 25); _local4.lineUp(7); _local4.setColor(_local6); _local4.addWordString(1830, 1833); _local4.lineDown(8); _local4.cursor.x = (_local4.cursor.x - 80); _local4.setColor(_local5); _local4.addWordString(1834, 1838); _local4.lineUp(4); _local4.cursor.x = (_local4.cursor.x - 80); _local4.setColor(_local6); _local4.addWordString(1839, 1842); _local4.lineDown(4); _local4.cursor.x = (_local4.cursor.x - 25); _local4.setColor(_local5); _local4.addWordString(1843, 1845); _local4.lineUp(7); _local4.cursor.x = (_local4.cursor.x - 25); _local4.setColor(_local6); _local4.addWordString(1846, 1849); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 50), Main.GAME_HEIGHT); _local4.lineUp(3); _local4.cursor.x = (_local4.cursor.x + 30); _local4.setColor(_local5); _local4.addWordString(1850, 1858); _local4.lineDown(3); _local4.setColor(_local6); _local4.addWordString(1859, 1863); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineDown(3); _local4.addWordString(1864, 1868); _local4.lineDown(3); _local4.addWordString(1869, 1873); _local4.lineDown(); _local4.addWordString(1874, 1881); _arg1.FG.fillRect(73900, 200, 10330, 100, "low passage", 0x282828); _arg1.parallaxBG.fillRect(37200, 0, 11500, 200, "tomb-like depths", 2633768); _local14 = 0; while (_local14 < 90) { _arg1.parallaxBG.addCenteredText((37300 + (125 * _local14)), 160, 75, 12294468, "dead reptiles"); _local14++; }; _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1882, 1910); _local3 = _local4.cursor.x; _local4.lineUp(4); _local4.setColor(_local7); _local4.addWavyWordString(1911, 1924, [1923], false); _local4.lineDown(3.5); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local3), Word.LINE_HEIGHT, _arg1), _local3, _local4.cursor.y); _local4.setColor(_local5); _local4.addWordString(1925, 1934); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(1935, 1947); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1948, 1971); _arg1.addWorldObject(new WindZone(2250, 150, "cold air", 6710937, 15, _arg1), 77000, 0); _local4.setColor(_local6); _local4.addWordString(1972, 2012); _arg1.addWorldObject(new WindZone(2000, 150, "the gale", 6710937, 30, _arg1), 79250, 0); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(2013, 2045); _local4.lineUp(); _local4.setColor(_local6); _local4.addWordString(2046, 2061); _arg1.addWorldObject(new WindZone(4950, 150, "the shrieking, moaning night wind", 6710937, 45, _arg1), 81250, 0); _arg1.addWorldObject(new PlayerPusherZone(18175, Main.GAME_HEIGHT, _arg1), 81250, 0); _local4.setColor(_local5); _local4.addWordString(2062, 2078, [2065, 2068, 2069]); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2079, 2102); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2103, 2135, [2131]); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addWordString(2136, 2143, [2137]); _arg1.addWorldObject(new Pit(500, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x + 75); _local4.addWordString(2144, 2158, [2149]); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x + 75); _local4.addWordString(2159, 2162); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addWordString(2163, 2165); _local4.cursor.x = (_local4.cursor.x + 50); _local4.addWordString(2166, 2169); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.cursor.x = (_local4.cursor.x + 75); _local4.addWordString(2170, 2193, [2173, 2184]); _arg1.FG.fillRect(86200, 200, 4000, 100, "frightful corridor", 0x282828); _arg1.addWorldObject(new WindZone(11800, 150, "the fiendish clawing of the swirling currents", 6710937, 60, _arg1), 86200, 0); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2194, 2201); _local4.lineUp(); _local4.addWordString(2202, 2205); _local4.lineDown(); _local4.addWordString(2206, 2209); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2210, 2237, [2216]); _local4.setColor(_local6); _local4.addWordString(2238, 2264, [2243, 2252]); _arg1.addWorldObject(new Pit(600, Word.LINE_HEIGHT, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 150), Main.GAME_HEIGHT); _local4.lineUp(6); _local4.setColor(0xFFFFFF); _local4.addDoubleLayer(2265, 2272, 2273, 2280, 2, false, [2271, 2275, 2280]); _arg1.FG.fillRect(90610, 200, 6540, 100, "grave of unnumbered aeon-dead antiquities", 0x282828); _local4.lineDown(4); _local4.setColor(_local5); _local4.addWordString(2281, 2291); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2292, 2322, [0x0900]); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2323, 2324); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2325, 2326); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2327, 2332, [2327, 2328, 2329]); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2333, 2357); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2358, 2369); _local4.lineUp(); _local4.addWordSpawner(2370); _local4.lineDown(); _local4.addWordString(2371, 2383); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2384, 2402); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2403, 2412); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2413, 2419); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2420, 2429, [2423, 2429]); _arg1.parallaxBG.addLeftRightGradient(48800, 0, 1000, Main.GAME_HEIGHT, [0, 0x663300], [0, 100]); _arg1.parallaxBG.fillRect(48900, 0, 900, Main.GAME_HEIGHT, "luminous aether of the abyss", 0x664400); _arg1.addWorldObject(new WindZone(1425, 150, "a nightmare horde of rushing devils", 0x4400, 60, _arg1), 98000, 0); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2430, 2451); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(2452, 2471, [2453, 2458, 2460, 2464]); _local4.lineDown(); _local4.setColor(_local6); _local4.addWordString(2472, 2478); _arg1.parallaxBG.addLeftRightGradient(49800, 0, 100, Main.GAME_HEIGHT, [0x663300, 0], [0, 100]); _local4.lineUp(); _local4.setColor(_local8); _local4.addWordString(2479, 2494, [2490]); _local4.lineDown(); _local4.setColor(_local9); _local4.addWordString(2495, 2537); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), _local4.cursor.x, 0); _arg1.scorekeeper.totalWords = 2538; } public static function layoutBuffalo(_arg1:PlayScreen):void{ var _local2:Number; _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), -10, -100); _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), Main.GAME_WIDTH, -100); _arg1.scrollEnabled = false; var _local3:Number = 50; var _local4:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.BUFFALO); _local4.cursorTo(_local3, 20); _local4.addWordString(0, 1); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordByIndex(2); _local4.lineDown(); _local2 = _local4.cursor.x; _local4.addWordString(3, 5); _local4.lineDown(); _local4.cursor.x = _local2; _local4.addWordString(6, 8); _local4.lineDown(); _local4.addWordByIndex(9); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(10, 13); _local4.lineDown(); _local4.addWordByIndex(14); _local4.lineDown(2); _local4.cursor.x = _local3; _local4.addWordString(15, 19); _local4.lineDown(); _local4.addWordString(20, 26); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(27, 33); _local4.lineDown(); _local4.cursor.x = _local3; _local4.addWordString(34, 35); _arg1.addWorldObject(new Wall(Main.GAME_WIDTH, 20, _arg1), 0, (Main.GAME_HEIGHT - 20)); _arg1.player.x = 60; _arg1.player.y = 3.5; _arg1.scorekeeper.totalWords = 36; } public static function layoutTutorial(_arg1:PlayScreen):void{ var _local2:Number; var _local3:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.TUTORIAL); _local3.setColor(0xFFFFFF); _local3.cursorTo(5, 200); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), (_local3.cursor.x - 10), 0); _local3.addWordString(0, 2); _local3.lineDown(); _local3.addWordString(3, 45); _local3.lineUp(); _local3.addWordString(46, 47); _local3.lineUp(5); _local3.addWordColumn(48, 52); _local3.addWordString(53, 55); _local3.lineDown(); _local3.addWordByIndex(56); _local3.lineDown(); _local3.addWordByIndex(57); _local2 = _local3.cursor.x; _local3.addSpace(3); _local3.cursor.x = _local2; _local3.lineUp(8); _local3.addCenteredWordColumn(58, 61, 60); _local3.lineDown(6); _local3.addWordString(62, 73); _local3.lineUp(); _local3.addWordString(74, 87); _local3.lineUp(5); _local2 = _local3.cursor.x; _local3.addWordString(88, 94, [94]); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(95, 103); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(104, 112); _local3.cursor.x = _local2; _local3.lineDown(2); _local3.addWordString(113, 126, [115]); _local3.lineUp(); _local3.addWordString(127, 134); _local3.lineUp(); _local3.addWordString(135, 138); _local3.lineUp(); _local3.addWordString(139, 150); _local3.lineUp(); _local3.addWordString(151, 163, [162]); _local3.lineUp(); _local3.addWordString(164, 172); _local3.lineUp(); _local3.addWordString(173, 185); _local3.lineUp(); _local3.addWordString(186, 187); _arg1.addWorldObject(new Wall(10, Main.GAME_HEIGHT, _arg1), _local3.cursor.x, 0); _arg1.scorekeeper.totalWords = 188; _arg1.player.x = 20; _arg1.player.y = 184; } public static function getTitle(_arg1:String):String{ switch (_arg1){ case Layouts.ALICE: return ("Alice's Adventures in Wonderland (Chapter 1)"); case Layouts.BUDDHA: return ("If there is a man..."); case Layouts.BUFFALO: return ("Buffalo Bill's"); case Layouts.FROG: return ("There is an old pond..."); case Layouts.NAMELESS1: return ("The Nameless City (Part 1)"); case Layouts.NAMELESS2: return ("The Nameless City (Part 2)"); case Layouts.NAMELESS3: return ("The Nameless City (Part 3)"); case Layouts.PRUFROCK: return ("The Love Song of J. Alfred Prufrock"); case Layouts.TUTORIAL1: return ("Tutorial"); case Layouts.WHEELBARROW: return ("XXII"); default: return ("ERROR!"); }; } public static function layoutFrog(_arg1:PlayScreen):void{ _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), -10, -100); _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), Main.GAME_WIDTH, -100); _arg1.scrollEnabled = false; var _local2:Number = 165; var _local3:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.FROG); _local3.setColor(14540287); _local3.cursorTo(_local2, 50); _local3.addWordString(0, 4); _local3.lineDown(3); _local3.setColor(14548957); _local3.cursor.x = _local2; _local3.addWordString(5, 10); _local3.lineDown(3); _local3.setColor(12303325); _local3.cursor.x = _local2; _local3.addWordString(11, 14); _local3.lineDown(3); _arg1.addWorldObject(new Wall(Main.GAME_WIDTH, 100, _arg1), 0, _local3.cursor.y); _arg1.FG.fillRect(0, 0, 150, 100, "an old pond", 0x3300); _arg1.FG.fillRect(-50, 100, 100, 100, "an old pond", 0x3300); _arg1.FG.fillRect(0, 200, 150, 100, "an old pond", 0x3300); _arg1.FG.fillRect(350, 0, 150, 100, "an old pond", 0x3300); _arg1.FG.fillRect(450, 100, 100, 100, "an old pond", 0x3300); _arg1.FG.fillRect(350, 200, 150, 100, "an old pond", 0x3300); _arg1.FG.fillRect(100, _local3.cursor.y, 300, 50, "water", 11184895); _arg1.FG.fillRect(150, (_local3.cursor.y + 30), 200, 50, "water", 11184895); _arg1.player.x = 175; _arg1.player.y = 33.5; _arg1.scorekeeper.totalWords = 15; } public static function isShort(_arg1:String):Boolean{ return ((((((((_arg1 == BUFFALO)) || ((_arg1 == FROG)))) || ((_arg1 == BUDDHA)))) || ((_arg1 == WHEELBARROW)))); } public static function layoutScreen(_arg1:PlayScreen, _arg2:String):void{ switch (_arg2){ case Layouts.ALICE: layoutAlice(_arg1); break; case Layouts.BUDDHA: layoutBuddha(_arg1); break; case Layouts.BUFFALO: layoutBuffalo(_arg1); break; case Layouts.FROG: layoutFrog(_arg1); break; case Layouts.NAMELESS1: layoutNamelessCity1(_arg1); break; case Layouts.NAMELESS2: layoutNamelessCity2(_arg1); break; case Layouts.NAMELESS3: layoutNamelessCity3(_arg1); break; case Layouts.PRUFROCK: layoutPrufrock(_arg1); break; case Layouts.TUTORIAL1: layoutTutorial(_arg1); break; case Layouts.WHEELBARROW: layoutWheelbarrow(_arg1); break; }; } public static function layoutAlice(_arg1:PlayScreen):void{ var _local2:Number; var _local3:Number; _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), -5, -100); var _local4:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.ALICE); var _local5:uint = 12320699; var _local6:uint = 10092441; var _local7:uint = 0xFFFFFF; var _local8:uint = 16764057; var _local9:uint = 13413000; var _local10:uint = 13404262; var _local11:uint = 15654331; var _local12:uint = 15658739; var _local13:uint = 12303299; var _local14:uint = 14548991; var _local15:uint = 16763955; var _local16:uint = 14492194; var _local17:uint = 14513971; _arg1.player.x = 20; _arg1.player.y = 184; _arg1.parallaxBG.addUpDownGradient(0, 0, 6000, 900, [3355460, 5583633, 0, 0], [210, 220, 280, 300]); _arg1.parallaxBG.fillRect(0, 0, 6000, 200, "the hot day", 4473958); _arg1.FG.fillRect(0, 200, 9000, 100, "on the bank", 0x443300); _arg1.FG.fillRect(9000, 200, 1000, 100, "under the hedge", 0x443300); _local4.cursorTo(5, 200); _local4.setColor(_local5); _local4.addWordString(0, 14); _local4.lineUp(0.5); _local4.addWordString(15, 20); _local4.lineDown(0.5); _local4.addWordString(21, 33); _local4.lineDown(0.5); _local4.addWordString(34, 42); _local4.lineUp(0.5); _local4.addWordString(43, 50); _local4.lineDown(0.5); _local4.addWordString(51, 52); _local4.lineUp(0.5); _local4.addWordString(53, 56); _local4.lineUp(0.5); _local4.addWordString(57, 64); _local4.lineDown(0.5); _local4.addWordString(65, 80, [78, 80]); _local4.lineDown(0.5); _local4.addWordString(81, 99); _local4.lineUp(0.5); _local4.addWordString(100, 102); _local2 = _local4.cursor.x; _local4.lineUp(); _local4.setColor(_local7); _local4.addRabbit(103); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local2), Word.LINE_HEIGHT, _arg1), _local2, (_local4.cursor.y + Word.LINE_HEIGHT)); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(104, 110); _local4.lineUp(0.5); _local4.addWordString(111, 118); _local4.lineDown(0.5); _local4.addWordString(119, 130); _local4.lineDown(0.5); _local4.addWordString(131, 133); _local2 = _local4.cursor.x; _local4.lineUp(); _local4.setColor(_local7); _local4.addRabbit(134); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local2), Word.LINE_HEIGHT, _arg1), _local2, (_local4.cursor.y + Word.LINE_HEIGHT)); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(135, 146); _local4.lineUp(0.5); _local4.addWordString(147, 173); _local4.lineUp(0.5); _local4.addWordString(174, 176); _local2 = _local4.cursor.x; _local4.lineUp(); _local4.setColor(_local7); _local4.addRabbit(177); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local2), Word.LINE_HEIGHT, _arg1), _local2, (_local4.cursor.y + Word.LINE_HEIGHT)); _local4.lineDown(); _local4.setColor(_local5); _local4.addWordString(178, 185); _local4.lineDown(0.5); _local4.addWordString(186, 189); _local4.lineDown(0.5); _local4.addWordString(190, 193); _local4.lineUp(0.5); _local4.addWordString(194, 198); _local4.lineDown(0.5); _local4.addWordString(199, 212); _local4.lineDown(0.5); _local4.addWordString(213, 216); _local4.lineDown(0.5); _local4.addWordString(217, 224); _local4.lineDown(0.5); _local4.addWordString(225, 228); _local4.lineDown(0.5); _local4.addWordString(229, 235); _local4.addSpace(); _local4.lineUp(6); _local4.setColor(_local6); _local2 = _local4.cursor.x; _local4.addWordColumn(236, 240); _local4.addWordString(241, 247); _local4.addSpace(); _local4.cursor.x = _local2; _local4.lineDown(2); _local4.addWordString(248, 251); _local4.addSpace(); _local4.addSpace(); _local4.lineUp(2); _local4.setColor(_local8); _local4.addDoubleLayer(252, 0x0101, 258, 263); _local4.lineUp(2); _local4.setColor(_local9); _local4.addDoubleLayer(264, 267, 268, 272); _local4.lineUp(2); _local4.setColor(_local8); _local4.addDoubleLayer(273, 280, 281, 288); _local2 = _local4.cursor.x; _arg1.FG.addLeftRightGradient((_local4.cursor.x - 175), 0, 1000, 1000, [0, 0], [0, 50], [0, 1]); _arg1.addWorldObject(new ScrollColumn(2500, _local4.cursor.y, 2600, _arg1, 375), (_local4.cursor.x - 125), (_local4.cursor.y - 100)); _arg1.addWorldObject(new GravityZone(250, 2400, 0.5, 3, _arg1), _local4.cursor.x, _local4.cursor.y); _local4.setColor(_local10); _local4.addWordWell(289, 315, 250); _local4.cursor.x = _local2; _local4.lineDown(); _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), _local4.cursor.x, _local4.cursor.y); _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), (_local4.cursor.x + 242), _local4.cursor.y); _local4.lineDown(); _local4.addWordWell(316, 456, 250, [326, 388, 390, 418, 419, 439, 451], [439], _local11); _local4.lineDown(); _local4.cursor.x = _local2; _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), _local4.cursor.x, _local4.cursor.y); _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), (_local4.cursor.x + 242), _local4.cursor.y); _local4.lineDown(); _local4.addWordWell(457, 504, 250); _local4.lineDown(); _local4.cursor.x = _local2; _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), _local4.cursor.x, _local4.cursor.y); _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), (_local4.cursor.x + 242), _local4.cursor.y); _local4.lineDown(); _local4.addWordWell(505, 636, 250, [533, 568], null, _local11); _local4.lineDown(); _local4.cursor.x = _local2; _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), _local4.cursor.x, _local4.cursor.y); _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), (_local4.cursor.x + 242), _local4.cursor.y); _local4.lineDown(); _local4.addWordWell(637, 762, 250, [668, 714], null, _local11); _local4.lineDown(); _local4.cursor.x = _local2; _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), _local4.cursor.x, _local4.cursor.y); _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), (_local4.cursor.x + 242), _local4.cursor.y); _local4.lineDown(); _local4.addWordWell(763, 954, 250, [778, 787, 790, 801, 837, 863, 867, 875, 915, 924], null, _local11); _local4.lineDown(); _local4.cursor.x = _local2; _arg1.addWorldObject(new Wall(4, Word.LINE_HEIGHT, _arg1), _local4.cursor.x, _local4.cursor.y); _local4.lineDown(); _local4.cursor.x = _local2; _local4.setColor(_local8); _arg1.FG.fillRect(_local2, _local4.cursor.y, 4250, 100, "another long passage", 0x332200); _arg1.parallaxBG.fillRect(5525, 1200, 1850, 200, "all dark overhead", 0x222222); _local4.addWordString(955, 971); _local4.setColor(_local9); _local4.addWordString(972, 980); _local4.setColor(_local8); _local4.addWordString(981, 988); _local2 = _local4.cursor.x; _local4.lineUp(); _local4.setColor(_local7); _local4.addRabbit(989); _local4.lineDown(); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local2), Word.LINE_HEIGHT, _arg1), _local2, _local4.cursor.y); _local4.setColor(_local8); _local4.addWordString(990, 996); _local4.setColor(_local9); _local4.addWordString(997, 1004); _local4.setColor(_local8); _local4.addWordString(1005, 0x0400); _local4.setColor(_local7); _local4.addWordString(1025, 1033, [1031]); _local4.setColor(_local9); _local4.addWordString(1034, 1045); _local2 = _local4.cursor.x; _local4.lineUp(); _local4.setColor(_local7); _local4.addRabbit(1046); _local4.lineDown(); _arg1.addWorldObject(new Wall((_local4.cursor.x - _local2), Word.LINE_HEIGHT, _arg1), _local2, _local4.cursor.y); _local4.setColor(_local9); _local4.addWordString(1047, 1052); _local4.setColor(_local8); _local4.addWordString(1053, 1073); _arg1.FG.fillRect(_local2, _local4.cursor.y, 6900, 100, "a long, low hall", 2236971); _arg1.parallaxBG.fillRect(7375, 1200, 2700, 225, "lit up by a row of lamps", 3353617); var _local18:int; while (_local18 < 9) { _arg1.parallaxBG.addCenteredText((7500 + (300 * _local18)), 1375, 50, 6697745, "doors all round"); _local18++; }; _local4.setColor(_local13); _local4.addWordString(1074, 1085, [1085]); _local4.setColor(_local12); _local4.addWordString(1086, 1103); _local4.setColor(_local13); _local4.addWordString(1104, 1118); _local4.setColor(_local12); _local4.addWordString(1119, 1122); _local4.lineUp(5); _local4.setColor(_local14); _local2 = _local4.cursor.x; _local4.addWordString(1123, 1126); _local3 = _local4.cursor.x; _local4.cursor.x = (_local2 + 65); _local4.lineDown(); _local4.addCenteredWordColumn(1127, 1131, 55); _local4.lineDown(); _arg1.addWorldObject(new Wall((_local3 - _local2), Word.LINE_HEIGHT, _arg1), _local2, _local4.cursor.y); _local4.cursor.x = _local3; _local4.setColor(_local12); _local4.addWordString(1132, 1137); _local4.setColor(_local15); _local4.addWordString(1138, 1141); _local4.setColor(_local13); _local4.addWordString(1142, 1158); _local4.setColor(_local12); _local4.addWordString(1159, 1183, [1160, 1166, 1172]); _local4.setColor(_local13); _local4.addWordString(1184, 1192); _local4.addSpace(); _local2 = _local4.cursor.x; _local4.lineUp(4); _local4.setColor(_local16); _local4.addWordColumn(1193, 1195); _local4.cursor.x = _local2; _local4.lineDown(2); _local4.setColor(_local12); _local4.addWordString(1196, 1200); _local4.setColor(_local13); _local4.addWordString(1201, 1205); _local4.lineUp(2); _local4.setColor(_local17); _local4.addCenteredWordColumn(1206, 1207); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1208, 1211); _local4.setColor(_local12); _local4.addWordString(1212, 1214); _local4.setColor(_local15); _local4.addWordString(1215, 1217); _local4.setColor(_local12); _local4.addWordString(1218, 1227); _local4.addSpace(); _local2 = _local4.cursor.x; _local4.lineUp(6); _local4.setColor(_local13); _local4.addWordColumn(1228, 1230); _local4.lineDown(); _local4.cursor.x = _local2; _local4.addDoubleLayer(1231, 1239, 1240, 1246, 3); _local2 = _local4.cursor.x; _local4.lineUp(3); _local4.setColor(_local12); _local4.addWordByIndex(1247); _local4.lineUp(); _local4.addWordByIndex(1248); _local4.lineUp(); _local4.addWordByIndex(1249); _local4.lineUp(); _local4.addWordByIndex(1250); _local4.lineUp(); _local4.addWordByIndex(1251); _local4.lineUp(); _local4.addWordByIndex(1252); _local4.cursor.x = _local2; _local4.lineDown(8); _local4.addWordString(1253, 1256); _local4.lineUp(); _local4.setColor(_local5); _local4.addWordString(1257, 1258); _local4.lineUp(); _local4.addWordString(1259, 1261); _local4.lineDown(); _local4.addWordString(1262, 1271); _local4.lineUp(); _local4.addWordString(1272, 1276); _local4.lineUp(); _local4.addWordString(1277, 0x0500); _local4.lineDown(); _local4.addWordString(1281, 0x0505); _local4.lineDown(); _local4.addWordString(1286, 1288); _local4.lineDown(); _arg1.FG.fillRect(_local4.cursor.x, _local4.cursor.y, 5800, 100, "a long, low hall", 2236971); _arg1.parallaxBG.fillRect(11000, 1200, 2900, 225, "lit up by a row of lamps", 3353617); _local18 = 0; while (_local18 < 9) { _arg1.parallaxBG.addCenteredText((11200 + (300 * _local18)), 1375, 50, 6697745, "doors all round"); _local18++; }; _local4.setColor(_local12); _local4.addWordString(1289, 1295); _local4.setColor(_local13); _local4.addWordString(1296, 1303); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1304, 1306); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1307, 1316); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1317, 1327); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1328, 1338); _local4.setColor(_local12); _local4.addWordString(1339, 1362, [1344, 1362]); _local4.setColor(_local13); _local4.addWordString(1363, 1374); _local4.setColor(_local12); _local4.addWordString(1375, 1381); _local2 = _local4.cursor.x; _local4.lineUp(5); _local4.setColor(_local14); _local4.addWordString(1382, 1386); _local4.lineDown(); _local3 = _local4.cursor.x; _local4.cursor.x = (_local2 + 90); _local4.addCenteredWordColumn(1387, 1390); _local4.lineDown(); _arg1.addWorldObject(new Wall((_local3 - _local2), Word.LINE_HEIGHT, _arg1), _local2, _local4.cursor.y); _local4.cursor.x = _local3; _local4.setColor(_local12); _local4.addWordString(1391, 1404); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1405, 1413); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1414, 1421); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1422, 1433); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1434, 1445, [1437, 1438]); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1446, 1454, [1453, 1454]); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1455, 1459); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1460, 1468); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1469, 1472); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1473, 1474); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1475, 1482, [1480]); _local4.lineDown(); _local4.cursor.x = (_local4.cursor.x - 50); _local4.setColor(_local13); _local4.addWordColumn(1483, 1490); _local4.addWordString(1491, 1496, [1496]); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1497, 1502, [1498, 1502]); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1503, 1506); _local4.lineUp(6); _local4.setColor(_local12); _local4.addCenteredWordColumn(1507, 1512); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1513, 1520); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1521, 1535, [1525, 1526, 1528]); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(0x0600, 1550, [1540, 1544, 1547, 1550]); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1551, 1576, [1565]); _local4.lineUp(3); _local4.setColor(_local13); _local4.addWordColumn(1577, 1583, 0, [1583]); _local4.addWordString(1584, 1594); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1595, 1604); _local4.setColor(16768477); _local4.addWordByIndex(1605); _local4.setColor(16777181); _local4.addWordByIndex(1606); _local4.setColor(16777147); _local4.addWordByIndex(1607); _local4.setColor(8934690); _local4.addWordString(1608, 1609); _local4.setColor(12294485); _local4.addWordByIndex(1610); _local4.setColor(_local12); _local4.addWordByIndex(1611); _local4.setColor(15658683); _local4.addWordString(1612, 1614); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1615, 1620); _arg1.addWorldObject(new Pit(1000, 25, new Point((_local4.cursor.x - 50), (_local4.cursor.y - Word.LINE_HEIGHT)), _arg1), (_local4.cursor.x - 250), (_local4.cursor.y + 250)); _local4.cursor.x = (_local4.cursor.x + 75); _local4.setColor(_local12); _local4.addWordByIndex(1621); _local4.cursor.x = (_local4.cursor.x + 25); _local4.addWordByIndex(1622); _local4.cursor.x = (_local4.cursor.x + 25); _local4.addWordByIndex(1623); _local4.cursor.x = (_local4.cursor.x + 75); _arg1.FG.fillRect(_local4.cursor.x, _local4.cursor.y, 19700, 100, "a long, low hall", 2236971, 0, 24); _arg1.parallaxBG.fillRect(17200, 1200, 9600, 200, "lit up by a row of lamps", 3353617, 0, 24); _local18 = 0; while (_local18 < 20) { _arg1.parallaxBG.addCenteredText((17300 + (500 * _local18)), 1310, 75, 6697745, "doors all round", 24); _local18++; }; _local4.setColor(_local12); _local4.addWordString(1624, 1627); _local4.setColor(_local13); _local4.lineDown(); _local4.addWordString(1628, 1629); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1630, 1637); _local4.setColor(_local13); _local4.addWordString(1638, 1674); _local4.setColor(_local12); _local4.addWordString(1675, 1692); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1693, 1699); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1700, 1705); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1706, 1709); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1710, 1725, [1714]); _local4.setColor(_local13); _local4.addWordString(1726, 1755); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1756, 1772); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1773, 1783, [1774, 1777]); _local4.lineDown(); _local4.setColor(_local12); _local4.addWordString(1784, 1789); _local4.setColor(_local15); _local4.addWordString(1790, 0x0700); _local4.lineUp(); _local4.setColor(_local13); _local4.addWordString(1793, 1802); _local2 = _local4.cursor.x; _local4.lineUp(6); _local4.setColor(_local14); _local4.addWordString(1803, 1812); _local3 = _local4.cursor.x; _local4.lineDown(); _local4.cursor.x = (_local2 + 160); _local4.addCenteredWordColumn(1813, 1816); _local4.lineDown(2); _arg1.addWorldObject(new Wall((_local3 - _local2), Word.LINE_HEIGHT, _arg1), _local2, _local4.cursor.y); _local4.cursor.x = _local3; _local4.setColor(_local12); _local4.addWordString(1817, 1839); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1840, 1856, [1856]); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1857, 1864); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1865, 1870); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1871, 1878); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1879, 1885); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1886, 1891); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1892, 1905, [1898]); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1906, 1929); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1930, 1942); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1943, 1947); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1948, 1950); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(1951, 1968); _local4.setColor(_local13); _local4.addWordString(1969, 1983); _local4.setColor(_local12); _local4.addWordString(1984, 1994); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(1995, 1998); _local4.lineUp(); _local4.addWordString(1999, 2000, [1999, 2000]); _local4.lineDown(); _local4.addWordString(2001, 2005); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(2006, 2009); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(2010, 2011); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(2012, 2023); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(2024, 2036); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(2037, 2050); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(2051, 2060); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(2061, 2064); _local4.lineDown(); _local4.setColor(_local13); _local4.addWordString(2065, 2080); _local4.lineUp(); _local4.setColor(_local12); _local4.addWordString(2081, 2093); _local4.setColor(_local13); _local4.addWordString(2094, 2105); _local4.setColor(_local12); _local4.addWordString(2106, 2122, [2119]); _local4.setColor(_local13); _local4.addWordString(2123, 2138); _local4.setColor(_local12); _local4.lineDown(); _local4.addWordString(2139, 2150); _arg1.addWorldObject(new Wall(10, 800, _arg1), _local4.cursor.x, (_local4.cursor.y - 800)); _arg1.scorekeeper.totalWords = 2151; } public static function layoutWheelbarrow(_arg1:PlayScreen):void{ _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), -10, -100); _arg1.addWorldObject(new Wall(10, (Main.GAME_HEIGHT + 100), _arg1), Main.GAME_WIDTH, -100); _arg1.scrollEnabled = false; var _local2:Number = 165; var _local3:WordLayoutGenerator = new WordLayoutGenerator(_arg1, Text.WHEELBARROW); _local3.cursorTo(_local2, 25); _local3.setColor(0xDDDDDD); _local3.addDoubleLayer(0, 2, 3, 3, 1, false); _local3.lineDown(2); _local3.setColor(16759739); _local3.cursor.x = _local2; _local3.addDoubleLayer(4, 6, 7, 7, 1, false); _local3.lineDown(2); _local3.setColor(12303359); _local3.cursor.x = _local2; _local3.addDoubleLayer(8, 10, 11, 11, 1, false); _local3.lineDown(2); _local3.setColor(0xFFFFFF); _local3.cursor.x = _local2; _local3.addDoubleLayer(12, 14, 15, 15, 1, false); _local3.lineDown(3); _arg1.addWorldObject(new Wall(Main.GAME_WIDTH, 100, _arg1), 0, _local3.cursor.y); _arg1.FG.addUpDownGradient(0, 0, Main.GAME_WIDTH, Main.GAME_HEIGHT, [6710937, 10053171], [275, 290]); _arg1.player.x = 165; _arg1.player.y = 9; _arg1.scorekeeper.totalWords = 16; } } }//package Resources
Section 28
//Music (Resources.Music) package Resources { import flash.events.*; import flash.utils.*; import flash.media.*; public class Music { private static const sndYellowFlowers:Sound = new clsYellowFlowers(); private static const sndFlowerSink:Sound = new clsFlowerSink(); private static const sndLastVoyage:Sound = new clsLastVoyage(); private static const sndMoonRise:Sound = new clsMoonRise(); private static var songArray:Array = [sndFlowerSink, sndLastVoyage, sndMoonRise, sndYellowFlowers]; private static var timer:Timer; private static var _musicActive:Boolean = true; private static var clsYellowFlowers:Class = Music_clsYellowFlowers; private static var activeChannel:SoundChannel; private static var clsFlowerSink:Class = Music_clsFlowerSink; private static var inactiveChannel:SoundChannel; private static var clsMoonRise:Class = Music_clsMoonRise; private static var clsLastVoyage:Class = Music_clsLastVoyage; private static var activeSong:Sound; public static function get musicActive():Boolean{ return (_musicActive); } private static function fadeOutInactive(_arg1:TimerEvent):void{ if (inactiveChannel){ if (inactiveChannel.soundTransform.volume <= 0.1){ inactiveChannel.stop(); inactiveChannel = null; timer.removeEventListener(TimerEvent.TIMER, fadeOutInactive); } else { inactiveChannel.soundTransform = new SoundTransform((inactiveChannel.soundTransform.volume - 0.1)); }; }; } public static function set musicActive(_arg1:Boolean):void{ _musicActive = _arg1; if (activeChannel){ if (_musicActive){ activeChannel.soundTransform = new SoundTransform(0.75); } else { activeChannel.soundTransform = new SoundTransform(0); if (inactiveChannel){ inactiveChannel.soundTransform = new SoundTransform(0); }; }; }; } public static function changeSong():void{ if (activeSong){ songArray.splice(songArray.indexOf(activeSong), 1); songArray.push(activeSong); }; if (activeChannel){ activeChannel.removeEventListener(Event.SOUND_COMPLETE, onComplete); if (inactiveChannel){ inactiveChannel.stop(); timer.removeEventListener(TimerEvent.TIMER, fadeOutInactive); }; inactiveChannel = activeChannel; timer = new Timer(100); timer.addEventListener(TimerEvent.TIMER, fadeOutInactive, false, 0, true); timer.start(); }; activeSong = songArray[int((Math.random() * 3))]; if (_musicActive){ activeChannel = activeSong.play(0, 0, new SoundTransform(0.75)); } else { activeChannel = activeSong.play(0, 0, new SoundTransform(0)); }; activeChannel.addEventListener(Event.SOUND_COMPLETE, onComplete, false, 0, true); } private static function nextSong(_arg1:TimerEvent):void{ changeSong(); } private static function onComplete(_arg1:Event):void{ timer = new Timer(15000, 1); timer.addEventListener(TimerEvent.TIMER_COMPLETE, nextSong, false, 0, true); timer.start(); } } }//package Resources
Section 29
//Music_clsFlowerSink (Resources.Music_clsFlowerSink) package Resources { import mx.core.*; public class Music_clsFlowerSink extends SoundAsset { } }//package Resources
Section 30
//Music_clsLastVoyage (Resources.Music_clsLastVoyage) package Resources { import mx.core.*; public class Music_clsLastVoyage extends SoundAsset { } }//package Resources
Section 31
//Music_clsMoonRise (Resources.Music_clsMoonRise) package Resources { import mx.core.*; public class Music_clsMoonRise extends SoundAsset { } }//package Resources
Section 32
//Music_clsYellowFlowers (Resources.Music_clsYellowFlowers) package Resources { import mx.core.*; public class Music_clsYellowFlowers extends SoundAsset { } }//package Resources
Section 33
//Text (Resources.Text) package Resources { public class Text { public static const WHEELBARROW:String = new wheelbarrowClass(); public static const NAMELESS_CITY1:String = new namelessCityClass1(); public static const NAMELESS_CITY2:String = new namelessCityClass2(); public static const NAMELESS_CITY3:String = new namelessCityClass3(); public static const BUDDHA:String = new buddhaClass(); public static const TUTORIAL:String = new tutorialClass(); public static const FROG:String = new frogClass(); public static const ALICE:String = new aliceClass(); public static const BUFFALO:String = new buffaloClass(); public static const PRUFROCK:String = new prufrockClass(); private static var namelessCityClass1:Class = Text_namelessCityClass1; private static var namelessCityClass2:Class = Text_namelessCityClass2; private static var namelessCityClass3:Class = Text_namelessCityClass3; private static var buffaloClass:Class = Text_buffaloClass; private static var buddhaClass:Class = Text_buddhaClass; private static var aliceClass:Class = Text_aliceClass; private static var wheelbarrowClass:Class = Text_wheelbarrowClass; private static var prufrockClass:Class = Text_prufrockClass; private static var tutorialClass:Class = Text_tutorialClass; private static var frogClass:Class = Text_frogClass; } }//package Resources
Section 34
//Text_aliceClass (Resources.Text_aliceClass) package Resources { import mx.core.*; public class Text_aliceClass extends ByteArrayAsset { } }//package Resources
Section 35
//Text_buddhaClass (Resources.Text_buddhaClass) package Resources { import mx.core.*; public class Text_buddhaClass extends ByteArrayAsset { } }//package Resources
Section 36
//Text_buffaloClass (Resources.Text_buffaloClass) package Resources { import mx.core.*; public class Text_buffaloClass extends ByteArrayAsset { } }//package Resources
Section 37
//Text_frogClass (Resources.Text_frogClass) package Resources { import mx.core.*; public class Text_frogClass extends ByteArrayAsset { } }//package Resources
Section 38
//Text_namelessCityClass1 (Resources.Text_namelessCityClass1) package Resources { import mx.core.*; public class Text_namelessCityClass1 extends ByteArrayAsset { } }//package Resources
Section 39
//Text_namelessCityClass2 (Resources.Text_namelessCityClass2) package Resources { import mx.core.*; public class Text_namelessCityClass2 extends ByteArrayAsset { } }//package Resources
Section 40
//Text_namelessCityClass3 (Resources.Text_namelessCityClass3) package Resources { import mx.core.*; public class Text_namelessCityClass3 extends ByteArrayAsset { } }//package Resources
Section 41
//Text_prufrockClass (Resources.Text_prufrockClass) package Resources { import mx.core.*; public class Text_prufrockClass extends ByteArrayAsset { } }//package Resources
Section 42
//Text_tutorialClass (Resources.Text_tutorialClass) package Resources { import mx.core.*; public class Text_tutorialClass extends ByteArrayAsset { } }//package Resources
Section 43
//Text_wheelbarrowClass (Resources.Text_wheelbarrowClass) package Resources { import mx.core.*; public class Text_wheelbarrowClass extends ByteArrayAsset { } }//package Resources
Section 44
//CreditsScreen (Screens.CreditsScreen) package Screens { import flash.events.*; import flash.text.*; import Resources.*; import Interface.*; public class CreditsScreen extends Screen { public function CreditsScreen(){ var _local2:TextField; super(); var _local1:TextField = new TextField(); _local1.defaultTextFormat = Fonts.SCORECARD_LARGE; _local1.embedFonts = true; _local1.height = 30; _local1.width = 500; _local1.text = "CREDITS"; _local1.textColor = 0xFFFFFF; this.addChild(_local1); _local2 = new TextField(); _local2.defaultTextFormat = Fonts.BODY_TEXT; _local2.embedFonts = true; _local2.htmlText = "\"Silent Conversation\" was created by Gregory Weir.\n\nAll textual works were created by their provided author, and are in the public domain.\n\nThis game uses the font Fontin by Jos Buivenga (exljbris), available at <a href=\"http://www.exljbris.nl\">www.exljbris.nl</a>.\n\nThe music is from Antony Raijekov's \"Photo Theme\" series, available under a Creative Commons Attribution 2.5 License.\n\nSponsored by Armor Games.\n\nFor more by Gregory Weir, visit <a href=\"http://ludusnovus.net\">ludusnovus.net</a>."; _local2.height = 300; _local2.width = 450; _local2.x = 25; _local2.y = 35; _local2.selectable = false; _local2.wordWrap = true; _local2.textColor = 0xFFFFFF; this.addChild(_local2); var _local3:TextButton = new TextButton("BACK"); _local3.x = 450; _local3.y = 270; _local3.addEventListener(MouseEvent.CLICK, onBackClicked); this.addChild(_local3); } private function onBackClicked(_arg1:MouseEvent):void{ Main.popScreen(); } } }//package Screens
Section 45
//IntroScreen (Screens.IntroScreen) package Screens { import flash.events.*; import flash.utils.*; import flash.text.*; import Resources.*; public class IntroScreen extends Screen { public function IntroScreen(){ var _local1:TextField = new TextField(); _local1.defaultTextFormat = Fonts.LARGE_TEXT_CENTERED; _local1.embedFonts = true; _local1.text = "\"What is reading but silent conversation?\""; _local1.height = 30; _local1.width = 500; _local1.y = 120; _local1.textColor = 0xFFFFFF; _local1.selectable = false; this.addChild(_local1); var _local2:TextField = new TextField(); _local2.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; _local2.embedFonts = true; _local2.text = "- Walter Savage Landor"; _local2.height = 30; _local2.width = 500; _local2.y = 150; _local2.textColor = 0xFFFFFF; _local2.selectable = false; this.addChild(_local2); var _local3:Timer = new Timer(3000, 1); _local3.addEventListener(TimerEvent.TIMER_COMPLETE, onComplete); _local3.start(); } private function onComplete(_arg1:TimerEvent):void{ Main.popScreen(); Main.pushScreen(new TitleScreen()); } } }//package Screens
Section 46
//LevelIntroScreen (Screens.LevelIntroScreen) package Screens { import flash.text.*; import Resources.*; public class LevelIntroScreen extends Screen { private var level:PlayScreen; private var playMode:String; private var timer:int;// = 0 private var levelID:String; public function LevelIntroScreen(_arg1:String, _arg2:String){ Music.changeSong(); graphics.beginFill(0); graphics.drawRect(0, 0, Main.GAME_WIDTH, Main.GAME_HEIGHT); var _local3:TextField = new TextField(); _local3.defaultTextFormat = Fonts.LARGE_TEXT_CENTERED; _local3.embedFonts = true; _local3.text = Layouts.getTitle(_arg1); _local3.height = 30; _local3.width = 500; _local3.y = 120; _local3.textColor = 0xFFFFFF; _local3.selectable = false; this.addChild(_local3); var _local4:TextField = new TextField(); _local4.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; _local4.embedFonts = true; _local4.text = ("by " + Layouts.getAuthor(_arg1)); _local4.height = 30; _local4.width = 500; _local4.y = 150; _local4.textColor = 0xFFFFFF; _local4.selectable = false; this.addChild(_local4); var _local5:TextField = new TextField(); _local5.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; _local5.embedFonts = true; switch (_arg2){ case PlayScreen.MODE_COMPLETION: _local5.text = "Touch as many words as you can."; break; case PlayScreen.MODE_COMPLETIONTIMETRIAL: _local5.text = "Touch every word as fast as you can."; break; case PlayScreen.MODE_RACETIMETRIAL: _local5.text = "Get to the end with a passing grade as fast as you can."; }; _local5.height = 30; _local5.width = 500; _local5.y = 270; _local5.textColor = 0xFFFFFF; _local5.selectable = false; this.addChild(_local5); this.levelID = _arg1; this.playMode = _arg2; alpha = 0; } override public function step(_arg1:int):void{ if ((((alpha < 1)) && ((timer == 0)))){ alpha = (alpha + 0.1); } else { if (timer == 0){ level = PlayScreen.getPlayScreen(levelID, playMode); Main.insertScreen(level); timer++; } else { if (timer < 60){ timer++; } else { this.alpha = (this.alpha - 0.1); if (this.alpha <= 0.1){ Main.popScreen(); }; }; }; }; } } }//package Screens
Section 47
//LevelOverScreen (Screens.LevelOverScreen) package Screens { import flash.text.*; import Resources.*; public class LevelOverScreen extends Screen { private var timer:int;// = 0 public function LevelOverScreen(_arg1:Number, _arg2:String, _arg3:String){ graphics.beginFill(0); graphics.drawRect(0, 0, Main.GAME_WIDTH, Main.GAME_HEIGHT); var _local4:TextField = new TextField(); _local4.defaultTextFormat = Fonts.LARGE_TEXT_CENTERED; _local4.embedFonts = true; _local4.text = "LEVEL COMPLETE"; _local4.height = 30; _local4.width = 500; _local4.y = 120; _local4.textColor = 0xFFFFFF; _local4.selectable = false; this.addChild(_local4); var _local5:TextField = new TextField(); _local5.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; _local5.embedFonts = true; _local5.text = ("Final score: " + (_arg1 * 1000).toFixed(0)); _local5.height = 30; _local5.width = 500; _local5.y = 150; _local5.textColor = 0xFFFFFF; _local5.selectable = false; this.addChild(_local5); var _local6:TextField = new TextField(); _local6.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; _local6.embedFonts = true; _local6.text = ("Final time: " + _arg3); _local6.height = 30; _local6.width = 500; _local6.y = 170; _local6.textColor = 0xFFFFFF; _local6.selectable = false; this.addChild(_local6); var _local7:TextField = new TextField(); _local7.defaultTextFormat = Fonts.SCORECARD_LARGE; _local7.embedFonts = true; _local7.text = _arg2; _local7.height = 30; _local7.width = 500; _local7.y = 220; _local7.textColor = 0xFF0000; _local7.selectable = false; this.addChild(_local7); this.alpha = 0; } override public function step(_arg1:int):void{ if ((((alpha < 1)) && ((timer == 0)))){ alpha = (alpha + 0.01); } else { if (timer == 0){ Main.switchUnderScreen(); timer++; } else { if (timer < 60){ timer++; } else { this.alpha = (this.alpha - 0.1); if (this.alpha <= 0.05){ Main.popScreen(); }; }; }; }; } } }//package Screens
Section 48
//PlayScreen (Screens.PlayScreen) package Screens { import WorldObjects.*; import flash.geom.*; import flash.display.*; import Resources.*; import Util.*; import Interface.*; public class PlayScreen extends Screen { private var _player:Player; public var FG:WordSprite; private var worldobjects:Array; private var scrollColumn:ScrollColumn;// = null public var scorekeeper:Scorekeeper; public var wordsSprite:Sprite; private var worldobjectsToRemove:Array; public var freeScroll:Boolean;// = false private var levelID:String; public var parallaxBG:WordSprite; private var scrollSetter:VertScrollSetter;// = null public var scrollEnabled:Boolean;// = true private var playMode:String; public static const MODE_COMPLETIONTIMETRIAL:String = "TIME"; public static const MODE_RACETIMETRIAL:String = "RACE"; private static const VIEWMARGIN_X:int = 150; private static const VIEWMARGIN_Y:int = 100; public static const MODE_COMPLETION:String = "COMP"; public function PlayScreen(_arg1:String, _arg2:String){ worldobjects = new Array(); worldobjectsToRemove = new Array(); parallaxBG = new WordSprite(); FG = new WordSprite(); wordsSprite = new Sprite(); super(); scorekeeper = new Scorekeeper(_arg2); scorekeeper.x = (Main.GAME_WIDTH - scorekeeper.width); this.levelID = _arg1; this.playMode = _arg2; this.addChild(parallaxBG); this.addChild(FG); this.addChild(wordsSprite); _player = new Player("I", this); worldobjects.push(player); this.addChild(player); this.addChild(scorekeeper); } public function wordUntouched(_arg1:Word):void{ scorekeeper.untouchWord(_arg1); } override public function step(_arg1:int):void{ var _local2:Boolean; var _local3:WorldObject; scrollColumn = null; scrollSetter = null; for each (_local3 in worldobjects) { if (_local3.active){ _local3.step(_arg1); }; if ((((_local3 is ScrollColumn)) && (_local3.getRect(this).contains(player.x, player.y)))){ scrollColumn = ScrollColumn(_local3); }; if ((((_local3 is VertScrollSetter)) && (_local3.getRect(this).contains(player.x, player.y)))){ scrollSetter = VertScrollSetter(_local3); }; if ((((_local3 is GravityZone)) && (_local3.getRect(this).contains(player.x, player.y)))){ player.currGravity = GravityZone(_local3).gravity; player.currTerminalVelocity = GravityZone(_local3).terminalVelocity; _local2 = true; }; }; if (!_local2){ player.currGravity = Player.GRAVITY; player.currTerminalVelocity = Player.TERMINAL_VELOCITY; }; for each (_local3 in worldobjectsToRemove) { worldobjects.splice(worldobjects.indexOf(_local3), 1); }; worldobjectsToRemove = new Array(); adjustViewport(); if ((_arg1 % Main.STEP_RATE) == 0){ updateActiveStatus(); }; scorekeeper.x = ((-(x) + Main.GAME_WIDTH) - scorekeeper.width); scorekeeper.y = -(y); } public function removeWorldObject(_arg1:WorldObject):void{ if (_arg1.parent == wordsSprite){ if ((_arg1 is Word)){ wordsSprite.removeChild(_arg1); } else { this.removeChild(_arg1); }; worldobjectsToRemove.push(_arg1); }; } public function deactivateScreen():void{ var _local2:WorldObject; var _local1:Rectangle = new Rectangle(-(x), -(y), Main.GAME_WIDTH, Main.GAME_HEIGHT); for each (_local2 in worldobjects) { if ((((_local2 is Word)) && (_local2.getRect(this).intersects(_local1)))){ if ((_local2 is WordEnemy)){ this.removeWorldObject(_local2); } else { if (_local2.active){ Word(_local2).untouch(); }; }; }; }; } private function adjustViewport():void{ if (scrollEnabled){ if (scrollColumn != null){ if (player.y <= scrollColumn.maxLeftY){ adjustViewportX(); if (-(x) > scrollColumn.x){ x = -(scrollColumn.x); }; } else { if (player.y >= scrollColumn.minRightY){ adjustViewportX(); if (-(x) < scrollColumn.x){ x = -(scrollColumn.x); }; } else { if (-(x) > scrollColumn.x){ x = (x + Math.min(8, -((scrollColumn.x + x)))); } else { if (-(x) < scrollColumn.x){ x = (x - Math.min(8, (scrollColumn.x + x))); }; }; }; }; adjustViewportY(); } else { if (scrollSetter != null){ adjustViewportX(); if (-(y) < scrollSetter.y){ y = (y - Math.min(2, (scrollSetter.y + y))); } else { if (-(y) > scrollSetter.y){ y = (y + Math.min(2, -((scrollSetter.y + y)))); }; }; } else { if (freeScroll){ adjustViewportX(); adjustViewportY(); } else { adjustViewportX(); }; }; }; parallaxBG.x = (-(x) / 2); parallaxBG.y = (-(y) / 2); }; } public function addWorldObject(_arg1:WorldObject, _arg2:Number, _arg3:Number):void{ _arg1.x = _arg2; _arg1.y = _arg3; worldobjects.push(_arg1); if ((_arg1 is Word)){ wordsSprite.addChild(_arg1); } else { this.addChild(_arg1); }; } public function get player():Player{ return (_player); } public function adjustViewportY():void{ if ((((player.y < (-(y) + VIEWMARGIN_Y))) && ((player.y > VIEWMARGIN_Y)))){ y = -((player.y - VIEWMARGIN_Y)); } else { if (player.y > ((-(y) + Main.GAME_HEIGHT) - VIEWMARGIN_Y)){ y = -((((player.y + VIEWMARGIN_Y) - Main.GAME_HEIGHT) - 1)); }; }; } private function endLevel():void{ var _local2:Number; player.stop(); var _local1:Number = SaveData.getScore(this.levelID); if (scorekeeper.finalPercent >= 0.6){ if ((((levelID == Layouts.TUTORIAL1)) && ((playMode == MODE_COMPLETION)))){ SaveData.unlockLevel(Layouts.WHEELBARROW, MODE_COMPLETION); SaveData.unlockLevel(Layouts.NAMELESS1, MODE_COMPLETION); } else { if (playMode == MODE_COMPLETION){ if (((isNaN(_local1)) || ((_local1 < 0.6)))){ SaveData.unlockNextLevel(); }; }; }; _local2 = SaveData.getTime(this.levelID); if ((((_local2 == 0)) || ((scorekeeper.timeElapsed < _local2)))){ if (((!(Layouts.isShort(this.levelID))) || ((scorekeeper.finalPercent == 1)))){ SaveData.setTime(this.levelID, scorekeeper.timeElapsed); }; }; }; if (scorekeeper.finalPercent == 1){ if ((((((((levelID == Layouts.WHEELBARROW)) || ((levelID == Layouts.FROG)))) || ((levelID == Layouts.BUFFALO)))) || ((levelID == Layouts.BUDDHA)))){ SaveData.unlockLevel(levelID, MODE_COMPLETIONTIMETRIAL); } else { SaveData.unlockLevel(levelID, MODE_RACETIMETRIAL); }; }; if (((isNaN(_local1)) || ((scorekeeper.finalPercent > _local1)))){ SaveData.setGrade(this.levelID, scorekeeper.grade); SaveData.setScore(this.levelID, scorekeeper.finalPercent); }; Main.pushScreen(new LevelOverScreen(scorekeeper.finalPercent, scorekeeper.grade, scorekeeper.longTimeString)); } public function adjustViewportX():void{ if ((((player.x < (-(x) + VIEWMARGIN_X))) && ((player.x > VIEWMARGIN_X)))){ x = -((player.x - VIEWMARGIN_X)); } else { if ((((player.x > ((-(x) + Main.GAME_WIDTH) - VIEWMARGIN_X))) && ((player.x < ((wordsSprite.getBounds(this).right - VIEWMARGIN_X) + 5))))){ x = -((((player.x + VIEWMARGIN_X) - Main.GAME_WIDTH) - 1)); }; }; } public function getTouchingWords(_arg1:WorldObject):Array{ var _local4:WorldObject; var _local2:Array = new Array(); var _local3:Rectangle = _arg1.getRect(this); _local3.x--; _local3.y--; _local3.width = (_local3.width + 4); _local3.height = (_local3.height + 4); for each (_local4 in worldobjects) { if (!_local4.active){ } else { if (_local4 == _arg1){ } else { if ((((_local4 is Word)) && (_local4.getRect(this).intersects(_local3)))){ _local2.push(_local4); }; }; }; }; return (_local2); } public function collides(_arg1:WorldObject, _arg2:Number, _arg3:Number):Boolean{ var _local5:WorldObject; var _local4:Rectangle = _arg1.getRect(this); if ((_arg1 is Player)){ _local4.width = (_local4.width - 1); _local4.height = (_local4.height - 1); }; _local4.x = _arg2; _local4.y = _arg3; for each (_local5 in worldobjects) { if (!_local5.active){ } else { if (_local5 == _arg1){ } else { if (!_local5.solid){ } else { if (_local5.getRect(this).intersects(_local4)){ return (true); }; }; }; }; }; return (false); } public function updateActiveStatus():void{ var _local3:WorldObject; var _local1:Rectangle = new Rectangle(((player.x - Main.GAME_WIDTH) - Main.GAME_WIDTH), ((player.y - Main.GAME_HEIGHT) - Main.GAME_HEIGHT), (Main.GAME_WIDTH * 5), (Main.GAME_HEIGHT * 5)); var _local2:Rectangle = new Rectangle(); for each (_local3 in worldobjects) { _local2.left = _local3.x; _local2.width = _local3.width; _local2.top = _local3.y; _local2.height = _local3.height; if (_local2.intersects(_local1)){ if (!_local3.active){ _local3.active = true; if ((_local3 is Word)){ wordsSprite.addChild(_local3); }; }; } else { if (_local3.active){ _local3.active = false; if ((_local3 is Word)){ wordsSprite.removeChild(_local3); }; }; }; }; } public function wordTouched(_arg1:Word):void{ scorekeeper.touchWord(_arg1); if (_arg1.index == (scorekeeper.totalWords - 1)){ if (playMode == MODE_COMPLETION){ endLevel(); } else { if ((((playMode == MODE_RACETIMETRIAL)) && ((scorekeeper.finalPercent >= 0.6)))){ endLevel(); }; }; }; if ((((playMode == MODE_COMPLETIONTIMETRIAL)) && ((scorekeeper.finalPercent == 1)))){ endLevel(); }; } public static function getPlayScreen(_arg1:String, _arg2:String):PlayScreen{ var _local3:PlayScreen = new PlayScreen(_arg1, _arg2); Layouts.layoutScreen(_local3, _arg1); return (_local3); } } }//package Screens
Section 49
//Screen (Screens.Screen) package Screens { import flash.display.*; public class Screen extends Sprite { public function refresh():void{ } public function step(_arg1:int):void{ } } }//package Screens
Section 50
//TitleScreen (Screens.TitleScreen) package Screens { import flash.events.*; import flash.text.*; import Resources.*; import Util.*; import Interface.*; public class TitleScreen extends Screen { private var timeTrialBox:Scrollbox; private var raceButton:TextButton; private var scoreField:TextField; private var completionButton:TextButton; private var completionBox:Scrollbox; private var raceBox:Scrollbox; private var timeTrialButton:TextButton; public function TitleScreen(){ var _local2:TextField; var _local5:SponsorButton; super(); Music.changeSong(); var _local1:TextField = new TextField(); _local1.defaultTextFormat = Fonts.SCORECARD_LARGE; _local1.embedFonts = true; _local1.height = 30; _local1.width = 500; _local1.text = "SILENT CONVERSATION"; _local1.textColor = 0xFFFFFF; this.addChild(_local1); _local2 = new TextField(); _local2.defaultTextFormat = Fonts.BODY_TEXT_CENTERED; _local2.embedFonts = true; _local2.htmlText = "<a href='http://ludusnovus.net'>by Gregory Weir</a>"; _local2.height = 20; _local2.width = 500; _local2.x = 0; _local2.y = 35; _local2.textColor = 0xFFFFFF; _local2.selectable = false; this.addChild(_local2); completionBox = new Scrollbox(); completionBox.x = 25; completionBox.y = 75; this.addChild(completionBox); completionButton = new TextButton("[Completion]"); completionButton.x = 25; completionButton.y = 55; this.addChild(completionButton); completionButton.addEventListener(MouseEvent.CLICK, onCompletionClick); timeTrialBox = new Scrollbox(); timeTrialBox.x = 25; timeTrialBox.y = 75; this.addChild(timeTrialBox); timeTrialBox.visible = false; timeTrialButton = new TextButton("[Speed Completion]"); timeTrialButton.x = 175; timeTrialButton.y = 55; timeTrialButton.alpha = 0.5; this.addChild(timeTrialButton); timeTrialButton.addEventListener(MouseEvent.CLICK, onTimeTrialClick); raceBox = new Scrollbox(); raceBox.x = 25; raceBox.y = 75; this.addChild(raceBox); raceBox.visible = false; raceButton = new TextButton("[Race]"); raceButton.x = 400; raceButton.y = 55; raceButton.alpha = 0.5; this.addChild(raceButton); raceButton.addEventListener(MouseEvent.CLICK, onRaceClick); var _local3:MusicButton = new MusicButton(); _local3.x = 400; _local3.y = 270; this.addChild(_local3); var _local4:TextButton = new TextButton("CREDITS"); _local4.x = 25; _local4.y = 270; _local4.addEventListener(MouseEvent.CLICK, onCreditsClick); this.addChild(_local4); completionBox.addScrollChild(new LevelButton(0, 0, Layouts.TUTORIAL1, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 40, Layouts.WHEELBARROW, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 80, Layouts.NAMELESS1, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 120, Layouts.FROG, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 160, Layouts.PRUFROCK, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 200, Layouts.BUFFALO, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 240, Layouts.NAMELESS2, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 280, Layouts.BUDDHA, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 320, Layouts.ALICE, PlayScreen.MODE_COMPLETION)); completionBox.addScrollChild(new LevelButton(0, 360, Layouts.NAMELESS3, PlayScreen.MODE_COMPLETION)); timeTrialBox.addScrollChild(new LevelButton(0, 0, Layouts.WHEELBARROW, PlayScreen.MODE_COMPLETIONTIMETRIAL)); timeTrialBox.addScrollChild(new LevelButton(0, 40, Layouts.FROG, PlayScreen.MODE_COMPLETIONTIMETRIAL)); timeTrialBox.addScrollChild(new LevelButton(0, 80, Layouts.BUFFALO, PlayScreen.MODE_COMPLETIONTIMETRIAL)); timeTrialBox.addScrollChild(new LevelButton(0, 120, Layouts.BUDDHA, PlayScreen.MODE_COMPLETIONTIMETRIAL)); raceBox.addScrollChild(new LevelButton(0, 0, Layouts.TUTORIAL1, PlayScreen.MODE_RACETIMETRIAL)); raceBox.addScrollChild(new LevelButton(0, 40, Layouts.NAMELESS1, PlayScreen.MODE_RACETIMETRIAL)); raceBox.addScrollChild(new LevelButton(0, 80, Layouts.PRUFROCK, PlayScreen.MODE_RACETIMETRIAL)); raceBox.addScrollChild(new LevelButton(0, 120, Layouts.NAMELESS2, PlayScreen.MODE_RACETIMETRIAL)); raceBox.addScrollChild(new LevelButton(0, 160, Layouts.ALICE, PlayScreen.MODE_RACETIMETRIAL)); raceBox.addScrollChild(new LevelButton(0, 200, Layouts.NAMELESS3, PlayScreen.MODE_RACETIMETRIAL)); scoreField = new TextField(); scoreField.defaultTextFormat = Fonts.BODY_TEXT; scoreField.embedFonts = true; scoreField.text = ("Total Score: " + SaveData.getTotalScore()); scoreField.height = 20; scoreField.width = 400; scoreField.x = 25; scoreField.y = 230; scoreField.textColor = 0xFFFFFF; scoreField.selectable = false; this.addChild(scoreField); _local5 = new SponsorButton(); _local5.y = 235; _local5.x = 162; this.addChild(_local5); } private function onCompletionClick(_arg1:MouseEvent):void{ completionButton.alpha = 1; timeTrialButton.alpha = 0.5; raceButton.alpha = 0.5; completionBox.visible = true; timeTrialBox.visible = false; raceBox.visible = false; } private function onTimeTrialClick(_arg1:MouseEvent):void{ completionButton.alpha = 0.5; timeTrialButton.alpha = 1; raceButton.alpha = 0.5; completionBox.visible = false; timeTrialBox.visible = true; raceBox.visible = false; } override public function refresh():void{ Music.changeSong(); completionBox.refresh(); timeTrialBox.refresh(); raceBox.refresh(); scoreField.text = ("Total Score: " + SaveData.getTotalScore()); } private function onCreditsClick(_arg1:MouseEvent):void{ Main.pushScreen(new CreditsScreen()); } private function onRaceClick(_arg1:MouseEvent):void{ completionButton.alpha = 0.5; timeTrialButton.alpha = 0.5; raceButton.alpha = 1; completionBox.visible = false; timeTrialBox.visible = false; raceBox.visible = true; } } }//package Screens
Section 51
//DragonGraphics (Util.DragonGraphics) package Util { import flash.geom.*; import flash.display.*; import flash.filters.*; public class DragonGraphics { public static const MONOCHROME_FILTER:ColorMatrixFilter = new ColorMatrixFilter(MONOCHROME_MATRIX); private static const MONOCHROME_MATRIX:Array = [0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0.3, 0.59, 0.11, 0, 0, 0, 0, 0, 1, 0]; public static function drawSprite(_arg1:Graphics, _arg2:BitmapData, _arg3:Number, _arg4:Number, _arg5:Boolean=false, _arg6:Matrix=null, _arg7:Number=1):void{ if (_arg6 == null){ _arg6 = new Matrix(); }; if (_arg5){ _arg6.scale(-1, 1); }; if (_arg7 != 1){ _arg6.scale(_arg7, _arg7); }; if (((!((_arg3 == 0))) || (!((_arg4 == 0))))){ _arg6.translate(_arg3, _arg4); }; _arg1.beginBitmapFill(_arg2, _arg6); _arg1.drawRect(_arg3, _arg4, (_arg2.width * _arg7), (_arg2.height * _arg7)); _arg1.endFill(); } } }//package Util
Section 52
//SaveData (Util.SaveData) package Util { import Screens.*; import Resources.*; import flash.net.*; public class SaveData { private static const datastore:SharedObject = SharedObject.getLocal("ReadingGame", "/"); public static function unlockLevel(_arg1:String, _arg2:String):void{ datastore.data[(("Unlocked" + _arg1) + _arg2)] = true; } public static function getGrade(_arg1:String):String{ return (datastore.data[("Grade" + _arg1)]); } public static function getTime(_arg1:String):int{ return (datastore.data[("Time" + _arg1)]); } public static function clearSavedData():void{ datastore.clear(); } public static function levelUnlocked(_arg1:String, _arg2:String):Boolean{ return (datastore.data[(("Unlocked" + _arg1) + _arg2)]); } public static function getTotalScore():Number{ var _local1:Number = 0; _local1 = addScore(_local1, Layouts.ALICE); _local1 = addScore(_local1, Layouts.BUDDHA); _local1 = addScore(_local1, Layouts.BUFFALO); _local1 = addScore(_local1, Layouts.FROG); _local1 = addScore(_local1, Layouts.NAMELESS1); _local1 = addScore(_local1, Layouts.NAMELESS2); _local1 = addScore(_local1, Layouts.NAMELESS3); _local1 = addScore(_local1, Layouts.PRUFROCK); _local1 = addScore(_local1, Layouts.TUTORIAL1); _local1 = addScore(_local1, Layouts.WHEELBARROW); return (int((_local1 * 1000))); } public static function unlockNextLevel():void{ if (!levelUnlocked(Layouts.FROG, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.FROG, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.FROG, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.FROG, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.PRUFROCK, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.PRUFROCK, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.BUFFALO, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.BUFFALO, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.NAMELESS2, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.NAMELESS2, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.BUDDHA, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.BUDDHA, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.ALICE, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.ALICE, PlayScreen.MODE_COMPLETION); } else { if (!levelUnlocked(Layouts.NAMELESS3, PlayScreen.MODE_COMPLETION)){ unlockLevel(Layouts.NAMELESS3, PlayScreen.MODE_COMPLETION); }; }; }; }; }; }; }; }; } public static function setTime(_arg1:String, _arg2:int):void{ datastore.data[("Time" + _arg1)] = _arg2; } public static function setScore(_arg1:String, _arg2:Number):void{ datastore.data[("Score" + _arg1)] = _arg2; } private static function addScore(_arg1:Number, _arg2:String):Number{ var _local3:Number = getScore(_arg2); if (isNaN(_local3)){ return (_arg1); }; return ((_arg1 + _local3)); } public static function setGrade(_arg1:String, _arg2:String):void{ datastore.data[("Grade" + _arg1)] = _arg2; } public static function getScore(_arg1:String):Number{ return (datastore.data[("Score" + _arg1)]); } } }//package Util
Section 53
//WordLayoutGenerator (Util.WordLayoutGenerator) package Util { import Screens.*; import WorldObjects.*; import flash.geom.*; public class WordLayoutGenerator { private var currColor:uint;// = 0xFFFFFF public var cursor:Point; private var myScreen:PlayScreen; public var wordArray:Array; public static const SPACER_WIDTH:int = 20; public function WordLayoutGenerator(_arg1:PlayScreen, _arg2:String){ this.myScreen = _arg1; wordArray = _arg2.split(/\s+/); cursor = new Point(); } public function addWordWell(_arg1:int, _arg2:int, _arg3:int=0, _arg4:Array=null, _arg5:Array=null, _arg6:uint=4294967295):void{ var _local9:Word; var _local14:Array; var _local7:int = cursor.x; var _local8:int = _arg1; var _local10:Number = 0; if (_arg6 == uint.MAX_VALUE){ _arg6 = currColor; }; var _local11:Number = 4; var _local12:Number = 0; var _local13:Array = new Array(); _local13.push(new Array()); while (_local8 <= _arg2) { if (((_arg5) && (!((_arg5.indexOf(_local8) == -1))))){ _local9 = new WordSpawner(wordArray[_local8], _local8, myScreen); } else { if (((_arg4) && (!((_arg4.indexOf(_local8) == -1))))){ _local9 = new Word(wordArray[_local8], _local8, myScreen, null, _arg6); } else { _local9 = new Word(wordArray[_local8], _local8, myScreen, null, currColor); }; }; if (((((_local10 + _local9.width) > _arg3)) && ((_local13[(_local13.length - 1)].length > 0)))){ if (_local12 < _local10){ _local12 = (_local10 - Word.SPACE_WIDTH); }; _local13.push(new Array()); _local10 = 0; }; if ((((_arg4 == null)) || ((_arg4.indexOf(_local8) == -1)))){ _local9.solid = false; }; _local13[(_local13.length - 1)].push(_local9); _local10 = (_local10 + (_local9.width + Word.SPACE_WIDTH)); _local8++; }; for each (_local14 in _local13) { cursor.x = _local7; _local10 = (getTotalWidth(_local14) - Word.SPACE_WIDTH); myScreen.addWorldObject(new Wall((((_local12 - _local10) / 2) + _local11), (Word.LINE_HEIGHT - 4), myScreen), cursor.x, cursor.y); cursor.x = (cursor.x + (((_local12 - _local10) / 2) + _local11)); for each (_local9 in _local14) { addWord(_local9, true, _local9.solid); }; myScreen.addWorldObject(new Wall((((_local12 - _local10) / 2) + _local11), (Word.LINE_HEIGHT - 4), myScreen), (cursor.x - Word.SPACE_WIDTH), cursor.y); lineDown(); }; lineUp(); } public function addWordColumn(_arg1:int, _arg2:int, _arg3:int=0, _arg4:Array=null):void{ var _local7:Word; var _local5:int = cursor.x; var _local6:int = _arg1; while (_local6 <= _arg2) { if (((_arg4) && (!((_arg4.indexOf(_local6) == -1))))){ _local7 = new WordSpawner(wordArray[_local6], _local6, myScreen); } else { _local7 = new Word(wordArray[_local6], _local6, myScreen, null, currColor); }; if ((((cursor.x == _local5)) && ((_local7.width > _arg3)))){ addWord(_local7); if (_local6 != _arg2){ lineDown(); cursor.x = _local5; }; _local6++; continue; } else { if ((cursor.x + _local7.width) > (_local5 + _arg3)){ lineDown(); cursor.x = _local5; }; }; addWord(_local7); _local6++; }; } public function addRightAlignedWordColumn(_arg1:int, _arg2:int, _arg3:int=0, _arg4:Array=null):void{ var _local7:Word; var _local11:Array; var _local5:int = cursor.x; var _local6:int = _arg1; var _local8:Number = 0; var _local9:Number = 0; var _local10:Array = new Array(); _local10.push(new Array()); while (_local6 <= _arg2) { if (((_arg4) && (!((_arg4.indexOf(_local6) == -1))))){ _local7 = new WordSpawner(wordArray[_local6], _local6, myScreen); } else { _local7 = new Word(wordArray[_local6], _local6, myScreen, null, currColor); }; if (((((_local8 + _local7.width) > _arg3)) && ((_local10[(_local10.length - 1)].length > 0)))){ if (_local9 < _local8){ _local9 = _local8; }; _local10.push(new Array()); _local8 = 0; }; _local10[(_local10.length - 1)].push(_local7); _local8 = (_local8 + _local7.width); _local6++; }; for each (_local11 in _local10) { cursor.x = ((_local5 + _local9) - getTotalWidth(_local11)); for each (_local7 in _local11) { addWord(_local7); }; lineDown(); }; lineUp(); } public function addWord(_arg1:Word, _arg2:Boolean=true, _arg3:Boolean=true):void{ myScreen.addWorldObject(_arg1, cursor.x, cursor.y); if (_arg2){ cursor.x = (cursor.x + (_arg1.width + Word.SPACE_WIDTH)); }; _arg1.solid = _arg3; } public function addCenteredWordColumn(_arg1:int, _arg2:int, _arg3:int=0, _arg4:Array=null):void{ var _local7:Word; var _local11:Array; var _local5:int = cursor.x; var _local6:int = _arg1; var _local8:Number = 0; var _local9:Number = 0; var _local10:Array = new Array(); _local10.push(new Array()); while (_local6 <= _arg2) { if (((_arg4) && (!((_arg4.indexOf(_local6) == -1))))){ _local7 = new WordSpawner(wordArray[_local6], _local6, myScreen); } else { _local7 = new Word(wordArray[_local6], _local6, myScreen, null, currColor); }; if (((((_local8 + _local7.width) > _arg3)) && ((_local10[(_local10.length - 1)].length > 0)))){ if (_local9 < _local8){ _local9 = _local8; }; _local10.push(new Array()); _local8 = 0; }; _local10[(_local10.length - 1)].push(_local7); _local8 = (_local8 + _local7.width); _local6++; }; _local5 = (_local5 - ((_local9 - getTotalWidth(_local10[(_local10.length - 1)])) / 2)); for each (_local11 in _local10) { cursor.x = (_local5 + ((_local9 - getTotalWidth(_local11)) / 2)); for each (_local7 in _local11) { addWord(_local7); }; lineDown(); }; lineUp(); } public function addSteepStairs(_arg1:int, _arg2:int, _arg3:Array=null):void{ var _local6:Word; var _local4:Number = cursor.x; var _local5:int = _arg1; while (_local5 <= _arg2) { if (((_arg3) && (!((_arg3.indexOf(_local5) == -1))))){ _local6 = new WordSpawner(wordArray[_local5], _local5, myScreen); } else { _local6 = new Word(wordArray[_local5], _local5, myScreen, null, currColor); }; addWord(_local6); lineDown(); if ((((((_local5 - _arg1) % 2) == 0)) && (!((_local5 == _arg2))))){ cursor.x = _local4; } else { _local4 = cursor.x; }; _local5++; }; } public function addRabbit(_arg1:int):void{ this.addWord(new RabbitWord(wordArray[_arg1], _arg1, myScreen, null, currColor)); } public function addWordSpawner(_arg1:int, _arg2:Boolean=true, _arg3:Boolean=true):void{ addWord(new WordSpawner(wordArray[_arg1], _arg1, myScreen), _arg2, _arg3); } public function addDoubleLayer(_arg1:int, _arg2:int, _arg3:int, _arg4:int, _arg5:int=2, _arg6:Boolean=true, _arg7:Array=null):void{ var _local9:int; var _local10:int; var _local8:int = cursor.x; addWordString(_arg1, _arg2, _arg7); _local9 = cursor.x; cursor.x = _local8; lineDown(_arg5); addWordString(_arg3, _arg4, _arg7); _local10 = cursor.x; if (_arg6){ if (_local10 >= _local9){ lineUp(_arg5); cursor.x = _local9; addSpace((((_local10 - _local9) / SPACER_WIDTH) + 1)); myScreen.addWorldObject(new Wall(((_local10 + SPACER_WIDTH) - cursor.x), (Word.LINE_HEIGHT - 4), myScreen), cursor.x, cursor.y); lineDown(_arg5); cursor.x = _local10; addSpace(); } else { addSpace((((_local9 - _local10) / SPACER_WIDTH) + 1)); myScreen.addWorldObject(new Wall(((_local9 + SPACER_WIDTH) - cursor.x), (Word.LINE_HEIGHT - 4), myScreen), cursor.x, cursor.y); lineUp(_arg5); cursor.x = _local9; addSpace(); lineDown(_arg5); }; }; } public function setColor(_arg1:uint):void{ currColor = _arg1; } public function addSpace(_arg1:Number=1):void{ myScreen.addWorldObject(new Wall((_arg1 * SPACER_WIDTH), (Word.LINE_HEIGHT - 4), myScreen), cursor.x, cursor.y); cursor.x = (cursor.x + (_arg1 * SPACER_WIDTH)); } private function getTotalWidth(_arg1:Array):Number{ var _local3:Word; var _local2:Number = 0; for each (_local3 in _arg1) { _local2 = (_local2 + (_local3.width + Word.SPACE_WIDTH)); }; return (_local2); } public function addWavyWordString(_arg1:int, _arg2:int, _arg3:Array=null, _arg4:Boolean=true):void{ var _local5:int = _arg1; while (_local5 <= _arg2) { if (((_arg3) && (!((_arg3.indexOf(_local5) == -1))))){ addWordSpawner(_local5, true, _arg4); } else { addWordByIndex(_local5, true, _arg4); }; if (((_arg1 - _local5) % 2) == 0){ if (((_arg1 - _local5) % 4) == 0){ lineDown(0.5); } else { lineUp(0.5); }; }; _local5++; }; } public function lineUp(_arg1:Number=1):void{ cursorTo(cursor.x, (cursor.y - (Word.LINE_HEIGHT * _arg1))); } public function cursorTo(_arg1:Number, _arg2:Number):void{ cursor.x = _arg1; cursor.y = _arg2; } public function lineDown(_arg1:Number=1):void{ cursorTo(cursor.x, (cursor.y + (Word.LINE_HEIGHT * _arg1))); } public function addWordByIndex(_arg1:int, _arg2:Boolean=true, _arg3:Boolean=true):void{ addWord(new Word(wordArray[_arg1], _arg1, myScreen, null, currColor), _arg2, _arg3); } public function addBackwardsStairs(_arg1:int, _arg2:int, _arg3:Array=null):void{ var _local6:Word; var _local4:Number = cursor.x; var _local5:int = _arg1; while (_local5 <= _arg2) { if (((_arg3) && (!((_arg3.indexOf(_local5) == -1))))){ _local6 = new WordSpawner(wordArray[_local5], _local5, myScreen); } else { _local6 = new Word(wordArray[_local5], _local5, myScreen, null, currColor); }; cursor.x = (cursor.x - _local6.width); addWord(_local6); cursor.x = (cursor.x - _local6.width); lineDown(); _local5++; }; } public function addWordString(_arg1:int, _arg2:int, _arg3:Array=null):void{ var _local4:int = _arg1; while (_local4 <= _arg2) { if (((_arg3) && (!((_arg3.indexOf(_local4) == -1))))){ addWordSpawner(_local4); } else { addWordByIndex(_local4); }; _local4++; }; } } }//package Util
Section 54
//WordSprite (Util.WordSprite) package Util { import flash.geom.*; import flash.text.*; import flash.display.*; import Resources.*; public class WordSprite extends Sprite { private static const TILE_SIZE:int = 350; public function addCenteredText(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:uint, _arg5:String, _arg6:int=16):void{ var _local7:TextField = new TextField(); _local7.defaultTextFormat = new TextFormat(Fonts.BODY_TEXT_CENTERED.font, _arg6, null, null, null, null, null, null, Fonts.BODY_TEXT_CENTERED.align); _local7.embedFonts = true; _local7.text = _arg5; _local7.height = 1000; _local7.width = _arg3; _local7.textColor = _arg4; _local7.x = _arg1; _local7.y = _arg2; _local7.wordWrap = true; this.addChild(_local7); } public function addLeftRightGradient(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Array, _arg6:Array, _arg7:Array=null):void{ var positionMult:Number; var x = _arg1; var y = _arg2; var width = _arg3; var height = _arg4; var colors = _arg5; var relativePositions = _arg6; var alphas = _arg7; var gradWidth:Number = relativePositions[(relativePositions.length - 1)]; var m:Matrix = new Matrix(); m.createGradientBox(gradWidth, height, 0, x, y); positionMult = (0xFF / gradWidth); var ratios:Array = relativePositions.map(function (_arg1, _arg2:int, _arg3:Array):Number{ return ((_arg1 * positionMult)); }); if (alphas == null){ alphas = colors.map(function (_arg1, _arg2:int, _arg3:Array):int{ return (1); }); }; graphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, m); graphics.drawRect(x, y, gradWidth, height); graphics.endFill(); if (gradWidth < width){ graphics.beginFill(colors[(colors.length - 1)]); graphics.drawRect((x + gradWidth), y, (width - gradWidth), height); graphics.endFill(); }; } public function addUpDownGradient(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Array, _arg6:Array):void{ var positionMult:Number; var x = _arg1; var y = _arg2; var width = _arg3; var height = _arg4; var colors = _arg5; var relativePositions = _arg6; var gradHeight:Number = (relativePositions[(relativePositions.length - 1)] - relativePositions[0]); var m:Matrix = new Matrix(); m.createGradientBox(width, gradHeight, 90, x, relativePositions[0]); positionMult = (0xFF / gradHeight); var ratios:Array = relativePositions.map(function (_arg1, _arg2:int, _arg3:Array):Number{ return (((_arg1 - relativePositions[0]) * positionMult)); }); var alphas:Array = colors.map(function (_arg1, _arg2:int, _arg3:Array):int{ return (1); }); graphics.beginGradientFill(GradientType.LINEAR, colors, alphas, ratios, m); graphics.drawRect(x, (y + relativePositions[0]), width, gradHeight); graphics.endFill(); if (gradHeight < height){ if (relativePositions[0] > 0){ graphics.beginFill(colors[0]); graphics.drawRect(x, y, width, relativePositions[0]); graphics.endFill(); }; if ((relativePositions[0] + gradHeight) < height){ graphics.beginFill(colors[(colors.length - 1)]); graphics.drawRect(x, ((y + relativePositions[0]) + gradHeight), width, (height - relativePositions[(relativePositions.length - 1)])); graphics.endFill(); }; }; } public function fillRect(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:String, _arg6:uint, _arg7:uint=0, _arg8:int=16):void{ var _local19:Number; if (_arg3 > 2000){ fillRect(_arg1, _arg2, 2000, _arg4, _arg5, _arg6, _arg7, _arg8); fillRect((_arg1 + 2000), _arg2, (_arg3 - 2000), _arg4, _arg5, _arg6, _arg7, _arg8); return; }; if (_arg4 > 2000){ fillRect(_arg1, _arg2, _arg3, 2000, _arg5, _arg6, _arg7, _arg8); fillRect(_arg1, (_arg2 + 2000), _arg3, (_arg4 - 2000), _arg5, _arg6, _arg7, _arg8); return; }; var _local9:TextField = new TextField(); _local9.defaultTextFormat = new TextFormat(Fonts.BODY_TEXT.font, _arg8); _local9.embedFonts = true; _local9.text = _arg5; _local9.height = 100; _local9.width = TILE_SIZE; _local9.textColor = _arg6; var _local10:BitmapData = new BitmapData(TILE_SIZE, TILE_SIZE, true, 0); _local10.draw(_local9); var _local11:Rectangle = _local10.getColorBoundsRect(4294967295, 0, false); _local10.getColorBoundsRect(4294967295, 0, false).height = (_local11.height + _local11.y); _local11.y = 2; _local11.x = (_local11.x - 1); _local11.width = (_local11.width + 2); var _local12:Point = new Point(); var _local13:BitmapData = new BitmapData((_arg3 + _local11.width), (_arg4 + _local11.height), true, 0); if (_arg7 != 0){ _local13.fillRect(new Rectangle((_local11.width / 2), (_local11.height / 2), _arg3, _arg4), _arg7); }; var _local14:int = (_arg3 / _local11.width); var _local15:int = (_arg4 / _local11.height); var _local16:Number = (_arg3 / _local14); var _local17:Number = (_arg4 / _local15); var _local18:Number = 0; while (_local18 < _local14) { _local19 = 0; while (_local19 < _local15) { _local12.x = (((_local18 + (0.5 * Math.random())) + 0.25) * _local16); _local12.y = (((_local19 + (0.5 * Math.random())) + 0.25) * _local17); _local13.copyPixels(_local10, _local11, _local12, null, null, true); _local19++; }; _local18++; }; DragonGraphics.drawSprite(graphics, _local13, (_arg1 - (_local11.width / 2)), (_arg2 - (_local11.height / 2))); } } }//package Util
Section 55
//GravityZone (WorldObjects.GravityZone) package WorldObjects { import Screens.*; public class GravityZone extends WorldObject { public var terminalVelocity:Number; public var gravity:Number; public function GravityZone(_arg1:int, _arg2:int, _arg3:Number, _arg4:Number, _arg5:PlayScreen){ super(_arg5); this.solid = false; this.gravity = _arg3; this.terminalVelocity = _arg4; graphics.drawRect(0, 0, _arg1, _arg2); } } }//package WorldObjects
Section 56
//Pit (WorldObjects.Pit) package WorldObjects { import Screens.*; import flash.geom.*; public class Pit extends WorldObject { private var spawnPoint:Point; public function Pit(_arg1:int, _arg2:int, _arg3:Point, _arg4:PlayScreen){ super(_arg4); solid = false; this.spawnPoint = _arg3; graphics.drawRect(0, 0, _arg1, _arg2); } override public function step(_arg1:int):void{ super.step(_arg1); if (myScreen.player.getRect(myScreen).intersects(getRect(myScreen))){ myScreen.deactivateScreen(); myScreen.player.x = spawnPoint.x; myScreen.player.y = spawnPoint.y; myScreen.updateActiveStatus(); myScreen.player.getHit(); }; } } }//package WorldObjects
Section 57
//Player (WorldObjects.Player) package WorldObjects { import Screens.*; import flash.events.*; import Resources.*; import flash.ui.*; public class Player extends Word { private var leftDown:Boolean; public var currTerminalVelocity:Number;// = 20 public var inWind:Boolean; private var rightDown:Boolean; private var jumpCounter:int;// = 0 private var flashing:Boolean; private var jumping:Boolean; private var yVelocity:Number;// = 0 private var flashCounter:int; public var currGravity:Number;// = 1.5 public static const TERMINAL_VELOCITY:Number = 20; private static const FLASH_DURATION:int = 60; private static const MAX_JUMP:int = 8; public static const GRAVITY:Number = 1.5; private static const PLAYER_SPEED:Number = 5; private static const JUMP_SPEED:Number = 11; public function Player(_arg1:String, _arg2:PlayScreen){ super(_arg1, -1, _arg2, Fonts.PLAYER_FONT); this.setBrightness(1); addEventListener(Event.ADDED_TO_STAGE, addedToStage); } public function stop():void{ stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown); stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function removedFromStage(_arg1:Event):void{ removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStage); stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyDown); stage.removeEventListener(KeyboardEvent.KEY_UP, keyUp); } private function moveToYCollision(_arg1:Number):void{ var _local2:int; if (y < _arg1){ _local2 = 1; } else { _local2 = -1; }; var _local3:Number = y; while (((!(myScreen.collides(this, x, (_local3 + _local2)))) && (((_local2 * ((_arg1 - _local3) - _local2)) > 0)))) { _local3 = (_local3 + _local2); }; y = _local3; } override public function untouch():void{ } override public function step(_arg1:int):void{ updatePosition(); if (flashing){ flashCounter--; if (flashCounter == 0){ flashing = false; alpha = 1; } else { if ((_arg1 % 4) == 0){ if (alpha == 1){ alpha = 0.2; } else { alpha = 1; }; }; }; } else { activateWords(); }; } private function tryJump():void{ if (myScreen.collides(this, x, (y + 1))){ jumping = true; jumpCounter = 0; }; } private function updatePosition():void{ var _local1:Number = x; if (((leftDown) && (!(rightDown)))){ _local1 = (_local1 - PLAYER_SPEED); } else { if (((rightDown) && (!(leftDown)))){ _local1 = (_local1 + PLAYER_SPEED); }; }; if (inWind){ _local1++; }; if (myScreen.collides(this, _local1, y)){ moveToXCollision(_local1); } else { x = _local1; }; if (jumping){ yVelocity = -(JUMP_SPEED); jumpCounter++; if (jumpCounter >= MAX_JUMP){ jumping = false; }; }; yVelocity = (yVelocity + currGravity); if (yVelocity > currTerminalVelocity){ yVelocity = currTerminalVelocity; }; var _local2:Number = (y + yVelocity); if (myScreen.collides(this, x, _local2)){ moveToYCollision(_local2); yVelocity = 0; } else { y = _local2; }; } public function getHit():void{ if (!flashing){ flashing = true; flashCounter = FLASH_DURATION; }; } private function keyDown(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == 65)))){ leftDown = true; rightDown = false; } else { if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == 68)))){ rightDown = true; leftDown = false; } else { if (_arg1.keyCode == Keyboard.BACKSPACE){ trace((((("(" + x) + ", ") + y) + ")")); } else { if (_arg1.keyCode == Keyboard.ESCAPE){ Main.popScreen(); } else { tryJump(); }; }; }; }; } private function addedToStage(_arg1:Event):void{ removeEventListener(Event.ADDED_TO_STAGE, addedToStage); stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); addEventListener(Event.REMOVED_FROM_STAGE, removedFromStage); } private function moveToXCollision(_arg1:Number):void{ var _local2:int; if (x < _arg1){ _local2 = 1; } else { _local2 = -1; }; var _local3:Number = x; while (((!(myScreen.collides(this, (_local3 + _local2), y))) && (((_local2 * ((_arg1 - _local3) - _local2)) > 0)))) { _local3 = (_local3 + _local2); }; x = _local3; } private function keyUp(_arg1:KeyboardEvent):void{ if ((((_arg1.keyCode == Keyboard.LEFT)) || ((_arg1.keyCode == 65)))){ leftDown = false; } else { if ((((_arg1.keyCode == Keyboard.RIGHT)) || ((_arg1.keyCode == 68)))){ rightDown = false; } else { jumping = false; }; }; } private function activateWords():void{ var _local2:Word; var _local1:Array = myScreen.getTouchingWords(this); for each (_local2 in _local1) { if (!_local2.touched){ _local2.touch(); }; }; } override public function touch():void{ } } }//package WorldObjects
Section 58
//PlayerPusherZone (WorldObjects.PlayerPusherZone) package WorldObjects { import Screens.*; public class PlayerPusherZone extends WorldObject { private var pushActive:Boolean; public function PlayerPusherZone(_arg1:Number, _arg2:Number, _arg3:PlayScreen){ super(_arg3); solid = false; graphics.drawRect(0, 0, _arg1, _arg2); } override public function step(_arg1:int):void{ var _local2:Boolean = getBounds(myScreen).contains(myScreen.player.x, myScreen.player.y); if (((!(pushActive)) && (_local2))){ myScreen.player.inWind = true; }; if (((pushActive) && (!(_local2)))){ myScreen.player.inWind = false; }; pushActive = _local2; } } }//package WorldObjects
Section 59
//RabbitWord (WorldObjects.RabbitWord) package WorldObjects { import Screens.*; import flash.text.*; public class RabbitWord extends Word { private var running:Boolean;// = false public function RabbitWord(_arg1:String, _arg2:int, _arg3:PlayScreen, _arg4:TextFormat=null, _arg5:uint=0xFFFFFF){ super(_arg1, _arg2, _arg3, _arg4, _arg5); } override public function touch():void{ super.touch(); running = true; } override public function step(_arg1:int):void{ super.step(_arg1); if (running){ this.x = (this.x + 10); if (this.x > (-(myScreen.x) + 4000)){ this.visible = false; this.solid = false; this.running = false; }; }; } override public function untouch():void{ } } }//package WorldObjects
Section 60
//ScrollColumn (WorldObjects.ScrollColumn) package WorldObjects { import Screens.*; public class ScrollColumn extends WorldObject { public var maxLeftY:int; public var minRightY:int; public function ScrollColumn(_arg1:int, _arg2:int, _arg3:int, _arg4:PlayScreen, _arg5:int=500){ super(_arg4); this.maxLeftY = _arg2; this.minRightY = _arg3; this.solid = false; graphics.drawRect(0, 0, _arg5, _arg1); } } }//package WorldObjects
Section 61
//Wall (WorldObjects.Wall) package WorldObjects { import Screens.*; public class Wall extends WorldObject { public function Wall(_arg1:Number, _arg2:Number, _arg3:PlayScreen){ super(_arg3); graphics.drawRect(0, 0, _arg1, _arg2); } } }//package WorldObjects
Section 62
//VertScrollSetter (WorldObjects.VertScrollSetter) package WorldObjects { import Screens.*; public class VertScrollSetter extends WorldObject { public function VertScrollSetter(_arg1:int, _arg2:PlayScreen){ super(_arg2); this.solid = false; graphics.drawRect(0, 0, _arg1, Main.GAME_HEIGHT); } } }//package WorldObjects
Section 63
//WindZone (WorldObjects.WindZone) package WorldObjects { import Screens.*; import flash.text.*; import flash.display.*; import Resources.*; public class WindZone extends WorldObject { private var spawnheight:int; private var speed:int; private var textArray:Array; private var windActive:Boolean; private var hitSprite:Sprite; public function WindZone(_arg1:int, _arg2:int, _arg3:String, _arg4:uint, _arg5:int, _arg6:PlayScreen){ hitSprite = new Sprite(); textArray = new Array(); super(_arg6); this.spawnheight = _arg2; this.speed = _arg5; this.solid = false; var _local7:int; while (_local7 < 5) { textArray[_local7] = new TextField(); textArray[_local7].defaultTextFormat = Fonts.BODY_TEXT; textArray[_local7].embedFonts = true; textArray[_local7].text = _arg3; textArray[_local7].height = 20; textArray[_local7].width = (textArray[_local7].textWidth + 4); textArray[_local7].textColor = _arg4; textArray[_local7].selectable = false; textArray[_local7].visible = false; addChild(textArray[_local7]); _local7++; }; hitSprite.graphics.drawRect(0, -100, _arg1, (Main.GAME_HEIGHT + 100)); this.addChild(hitSprite); } private function prepareTextPositions():void{ var _local1:int = ((3 * Main.GAME_WIDTH) / 5); var _local2:int; while (_local2 < textArray.length) { if (speed < 0){ textArray[_local2].x = (((myScreen.player.x - x) + Main.GAME_WIDTH) + (_local1 * _local2)); } else { textArray[_local2].x = (((myScreen.player.x - x) - Main.GAME_WIDTH) - (_local1 * _local2)); }; textArray[_local2].y = (Math.random() * spawnheight); textArray[_local2].visible = true; _local2++; }; } override public function step(_arg1:int):void{ var _local2:Boolean = hitSprite.getBounds(myScreen).contains(myScreen.player.x, myScreen.player.y); var _local3:int; while (_local3 < textArray.length) { if (textArray[_local3].visible){ if ((((speed > 0)) && (((textArray[_local3].x + x) >= (myScreen.player.x + Main.GAME_WIDTH))))){ textArray[_local3].x = ((myScreen.player.x - x) - Main.GAME_WIDTH); textArray[_local3].y = (Math.random() * spawnheight); if (!_local2){ textArray[_local3].visible = false; }; } else { if ((((speed < 0)) && (((textArray[_local3].x + x) <= (myScreen.player.x - Main.GAME_WIDTH))))){ textArray[_local3].x = ((myScreen.player.x - x) + Main.GAME_WIDTH); textArray[_local3].y = (Math.random() * spawnheight); if (!_local2){ textArray[_local3].visible = false; }; } else { textArray[_local3].x = (textArray[_local3].x + speed); }; }; }; _local3++; }; if (((!(windActive)) && (_local2))){ prepareTextPositions(); }; windActive = _local2; } } }//package WorldObjects
Section 64
//Word (WorldObjects.Word) package WorldObjects { import Screens.*; import flash.geom.*; import flash.text.*; import flash.display.*; import Resources.*; import Util.*; import flash.filters.*; public class Word extends WorldObject { protected var _myIndex:int; protected var myWord:String; protected var myColor:uint; protected var _wasUntouched:Boolean;// = false protected var _touched:Boolean;// = false public static const LINE_HEIGHT:int = 20; public static const SPACE_WIDTH:int = 4; private static var scratchBitmap:BitmapData = new BitmapData(200, 200, true, 0); public function Word(_arg1:String, _arg2:int, _arg3:PlayScreen, _arg4:TextFormat=null, _arg5:uint=0xFFFFFF){ super(_arg3); myWord = _arg1.replace(/_/g, " "); myColor = _arg5; _myIndex = _arg2; if (_arg4 == null){ _arg4 = Fonts.BODY_TEXT; }; var _local6:TextField = new TextField(); _local6.defaultTextFormat = _arg4; _local6.embedFonts = true; _local6.text = (" " + myWord); _local6.height = 100; _local6.width = 200; _local6.textColor = _arg5; _local6.filters = [new GlowFilter(0, 1, 2, 2)]; this.setBrightness(0.5); scratchBitmap.fillRect(scratchBitmap.rect, 0); scratchBitmap.draw(_local6); var _local7:Rectangle = scratchBitmap.getColorBoundsRect(4294967295, 0, false); scratchBitmap.getColorBoundsRect(4294967295, 0, false).height = (_local7.height + (_local7.y - 2)); _local7.y = 2; var _local8:BitmapData = new BitmapData(_local7.width, _local7.height); _local8.copyPixels(scratchBitmap, _local7, new Point(0, 0)); DragonGraphics.drawSprite(this.graphics, _local8, 0, 0); } public function get touched():Boolean{ return (_touched); } public function touch():void{ if (!touched){ this.setBrightness(1); _touched = true; myScreen.wordTouched(this); }; } public function untouch():void{ if (touched){ myScreen.wordUntouched(this); this.setBrightness(0.5); _touched = false; _wasUntouched = true; }; } public function get index():int{ return (_myIndex); } protected function setBrightness(_arg1:Number):void{ this.transform.colorTransform = new ColorTransform(_arg1, _arg1, _arg1); } public function get wasUntouched():Boolean{ return (_wasUntouched); } } }//package WorldObjects
Section 65
//WordEnemy (WorldObjects.WordEnemy) package WorldObjects { import Screens.*; import flash.geom.*; public class WordEnemy extends Word { private var heading:Point; public function WordEnemy(_arg1:String, _arg2:PlayScreen, _arg3:uint=0xFF0000){ super(_arg1, -1, _arg2, null, _arg3); solid = false; alpha = 1; } override public function untouch():void{ } private function approx_distance(_arg1:Number, _arg2:Number):Number{ var _local3:Number; var _local4:Number; var _local5:Number; if (_arg1 < 0){ _arg1 = -(_arg1); }; if (_arg2 < 0){ _arg2 = -(_arg2); }; if (_arg1 < _arg2){ _local3 = _arg1; _local4 = _arg2; } else { _local3 = _arg2; _local4 = _arg1; }; _local5 = ((_local4 * 1007) + (_local3 * 441)); if (_local4 < (_local3 << 4)){ _local5 = (_local5 - (_local4 * 40)); }; return (((_local5 + 0x0200) >> 10)); } override public function step(_arg1:int):void{ var _local2:Number; var _local3:Number; var _local4:Number; super.step(_arg1); if (heading == null){ _local2 = (myScreen.player.x - this.x); _local3 = (myScreen.player.y - this.y); _local4 = approx_distance(_local2, _local3); heading = new Point((_local2 / _local4), (_local3 / _local4)); }; x = (x + heading.x); y = (y + heading.y); alpha = (alpha - 0.0005); if ((((alpha <= 0.4)) && (!((this.parent == null))))){ myScreen.removeWorldObject(this); }; } override public function touch():void{ var _local1:Rectangle = myScreen.player.getRect(myScreen); _local1.left++; _local1.top++; _local1.width = (_local1.width - 2); _local1.height = (_local1.height - 2); if (_local1.intersects(this.getRect(myScreen))){ myScreen.removeWorldObject(this); myScreen.deactivateScreen(); myScreen.player.getHit(); }; } } }//package WorldObjects
Section 66
//WordSpawner (WorldObjects.WordSpawner) package WorldObjects { import Screens.*; import Resources.*; public class WordSpawner extends Word { private var timeOffset:int; private var firing:Boolean; private var charIndex:int;// = 0 private static const SPAWN_PERIOD:int = 180; public function WordSpawner(_arg1:String, _arg2:int, _arg3:PlayScreen, _arg4:uint=16729156){ super(_arg1, _arg2, _arg3, Fonts.BODY_TEXT_BOLD, _arg4); timeOffset = (Math.random() * SPAWN_PERIOD); } private function withinRange():Boolean{ if (Math.abs((myScreen.player.x - x)) > (Main.GAME_WIDTH + Main.GAME_WIDTH)){ return (false); }; if (Math.abs((myScreen.player.y - y)) > (Main.GAME_HEIGHT + Main.GAME_HEIGHT)){ return (false); }; return (true); } override public function step(_arg1:int):void{ var _local2:Number; super.step(_arg1); if (firing){ _local2 = (x + (this.width * (Number(charIndex) / Number(myWord.length)))); if (myWord.charAt(charIndex).match(/[A-z]/) != null){ myScreen.addWorldObject(new WordEnemy(myWord.charAt(charIndex), myScreen, myColor), _local2, y); }; charIndex++; if (charIndex == myWord.length){ firing = false; }; } else { if (((((!(touched)) && ((((_arg1 + timeOffset) % SPAWN_PERIOD) == 0)))) && (withinRange()))){ firing = true; charIndex = 0; }; }; } } }//package WorldObjects
Section 67
//WorldObject (WorldObjects.WorldObject) package WorldObjects { import Screens.*; import flash.display.*; public class WorldObject extends Sprite { public var active:Boolean;// = true protected var myScreen:PlayScreen; public var solid:Boolean;// = true public function WorldObject(_arg1:PlayScreen){ this.myScreen = _arg1; } public function step(_arg1:int):void{ } } }//package WorldObjects
Section 68
//Main (Main) package { import Screens.*; import flash.events.*; import flash.utils.*; import flash.display.*; import Resources.*; import Util.*; public class Main extends Sprite { private var frameTimer:Timer; private var introTimer:Timer; private var introAnim:MovieClip; public static const STEP_RATE:int = 30; public static const GAME_HEIGHT:int = 300; public static const GAME_WIDTH:int = 500; private static var agIntroClass:Class = Main_agIntroClass; private static var theMain:Main; private static var screenStack:Array = new Array(); public function Main():void{ theMain = this; if (stage){ init(); } else { addEventListener(Event.ADDED_TO_STAGE, init); }; } public function frameLoop(_arg1:TimerEvent):void{ if (currScreen){ currScreen.step(frameTimer.currentCount); }; } private function init(_arg1:Event=null):void{ removeEventListener(Event.ADDED_TO_STAGE, init); var _local2:Sprite = new Sprite(); _local2.graphics.beginFill(0); _local2.graphics.drawRect(0, 0, GAME_WIDTH, GAME_HEIGHT); _local2.graphics.endFill(); this.mask = _local2; this.addChild(_local2); introAnim = new agIntroClass(); var _local3:Number = (Main.GAME_WIDTH / introAnim.width); introAnim.scaleX = _local3; introAnim.scaleY = _local3; introAnim.y = ((Main.GAME_HEIGHT - (introAnim.height * _local3)) / 2); this.addChild(introAnim); introTimer = new Timer(6000, 1); introTimer.addEventListener(TimerEvent.TIMER, introDone); introTimer.start(); } private function introDone(_arg1:Event):void{ var _local4:String; var _local5:String; var _local6:int; introTimer.removeEventListener(TimerEvent.TIMER, introDone); introTimer.stop(); introTimer = null; Loader(introAnim.getChildAt(0)).unload(); this.removeChild(introAnim); introAnim = null; var _local2:Array = new Array(); var _local3:Boolean; if (_local2.length > 0){ _local3 = false; _local4 = stage.loaderInfo.url.split("/")[2]; for (_local5 in _local2) { _local6 = _local4.toLowerCase().indexOf(_local2[_local5]); if ((((_local6 > -1)) && ((_local6 == (_local4.length - _local2[_local5].length))))){ _local3 = true; break; }; }; }; if (!_local3){ this.alpha = 0; }; SaveData.unlockLevel(Layouts.TUTORIAL1, PlayScreen.MODE_COMPLETION); pushScreen(new IntroScreen()); frameTimer = new Timer((1000 / STEP_RATE)); frameTimer.addEventListener(TimerEvent.TIMER, frameLoop); frameTimer.start(); } public static function insertScreen(_arg1:Screen):void{ theMain.addChildAt(_arg1, (theMain.numChildren - 2)); screenStack.splice((screenStack.length - 1), 0, _arg1); } public static function pushScreen(_arg1:Screen):void{ if (((currScreen) && (!((_arg1 is LevelOverScreen))))){ theMain.removeChild(currScreen); }; theMain.addChild(_arg1); screenStack.push(_arg1); theMain.stage.focus = _arg1; } public static function switchUnderScreen():void{ theMain.removeChild(screenStack[(screenStack.length - 2)]); screenStack.splice((screenStack.length - 2), 1); if (screenStack.length > 1){ theMain.addChildAt(screenStack[(screenStack.length - 2)], (theMain.numChildren - 1)); }; } public static function popScreen():void{ if (currScreen){ theMain.removeChild(currScreen); screenStack.pop(); if (currScreen){ theMain.addChild(currScreen); currScreen.refresh(); theMain.stage.focus = currScreen; }; }; } private static function get currScreen():Screen{ return (screenStack[(screenStack.length - 1)]); } } }//package
Section 69
//Main_agIntroClass (Main_agIntroClass) package { import mx.core.*; import flash.utils.*; public class Main_agIntroClass extends MovieClipLoaderAsset { public var dataClass:Class; private static var bytes:ByteArray = null; public function Main_agIntroClass(){ dataClass = Main_agIntroClass_dataClass; super(); initialWidth = (11000 / 20); initialHeight = (8000 / 20); } override public function get movieClipData():ByteArray{ if (bytes == null){ bytes = ByteArray(new dataClass()); }; return (bytes); } } }//package
Section 70
//Main_agIntroClass_dataClass (Main_agIntroClass_dataClass) package { import mx.core.*; public class Main_agIntroClass_dataClass extends ByteArrayAsset { } }//package
Section 71
//Preloader (Preloader) package { import flash.events.*; import flash.display.*; import flash.net.*; import flash.utils.*; public class Preloader extends MovieClip { private static var ArmorGamesLogoClass:Class = Preloader_ArmorGamesLogoClass; public function Preloader(){ super(); stage.stageFocusRect = false; stage.scaleMode = StageScaleMode.NO_SCALE; addEventListener(Event.ENTER_FRAME, checkFrame); var logo:Sprite = new Sprite(); logo.addChild((new ArmorGamesLogoClass() as Bitmap)); logo.buttonMode = true; logo.addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent):void{ navigateToURL(new URLRequest("http://armorgames.com"), "_blank"); }); logo.y = 75; this.addChild(logo); loaderInfo.addEventListener(ProgressEvent.PROGRESS, progress); drawProgressBar(0); } private function drawProgressBar(_arg1:Number):void{ graphics.clear(); graphics.lineStyle(2, 136); graphics.drawRect(50, 250, (500 - 100), 25); graphics.lineStyle(); graphics.beginFill(51); graphics.drawRect(50, 250, ((500 - 100) * _arg1), 25); graphics.endFill(); } private function checkFrame(_arg1:Event):void{ if (currentFrame == totalFrames){ removeEventListener(Event.ENTER_FRAME, checkFrame); startup(); }; } private function progress(_arg1:ProgressEvent):void{ drawProgressBar((_arg1.bytesLoaded / _arg1.bytesTotal)); } private function startup():void{ graphics.clear(); this.removeChildAt(0); stop(); loaderInfo.removeEventListener(ProgressEvent.PROGRESS, progress); var _local1:Class = (getDefinitionByName("Main") as Class); addChild((new (_local1) as DisplayObject)); } } }//package
Section 72
//Preloader_ArmorGamesLogoClass (Preloader_ArmorGamesLogoClass) package { import mx.core.*; public class Preloader_ArmorGamesLogoClass extends BitmapAsset { } }//package

Library Items

Symbol 1 Bitmap {Preloader_ArmorGamesLogoClass}
Symbol 2 Sound {Resources.Music_clsYellowFlowers} [Resources.Music_clsYellowFlowers]
Symbol 3 Sound {Resources.Music_clsFlowerSink} [Resources.Music_clsFlowerSink]
Symbol 4 Sound {Resources.Music_clsLastVoyage} [Resources.Music_clsLastVoyage]
Symbol 5 Sound {Resources.Music_clsMoonRise} [Resources.Music_clsMoonRise]
Symbol 6 BinaryData {Resources.Text_namelessCityClass1}
Symbol 7 Bitmap {Interface.Scrollbox_bgClass}
Symbol 8 BinaryData {Resources.Text_namelessCityClass3}
Symbol 9 BinaryData {Resources.Text_namelessCityClass2}
Symbol 10 Font {Resources.Fonts_fontinBold}
Symbol 11 BinaryData {Resources.Text_frogClass}
Symbol 12 BinaryData {Resources.Text_buffaloClass}
Symbol 13 BinaryData {Resources.Text_wheelbarrowClass}
Symbol 14 BinaryData {Resources.Text_aliceClass}
Symbol 15 BinaryData {Resources.Text_prufrockClass}
Symbol 16 BinaryData {Main_agIntroClass_dataClass}
Symbol 17 BinaryData {Resources.Text_buddhaClass}
Symbol 18 Font {Resources.Fonts_fontinReg}
Symbol 19 Bitmap {Interface.SponsorButton_clsLogo}
Symbol 20 MovieClip {Main_agIntroClass}
Symbol 21 BinaryData {Resources.Text_tutorialClass}

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 "Resources.Music_clsYellowFlowers"
ExportAssets (56)Timeline Frame 2Symbol 3 as "Resources.Music_clsFlowerSink"
ExportAssets (56)Timeline Frame 2Symbol 4 as "Resources.Music_clsLastVoyage"
ExportAssets (56)Timeline Frame 2Symbol 5 as "Resources.Music_clsMoonRise"
SerialNumber (41)Timeline Frame 1

Labels

"Preloader"Frame 1
"start"Frame 2




http://swfchan.com/27/132865/info.shtml
Created: 17/2 -2019 14:12:25 Last modified: 17/2 -2019 14:12:25 Server time: 22/12 -2024 09:28:32