PICO-8: Basic Game Loop
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
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.