.. _Lua: http://www.lua.org/
.. _PyGame: http://www.pygame.org/
Kundalini
=========
LÖVE_ is an **awesome** framework you can use to make 2D games in Lua_,
in a very similar way with PyGame_.
Kundalini intends to offer an API similar to that of LÖVE to develop
games using PyGame.
Usage
-----
Subclass ``kundalini.FrameManager`` and override the method::
@abstractmethod
def build_screen(self) -> Surface:
pass
It must return a ``pygame.surface.Surface``, like, for example, the
object returned by ``pygame.display.set_mode()``.
You also can override::
def load(self) -> None:
pass
def draw(self) -> None:
self.screen.fill((0, 0, 0))
def handle_event(self, event:Event) -> None:
pass
def update(self, delta:float) -> None:
pass
The method ``load()`` is performed by ``init()`` call, just after
``pygame.init()``.
The method ``draw()`` is performed every drawing loop.
The method ``handle_event()`` is performed for each occuring event. It
receives the event as parameter.
The method ``update()`` is performed about 1024 times a second, and
receives the time delta in seconds since last performing as parameter.
Metadata
Release files for kundalini 0.4
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 |
|---|---|---|---|---|
| kundalini-0.4.tar.gz | 4.3 kB | Without provenance | Details for kundalini-0.4.tar.gz |
Release files / kundalini-0.4.tar.gz
| Download URL | kundalini-0.4.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd2015f4d8149d9db717fadaa6e56a66e7332d8565da6e6028388c48c439484f
|
|
BLAKE2b-256 checksum How to use checksums |
659dab9f7e12c9d33b814eb043c28ca004dc5969d44493ebc059cfcbb40072bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kundalini 0.4
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.