MigDinny / EngageX

IHC (human-computer interaction) project - Multiplayer mini-game made with Phaser 3 with an HTML5 client and Python Server.
3 stars 1 forks source link

General improvments #34

Closed EdgarTip closed 1 year ago

EdgarTip commented 1 year ago

Solves #17 with a minor bug. The player deals 10 damage to the enemy and receives 20xp for doing so. If he kills the enemy then he receives +50xp.

The bug happens when player 1 and 2 are in the same cell and player 1 choses to move away from the cell and player 2 choses the fight option, player 2 fighting action doesnt do anything (because player 1's coordinates already have been updated in the server). If the same situation happens but player 2 is the one running away and player 1 attacks then player 2 does suffer 10 damage and player 1 gains xp. This can be fixed by recording all the players positions right before the server begins to read the packets sent in the current tick.

Apparently also has map updates that weren't merged in the last pull request?? Not sure what happened here.