This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================================================================================================= | |
// | |
// Starling Framework | |
// Copyright 2011-2016 Gamua. All Rights Reserved. | |
// | |
// This program is free software. You can redistribute and/or modify it | |
// in accordance with the terms of the accompanying license agreement. | |
// | |
// ================================================================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package starling.extensions | |
{ | |
import flash.geom.Point; | |
import starling.display.Mesh; | |
import starling.rendering.IndexData; | |
import starling.rendering.VertexData; | |
import starling.textures.Texture; | |
public class QuadSectionArc extends Mesh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package starling | |
{ | |
import flash.geom.Matrix; | |
import flash.geom.Point; | |
import starling.display.Canvas; | |
import starling.display.Sprite; | |
import starling.events.Touch; | |
import starling.events.TouchEvent; | |
import starling.events.TouchPhase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package starling.extensions | |
{ | |
import flash.display.BitmapData; | |
import starling.animation.IAnimatable; | |
import starling.display.Quad; | |
import starling.textures.Texture; | |
import starling.utils.MathUtil; | |
/** A quad that efficiently renders a 2D light ray effect on its surface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================================================================================================= | |
// | |
// Starling Framework | |
// Copyright Gamua GmbH. All Rights Reserved. | |
// | |
// This program is free software. You can redistribute and/or modify it | |
// in accordance with the terms of the accompanying license agreement. | |
// | |
// ================================================================================================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package starling.extensions | |
{ | |
import starling.display.Image; | |
import starling.display.Sprite; | |
import starling.textures.Texture; | |
import starling.utils.MathUtil; | |
public class Gauge extends Sprite | |
{ | |
private var _image:Image; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package starling.extensions | |
{ | |
import flash.display3D.Context3D; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; | |
import starling.core.RenderSupport; | |
import starling.core.Starling; | |
import starling.display.DisplayObject; | |
import starling.display.Sprite; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function addDistortionTo(target:DisplayObject):void | |
{ | |
var offset:Number = 0; | |
var scale:Number = Starling.contentScaleFactor; | |
var width:int = target.width; | |
var height:int = target.height; | |
var perlinData:BitmapData = new BitmapData(width * scale, height * scale, false); | |
perlinData.perlinNoise(200*scale, 20*scale, 2, 5, true, true, 0, true); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'flox' | |
require 'fileutils' | |
GAME_ID = 'xxx' | |
GAME_KEY = 'yyy' | |
HERO_KEY = 'zzz' | |
OUT_FOLDER = 'flox-players' | |
STEP_SIZE = 50 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package | |
{ | |
import flash.display.Sprite; | |
public class TestDeviceScaleFactors extends Sprite | |
{ | |
public function TestDeviceScaleFactors() | |
{ | |
var testSettings:Array = [ | |
{ name: "iPhone 3GS", dpi: 163, resX: 320, resY: 480 }, |
NewerOlder