Various utilities for game development with the pyxel engine.
pip install pyxel-utilsSimilar to pyxel.blt, but always places the image so that the top-left
corner of the image is at the given x, y position.
Does not support the rotate parameter.
Draws text horizontally centered at the given x, y position.
Shows the current mouse coordinates under the cursor.
Usage:
import pyxel_utils
def update():
pyxel_utils.cursor_update()
...
def draw():
...
pyxel_utils.cursor_draw()Draws a grid of points.
Usage:
import pyxel_utils
def draw():
pyxel_utils.point_grid(10, 10, 3)Draws a checkerboard pattern.
Usage:
import pyxel_utils
def draw():
pyxel_utils.checkerboard(5, 9, 10)Usage:
from pyxel_utils.pymunk import DrawOptions
...
draw_options = DrawOptions(color=1)
def draw():
space.debug_draw(draw_options)

