Pixel Wiki

March 7, 2025 ยท View on GitHub

Pixel is a mature, fast, innovative 2D game library in Go.

This Wiki contains a set of tutorials, each covering a different aspect of Pixel.

Apart from just describing the features and concepts in Pixel, each tutorial tries to bring something more. They teach about some of the most useful game development patterns and techniques as well as giving some useful tricks.

If you are a seasoned game developer, just skim through the tutorials to grasp the main concepts of Pixel. Then focus on the API documentation.

Table of Contents

Compilation

Cross-Compiling

Building Pixel on Windows

The Basics

Creating a Window

Drawing a Sprite

Moving, scaling and rotating with Matrix

Pressing keys and clicking mouse

Drawing efficiently with Batch

Drawing shapes with IMDraw

Typing text on the screen

Using a custom fragment shader

Unit testing and CI

Extensions