Skip to main content

pyxel-utils

PyPI - Version

Various utilities for game development with the pyxel engine.

Installation

pip install pyxel-utils

Utilities

blt_topleft

Similar 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.

text_centered

Draws text horizontally centered at the given x, y position.

Cursor showing coordinates

Shows the current mouse coordinates under the cursor.

Usage:

import pyxel_utils

def update():
    pyxel_utils.cursor_update()
    ...

def draw():
    ...
    pyxel_utils.cursor_draw()

point_grid

Draws a grid of points.

Usage:

import pyxel_utils

def draw():
    pyxel_utils.point_grid(10, 10, 3)

checkerboard

Draws a checkerboard pattern.

Usage:

import pyxel_utils

def draw():
    pyxel_utils.checkerboard(5, 9, 10)

pymunk debug draw

Usage:

from pyxel_utils.pymunk import DrawOptions

...

draw_options = DrawOptions(color=1)

def draw():
    space.debug_draw(draw_options)

Download files

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

Source Distribution

pyxel_utils-0.2.0.tar.gz (250.6 kB view details)

Uploaded Source

Built Distribution

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

pyxel_utils-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pyxel_utils-0.2.0.tar.gz.

File metadata

  • Download URL: pyxel_utils-0.2.0.tar.gz
  • Upload date:
  • Size: 250.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for pyxel_utils-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c96cea5ab453e3a519580affd27b91ed386a04efd7959d896173ba883bd1177e
MD5 3bc57892458973ae297855db1970cb64
BLAKE2b-256 6fd2966fb73a34bb430b93bdfb5f0ce36684160ece70d460dee513cf623cdcf3

See more details on using hashes here.

File details

Details for the file pyxel_utils-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyxel_utils-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.15

File hashes

Hashes for pyxel_utils-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 860b06b76701a958f3630f33c6f024410c53ac6142b87920e970a58c5fce65ec
MD5 d21caefc2eb32c85f039a4535c28fed9
BLAKE2b-256 1e7ffe1cd4f470e5ad13a848289e987716a5200e70fb2f3a0afa67fbaa1a1a73

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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