GameSpark/Tutorials ← All tutorials
Tutorials

GameSpark

Learn the GameSpark engine one piece at a time — drawing, input, sound, and tiles.

1

Your first program

Clear the screen, draw a shape, and run it.

2

Motion and bouncing

Give things velocity and make them bounce off the walls.

3

Drawing sprites

Make art in the sprite editor and draw it with spr().

4

Move with the keyboard

Read the arrow keys and move smoothly, including diagonals.

5

Move with the mouse

Follow the pointer and react to clicks with mouse().

6

Play a sound

Make a sound in the SFX editor and trigger it with sfx().

7

Render tiles with map()

Paint a level in the map editor and draw it with map().

8

Choosing a screen size

Change the screen shape and size — and write code that fits any of them.

9

Find anything in the Docs

Use the built-in Docs tab and autocomplete to learn the API.