Pixel Game Engine IDE v0.1
main.js Ready
Live Preview FPS: 60
Pixel Game Engine IDE ready
Press Run to start your game
API
Sprites
Assets

Graphics (gfx)

gfx.clear(color)
Clear screen with color
gfx.setColor(color)
Set drawing color
gfx.rect(x, y, w, h)
Draw filled rectangle
gfx.line(x1, y1, x2, y2)
Draw line
gfx.circle(x, y, radius)
Draw filled circle
gfx.text(text, x, y)
Draw text
gfx.sprite(id, x, y)
Draw sprite

Input

input.isDown(key)
Check if key is held down
input.isPressed(key)
Check if key was just pressed
input.mouse.x, input.mouse.y
Mouse position

Keys

'left', 'right', 'up', 'down'
'action', 'jump', 'fire'
'a', 'b', 'c', 'd', ..., 'z'
'0', '1', '2', ..., '9'
'space', 'enter', 'escape'
Ready Pixel Engine | 256x240 | 60 FPS