Gamepad mapping
A general function type for handling custom events
Split an array into chunks of constant sizes.
array
size of chunks
clamp num between a and b
Remove on or all records from the local storage.
Create a new DOM element
CSS style selector
if true, create a SVG element
Create a new document fragment.
true if the browser supports gamepads
true if the device have touch screen capabilities
Load an object from local storage. If the name is not available in local storage, return null.
Setup an event listener.
event type
event handler
Wrapper to querySelector.
default to document
Wrapper to querySelectorAll.
default to document
return a random float between min and max
return a random integer between a and b included
default to 0
default to 1
Check if the context is ready and call app.
called when context is ready.
resolve 2d rect vs rect collision
Setup a game and run its main loop.
Setup a game and run its main loop.
Save an object in local storage.
Randomly shuffle elements of an array in place.
array
Set style of an element.
element whose style should be set
Copy the array without duplicates
Generated using TypeDoc
Run the main loop.