Retro Snake game with procedural audio
Project description
codex-coded-snake
codex-coded-snake is a lightweight Python package that delivers a retro-style Snake game with procedural music and sound effects. The game is built using Tkinter for the UI and native audio on Windows.
Features
- Classic snake gameplay with keyboard controls
- Dynamic procedural soundtrack generated in real time
- Minimal dependency footprint: standard library only
- Runs as a package via
python -m codex_coded_snake
Installation
pip install codex-coded-snake
Note: the packaged audio engine currently uses the Windows
winmmAPI. The game UI uses Tkinter, so a desktop Python environment is required.
Usage
Run the game from the command line:
python -m codex_coded_snake
Or import the package in your own Python code:
from codex_coded_snake import SnakeGame
SnakeGame().run()
Controls
Up,Down,Left,RightorW,A,S,D: move the snakeP: pause / resumeR: restart after game over
Package Structure
codex_coded_snake/main.py: game logic, audio engine, and entry pointcodex_coded_snake/__init__.py: package exportscodex_coded_snake/__main__.py: module entry point forpython -m
License
This project is released under the terms of the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codex_coded_snake-0.1.0.tar.gz.
File metadata
- Download URL: codex_coded_snake-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87170751236468fe18b667abde350ca7f7c2375c006c6f77ab9cc17bd088bfc6
|
|
| MD5 |
f6a756a818f3aadb836b389630e9fab4
|
|
| BLAKE2b-256 |
b06391bbce1c3b337cd5032c438cc70e6c8b0a0bddb8fb3d5a07dc06c011caec
|
File details
Details for the file codex_coded_snake-0.1.0-py3-none-any.whl.
File metadata
- Download URL: codex_coded_snake-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.4.1 CPython/3.11.15 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c13dc8f4ddad1862dc59a12b06ff8f0a367b30e1419c96bc512f6e8bb86b45d
|
|
| MD5 |
7398514bcbb52e12c6f1512b955e4929
|
|
| BLAKE2b-256 |
fa47a6cfc9cbed568659c41654d0978e1b44a723aaa974954d7ddd3d7f857e5d
|