Skip to content

Instantly share code, notes, and snippets.

View 200sc's full-sized avatar

Patrick Stephen 200sc

  • strongDM
  • Minneapolis, MN
View GitHub Profile
@200sc
200sc / index.js
Last active November 8, 2015 16:35
requirebin sketch
// require() some stuff from npm (like you were using browserify)
// and then hit Run Code to run it on the right
var Crafty = require('craftyjs');
Crafty.init(600, 300);
Crafty.background('rgb(127,127,127)');
//Paddles
paddlea = Crafty.e("Paddle, 2D, WebGL, Color, Multiway")
.attr({ x: 20, y: 100, w: 10, h: 100 })