We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message type and JSON data with a well-defined structure.
emit("type", {"key": "value"})
Client -> Server "join", { "nick": "Player nickname", "color": "#rrggbb", "armaturae": "mirmillo" } Server -> Client (actor:spawn|Error)
Client -> Server "input:press", { "type": "up" }
Client -> Server "input:release", { "type": "primary" }
Available types:
up
down
left
right
primary
secondary
ternary
taunt
dash
lockDirection
Server -> Client "actor:update", { "id": "UUID", "changes": { "x": 10, "y": 0, "direction": "east" } }
create
remove
update
# An arrow is shot and hits a player "actor:create", { "id": "arrow_id", "x": 0, "y": 0 } "actor:update", { "id": "arrow_id", "x": 0, "y": 10 } // ... "actor:update", { "id": "player_id", "reason": "hit", "health": 20, "armor": 10 } "actor:remove", { "id": "arrow_id" }
Server -> Client "worldstate", { "actors": [ { "id": "UUID", "type": "player", "nick": "Nickname", "x": 0, "y": 0, "direction": "north", "armaturae": "mirmillo" // ... } { "type": "wall", "x": 32, "y": 64, } ] }
Server -> Client "error", { "type": "InvalidNickname", "message": "Nickname is already in use" }
The text was updated successfully, but these errors were encountered:
Assignee removed
Sorry, something went wrong.
mentioned in commit fd9a7653bdebe54010e5d9c3fb3904b1ffbedd03
No branches or pull requests
Format of messages
Message type and JSON data with a well-defined structure.
Client Join
Client input
Available types:
up
,down
,left
,right
primary
,secondary
,ternary
taunt
dash
lockDirection
Actor events
Available types:
create
remove
update
Examples
World state
Errors
The text was updated successfully, but these errors were encountered: