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.1.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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyxel_utils-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 841b225e7830d23ac121019ec307062910d2a38d939bca6a22485fcfdd4b1a73
MD5 5fb368ecc99b1f33e0e13143808eb598
BLAKE2b-256 b8d60c7a1bb887f6e4358afb3007004064655b35a17e1f839943bf894a6daf00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyxel_utils-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2064088b7961edb81c4efccd856b02cdf4eaf46de0db88e58e8307f997172890
MD5 11207db06f2b0cc97f8f54c3af0b335b
BLAKE2b-256 4c1d8deee47c519213a6302484842730f8b08234d20bb0be7db760db09fa9deb

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