Skip to main content

Tiny fantasy console inspired by TIC-80

Project description

📦 PIX-8 — Tiny Fantasy Console

PIX-8 is a minimal, retro-style fantasy console written in Python.
It lets you create tiny games with a simple PEP-8-inspired Python cartridge format.


⚡ Features

  • 128×128 pixel display

  • 16-color palette

  • Simple drawing API: cls(), pset(), rectfill()

  • Input: arrow keys + Z/X as buttons

  • PEP-8–style cartridges (init(pix), update(pix), draw(pix))

  • Runs as a single Python file (pix8.py)


🏁 Installation

git clone <repo-url>
cd pix8
pip install .

Or if you just want to run it locally without pip:

python pix8.py game.py


🎮 Writing a Cartridge

Create a Python file, for example game.py:

metadata = {"title": "Tiny Demo"}

def init(pix):
pix.x = 60
pix.y = 60

def update(pix):
if pix.btn("left"):
pix.x -= 1
if pix.btn("right"):
pix.x += 1

def draw(pix):
pix.cls(1)
pix.rectfill(pix.x, pix.y, 8, 8, 8)

Run it:

pix8 game.py


🔑 API Reference

Function Description
pix.cls(color=0) Clear the screen
pix.pset(x, y, color=7) Draw a single pixel
pix.rectfill(x, y, w, h, color=7) Draw a filled rectangle
pix.btn("left") Check if a button is pressed (left, right, up, down, a, b)
pix.flip() Update the screen and tick FPS

📄 License

MIT License — free to use, modify, and share.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pix8-0.0.5.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pix8-0.0.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file pix8-0.0.5.tar.gz.

File metadata

  • Download URL: pix8-0.0.5.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pix8-0.0.5.tar.gz
Algorithm Hash digest
SHA256 34a95e8c241cb1e285b3aa4e9d9adffdb3df253d7b8a0e6e983ab1e8aeb94863
MD5 cd9457ae5534f1eea7ce0d3d7c207f67
BLAKE2b-256 3760ba5de8646f818349a96adb895d22c4764d6398996e176951c8641aae80a7

See more details on using hashes here.

File details

Details for the file pix8-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: pix8-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for pix8-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e4faf2c011f15ee8369ed81ff6e328db59c1c8f85409cfca272c87d8f82fe47a
MD5 e46c25e65992556cf8ee528d8fe39ebb
BLAKE2b-256 40fa2f92b15f0f6705fcd0daa8acff76d26e7bc393ca776a71f428c1ce71ed25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page