0.1.0 • Published 11 years ago
ragdoll v0.1.0
ragdoll
A 2D JavaScript Game Engine
Install
$ cortex install ragdoll --saveUsage
var ragdoll = require('ragdoll');Class: ragdoll(options)
new ragdoll({
name: 'Hulk'
});- options
Objectdescription ofoptions- nameStringdescription ofoptions.name
Creates a new ragdoll instance.
<method-name>(foo, bar, bee, boo)
- foo
String='foo'description offoo - bar
Boolean=description ofbar - bee
Object[]indicates that it is an optional parameter- abc
Buffera property ofbee, i.e.bee.abc
- abc
- boo
function(arg1, arg2)what is the method used for
Event: '<event-name>'
- e
Objectthe first parameter of the callback