Getting Started with Pyxel

Let's sharpen our tools for developing Pyxel games, and more!

avatar

Sébastien Boisgérault
Associate Professor, ITN Mines Paris – PSL

Pyxel Studio Editor

Quickstart

Go to https://www.pyxelstudio.net and create a new project. That’s it, you’re done!

Pyxel Studio Landing Page

The Hard Way

Useful if you want:

  • to develop Python projects other than Pyxel games,

  • to work locally on your computer and not depend on “the cloud”,

  • to benefit from a more feature-rich development environment.

Visual Studio Code

  • Install Visual Studio Code, then

  • Install the Microsoft Python extension for Visual Studio Code.

Pixi

The Pixi package manager can handle all your project software dependencies. It is a good choice for Python projects in general, and especially for hybrid projects that require both Python packages and non-Python software, since it can install both Python packages from PyPi and Python and non-Python software from conda-forge.

Pixi worflow

Install pixi, then for each new project, create a new empty pixi environment

pixi my_new_project

Then get into the newly created directory my_new_project

cd my_new_project

and install what you need from conda-forge, for example

pixi install python

then if you also need packages from PyPi, like pyxel, install them with

pixi install --pypi pyxel

Develop your project with your favorite editor, for example Visual Studio Code, and when you need to run your code, just type

pixi run python my_app.py

An good alternative to Pixi for pure Python projects is uv.