Instantly share code, notes, and snippets.

Samuel Batista gamedevsam

View GitHub Profile
View blockstack-id.txt
Verifying my Blockstack ID is secured with the address 1PpgJoxQiPrKSJeqjqFCEt9zCFJm9nejLr

Keybase proof

I hereby claim:

  • I am gamedevsam on github.
  • I am sambatista ( on keybase.
  • I have a public key whose fingerprint is F546 0360 418D EDB8 68E4 E932 5EB8 3CE4 C0C7 EB59

To claim this, I am signing this object:

View Account.php
class Account
public function __construct($consumer)
public function GetAccountList()
View Config.hx
package ;
import flixel.FlxG;
import flixel.addons.nape.FlxNapeState;
import toml.TomlConfig;
* ...
* @author Sam Batista
View IScriptHandler.hx
package levels.scripting;
* ...
* @author Samuel Batista
interface IScriptHandler
View gist:c5427b5c778191c7f7c7

Want to program your own video game?

Read this book!

#####This is what your game will look like when you finish the exercises in the book: alt text

View gist:9859351
<outline type="rss" text="Sean Hogan Game/Stuff/Devblog" title="Sean Hogan Game/Stuff/Devblog" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Krautscape Development Blog" title="Krautscape Development Blog" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Make Games" title="Make Games" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="hermitgames blog" title="hermitgames blog" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="BIG ROBOT" title="BIG ROBOT" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Matt Tuttle" title="Matt Tuttle" xmlUrl="" htmlUrl=""/>
<outline type="rss" text="Joost's Dev Blog" title="Joost's Dev Blog" xmlUrl="
View gist:9750193
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)
View gist:8360381
mycolor = {0, 0, 0}
CAM_MASS = 5.0
position = {0,0}
speed = {0,0}
target ={0,0}
View FlxCollision.hx
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;