Skip to content

Server Simulates Logic of players #5

@3bhady

Description

@3bhady

In Server.js, for each room:

  • function Simulate() should iterate over the players.
  • Each player is moved by delta time and it's speed of moving from start of a block till the end of it.
  • If the new position will cause the player to jump cells then it should first iterate on each cell it would jump.
  • If the player was registered to move and the player reached the end of the cell:
    1. The player changes directions.
    2. Each user in the room receives either the grid or run length of the grid.

Metadata

Metadata

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions