FGAme is a physics-based game engine for Python 3. Its aims to avoid boilerplate and to be so easy that even a child can play with it (and learn how to program with it!). Check this pong implementation:
from FGAme import *
# A 10px margin to keep things on the screen
world.add.margin(10)
# Create a ball in the middle of the screen. We also add some random speed
ball = world.add.circle(20, pos=pos.middle, color='red')
ball.vel = vel.random()
# Create both players as AABBs (axis aligned bounding boxes). Infinite
# masses prevent them from moving when hit by the ball
p1 = world.add.aabb(shape=(20, 120), pos=(30, 300), mass='inf')
p2 = world.add.aabb(shape=(20, 120), pos=(30, 300), mass='inf')
# Connect long press events with the correct functions
on('long-press', 'w').do(p1.move, 0, 5)
on('long-press', 's').do(p1.move, 0, -5)
on('long-press', 'up').do(p2.move, 0, 5)
on('long-press', 'down').do(p2.move, 0, -5)
# Start main loop
run()
FGAme currently requires Pygame to run. We have plans to make it backend agnostic and in the future it will support SDL2, Kivy, Qt and maybe others.
Metadata
Release files for FGAme 0.6.5
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 |
|---|---|---|---|---|
| FGAme-0.6.5.tar.gz | 140.1 kB | Without provenance | Details for FGAme-0.6.5.tar.gz |
Release files / FGAme-0.6.5.tar.gz
| Download URL | FGAme-0.6.5.tar.gz |
|---|---|
| Size | 140.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd51c992424eb7c7635b6e5b9fb3aa79d92149b0b000bfeae855213f71690a54
|
|
BLAKE2b-256 checksum How to use checksums |
e7db0bfa5bc8658c9193935fcd52848891176df2e2e8d9c4d8fed01965ca4b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for FGAme 0.6.5
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.