This release is a pre-release and may not be stable for production use.
PyTaOn
Motor de jogos simples que utiliza física baseado em Pyxel.
Instalação
Clone este repositório e utilize flit install -s para instalar localmente. Em breve teremos suporte para pip install pytaon ;-).
Tutorial
Criamos uma simulação simples de duas caixas sujeitas à lei da gravidade.
import pytaon as on
import pyxel
WIDTH = 120
HEIGHT = 80
Criamos os objetos de jogo, junto ao espaço correspondente
sp = on.Space()
bola = sp.add_circle(5, (120, 90), color=pyxel.COLOR_RED)
chao = sp.add_aabb(0, 160, 240, 180, color=pyxel.COLOR_LIME, mass="inf")
bola.gravity = (0, 20)
Iniciamos a simulação passando as funções update e draw para o pyxel.
def update():
sp.update(1/30)
def draw():
pyxel.cls(pyxel.COLOR_BLACK)
sp.draw()
pyxel.init(240, 180, fps=30)
pyxel.run(update, draw)
Metadata
Release files for pytaon 0.0.2b0
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 |
|---|---|---|---|---|
| pytaon-0.0.2b0.tar.gz | 17.5 kB | Without provenance | Details for pytaon-0.0.2b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytaon-0.0.2b0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pytaon-0.0.2b0-py2.py3-none-any.whl |
Total release size: 33.4 kB
Release files / pytaon-0.0.2b0.tar.gz
| Download URL | pytaon-0.0.2b0.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52102d025b1648514069f9d4332ad6f3f104bf4a79d8776f0c7a613ede13e1ae
|
|
BLAKE2b-256 checksum How to use checksums |
080ad42c31867883da0a0bc65c1fda90b49c3e5f307a10a889fc9802ceec4a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.24.0
|
Release files / pytaon-0.0.2b0-py2.py3-none-any.whl
| Download URL | pytaon-0.0.2b0-py2.py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5ae977154034626c2e2d70b438ba59ee6f0907c37b525279a90ed7448a8264a6
|
|
BLAKE2b-256 checksum How to use checksums |
94712a44488a200a4fc74a4df711b073d7f04e3b29dec16378ebffaac0295eff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.24.0
|
Security for pytaon 0.0.2b0
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.