Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add level select screen

  • Loading branch information...
commit 0582eed88ff5e768f645ca4201ceca14d5cec37c 1 parent 1cd86f2
@rogerbraun rogerbraun authored
View
BIN  assets/Levels/LevelSelect/LevelSelect.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  assets/Levels/LevelSelect/LevelSelect.tps
Binary file not shown
View
23 assets/Levels/LevelSelect/LevelSelect.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Created with TexturePacker http://texturepacker.com-->
+<!-- $TexturePacker:SmartUpdate:1ba22cfba1fd06359191c28cda890deb$ -->
+<TextureAtlas imagePath="LevelSelect.png">
+ <SubTexture name="header_15-20" x="2" y="158" width="931" height="152"/>
+ <SubTexture name="info-level" x="436" y="661" width="810" height="550"/>
+ <SubTexture name="text-info-level1" x="833" y="2" width="596" height="76"/>
+ <SubTexture name="text-info-level2" x="325" y="80" width="371" height="76"/>
+ <SubTexture name="text-info-level3" x="1066" y="80" width="451" height="76"/>
+ <SubTexture name="text-info-level4" x="1431" y="2" width="516" height="76"/>
+ <SubTexture name="text-info-level5" x="698" y="80" width="366" height="76"/>
+ <SubTexture name="text-info-level6" x="415" y="2" width="416" height="66"/>
+ <SubTexture name="text-info-level7" x="2" y="80" width="321" height="76"/>
+ <SubTexture name="text-info-level8" x="2" y="2" width="411" height="66"/>
+ <SubTexture name="tile-boss_54-1190" x="1248" y="661" width="785" height="962"/>
+ <SubTexture name="tile-level1_15-262" x="935" y="158" width="432" height="236"/>
+ <SubTexture name="tile-level2_261-377" x="882" y="399" width="432" height="248"/>
+ <SubTexture name="tile-level3_514-509" x="2" y="399" width="432" height="242"/>
+ <SubTexture name="tile-level4_261-626" x="2" y="661" width="432" height="378"/>
+ <SubTexture name="tile-level5_11-743" x="1316" y="399" width="432" height="260"/>
+ <SubTexture name="tile-level6_261-890" x="1369" y="158" width="436" height="239"/>
+ <SubTexture name="tile-level7_515-1009" x="436" y="399" width="444" height="248"/>
+</TextureAtlas>
View
BIN  assets/Levels/LevelSelect/background.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  assets/Menus/Menu.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  assets/Menus/Menu.tps
Binary file not shown
View
41 assets/Menus/Menu.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Created with TexturePacker http://texturepacker.com-->
+<!-- $TexturePacker:SmartUpdate:e26f9135cdbe5d1ea1ae8c36d07372e1$ -->
+<TextureAtlas imagePath="Menu.png">
+ <SubTexture name="abbca" x="452" y="139" width="88" height="88"/>
+ <SubTexture name="abcb" x="272" y="139" width="88" height="88"/>
+ <SubTexture name="acba" x="92" y="139" width="88" height="88"/>
+ <SubTexture name="bcaac" x="182" y="139" width="88" height="88"/>
+ <SubTexture name="bccb" x="2" y="139" width="88" height="88"/>
+ <SubTexture name="ccbba" x="362" y="139" width="88" height="88"/>
+ <SubTexture name="combo-boost" x="382" y="234" width="93" height="93"/>
+ <SubTexture name="combo-brake" x="477" y="234" width="93" height="93"/>
+ <SubTexture name="combo-chaintime" x="287" y="234" width="93" height="93"/>
+ <SubTexture name="combo-gold" x="542" y="139" width="93" height="93"/>
+ <SubTexture name="combo-leveluptime" x="732" y="139" width="93" height="93"/>
+ <SubTexture name="combo-rotteneggs" x="97" y="234" width="93" height="93"/>
+ <SubTexture name="combo-shuffle" x="192" y="234" width="93" height="93"/>
+ <SubTexture name="combo-special" x="572" y="234" width="93" height="93"/>
+ <SubTexture name="combo-speed" x="637" y="139" width="93" height="93"/>
+ <SubTexture name="combo-time" x="922" y="139" width="93" height="93"/>
+ <SubTexture name="combo-xtralife" x="2" y="234" width="93" height="93"/>
+ <SubTexture name="combo-xtraspawn" x="827" y="139" width="93" height="93"/>
+ <SubTexture name="combo_abbca" x="565" y="67" width="105" height="65"/>
+ <SubTexture name="combo_abcb" x="458" y="67" width="105" height="65"/>
+ <SubTexture name="combo_acba" x="672" y="67" width="105" height="65"/>
+ <SubTexture name="combo_bcaac" x="244" y="67" width="105" height="65"/>
+ <SubTexture name="combo_bccb" x="351" y="67" width="105" height="65"/>
+ <SubTexture name="combo_ccbba" x="779" y="67" width="105" height="65"/>
+ <SubTexture name="info-button" x="886" y="67" width="70" height="70"/>
+ <SubTexture name="loading" x="2" y="336" width="960" height="640"/>
+ <SubTexture name="pleaseswipeup" x="667" y="234" width="300" height="100"/>
+ <SubTexture name="text-arcade" x="574" y="33" width="215" height="32"/>
+ <SubTexture name="text-no" x="249" y="2" width="40" height="18"/>
+ <SubTexture name="text-purchase" x="64" y="2" width="183" height="18"/>
+ <SubTexture name="text-settings" x="2" y="67" width="240" height="32"/>
+ <SubTexture name="text-story" x="394" y="33" width="178" height="32"/>
+ <SubTexture name="text-yes" x="2" y="2" width="60" height="18"/>
+ <SubTexture name="text_arcade mode" x="291" y="2" width="352" height="29"/>
+ <SubTexture name="text_leaderboards" x="2" y="33" width="390" height="29"/>
+ <SubTexture name="text_play" x="645" y="2" width="124" height="29"/>
+</TextureAtlas>
View
28 src/Level/LevelState.as
@@ -32,6 +32,8 @@ package Level
import flash.events.GestureEvent;
import flash.events.TransformGestureEvent;
import flash.media.Sound;
+ import flash.events.Event;
+ import flash.media.SoundTransform;
/**
* ...
@@ -61,13 +63,25 @@ package Level
private var _following:Snake.Head;
private var _possibleSwipe:Boolean = false;
private var _swipeY:int;
- private var _swipeMenu:Quad;
+ private var _swipeMenu:Sprite;
private var _paused:Boolean = false;
+ private static const sfx:Sound = new AssetRegistry.WinMusic() as Sound;
+
+ private static const SilentSoundTransform:SoundTransform = new SoundTransform(0);
+
+ private static function playSoundSilentlyEndlessly(evt:Event = null):void
+ {
+ sfx.play(0, 1000, SilentSoundTransform).addEventListener(Event.SOUND_COMPLETE, playSoundSilentlyEndlessly, false, 0, true); // plays the sound with volume 0 endlessly
+ }
+
+
public function LevelState()
{
super();
- AssetRegistry.init();
+
+ // Fix for laggy sound
+ playSoundSilentlyEndlessly();
_currentCombos = null;
@@ -114,8 +128,11 @@ package Level
_text.hAlign = HAlign.LEFT;
addChild(_text);
- _swipeMenu = new Quad(Starling.current.viewPort.width, 100, 0x000000);
- _swipeMenu.alpha = 0.3;
+ _swipeMenu = new Sprite();
+ var swipeBackground:Quad = new Quad(Starling.current.viewPort.width, 100, 0x000000);
+ swipeBackground.alpha = 0.3;
+
+ _swipeMenu.addChild(swipeBackground);
_swipeMenu.y = Starling.current.viewPort.height;
addChild(_swipeMenu);
@@ -145,8 +162,7 @@ package Level
{
new GTween(this, 0.5, {zoom: 5});
new GTween(Starling.juggler, 0.5, { timeFactor: 0.1 } );
- var ode:Sound = new AssetRegistry.WinMusic as Sound;
- ode.play();
+ AssetRegistry.WinMusicSound.play();
}
}
View
3  src/Main.as
@@ -14,6 +14,7 @@ package
import starling.core.Starling;
import fr.kouma.starling.utils.Stats;
import Level.*;
+ import engine.StageManager;
/**
* ...
@@ -38,7 +39,7 @@ package
// entry point
- starling = new Starling(ArcadeState, stage, new Rectangle(0, 0, 960, 640));
+ starling = new Starling(StageManager, stage, new Rectangle(0, 0, 960, 640));
var loadingSprite:Sprite = new Sprite()
var loadingBMP:Bitmap = new AssetRegistry.LoadingPNG();
View
161 src/Menu/LevelSelect.as
@@ -0,0 +1,161 @@
+package Menu
+{
+ import flash.geom.Point;
+ import starling.display.DisplayObject;
+ import starling.display.Image;
+ import starling.display.Quad;
+ import starling.display.Sprite;
+ import engine.AssetRegistry;
+ import starling.events.Touch;
+ import starling.events.TouchEvent;
+ import starling.events.TouchPhase;
+ import starling.core.Starling;
+
+ /**
+ * ...
+ * @author
+ */
+ public class LevelSelect extends Sprite
+ {
+ private var _bg:Quad;
+ private var _levelInfo:Sprite;
+ private var _showingInfo:Boolean;
+ private var _levelName:Image;
+ private var _scrollable:Sprite;
+ private var _slideY:Number = 0;
+
+ public function LevelSelect()
+ {
+ _scrollable = new Sprite();
+ _scrollable.addEventListener(TouchEvent.TOUCH, onTouch);
+ _levelInfo = new Sprite();
+ _showingInfo = false;
+ _levelName = new Image(AssetRegistry.LevelSelectAtlas.getTexture("text-info-level1"));
+
+ _bg = new Quad(960, 2240, 0xCDB594);
+ _scrollable.addChild(_bg);
+
+ var header:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("header_15-20"));
+ header.x = 15;
+ header.y = 20;
+ _scrollable.addChild(header);
+
+ var level1:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level1_15-262"));
+ level1.x = 15;
+ level1.y = 262;
+ level1.addEventListener(TouchEvent.TOUCH, showLevelInfo(1));
+ _scrollable.addChild(level1);
+
+ var level2:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level2_261-377"));
+ level2.x = 261;
+ level2.y = 377;
+ level2.alpha = 0.5;
+ level2.addEventListener(TouchEvent.TOUCH, showLevelInfo(2));
+
+ _scrollable.addChild(level2);
+
+ var level3:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level3_514-509"));
+ level3.x = 514;
+ level3.y = 509;
+ level3.alpha = 0.5;
+ level3.addEventListener(TouchEvent.TOUCH, showLevelInfo(3));
+
+ _scrollable.addChild(level3);
+
+ var level4:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level4_261-626"));
+ level4.x = 261;
+ level4.y = 626;
+ level4.alpha = 0.5;
+ level4.addEventListener(TouchEvent.TOUCH, showLevelInfo(4));
+
+ _scrollable.addChild(level4);
+
+ var level5:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level5_11-743"));
+ level5.x = 11;
+ level5.y = 743;
+ level5.alpha = 0.5;
+ level5.addEventListener(TouchEvent.TOUCH, showLevelInfo(5));
+
+ _scrollable.addChild(level5);
+
+ var level6:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level6_261-890"));
+ level6.x = 261;
+ level6.y = 890;
+ level6.alpha = 0.5;
+ level6.addEventListener(TouchEvent.TOUCH, showLevelInfo(6));
+
+ _scrollable.addChild(level6);
+
+ var level7:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-level7_515-1009"));
+ level7.x = 515;
+ level7.y = 1009;
+ level7.alpha = 0.5;
+ level7.addEventListener(TouchEvent.TOUCH, showLevelInfo(7));
+
+ _scrollable.addChild(level7);
+
+ var level8:Image = new Image(AssetRegistry.LevelSelectAtlas.getTexture("tile-boss_54-1190"));
+ level8.x = 54;
+ level8.y = 1190;
+ level8.alpha = 0.5;
+ level8.addEventListener(TouchEvent.TOUCH, showLevelInfo(8));
+
+ _scrollable.addChild(level8);
+
+ addChild(_scrollable);
+
+ }
+
+ private function showLevelInfo(level:int):Function
+ {
+ var that:Sprite = this;
+ return function(event:TouchEvent):void
+ {
+ if (!_showingInfo)
+ {
+ var touch:Touch = event.getTouch(that, TouchPhase.ENDED)
+ if (touch)
+ {
+ if (_slideY < 50)
+ {
+ _levelInfo.addChild(new Image(AssetRegistry.LevelSelectAtlas.getTexture("info-level")));
+ _levelInfo.x = (Starling.current.viewPort.width - _levelInfo.width) / 2;
+ _levelInfo.y = (Starling.current.viewPort.height - _levelInfo.height) / 2;
+ _levelName.texture = AssetRegistry.LevelSelectAtlas.getTexture("text-info-level" + String(level));
+ _levelInfo.addChild(_levelName);
+
+ _levelName.x += 85;
+ _levelName.y += 85;
+
+ that.addChild(_levelInfo);
+
+ _showingInfo = true;
+ }
+ } else {
+ touch = event.getTouch(that, TouchPhase.BEGAN);
+ if (touch) {
+ _slideY = 0;
+ }
+ }
+ }
+ }
+ }
+
+ private function onTouch(event:TouchEvent):void
+ {
+ if (!_showingInfo)
+ {
+ var touch:Touch = event.getTouch(_scrollable, TouchPhase.MOVED);
+ if (touch)
+ {
+ _slideY += Math.abs(touch.getMovement(_scrollable).y);
+ _scrollable.y += touch.getMovement(_scrollable).y;
+ _scrollable.y = Math.min(0, _scrollable.y);
+ _scrollable.y = Math.max(-(_bg.height - Starling.current.viewPort.height), _scrollable.y);
+ }
+ }
+ }
+
+ }
+
+}
View
129 src/Menu/MainMenu.as
@@ -0,0 +1,129 @@
+package Menu
+{
+ import Level.ArcadeState;
+ import starling.display.Image;
+ import starling.display.Sprite;
+ import engine.AssetRegistry;
+ import starling.events.TouchEvent;
+ import starling.core.Starling;
+ import starling.display.Quad;
+ import starling.events.TouchPhase;
+ import starling.events.Touch;
+ import com.gskinner.motion.GTween;
+ import engine.StageManager;
+
+ /**
+ * ...
+ * @author
+ */
+ public class MainMenu extends Sprite
+ {
+ private var _bg:Image;
+ private var _possibleSwipe:Boolean = false;
+ private var _swipeY:int = 0;
+ private var _swipeMenu:Sprite;
+ private var _swipeMessage:Image;
+
+
+ public function MainMenu()
+ {
+ this.addEventListener(TouchEvent.TOUCH, onTouch);
+
+ _bg = new Image(AssetRegistry.MenuAtlas.getTexture("loading"));
+ addChild(_bg);
+
+ _swipeMenu = new Sprite();
+
+ var menuBG:Quad = new Quad(Starling.current.viewPort.width, 100, 0x000000);
+ menuBG.alpha = 0.3;
+ _swipeMenu.addChild(menuBG);
+
+ _swipeMenu.y = Starling.current.viewPort.height;
+
+ var arcadeButton:Image = new Image(AssetRegistry.MenuAtlas.getTexture("text-arcade"));
+ arcadeButton.x = 22;
+ arcadeButton.y = (_swipeMenu.height - arcadeButton.height) / 2;
+
+ arcadeButton.addEventListener(TouchEvent.TOUCH, startArcade);
+ _swipeMenu.addChild(arcadeButton);
+
+
+ var levelSelectButton:Image = new Image(AssetRegistry.MenuAtlas.getTexture("text-story"));
+ levelSelectButton.x = 389;
+ levelSelectButton.y = arcadeButton.y;
+
+ levelSelectButton.addEventListener(TouchEvent.TOUCH, startLevelSelect);
+
+ _swipeMenu.addChild(levelSelectButton);
+
+ _swipeMenu.flatten();
+
+ addChild(_swipeMenu);
+
+ _swipeMessage = new Image(AssetRegistry.MenuAtlas.getTexture("pleaseswipeup"));
+ _swipeMessage.x = (Starling.current.viewPort.width - _swipeMessage.width) / 2;
+ _swipeMessage.y = (Starling.current.viewPort.height - _swipeMessage.height) / 2;
+ _swipeMessage.alpha = 0;
+
+ addChild(_swipeMessage);
+
+ Starling.juggler.delayCall(function():void { new GTween(_swipeMessage, 1, {alpha: 1})}, 2);
+
+ }
+
+ private function startArcade(event:TouchEvent):void {
+ var touch:Touch = event.getTouch(this, TouchPhase.ENDED);
+ if (touch && _swipeMenu.y == Starling.current.viewPort.height - _swipeMenu.height) {
+ AssetRegistry.loadArcadeGraphics();
+ StageManager.switchStage(new ArcadeState);
+ }
+ }
+
+ private function startLevelSelect(event:TouchEvent):void {
+ var touch:Touch = event.getTouch(this, TouchPhase.ENDED);
+ if (touch && _swipeMenu.y == Starling.current.viewPort.height - _swipeMenu.height) {
+ AssetRegistry.loadLevelSelectGraphics();
+ StageManager.switchStage(new LevelSelect);
+ }
+ }
+
+ private function onTouch(event:TouchEvent):void
+ {
+ var touch:Touch = event.getTouch(this, TouchPhase.BEGAN);
+ if (touch)
+ {
+ if (touch.getLocation(this).y > 400)
+ {
+ trace("Possible swipe!");
+ _possibleSwipe = true;
+ _swipeY = touch.getLocation(this).y;
+ }
+ else
+ {
+ _possibleSwipe = false;
+
+ }
+ }
+ else
+ {
+ touch = event.getTouch(this, TouchPhase.ENDED);
+ if (touch)
+ {
+ if (_possibleSwipe && Math.abs((_swipeY - touch.getLocation(this).y)) > 50)
+ {
+ trace("Swipe!");
+ if (_swipeMenu.y == Starling.current.viewPort.height && _swipeY > touch.getLocation(this).y)
+ {
+ new GTween(_swipeMenu, 0.2, {"y": Starling.current.viewPort.height - _swipeMenu.height});
+ }
+ else if (_swipeMenu.y == Starling.current.viewPort.height - _swipeMenu.height && _swipeY < touch.getLocation(this).y)
+ {
+ new GTween(_swipeMenu, 0.2, {"y": Starling.current.viewPort.height});
+ }
+ }
+ }
+ }
+ }
+ }
+
+}
View
46 src/engine/AssetRegistry.as
@@ -1,5 +1,6 @@
package engine
{
+ import flash.media.Sound;
import starling.text.BitmapFont;
import starling.textures.Texture;
import starling.textures.TextureAtlas;
@@ -26,14 +27,26 @@ package engine
[Embed(source="../../assets/Levels/arcadeoverlaytexture.xml", mimeType="application/octet-stream")] static private const ArcadeOverlayAtlasXML:Class
[Embed(source = "../../assets/Levels/arcadeoverlaytexture.png")] static private const ArcadeOverlayAtlasPNG:Class;
+ [Embed(source = "../../assets/Menus/Menu.xml", mimeType="application/octet-stream")] static private const MenuXML:Class;
+ [Embed(source = "../../assets/Menus/Menu.png")] static private const MenuPNG:Class;
+
+ [Embed(source = "../../assets/Levels/LevelSelect/LevelSelect.xml", mimeType = "application/octet-stream")] static private const LevelSelectXML:Class;
+ [Embed(source = "../../assets/Levels/LevelSelect/LevelSelect.png")] static private const LevelSelectPNG:Class;
+ [Embed(source = "../../assets/Levels/LevelSelect/background.png")] static private const LevelSelectBGPNG:Class;
+
public static var SnakeAtlas:TextureAtlas;
+ public static var MenuAtlas:TextureAtlas;
public static var ArcadeOverlayAtlas:TextureAtlas;
+ public static var LevelSelectAtlas:TextureAtlas;
+
public static var UIOverlayTexture:Texture;
+ public static var LevelSelectBGTexture:Texture;
public static var DrugParticleConfig:XML;
public static var DrugParticleTexture:Texture;
public static var ArcadeBackground:Texture;
public static var ArcadeOverlay:Texture;
public static var Level1Background:Texture;
+ public static var WinMusicSound:Sound;
public static const TILESIZE:int = 15;
@@ -50,28 +63,43 @@ package engine
public static const EGGSHUFFLE:int = 5;
public static const EGGGOLDEN:int = 6;
- public static var HQ:Boolean = true;
+ public static var HQ:Boolean = false;
public static function init():void
{
-
- UIOverlayTexture = Texture.fromBitmap(new UIOverlayPNG);
- ArcadeBackground = Texture.fromBitmap(new ArcadeBackgroundPNG);
- ArcadeOverlay = Texture.fromBitmap(new ArcadeOverlayPNG);
+ TextField.registerBitmapFont(new BitmapFont(Texture.fromBitmap(new FontPNG()), XML(new FontXML)));
+ MenuAtlas = new TextureAtlas(Texture.fromBitmap(new MenuPNG), XML(new MenuXML));
+
+ /*
+
Level1Background = Texture.fromBitmap(new Level1BackgroundPNG);
var texture:Texture = Texture.fromBitmap(new SnakeTexturePNG);
- SnakeAtlas = new TextureAtlas(texture, XML(new SnakeAtlasXML));
+
+ */
+ }
+
+ public static function loadArcadeGraphics():void {
+ UIOverlayTexture = Texture.fromBitmap(new UIOverlayPNG);
+ ArcadeBackground = Texture.fromBitmap(new ArcadeBackgroundPNG);
+ SnakeAtlas = new TextureAtlas(Texture.fromBitmap(new SnakeTexturePNG), XML(new SnakeAtlasXML));
ArcadeOverlayAtlas = new TextureAtlas(Texture.fromBitmap(new ArcadeOverlayAtlasPNG), XML(new ArcadeOverlayAtlasXML));
DrugParticleConfig = XML(new DrugsParticleXML);
- DrugParticleTexture = Texture.fromBitmap(new DrugsParticlePNG);
-
- TextField.registerBitmapFont(new BitmapFont(Texture.fromBitmap(new FontPNG()), XML(new FontXML)));
+ DrugParticleTexture = Texture.fromBitmap(new DrugsParticlePNG);
+ WinMusicSound = new WinMusic as Sound;
}
+
+ public static function loadLevelSelectGraphics():void {
+ LevelSelectAtlas = new TextureAtlas(Texture.fromBitmap(new LevelSelectPNG), XML(new LevelSelectXML));
+ }
+
+ public static function disposeLevelSelectGraphics():void {
+ LevelSelectAtlas.dispose();
+ }
}
View
33 src/engine/StageManager.as
@@ -0,0 +1,33 @@
+package engine
+{
+ import starling.display.Sprite;
+ import Menu.MainMenu;
+
+ /**
+ * ...
+ * @author
+ */
+ public class StageManager extends Sprite
+ {
+
+ private static var _currentSprite:Sprite;
+ private static var _manager:StageManager;
+
+ public function StageManager()
+ {
+ _manager = this;
+ AssetRegistry.init();
+ switchStage(new MainMenu);
+ }
+
+ public static function switchStage(newStage:Sprite):void {
+ if (_currentSprite != null) {
+ _manager.removeChild(_currentSprite);
+ }
+ _currentSprite = newStage;
+ _manager.addChild(newStage);
+ }
+
+ }
+
+}
View
1  src/engine/TileSprite.as
@@ -149,6 +149,7 @@ package engine
facing = value;
}
+
}
}
View
2  src/starling/core/Starling.as
@@ -266,8 +266,8 @@ package starling.core
var passedTime:Number = now - mLastFrameTimestamp;
mLastFrameTimestamp = now;
+ mJuggler.advanceTime(passedTime);
mStage.advanceTime(passedTime);
- mJuggler.advanceTime(passedTime);
mTouchProcessor.advanceTime(passedTime);
}
Please sign in to comment.
Something went wrong with that request. Please try again.