Repository files navigation
class Point (x, y [,ref={x: 0, y: 0}])
class Circle (r [,ref={x: 0, y: 0}])
Properties
Methods
has(pt)
intersections(ln)
collidesWith(other)
draw(ctx)
Properties
m
b
length
domain
range
pts
Methods
has(pt)
intersection(ln)
draw(ctx)
Properties
n
r
center
domain
range
pts
lns
Methods
has(pt)
collidesWith(other)
draw(ctx)
class Emitter (maxListeners=10)
Properties
Methods
on(event, listener)
once(event, listener)
emit(event [,...args])
remove(event, listener)
class Vector (mag, angle)
Properties
Methods
plus(other)
minus(other)
scale(value)
dot(other)
Static Properties
defaults
all
groups
zLevels
DIE
WRAP
STOP
BOUNCE
Static Methods
Properties
x
dx
y
dy
z
angle
disp
vel
left
right
top
bottom
scale
edge
img
visible
Methods
distanceTo(other)
angleTo(other)
collidesWith(other)
draw()
update()
class HeavySprite(config={})
Static Properties
Properties
Methods
Properties
left
right
top
bottom
mouse
canvas
ctx
isRunning
frameRate
Methods
start()
stop()
clear()
isDown(key)
About
bare-bones gaming engine
Resources
License
Stars
Watchers
Forks
You can’t perform that action at this time.