Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 952 Bytes

File metadata and controls

32 lines (25 loc) · 952 Bytes

Pygame Example David Ward January 2026

This simple game was made using python and the pygame library.

This project was developed within the uv framework. If uv is installed on your platform you can run this example using: uv run main.py

Without uv, install Python and the dependencies: pygame-ce and pygbag

To serve the game to the browser use this command: uv run pygbag main.py Open a web browser and put in the web address http://127.0.0.1:8000 pygbag can be terminated by pressing Ctrl-C

This game contains the following elements Draw graphics shape (squares) Draw text Simulate Motion Sound Keyboard Control Input Web based technolgy

The game has also been uploaded to itch.io currently with the following link: https://wardini.itch.io/pygame-example?secret=LAFioS9fWwFlfh3K0XHFccejaY

The project is hosted on github with the following link: https://github.com/wardini/pygame_example