Skip to content

Instantly share code, notes, and snippets.

View G3z's full-sized avatar

Giacomo Trezzi G3z

View GitHub Profile
@G3z
G3z / gist:1859159
Created February 18, 2012 12:56 — forked from ryanwilliams/gist:1858984
Cocos2D v0.2 example in CoffeeScript
# Pull in the modules we're going to use
cocos = require 'cocos2d' # Import the cocos2d module
nodes = cocos.nodes # Convenient access to 'nodes'
events = require 'events' # Import the events module
geo = require 'geometry' # Import the geometry module
# Convenient access to some constructors
Layer = nodes.Layer
Scene = nodes.Scene
Label = nodes.Label
@G3z
G3z / ThreeCSG.js
Created January 10, 2012 18:39 — forked from chandlerprall/ThreeCSG.js
csg.js wrapper for three.js
/*
THREE.CSG
@author Chandler Prall <[email protected]> http://chandler.prallfamily.com
Wrapper for Evan Wallace's CSG library (https://github.com/evanw/csg.js/)
Provides CSG capabilities for Three.js models.
Provided under the MIT License
*/