Skip to content

Instantly share code, notes, and snippets.

View joskuijpers's full-sized avatar

Jos Kuijpers joskuijpers

  • The Netherlands
View GitHub Profile
@joskuijpers
joskuijpers / gist:9755025
Last active August 29, 2015 13:57
Pegasus scene node matrix transformations and rendering
=====
Lib
=====
function RenderNode() {
this.parent = null;
this.children = [];
this.vertices = [];
Game.init = function() {
Screen.drawRect(10,10,Screen.width-20,Screen.height-20,Color.RED);
Screen.flip()
}
Game.loop = function() {
// something with statemanager or so
}
Game.states["load"] = function() {
@joskuijpers
joskuijpers / gist:9712448
Last active August 29, 2015 13:57
Sphere OO API
=== SYSTEM ===
GetVersion System.version
GetVersionString System.versionString
Abort System.abort(msg)
Exit System.exit()
RestartGame System.restart()
System.sleep(double seconds)
#include <node.h>
#include <v8.h>
#include <windows.h>
#include <stdio.h>
#include <conio.h>
#include <tchar.h>
//#include <iostream>
using namespace v8;