A unique voice-controlled 2D platformer where your voice is the controller! Talk to walk, scream to jump, and use various vocal sounds to perform different actions.
- Voice-controlled gameplay
- Multiple levels with increasing difficulty
- Various sound-based actions:
- Talk to walk
- Scream to jump
- Whistle to dash
- Hum to crouch
- Moving platforms and obstacles
- Sound intensity visualization
- Microphone calibration system
- Score tracking and high scores
- Python 3.8+
- Pygame
- NumPy
- SoundDevice
- Pillow
- Scipy
- Clone this repository:
git clone https://github.com/yourusername/scream-game.git
cd scream-game
- Install required packages:
pip install -r requirements.txt
- Run the game:
python main.py
-
In the main menu:
- Click "Calibrate" to adjust microphone sensitivity
- Click "Start Game" to begin playing
- Use ESC to pause the game
-
Voice Controls:
- Normal talking: Move forward
- Loud shout: Jump
- Sharp whistle: Dash
- Low humming: Crouch
- Double jump available in mid-air
-
Gameplay Tips:
- Calibrate your microphone before playing
- Use the sound intensity meter on the right side to gauge your volume
- Watch out for different platform types:
- Gray: Normal platforms
- Green: Bounce platforms
- Red: Spike platforms (dangerous!)
- Cyan: Moving platforms
- Reach the green exit portal to complete each level
- Collect points by completing levels quickly
The game is structured into several components:
main.py
: Main game loop and initializationsrc/sound_processor.py
: Handles voice input processingsrc/player.py
: Player character logic and physicssrc/sprite_manager.py
: Handles animations and spritessrc/level_manager.py
: Manages levels and platformssrc/game_state.py
: Handles game states and UIconfig/settings.py
: Game configuration and constants
Feel free to contribute to this project by:
- Forking the repository
- Creating a new branch for your feature
- Submitting a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the Pygame community for their excellent documentation
- Sound processing inspired by various audio visualization projects
- Special thanks to all contributors and testers