SylvanSign / pirates

☠️
1 stars 1 forks source link

Hit registration #31

Open SylvanSign opened 7 years ago

SylvanSign commented 7 years ago

Also flash when taking a hit: https://phaser.io/docs/2.6.2/Phaser.Camera.html#flash could be an easy placeholder for hit animations

maybe add a bit of camera shake when getting hit and/or shooting too

SylvanSign commented 7 years ago

After discussion, let's try having each client detect collisions it makes with other ships and signal the server. Server will flag that object as having received a hit and the respective client will flash and take damage accordingly.