Skip to content
This repository was archived by the owner on Jun 12, 2019. It is now read-only.
This repository was archived by the owner on Jun 12, 2019. It is now read-only.

Player should send his initial location to the server before moving #21

Description

@gioragutt

Currently, due to how I prevent the client from spamming the server with data even if the player doesn't move, when the game starts, the player's position is 0,0,0 until he moves.

This is done in Assets/Scripts/Game/ColyseusLocalPlayer.cs. A simple boolean flag of wasSentAlready or something like that would suffice.

In order to test this:

  1. Open two clients
  2. Join the lobby
  3. Start the game
  4. One client should move
  5. That client should see the second client without him moving (and in turn sending his position).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclient-sideThis issue is related to something on the client sidecolyseusThis issue is related to colyseus client-server communication

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions