Dylan DiPalma IT201-018 Project 1
Dylan DiPalma - IT201-018 - Project 1
Left click: Spawn projectile
Features:
- Display mouse position and button states as text
- Input: Mouse location and button states
- Process: Format the information nicely into a string and set the text element’s value
- Output: Text is displayed at the top of the screen showing mouse position and which mouse buttons are currently pressed
- Shoot projectile
- Input: Mouse left-click
- Process: Determine mouse position, convert into world coordinates, instantiate selected object type, add ObjectHandler script component, and set chosen projectile speed
- Output: An object is spawned where the mouse is clicked and moves forward at a given speed
- Change projectile
- Input: Dropdown menu
- Process: Store the selected option and allow the spawning logic to instantiate that type of object
- Output: The selected option sets the shape of the projectile to be shot
- Change speed
- Input: Slider
- Process: Store the slider value and allow the spawning logic to instantiate the projectile with that speed
- Output: The speed of the projectiles will be set to the value of the slider