Visit http://bomberman.videumcodeup.se/
Register your name here http://bit.ly/1CI9x2T
Your character will not be able to do anything, you'll have to write the code that controls your character yourself.
Press Ctrl+E
to open the editor. Press Ctrl+S
to save and close the editor.
See the API below for learning what you can make your character do.
This is the API for the server-side version of Bomberman. Written by Andreas Lundahl and Kevin Sjöberg.
Commands are sent as JSON over WebSockets.
Request to start moving the Bomberman in the given direction.
directions: "up", "down", "left", "right"
{"command": "start-movement", "arguments": ["up"]}
Request to stop moving the Bomberman.
{"command": "stop-movement", "arguments": []}
Request to place a bomb at the tile of where the Bomberman stands.
{"command": "place-bomb", "arguments": []}
The stream from the server will contain transactions to the game state in the following form:
[{"id":"some-id","coll":"some-collection","type":"add","value":{"some key": "some value"}]
This means that the value {"some key": "some value"}
will be added to the collection some-collection
, with the id some-id
.
Retractions look like this:
[{"id":"some-id","coll":"some-collection","type":"retract"}]
However, the first message that will be sent from the server contains your player id, like this:
{"id":"some-id"}