This Unity application is an interactive 3D scene where users can spawn cubes onto a ground surface using mouse clicks. Users can customize cube color, size, and ground texture through UI dropdowns and a slider. A special Fourth of July mode allows for festive spawning of red, white, and blue cubes in bursts. There's a toggle to switch between mouse-based and random-position cube spawning. The app also includes a 30-second timer after which the screen is covered. While not implemented yet, I set up a reset switch to add for the future. 


Original Features: 

  • 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.
  • Feature 2: Spawn objects
  • Spawn boxes: Boxes appear on or near the platform. 
    • Input: Left click near the platform
    • Process: Generates a box in the default color
    • Output: The Default color (red) box is placed
  • 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.
  • 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
  • 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. 

New Features

  • Feature 6: Timer
    • Timer: Text displays about of time left.
      • Input: System time (no user input)
      • Process: Counts down from set time.
      • Output: At zero, the screen turns black
  • Feature 7: Background changer
    • Flag changer: A dropdown menu allows for the user to select a background.
      • Input: User selects a desired background.
      • Process: updates the background image depending on what is chosen
      • Output: the background is changed.
  • Feature 8: Floor Changer
    • Switches between floor styles
      • Input: A dropdown menu allows users to select a desired floor.
      • Process: updates the floor texture/color depending on what is chosen.
      • Output: Floor texture/color is changed.
  • Feature 9: Cube Size Changer
    • Cube size changer
      • Input: A slider allows the user to select the size of the spawned object.
      • Process: Scale of the cube is modified based on the slider value.
      • Output: The next spawned cube appears at the chosen size.
  • Feature 10: Random Position Toggle
    • Cubes can spawn in random positions on the ground.
      • Input: User selects the check box, or unselects it.
      • Process: Switches from raycast-based spawning to randmized position.
      • Output: cubes will spawn either in random positions, or precisely where the cursor is located.

Updated 8 days ago
Published 10 days ago
StatusReleased
PlatformsHTML5
AuthorShival Panchal
Made withUnity