Skip to content


Sprites are the most common way to draw graphics in Pyxen.

Using the Sprite Editor

Palette, sprite sheet, tile view


Every sprite in your sprite sheet is assigned 0 to 8 flags.

There are used in code by the collisions functions.

Changing the Pixel Grid Size

You can choose between 8 or 16 pixels grid when you design your Sprites.

Please note that changing the grid size will probably make your flags irrelevant.

Drawing in Code

import pyxen
from pyxen import image, sprite

def draw():
    sprite(0, 0, 0, 0, 16, 16)