View QuadSectionArc.as
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 |
View CollisionDetectionSample.as
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; |
View flox_dump_players.rb
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 |
View HelloTriangleColored.as
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 stage3d | |
{ | |
import com.adobe.utils.AGALMiniAssembler; | |
import flash.display.Sprite; | |
import flash.display3D.Context3D; | |
import flash.display3D.Context3DProgramType; | |
import flash.display3D.Context3DVertexBufferFormat; | |
import flash.display3D.IndexBuffer3D; | |
import flash.display3D.Program3D; |
View CAFilter.as
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.filters.FragmentFilter; | |
import starling.rendering.FilterEffect; | |
/** | |
* Chromatic Aberration | |
* USAGE: | |
* var filter:CAFilter = new CAFilter(); | |
* filter.angle = 20; |
View ZipLoader.as
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 deng.fzip.FZip; | |
import deng.fzip.FZipEvent; | |
import deng.fzip.FZipFile; | |
import flash.events.Event; | |
import flash.utils.ByteArray; | |
import starling.assets.DataLoader; |
View minify_json.rb
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 'json' | |
script_name = File.basename(__FILE__) | |
prettify = false | |
if ARGV.count < 1 | |
puts "Minifies JSON files." | |
puts "" |
View CachingDataLoader.as
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.events.Event; | |
import flash.events.IOErrorEvent; | |
import flash.filesystem.File; | |
import flash.filesystem.FileMode; | |
import flash.filesystem.FileStream; | |
import flash.utils.ByteArray; | |
import starling.assets.DataLoader; |
View ZipAssetFactory.as
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.assets | |
{ | |
import deng.fzip.FZip; | |
import deng.fzip.FZipEvent; | |
import deng.fzip.FZipFile; | |
import flash.events.Event; | |
import flash.utils.ByteArray; |
View QuadSection.as
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 QuadSection extends Mesh |
NewerOlder