Skip to content

videumcodeup/bomberman-api-documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

VideumCodeup Bomberman

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.

API

This is the API for the server-side version of Bomberman. Written by Andreas Lundahl and Kevin Sjöberg.

Commands

Commands are sent as JSON over WebSockets.

start-movement

Request to start moving the Bomberman in the given direction.

directions: "up", "down", "left", "right"

{"command": "start-movement", "arguments": ["up"]}

stop-movement

Request to stop moving the Bomberman.

{"command": "stop-movement", "arguments": []}

place-bomb

Request to place a bomb at the tile of where the Bomberman stands.

{"command": "place-bomb", "arguments": []}

Stream

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"}

About

API documentation for Bomberman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published