Welcome to the VR Moon Shooter game! This document outlines the game's features, gameplay mechanics, and scripts used in development. For further details, visit the GitHub repository: Akash3121/VR-Moon-Shooter.
In VR Moon Shooter, players explore the lunar surface, aiming to destroy asteroids to score points. The game leverages virtual reality to provide an immersive experience, making players feel like they are on the moon.
- Asteroid Destruction: Players can destroy incoming asteroids by shooting them.
- Asteroid Movement: Asteroids move and rotate, making them challenging targets.
- Scoring System: Players earn points for each asteroid destroyed.
- Dynamic Spawning: Asteroids spawn at random locations around the lunar surface.
- Immersive Controls: Utilizing VR controllers, players can navigate and interact with the game environment.
Handles the logic for destroying asteroids when they collide with bullets or the player's sphere.
OnTriggerStay
: Activates the sphere and destroys asteroids or bullets upon collision.
Controls the movement and rotation of asteroids.
maxSpeed
,minSpeed
: Define the speed range for asteroid movement.rotationalSpeedMin
,rotationalSpeedMax
: Define the rotation speed range.
Manages the spawning of asteroids within a defined lunar surface area.
spawnerSize
: Size of the spawning area.spawnRate
: Frequency of asteroid spawning.
Manages the bullet's behavior upon collision with asteroids.
OnTriggerEnter
: Triggers explosion effects and score updates on asteroid destruction.
Enables players to grab guns by pressing the respective buttons (button X on the left controller for the left gun, and button A on the right controller for the right gun).
Allows players to shoot bullets by clicking the index trigger on the gun. The bullets generated correspond to the respective controller.
Manages the game's scoring system.
AddScore
: Adds points to the score.UpdateScoreUI
: Updates the UI with the current score.
- Navigation: Use the VR controller's joystick to move around on the moon's surface.
- Grab Guns: Press button X on the left controller to grab the left gun, and button A on the right controller to grab the right gun.
- Shooting: Click the index trigger on the gun to shoot bullets at asteroids.
- Scoring: Earn points for each asteroid destroyed.
- Avoid Collisions: Maneuver to avoid colliding with asteroids.
For a more detailed breakdown of the scripts, assets, and updates, please refer to the GitHub repository: VR Moon Shooter on GitHub.
This documentation provides an overview of the VR Moon Shooter game, its key features, and the scripts used in its development. For any additional information or updates, please visit the provided GitHub link.