🎉 Initial Commit

* Integrates Colyseus Server
* Implements Basic Player movement
* Player Remove/Update Events
This commit is contained in:
Indrajith K L
2020-06-29 03:14:32 +05:30
commit ffd6706cb0
18 changed files with 302 additions and 0 deletions

21
source/models/Player.hx Normal file
View File

@@ -0,0 +1,21 @@
//
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY
// DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
//
// GENERATED USING @colyseus/schema 0.5.39
//
package models;
import io.colyseus.serializer.schema.Schema;
class Player extends Schema
{
@:type("number")
public var x:Dynamic = 0;
@:type("number")
public var y:Dynamic = 0;
@:type("string")
public var name:String = "";
}

15
source/models/State.hx Normal file
View File

@@ -0,0 +1,15 @@
//
// THIS FILE HAS BEEN GENERATED AUTOMATICALLY
// DO NOT CHANGE IT MANUALLY UNLESS YOU KNOW WHAT YOU'RE DOING
//
// GENERATED USING @colyseus/schema 0.5.39
//
package models;
import io.colyseus.serializer.schema.Schema;
class State extends Schema
{
@:type("map", Player)
public var players:MapSchema<Player> = new MapSchema<Player>();
}