RyanLinrm / CSC473Project

A HTML5 Game developing project
4 stars 4 forks source link

Synchronize damage to players #151

Closed nmaswood98 closed 5 years ago

nmaswood98 commented 5 years ago

We need to synchronize the damage to the players in the database. By adding the damage to the player

nmaswood98 commented 5 years ago

I added a damage property to the player in the database. I then made the value of the damage in game of the players to be the same as the one in the database

nmaswood98 commented 5 years ago

when players get damage the player then changes its own damage in the database which synchronizes it across the players. The HUD now shows the correct health of each player