Skip to main content

Various utilities for game development with pyxel game engine.

Project description

pyxel-utils

Various utilities for game development with the pyxel engine.

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.0.tar.gz (13.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.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyxel_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 13.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.1.0.tar.gz
Algorithm Hash digest
SHA256 f013bc103a762c660913e3f6c6d976d97d8dc982539c2f17561efebd5ff0d413
MD5 ec62bd9c082ca1ca8c2a1c8ca82cd57d
BLAKE2b-256 6862d8ee98a8a34e1b9c75d6d6625b9fe13157153f117bb8bce83d7040fcaef9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyxel_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce3c74fd2f03765509d55a7149a59504321990e2f129efc31713a9f11afe6bdb
MD5 dbc8d39d31657d311832c0d71fab50cd
BLAKE2b-256 0c38a7625f6f84b6217be4fd2d96225ddbee5bee66b6212ca12a589082264a9e

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