pygbag
Hilbert-Curve-space-filling-with-pygame
pygbag | Hilbert-Curve-space-filling-with-pygame | |
---|---|---|
6 | 1 | |
271 | 7 | |
3.0% | - | |
9.1 | 0.0 | |
5 days ago | over 1 year ago | |
Python | Python | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pygbag
-
Playable Sandbox Now Available
Due to pygbag#16, the built-in function does not work correctly in the pygame-wasm environment. I noticed the patch to set_timer was buggy, so I made an improvement to the patch by handling other behaviors mentioned in the docs (e.g. disabling the timer and discarding an old timer for the same event).
-
Questions about pygame
Github for pygbag: https://github.com/pygame-web/pygbag
-
Getting a game using multiple libraries on a browser?
On pygbag, numpy(3.10) and pymunk(3.11) are supported but not on the same python version. for other packages have a look here https://github.com/pygame-web/archives/tree/main/repo/pkg and for missing ones make requrests here https://github.com/pygame-web/pygbag/issues/37 and possible add a use case to help with porting.
-
Running Pygame in the browser with Pygbag
if you need more modules just drop a note here https://github.com/pygame-web/pygbag/issues/37
-
How to host python game on website
Basically you can, recently a package that has also been added to `pygame/pygame-web` allows you to create all the necessary assets to be able to run a `pygame` game in a browser. The library is called `pygbag`: https://github.com/pygame-web/pygbag you can read about it there, it still is in a bit of an experimental stage so if you have questions, I'd suggest you joining the `pygame` discord server and ask questions in the `#pygame-web` channel. This is pretty exciting, you can see examples of this here: https://pmp-p.github.io/pygame-wasm/, these also have a console added and other stuff but it can be made to be a fullscreen thing too.
Hilbert-Curve-space-filling-with-pygame
-
4 Simulations with python :
Falling sand code: https://github.com/Josephbakulikira/Simple-Falling-Sand/blob/master/main.py Hilbert curve (fractal) : https://github.com/Josephbakulikira/Hilbert-Curve-space-filling-with-pygame Ant Colony simulation: https://github.com/Josephbakulikira/Ant-Colony-Simulation-with-python N-body simulation(Gravity): https://github.com/Josephbakulikira/N-body-simulation-with-python--Gravity-solar-system
What are some alternatives?
gamma - A simple ECS game engine for Python, built on Pygame, with an emphasis on ease of use.
gilbert - Space-filling curve for rectangular domains or arbitrary size.
pygame_examples - A repository for short pygame drafts, examples, tutorials and more!
PyNBoids - This is a Boids Simulation, written in Python with Pygame.
youre-the-os - A game where you are a computer's OS and you have to manage processes, memory and I/O events.
Ant-Colony-Simulation-with-python
bansoko - Space-themed :rocket: Soko-Ban :video_game: clone created in Python using Pyxel.
bokeh - Interactive Data Visualization in the browser, from Python
HeartbeatEngine - A Visual Novel / Dating Sim game engine written in Python using Pygame, with a full editor written in PyQt5
fractal-jax - Generate images of the Julia and Mandelbrot sets with Jax.
archives - archived prebuilts
Simple-Falling-Sand