Reflection
Context
The gameplay has been made in 3h for Trijam #71 on the theme Lasers. Then I reworked the prototype during 3h more to add graphics assets.
Game Objective
The objective of the game is to hit the target with the laser. To do so you can move mirrors by drag and drop. You can also change the rotation of the mirror to change the laser direction.
Download
Download NowName your own price
Click download now to get access to the following files:
Trijam - Lasers - Windows.zip 21 MB
Trijam - Lasers - 3h build 10 MB
Comments
Log in with itch.io to leave a comment.
Very well done!
How did you implement the lasers / mirrors in Unity?
Thanks :)
Actually it's pretty simple : you create raycast forward and add a point to a line renderer when the raycast hit something. If you hit a miror you can use "Vector2.Reflect" to get a new ray to create a point i the line renderer and so on.
I hope it helps !
Sweet! Great job!