asim-shrestha / showdown

A 2D platformer battle royal made with Unity. Play against friends and foe through multiple "Showdowns" until one player is ultimately victorious.
3 stars 0 forks source link

#16 Gamemode laser #26

Open asim-shrestha opened 4 years ago

asim-shrestha commented 4 years ago

How it works overall is that there is a parent Laser script that deals laser speed, turning on and off, direction etc. Then there are two child classes Rotation Laser and Translation Laser that inherit Laser and just handle rotating or translating the laser. For the translation laser, there is a Laser Bound class that will change the direction of the translation laser once the translation laser touches it

Closes #16

seannam1218 commented 4 years ago

There is a bug where when the host dies, the laser animation doesn't show fully on the client's screen. I think it also applies vice versa. Here are some screenshots:

vlcsnap-2020-09-21-05h19m30s280 vlcsnap-2020-09-21-05h19m45s472

seannam1218 commented 4 years ago

Another bug I found is when the host dies, the host sprite is still visible from the client's perspective.