G5.js
(indev)
»
GitHub Repository
»
Documentation
Methods
Game Loop
–
start
–
stop
–
step
–
toggle
–
draw
–
update
–
detach
Preparation
–
ready
–
preload
–
include
Event-Listening
–
listen
–
ignore
–
is_keydown
–
is_mousedown
Utilities
–
animation
–
rand
–
clamp
–
type_of
–
fullscreen
Object Methods
–
Collision
–
Cookie
–
Support
Constructors
–
Ticker
–
Scene
–
Buffer
–
Image
–
Vector2
–
Spritesheet
Static objects and variables
–
$_GET
–
DEG2RAD
–
RAD2DEG
G5
.js
A simple yet powerful HTML5 game engine
Game Loop
source (5 lines) »
G5.Ticker
source (13 lines) »
G5.listen
Click to focus.
Press a bunch of keys (e.g. A-S-D-F) and watch the result.
source (14 lines) »
G5.Spritesheet
Click to focus.
Use your arrow keys to move the player.
source (44 lines) »
G5.fullscreen
Click the blue circle to enter fullscreen mode.
source (12 lines) »