You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
15 MIN READ TIME

PICO-8

Coding for a retro pixel fantasy console

Nate Drake is in Pixel Town, as he shows you how to code a retro classic-style 8-bit game on the PICO-8 fantasy console.

OUR EXPERT

Nate Drake is a technology journalist specialising in cybersecurity and retro tech. His first foray into 8-bit gaming was Space Invaders at his father’s local. He hasn’t looked back since!

If you can’t afford to pay for PICO-8 or just don’t want to, you can access PICO-8 Education Edition free of charge at www. pico-8-edu. com. This is a free web-based version of the console, which we used to put together this tutorial.

P ICO-8, released in 2015, pays homage to the golden pixel era of games. It’s a fantasy video game console designed to mimic classic 8-bit systems in a Lua-based environment. The interface not only accepts code but can also be used to design sprites and sound effects. In this guide, we’ll cover how to set up PICO-8, as well as how to design a rudimentary game with collision detection and scoring.

Fire up your browser and head to www.lexaloffle. com/pico-8.php. From here, select the pink button to go to the product page for the most recent release.

From here, choose Get PICO-8. It’s currently priced at $14.99. Ignore this and the Picotron fantasy workstation for now. Enter your email address in the corresponding field, then choose to pay using either card (via Stripe) or PayPal, but we used the free Education Edition for this tutorial (see Top Tip left).

Before diving into scripting language, it’s helpful to see what PICO-8 can do. Fortunately, the console comes with some demo games. To deploy these, run: INSTALL_DEMOS

PICO-8 commands operate exclusively in upper case. Once the demos are installed, you’ll see them in a list. You can switch into the corresponding directory in exactly the same way as from the Linux terminal: CD DEMOS

Next, load the example game Jelpi with: LOAD JELPI

You can now launch the game by entering RUN . This is a charming example of a 2D platformer. You can move the eponymous character around using the arrow keys. Press Z to jump and X to perform a power charge to remove blocks and enemies.

Once you’ve played the game to your heart’s content, press Escape to return to the console. Enter the command CLS to clear the game from the screen.

Your first cartridge

Type REBOOT into the PICO-8 console to start a new cartridge. Next, press the Escape key once again to launch the code editor.

PICO-8 uses an implementation of the Lua scripting language to create games. It’s simple to understand but contains powerful features.

PICO-8 uses a subset of Lua as its scripting language, which has similarities with simple programming languages such as BBC Basic. By way of example, enter the following into the code editor: PRINT(“HELLO WORLD”)

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
July 2025
VIEW IN STORE

Other Articles in this Issue


LINUX FORMAT
LINUX FORMAT
The #1 open source mag Future Publishing Limited,
WELCOME
Just revolutioning
25 years of Linux Format What
IN DEPTH
Join the revolution!
Will the last person to leave please turn out the lights?
REGULARS AT A GLANCE
Newsdesk
THIS ISSUE: Tactless Torvalds Steam support to stop? Nvidia opens up Fork uplift Linux love gets larger
Distro watch
What’s behind the free software sofa?
Kernel Watch
Jon Masters summarises the latest happenings in the Linux kernel, so that you don’t have to.
Answers
This is the 25th Anniversary edition of Linux Format and its Answers pages, so here’s a selection of some of the more common and interesting questions we have received
Linux: the essential learning library
Learning Linux skills has a problem: there are just so many tools and technologies to choose from. Stuart Burns is your guide to success.
HotPicks
THE BEST NEW OPEN SOURCE SOFTWARE ON THE PLANET
CLASSIC REVIEWS
Corel Linux 1.0
25 years of Linux Format
Debian GNU/Linux 2.1
Linux distribution
SUSE Linux 6.3
25 years of Linux Format
Ubuntu 5.04
25 years of Linux Format
Linux-Mandrake 7
25 years of Linux Format
Red Hat 7.3
Richard Drummond asks whether the biggest is necessarily the best as he examines the latest release.
ROUNDUP
Windows user distros
Elementary OS Ubuntu Deepin Linux Linux Mint Zorin OS Lubuntu Pop!_OS MX Linux
The verdict
Distros for Windows users
ESCAPE WINDOWS 10
Escape Windows 10
Save all your old PCs! Nick Peers reveals how to give them a new lease of life with Linux Mint.
Pi USER
Blast off with coding, making and AI!
From space-based competitions to running AI at home, the Pi Foundation has you covered.
Code Club
We’re in it together.
AI smarts
Enter a world of LLMs.
THE END IS PI
Les Pounder works with groups such as the
Ubuntu 25.04 Beta
For his final Linux Format review, Les Pounder goes back to where it all started for him: Ubuntu and the Raspberry Pi.
QiDi Plus4
Picking up where the Bambu left off, Denise Bertacchi finds a practical if unexciting machine.
Orange Pi RV2
Never one to miss sticking it to the Pi Man, Tam Hanna tests the best little RISC-V board he’s seen.
Network AI clusters to model and move on
Few things can rival the computing demand of AI models. Tam Hanna helps you spread the load with a cluster of affordable systems.
The art gallery at the end of LXF
RASPBERRY PI
TUTORIALS
Cool terminals
COOL RETRO TERM Credit: https://github.com/Swordfish90/cool-retro-term
Edit photos like a professional in GIMP 3
Shutterbug Nick Peers reveals how to use GIMP’s new and improved tools to take your photos to the next level.
Retro fix: Dial in to the bulletin board scene
ELECTERM
The hardware that made Linux great
LINUX HARDWARE
Build the ultimate home server setup
DEBIAN
Your first month with a 3D printer
3D PRINTING
HACKING ACADEMY
STEAL YOURSELF
Nate Drake inducts you into the world of
New key for Kali Linux updates
A repository snafu means that Kali Linux had to freeze repos and generate new signing keys.
CVE threat
Funding almost pulled.
Curing rootkit
Invisible to security.
Trezor Safe 3
Nate Drake is a regular Scrooge McDuck as he stows his precious crypto coins in Trezor’s mid-range cryptocurrency hardware wallet.
Burgling Bitcoins
ELECTRUM
CODING ACADEMY
Runing Rust on the Raspberry Pi
David Bolton continues looking at Rust development with SDL2 but now he’s doing it on a Raspberry Pi of all places!
Chat
X
Pocketmags Support