Skip to main content

Various utilities for game development with pyxel game engine.

Project description

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)

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

pyxel_utils-0.1.2.tar.gz (13.7 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.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyxel_utils-0.1.2.tar.gz
  • Upload date:
  • Size: 13.7 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.1.2.tar.gz
Algorithm Hash digest
SHA256 39f934640c8690ac4a8c9dc8eda0e69c0d1625cb1047a0a592da5b709933c2bb
MD5 f3239cdb2697fe5f5b1204e47196ea9a
BLAKE2b-256 cdfb087a4cd1002fc6ca458b5e9d0201e1cb44f8e3eed582c75186e00a48aa08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyxel_utils-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d2df77c7247bb37abbdfb27675c91f0e15d2b033f8005a323511baf0d02253d
MD5 ad3e369a82195ae6fc73025304454910
BLAKE2b-256 4a1dcb3ab58242d66dc20892476b984eea5cbceb9ff5095ff45d13cdac10cc32

See more details on using hashes here.

Supported by

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