Various utilities for game development with pyxel game engine.
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c96cea5ab453e3a519580affd27b91ed386a04efd7959d896173ba883bd1177e
|
|
| MD5 |
3bc57892458973ae297855db1970cb64
|
|
| BLAKE2b-256 |
6fd2966fb73a34bb430b93bdfb5f0ce36684160ece70d460dee513cf623cdcf3
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
860b06b76701a958f3630f33c6f024410c53ac6142b87920e970a58c5fce65ec
|
|
| MD5 |
d21caefc2eb32c85f039a4535c28fed9
|
|
| BLAKE2b-256 |
1e7ffe1cd4f470e5ad13a848289e987716a5200e70fb2f3a0afa67fbaa1a1a73
|