Migrating userId to "int32" to save some space and adding userMoves message in protobuf
This commit is contained in:
parent
4b55b54a07
commit
e9ca8721a6
31 changed files with 295 additions and 445 deletions
|
@ -6,10 +6,10 @@ import {Character} from "../Entity/Character";
|
|||
* Class representing the sprite of a remote player (a player that plays on another computer)
|
||||
*/
|
||||
export class RemotePlayer extends Character {
|
||||
userId: string;
|
||||
userId: number;
|
||||
|
||||
constructor(
|
||||
userId: string,
|
||||
userId: number,
|
||||
Scene: GameScene,
|
||||
x: number,
|
||||
y: number,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue