#####This is what your game will look like when you finish the exercises in the book:
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 flixel.FlxG; | |
import flixel.util.FlxPool; | |
import haxe.ds.ObjectMap; | |
class Events | |
{ | |
public static function addHandler(object:Dynamic, event:String, handler:Dynamic -> Void, permanent:Bool = false) | |
{ |
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 haxe.Utf8; | |
import nme.Assets; | |
// requires haxetoml: https://github.com/raincole/haxetoml | |
import haxetoml.TomlParser; | |
#if cpp | |
import sys.io.File; | |
import sys.FileSystem; | |
#end |
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 ; | |
class DeepCopy | |
{ | |
// http://haxe.org/forum/thread/3395#nabble-td2119917 | |
public static function copy<T>( v:T ) : T | |
{ | |
if (!Reflect.isObject(v)) // simple type | |
{ | |
return v; |
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 flixel.util; | |
import flash.display.BitmapData; | |
import flash.display.BlendMode; | |
import flash.geom.ColorTransform; | |
import flash.geom.Matrix; | |
import flash.geom.Point; | |
import flash.geom.Rectangle; | |
import flixel.FlxCamera; | |
import flixel.FlxG; |
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
mycolor = {0, 0, 0} | |
CAM_STIFFNESS = 1000.0 | |
CAM_DAMPING = 100.0 | |
CAM_MASS = 5.0 | |
position = {0,0} | |
speed = {0,0} | |
target ={0,0} |
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
public function add(Object:T, Unsafe:Bool = false):T | |
{ | |
if (Object == null) | |
{ | |
FlxG.log.warn("Cannot add a `null` object to a FlxGroup."); | |
return null; | |
} | |
// Use this when you're certain this group won't have any null or duplicate entries. Use only when maximum performance is needed. | |
if(Unsafe == 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
<outline type="rss" text="Sean Hogan Game/Stuff/Devblog" title="Sean Hogan Game/Stuff/Devblog" xmlUrl="http://seagaia.wordpress.com/feed/" htmlUrl="http://seagaia.wordpress.com"/> | |
<outline type="rss" text="Krautscape Development Blog" title="Krautscape Development Blog" xmlUrl="http://blog.krautscape.net/rss" htmlUrl="http://blog.krautscape.net/"/> | |
<outline type="rss" text="Make Games" title="Make Games" xmlUrl="http://makegames.tumblr.com/rss" htmlUrl="http://makegames.tumblr.com/"/> | |
<outline type="rss" text="hermitgames blog" title="hermitgames blog" xmlUrl="http://www.hermitgames.com/feed.xml" htmlUrl="http://www.hermitgames.com/blog.php"/> | |
<outline type="rss" text="BIG ROBOT" title="BIG ROBOT" xmlUrl="http://www.big-robot.com/feed/" htmlUrl="http://www.big-robot.com"/> | |
<outline type="rss" text="Matt Tuttle" title="Matt Tuttle" xmlUrl="http://matttuttle.com/feed/" htmlUrl="http://matttuttle.com"/> | |
<outline type="rss" text="Joost's Dev Blog" title="Joost's Dev Blog" xmlUrl="http://joostdevblog.blogspot.com/ |
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 levels.scripting; | |
/** | |
* ... | |
* @author Samuel Batista | |
*/ | |
interface IScriptHandler | |
{ | |
/* |
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 flixel.FlxG; | |
import flixel.addons.nape.FlxNapeState; | |
import toml.TomlConfig; | |
/** | |
* ... | |
* @author Sam Batista | |
*/ |
OlderNewer