Pygame Light 2D
This module provides fast 2D dynamic lighting for pygame.
https://github.com/MarkelZ/pygame-light2d/assets/60424316/a8d1322b-ac05-47d4-8b04-2786f0d3c96a
System requirements
Pythonversion >= 3.10OpenGLversion >= 3.3
Python package dependencies
numpy>= 1.24.1pygame>= 2.3.0moderngl>= 5.8.2PyOpenGL>= 3.1.6
Installation
Firstly, ensure that your system meets the System requirements.
Then, run the following command:
python3 -m pip install pygame-light2d
To verify correct installation, open a Python terminal and import the module:
import pygame_light2d
If there are no errors, the installation was successful!
Getting started
To learn how to create a simple game with lighting effects using pygame-light2d, check out the Getting started page on the wiki.
Documentation
Using the API
For detailed explanations of the API, please refer to the API Reference.
Using pygame-light2d in an existing project
If you're looking to incorporate pygame-ligth2d into an existing project, we recommend starting with our guide on Adding lights to an existing project.
Graphics engine
This package uses pygame-render for
using shaders in pygame, and it can be accessed with LightingEngine.graphics.
Frequently Asked Questions
For frequently asked questions check out FAQ.
Contributing
We greatly appreciate and encourage contributions from the community!
Please take a look at the Contributing page on the wiki for details on how to contribute to the project.
License
This code is licensed under the terms of the MIT license.
Metadata
Release files for pygame-light2d 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pygame_light2d-2.1.3.tar.gz | 13.8 kB | Without provenance | Details for pygame_light2d-2.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pygame_light2d-2.1.3-py3-none-any.whl | Python 3 | none | any | Details for pygame_light2d-2.1.3-py3-none-any.whl |
Total release size: 30.9 kB
Release files / pygame_light2d-2.1.3.tar.gz
| Download URL | pygame_light2d-2.1.3.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be6c8120f057cab20f3672e100678251c2816f20ac7c5292ffb36b14d806d820
|
|
BLAKE2b-256 checksum How to use checksums |
337d59192d8807f2fe84556e915f336b23c7e604a015691d201dffa5b98557d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / pygame_light2d-2.1.3-py3-none-any.whl
| Download URL | pygame_light2d-2.1.3-py3-none-any.whl |
|---|---|
| Size | 17.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
890806c6290357da30b921f668efe9b6415a4eaba21f46a78a0a7c7e5bb81a0f
|
|
BLAKE2b-256 checksum How to use checksums |
24c7dc76ecf6708585baaf734c56d0289dfa9ec1ed725471c293e4f3a75ad5c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for pygame-light2d 2.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.