Babylon.js Browser MMO - DevLog #4 - Simple player movement by HTTP polling

Maiu - Jan 5 - - Dev Community

Hello!
Finally something starts to happening :) We have some action! Player can move around on the map. Long story short it works in a way that player is sending state (walk/idle) and the facing direction to the server. Server engine is responsible for calculating new position every loop tick.

Client UI updates are performed by HTTP polling. Every 200ms client it calling HTTP endpoint for getting player position and new position is rendered on the screen.

If you're interested in the implementation details please check my video:

. . . . . . . . . . . . . . . . . . . . . . . . . .