Dylan DiPalma IT201-018 Project 4
Dylan DiPalma IT201-018 Project 4
This project adds a menu where a user can choose one of the three projects to play, see a description and thumbnail of each, and return to the menu by pressing ESC in any game. This iteration also cleans up the organization of the assets directory (by putting prefabs in their own folder and separating the scripts for each project) and cleans up code by adding descriptive comments and fixing a few bugs.
-----------------------------------------------------------
Features: All features in this project are listed below:
- Feature 1: Display mouse position and button states as text
- Input: Mouse location and button states
- Output: Text is displayed at the top of the screen showing mouse position and which mouse buttons are currently pressed
- Feature 2: Shoot projectile
- Input: Mouse left-click
- Output: An object is spawned where the mouse is clicked and moves forward at a given speed
- Feature 3: Change projectile
- Input: Dropdown menu
- Output: The selected option sets the shape of the projectile to be shot
- Feature 4: Change speed
- Input: Slider
- Output: The speed of the projectiles will be set to the value of the slider
- Feature 5: UI background color change
- Input: Left click on UI background
- Output: Semi-transparent background cycles between a series of colors
- Feature 6: Countdown Timer
- Input: Current game time
- Output: Stopwatch-style timer that counts down 30 seconds
- Feature 7: Target spawning
- Input: Current running game time, round number
- Output: A new target cube with an emissive material, movement direction, and speed is spawned
- Feature 8: Score
- Input: Projectile colliding with target and amount of time projectile was moving
- Output: Adding points to the score and changing the Score text to display the new score
- Feature 9: Scattershot
- Input: Right click
- Output: If scattershot hasn't been used yet, a cluster of smaller projectiles is shot out
- Feature 10: Choose a shooter
- Input: UI dropdown menu
- Output: The chosen shooter prefab is spawned and follows the cursor (slingshot or blaster)
- Feature 11: Target animations
- Input: Keyboard keys 0-3 (and at start)
- Output: Targets begin playing the chosen animation (0 = None, 1 (at start) = pulse, 2 = flash, 3 = morph)
- Feature 12: Shooter animations
- Input: Left or right click
- Output: Blaster/slingshot plays a loading/pullback animation when holding button, then plays shooting animation when button is let go. Projectile is shot at the end of this shooting animation
- Extra feature 13: Show/hide directions
- Input: UI toggle button/checkbox
- Output: Shows or hides the directions on the UI sidebar
- Extra feature 14: Timer speed up
- Input: Hold right click on timer
- Output: Timer speed increases to 3x, timer moves faster