Skip to content

This is a voice based game. The more player screams the more player can achieve scores.

Notifications You must be signed in to change notification settings

mahmudnibir/Scream-game

Repository files navigation

Scream Game

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.

Features

  • 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

Requirements

  • Python 3.8+
  • Pygame
  • NumPy
  • SoundDevice
  • Pillow
  • Scipy

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/scream-game.git
cd scream-game
  1. Install required packages:
pip install -r requirements.txt

How to Play

  1. Run the game:
python main.py
  1. In the main menu:

    • Click "Calibrate" to adjust microphone sensitivity
    • Click "Start Game" to begin playing
    • Use ESC to pause the game
  2. Voice Controls:

    • Normal talking: Move forward
    • Loud shout: Jump
    • Sharp whistle: Dash
    • Low humming: Crouch
    • Double jump available in mid-air
  3. 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

Development

The game is structured into several components:

  • main.py: Main game loop and initialization
  • src/sound_processor.py: Handles voice input processing
  • src/player.py: Player character logic and physics
  • src/sprite_manager.py: Handles animations and sprites
  • src/level_manager.py: Manages levels and platforms
  • src/game_state.py: Handles game states and UI
  • config/settings.py: Game configuration and constants

Contributing

Feel free to contribute to this project by:

  1. Forking the repository
  2. Creating a new branch for your feature
  3. Submitting a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to the Pygame community for their excellent documentation
  • Sound processing inspired by various audio visualization projects
  • Special thanks to all contributors and testers

About

This is a voice based game. The more player screams the more player can achieve scores.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy