Basic Game Loop

This cart shows the basic game loop used in PICO-8.

Notes: The basic idea is that there are three built-in functions in PICO-8 that allow you to structure your game. The first is _init() which happens once at the beginning of your game. Then _update() happens 30 times a second over and over again. _draw() also happens 30 times a second, but after _update() happens.

Published 24 days ago
StatusReleased
CategoryOther
PlatformsHTML5
AuthorMBoffin
GenreEducational
Made withPICO-8
TagsPICO-8, sourcecode

Install instructions

Save this file to your PICO-8 carts folder. Then load it by typing load game_loop in the command line mode of PICO-8.

Download

Download
game_loop.p8.png 4 kB