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.0.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.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for codex_coded_snake-0.1.0.tar.gz
Algorithm Hash digest
SHA256 87170751236468fe18b667abde350ca7f7c2375c006c6f77ab9cc17bd088bfc6
MD5 f6a756a818f3aadb836b389630e9fab4
BLAKE2b-256 b06391bbce1c3b337cd5032c438cc70e6c8b0a0bddb8fb3d5a07dc06c011caec

See more details on using hashes here.

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

Hashes for codex_coded_snake-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c13dc8f4ddad1862dc59a12b06ff8f0a367b30e1419c96bc512f6e8bb86b45d
MD5 7398514bcbb52e12c6f1512b955e4929
BLAKE2b-256 fa47a6cfc9cbed568659c41654d0978e1b44a723aaa974954d7ddd3d7f857e5d

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