pyxel-utils
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)
Metadata
Release files for pyxel-utils 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyxel_utils-0.2.0.tar.gz | 250.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyxel_utils-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 255.6 kB
Release files / pyxel_utils-0.2.0.tar.gz
| Download URL | pyxel_utils-0.2.0.tar.gz |
|---|---|
| Size | 250.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c96cea5ab453e3a519580affd27b91ed386a04efd7959d896173ba883bd1177e
|
|
BLAKE2b-256 checksum How to use checksums |
6fd2966fb73a34bb430b93bdfb5f0ce36684160ece70d460dee513cf623cdcf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.15
|
Release files / pyxel_utils-0.2.0-py3-none-any.whl
| Download URL | pyxel_utils-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
860b06b76701a958f3630f33c6f024410c53ac6142b87920e970a58c5fce65ec
|
|
BLAKE2b-256 checksum How to use checksums |
1e7ffe1cd4f470e5ad13a848289e987716a5200e70fb2f3a0afa67fbaa1a1a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.15
|