Skip to main content

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 winmm API. 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, Right or W, A, S, D: move the snake
  • P: pause / resume
  • R: restart after game over

Package Structure

  • codex_coded_snake/main.py: game logic, audio engine, and entry point
  • codex_coded_snake/__init__.py: package exports
  • codex_coded_snake/__main__.py: module entry point for python -m

License

This project is released under the terms of the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_coded_snake-0.1.1.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_coded_snake-0.1.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file codex_coded_snake-0.1.1.tar.gz.

File metadata

  • Download URL: codex_coded_snake-0.1.1.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

Hashes for codex_coded_snake-0.1.1.tar.gz
Algorithm Hash digest
SHA256 11ccd21020f1d3da8f47a46049fdc8fd12f490231f68137b7a4a60cef28b9e2a
MD5 ae63e6820e76c517e4d401f7d67eae29
BLAKE2b-256 854dfd112094eebe0e82992e041b7a760c11e301c416f1937d8aafd24c239e1c

See more details on using hashes here.

File details

Details for the file codex_coded_snake-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: codex_coded_snake-0.1.1-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

Hashes for codex_coded_snake-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1683064472ee7164bb11226d59e451a0b706bdd2043992e297561202f28e9355
MD5 78be634957a85d024bb6f0e1e58a4125
BLAKE2b-256 62003184343f5e9cd1465dc6fc41fd396e80c2aea5cab69a446faeed76594225

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page