IT201_Project01_Shival_Panchal
This program spawns colored boxes, in USA-themed colors. The user may choose to spawn boxes in red, white, or blue colors. Or, the user may choose the Fourth of July feature that spawns bursts of Red, white, and blue boxes. The boxes may fall off the platform if they overflow or collide.
- Feature 1: Mouse Position Identification
- Mouse Position Text: Identifies the position of the mouse in the image.
- Input: Mouse location
- Process: assign the mouse X, Y position to the object
- Output: Text is displayed in the upper corner showing the x and y coordinates of the mouse.
- Mouse Position Text: Identifies the position of the mouse in the image.
- Feature 2: Spawn objects
- Spawn boxes
- Input: Left click near the platform
- Process: Generates a box in the default color
- Output: The Default color (red) box is placed
- Spawn boxes
- Feature 3: Color changes.
- Red button: Switches the color of spawned boxes to red.
- Input: Left-click the button labeled “red.”
- Process: Switches the color of the boxes to red.
- Output: Red Boxes will spawn.
- Red button: Switches the color of spawned boxes to red.
- Blue button: Switches the color of spawned boxes to blue.
- Input: Left-click the button labeled “blue.”
- Process: Switches the color of the boxes to blue.
- Output: Blue boxes will spawn
- White Button: Switches the color of spawned boxes to white.
- Input: Left-click the button labeled “white.”
- Process: Switches the color of the boxes/Spawn type
- Output: White boxes will spawn
- Feature 4: Burst
- Fourth of July Button
- Input: left-click the fourth of July button
- Process: selects the option to spawn bursts of multicolor boxes
- Output: Bursts of Red, white, and blue boxes have spawned
- Fourth of July Button
- Feature 5 (Bonus feature): Physics
- Collision and gravity
- Input: boxes spawn too close/fall on each other/fall out of bounds
- Process: identifies what has occurred.
- Output: boxes that spawn too close will push against each other, taking up more space. Boxes that fall on each other will bounce. Boxes that fall back down will bounce. Boxes that move out of bounds of the platform will fall off.
- Collision and gravity
Published | 10 hours ago |
Status | Released |
Platforms | HTML5 |
Author | Shival Panchal |
Made with | Unity |