Skip to content

Instantly share code, notes, and snippets.

View larscwallin's full-sized avatar

Lars Wallin larscwallin

View GitHub Profile
@bebraw
bebraw / gameengines.md
Created January 6, 2011 18:07
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.

This table contains primarily HTML5 based game engines and frameworks. You might also want to check out the [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]] and [[Scene Graphs]].

Name Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
AllBinary Platform Platform Dependent AllBinary 2D/2.5D/3D n
@larscwallin
larscwallin / export_to_any.py
Created May 24, 2011 16:34
Inkscape extension to export svg to misc formats. Will focus on xhtml
#!/usr/bin/env python
# This script was written by Lars Wallin to facilitate export from svg to any output basically.
# For now only bitmap rendering is supported (to some degree...)
# Future versions should include rendering of canvas documents (css, html, ddh, ...)
# Please note that i have not run this script since i added this verbose commenting, so i might have broken some tab position or something...
import inkex
<inkscape-extension>
<_name>Create Sketch Layer</_name>
<id>com.larscwallin.create_sketch_layer</id>
<dependency type="executable" location="extensions">create_sketch_layer.py</dependency>
<dependency type="executable" location="extensions">inkex.py</dependency>
<!-- <param name="what" type="string" _gui-text="What?"></param> -->
<param name="where" type="string" _gui-text="Sketch save location"></param>
<param name="sketch_name" type="string" _gui-text="Sketch name"></param>
<param name="remove_border" type="boolean" _gui-text="Remove element border?"></param>
<param name="replace_source" type="boolean" _gui-text="Replace original element?"></param>
@timmywil
timmywil / jquery.keyframe.js
Created May 28, 2011 20:13
Oldschool Keyframes in jQuery
(function( $ ) {
$.fn.keyframe = function(){
if (arguments.length == 0) {
return this;
}
var self = this,
args = Array.prototype.slice.call( arguments ),
// List of keyframes
@joelnet
joelnet / example.html
Created June 3, 2011 18:03
Unobtrusive Knockout support library for jQuery
Choose a ticket class: <select id="tickets"></select>
<p id="ticketOutput"></p>
<script id="ticketTemplate" type="text/x-jquery-tmpl">
{{if chosenTicket}}
You have chosen <b>${ chosenTicket().name }</b>
($${ chosenTicket().price })
<button data-bind="click: resetTicket">Clear</button>
{{/if}}
@tlync
tlync / jquery-doubletap.js
Created June 9, 2011 03:45
jquery double tap plugin - Bind an event handler to the "double tap" JavaScript event.
(function($){
var hasTouch = /android|iphone|ipad/i.test(navigator.userAgent.toLowerCase()),
eventName = hasTouch ? 'touchend' : 'click';
/**
* Bind an event handler to the "double tap" JavaScript event.
* @param {function} doubleTapHandler
* @param {number} [delay=300]
*/
@larscwallin
larscwallin / simplx_propertyset.php
Created June 19, 2011 13:31
SIMPLX propertySet
<?php
global $modx;
if(!class_exists('simplx_propertyset')){
class simplx_propertyset{
public static $initialized = false;
public static $currentPs;
public static $defaultPs;
private static $propertySetList;
<?php
$simplx_debugger_js = $modx->getChunk('simplx.debugger.js');
$simplx_rpc_js = $modx->getChunk('simplx.jsonrpc.js');
$modx->regClientStartupHTMLBlock($simplx_rpc_js);
$modx->regClientStartupHTMLBlock($simplx_debugger_js);
@larscwallin
larscwallin / simplx_propertySet.php
Created August 2, 2011 20:24
simplx_template_2_2
<?php
global $modx;
if(!class_exists('simplx_propertyset')){
class simplx_propertyset{
public static $initialized = false;
public static $currentPs;
public static $defaultPs;
private static $propertySetList;
@larscwallin
larscwallin / nusoap.php
Created August 4, 2011 12:30
NuSOAP for PHP 5.3
<?php
/*
$Id: nusoap.php,v 1.114 2007/11/06 15:17:46 snichol Exp $
NuSOAP - Web Services Toolkit for PHP
Copyright (c) 2002 NuSphere Corporation
This library is free software; you can redistribute it and/or