Wendy-Nam / RenPy-ShootingGamePlugin-FPS

Add an exciting FPS mini-game to your Ren'Py visual novel with this versatile shooting game plugin.
Creative Commons Zero v1.0 Universal
6 stars 0 forks source link

Open Source Love License: CC0-1.0

Shooting Game Plugin for Ren'Py (FPS)

Please enter a title_-003

Welcome to the Shooting Game Plugin for Ren'Py!

This plugin enables you to seamlessly integrate an immersive first-person shooting mini-game into your Ren'Py visual novel.

This readme provides a detailed guide on how to use the plugin, along with explanations and examples.

ezgif com-crop

šŸ”« Game Rules

In this first-person shooter game, players take on the role of a hunter. The game's key features include:

āœØ How to Use

  1. Integration: To integrate the shooting game into your Ren'Py project, follow these steps:

    1. Copy the entire hunt directory into your project's root directory (game/).

    2. Add the following integration code to your script.rpy file where you want the game to start:

    label start:
       "Hunting Game"
       window hide
       $ my_game_config = GameConfig(target_nb=4, time_limit=15, life_max=5, round_nb=4, bullet_max=20)
       $ hunt = HuntingGame(my_game_config)
       $ hunt.run()
       scene black
       "Finish Hunting"

    Make sure to adjust the GameConfig parameters as needed.

  2. Customization

    • The game's behavior can be customized using the GameConfig class in the provided code.
    • You can adjust settings such as target image names, paths, numbers, time limits, life count, and more.
  3. Replacing Default Images

    • The plugin uses default images for elements like bullets, crosshairs, weapons, and hearts.
    • To replace these images:
    1. Swap the default images in the hunt/imgs directory with your own images, ensuring they have the same dimensions and formats.

    2. Update the image paths in the GameConfig class accordingly.

      • For example, if you replace the bullet image, update the IMG_BULLET and IMG_BULLET_EMPTY paths in the GameConfig class.

šŸ‘€ Example Usage

Suppose you want to create a shooting game with different parameters:

Here's how you can achieve this:

label start:
    "Hunting Game"
    window hide
    $ custom_game_config = GameConfig(target_img_path="images/custom_targets/", target_img_name='custom_target_', target_nb=6, time_limit=20, life_max=3, round_nb=5, bullet_max=25)
    $ hunt = HuntingGame(custom_game_config)
    $ hunt.run()
    scene black
    "Finish Hunting"

šŸšØ Note

To ensure proper functionality, adhere to the following:

Enjoy creating an engaging shooting mini-game for your Ren'Py visual novel! If you have questions or need assistance, feel free to reach out.

License

This Shooting Game Plugin for Ren'Py is provided under the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication license. You can find a copy of the license in the LICENSE file.

This means you are free to use, modify, and distribute the plugin for any purpose, even commercially, without requiring attribution.

šŸŽ–ļø Image Credits