↓ Skip to main content
Linux quickstart
  1. Docs/
  2. Game SDK/
  3. Quickstart/

Linux quickstart

381 words·2 mins·

This guide will help you get started with setting up your development environment on Linux and creating your first game for the VGC Zero console.

Prerequisites
#

Some experience writing/compiling C/C++ software is required.

You’ll need to install:

  • Git
  • CMake (at least 3.9)
  • Make (or another build tool like Ninja)
  • Python (at least 3.6) + pip
  • The 32blit tools
  • GCC
  • SDL2 + SDL2_image + SDL2_net

U can install all of these on Ubuntu/Debian with:

sudo apt install git gcc g++ gcc-arm-none-eabi cmake make \
python3 python3-pip python3-setuptools \
libsdl2-dev libsdl2-image-dev libsdl2-net-dev unzip

Then install the 32blit tools:

pip install 32blit

Building and running locally
#

  1. Clone the SDK repository

    git clone https://github.com/chili-chip/32blit-sdk
  2. Create a new game project using our game template

    Use this template button
    Use this template button

    Or you can clone one of our sample games, like chili tetris.

    git clone https://github.com/chili-chip/chili-tetris

    Your directory structure should look like this:

    project_root/
    ├── 32blit-sdk/
    └── your-project/
  3. Build the game

    cd your-project
    mkdir build
    cd build
    cmake ..
    make
  4. Run the game locally

    ./game

    This will launch the game in a window on your desktop using SDL2. Now you can test and develop your game locally before deploying it to the VGC Zero hardware.

Building for VGC Zero
#

  1. Get necessary tools

    • pico-sdk
    • pico-extras

    Clone the pico-sdk and pico-extras repositories:

    git clone https://github.com/raspberrypi/pico-sdk
    git clone https://github.com/raspberrypi/pico-extras

    Your directory structure should look like this:

    project_root/
    ├── 32blit-sdk/
    ├── pico-sdk/
    ├── pico-extras/
    └── your-project/
  2. Create a build directory

    cd your-project
    mkdir build.vgc
    cd build.vgc
  3. Configure the build for VGC Zero

    Run cmake with the board and platform specified:

    cmake .. \
    -D32BLIT_DIR=../../32blit-sdk \
    -DPICO_SDK_PATH=../../pico-sdk \
    -DPICO_BOARD=chilichip_vgc \
    -DPICO_PLATFORM=rp2350-arm-s \
    -DCMAKE_TOOLCHAIN_FILE=../../32blit-sdk/pico2.toolchain

Adjust paths if your SDKs are located elsewhere relative to your project directory.

  1. Build the game for VGC Zero

    make

    This will produce a .uf2 file in the build.vgc directory.

Flashing to VGC Zero
#

  1. Connect your VGC Zero to your computer via USB.
  2. Put the VGC Zero into bootloader mode by holding down the BOOT button while plugging it in.
  3. Your computer should recognize the VGC Zero as a removable drive named RP2350.
  4. Copy the generated .uf2 file from the build.vgc directory to the RP2350 drive.
  5. The console will reboot and run your game.

Troubleshooting
#

If pip installs to a directory not on PATH:

export PATH=$PATH:~/.local/bin

Related

Game SDK basics

561 words·3 mins
This section covers the basic concepts and components of the Game SDK for VGC Zero. Understanding these fundamentals will help you effectively utilize the SDK to create engaging games for the console.

Announcing the Chili Room Editor

·580 words·3 mins
🚀 Today we’re launching the Chili Room Editor — a focused, zero-install, in‑browser tool for building small retro‑style rooms for our sdk. It’s intentionally minimal: drop in a tileset, paint two layers, export a deterministic C header. No build chain, no project scaffolding, no fluff.

VGC Zero - Breadboard Prototype

407 words·2 mins
Build your own VGC Zero breadboard prototype with our open-source design files and step-by-step instructions today!