VilmaNilsson / VIP2021-game

A Real Time Web Based Pervasive based game.
2 stars 1 forks source link

Shake action (meteor shower) #115

Closed petterekedahl closed 3 years ago

petterekedahl commented 3 years ago

Getting some eslint errors in components/teams.js and in actions/actions.js on places that I've not been working, so I left it as is.

If the player reload the browser the "shaking" effect fades, but I've added (and deleted when it fades) a property in the game.teams object (just the affected team) which we could use to see if the action is active or not. I just didn't know where to put the logic for that to happen.

(Property name is: "game.teams.properties.shaking = true" (row 24 and 32 in "team-shake-screen.js")