Week 38 - AR Markerless Project

 

Balloon Pop

After the first project, we understood our low skill in unity would not allow us to make major projects in the limited time we have.

We started by looking at tutorials and discussing ideas.

We got inspired by an AR tutorial on LinkedIn Learning by Parth Anand.

We decided to repeat it with some changes.


Changes from original

Most important changes:
  • There is a spawner script that is tasked with spawning the balloons, in the tutorial they are spawned within Balloon Script.
  • Ballons spawn in random locations based on a 3D area, in the tutorial they are preassigned to randomly spawn in one of 20 points.
  • A lot of variables are made public to make testing easier (balloon spawn time, time of life of balloon, timer)
  • Balloon pop adds time to the timer


Game Rules & Game Loop

Balloons randomly spawns around the player.
If the player centers the camera on them, where the crosshair is, and presses shoot:
  • Ballon will be destroyed
  • A score (+1) will be added.
  • One second of playtime will be added.
If the baloon is not touched during 10 seconds, it will pop automatically 


After the timer runs out, the player is presented with the score and the option to Restart.


Enemies

Behold the vicious of enemies, the evil itself! The Balloons!

 

Scripts


We have four scripts, each tasked with its own responsibility

BalloonScript:
    Is tasked with randomly and slowly moving the balloon.
    Destroying the balloon instance after some time passed.

ShootScript:
    Is tasked with destroying the balloon.
    Adding time to the timer. 
    Adding a point to the score

SpawnScript:
    Is tasked with spawning the balloon in an area close to the camera.

TimerScript:
    Is tasked with counting down the time.
    Triggering game over screen.
    Resetting everything if the game is restarted.




Unity Project


Testing ballon spawning



The Scene


Canvas

Comments

Popular posts from this blog

Week 45 - VR Lab hours

Personal Reflections