0.1.0 • Published 10 years ago
collision v0.1.0
collision
SAT collision testing for browsers
Install
$ cortex install collision --save
Usage
var collision = require('collision');
Class: collision(options)
new collision({
name: 'Hulk'
});
- options
Object
description ofoptions
- nameString
description ofoptions.name
Creates a new collision 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
Buffer
a property ofbee
, i.e.bee.abc
- abc
- boo
function(arg1, arg2)
what is the method used for
Event: '<event-name>'
- e
Object
the first parameter of the callback
collision.<method-name>(arguments)
0.1.0
10 years ago