Skip to content

This repository will be used to develop a rain generator, actually it use white noises to simulate wind and have an integrated thunderstorm simulator.

License

Notifications You must be signed in to change notification settings

azuletto/rain_generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GenRainpy a Rain Simulator with Python

Python pygame

🌧️ A simple yet immersive rain and thunderstorm simulator built with Python and pygame. The project features dynamic lightning effects, realistic thunder sounds, and procedurally generated rain noise for an atmospheric experience.


✨ Features

  • Lightning Effects: Flashes of light simulating real lightning strikes.
  • Thunder Sounds: Plays random thunder sounds with adjustable volume.
  • Rain Noise: Procedurally generated background rain sounds with smooth transitions.
  • Interactive Controls:
    • Adjust volume for thunder, rain, and raindrop effects.
    • Change storm intensity levels (Low, Medium, High).
    • Toggle fullscreen mode.

🛠️ Installation

  1. Clone the repository:

    git clone https://github.com/azuletto/rain_generator
    cd thunderstorm_main
  2. Install the required dependencies:

    pip install pygame numpy sounddevice scipy
  3. Run the application:

    python thunderstorm_simulator.py

🎮 Usage

  • Change Intensity: Use the on-screen menu to switch between Low, Medium, and High intensity levels.
  • Toggle Fullscreen: Press F to enter or exit fullscreen mode.
  • Adjust Volume: Use the interactive modal to fine-tune sound levels.

⚙️ How It Works

  • Visuals:
    • pygame is used to create dynamic flashes representing lightning.
  • Audio:
    • Rain sounds are generated procedurally using numpy and scipy.
    • Thunder sounds are loaded and played randomly.
  • Interactive Menu:
    • Adjustable sound sliders and storm intensity controls implemented with pygame events.

🤝 Contributing

Feel free to submit issues or fork the repository to improve this project. Contributions are always welcome!


📄 License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

This repository will be used to develop a rain generator, actually it use white noises to simulate wind and have an integrated thunderstorm simulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages