Nyra Studios
Manual under construction. Some parts are incomplete or may change.

The list of messages

Nyra 0.5.4.28

From the client to the server

typeFieldsMode
registerusername, email, passwordall
loginidentifier, passwordall
move-inputdx, dy (the sign counts; one step on a single axis)tile
face-inputfacing (0, 90, 180, 270)tile
input-stateplatform: left, right, jump, run. 8 directions: left, right, up, down, runplatform, 8 directions
input-anglemoving, angle, run8 directions

From the server to the client

typeMain fieldsTo whom
register-successusernamewhoever registers
auth-errorcontext, reason, message (sometimes)whoever got it wrong
welcomesee the Sign in and registration pagewhoever gets in
player-joinedplayerId, username, x, y, plus facingthe others already inside
player-movedit depends on the modeeveryone
player-turnedplayerId, facingeveryone, in tile
player-disconnectedplayerIdthe others
move-rejectedreason (in-transition, out-of-bounds, blocked)whoever sent the step, in tile
face-rejectedreason (in-transition)whoever sent the facing, in tile
disconnectreasonthe connection about to close

Reserved messages

The game-event and level-change messages have a shape already decided, but the server does not send them today. If your client receives them in the future, it finds them as new types.