robocybe - multiplayer hackable shooter

for mozilla hack jam, game from scratch in 24 hours

X
execute

about:

this is multiplayer game, where player can hack his robots code.

players input panel communicates with central server where robots are controlled from.

make your robot the best by changing his behaviour, improving AI or taking over direct control by mouse and keyboard.

it's your choice..

here is some code examples of the robots: random shooter, crazy runner, mouse controlled with prediction, maniac

help:

  • use input field to execute single line of code once.
  • use textfield to change code that executes every loop tick.
  • you can use any javascript, i mean ANY. It will 'eval' only on your client side, so you can brake only yourself, but results will be sent to server side and valid data will affect anything that you can affect.

functions:

moveTo(x, y)
shotAt(x, y)
setName(name)
respawn(x, y)

arrays:

enemies

objects:

me: { x, y, dead }
level: { width, height }
mouse: { x, y, click: { x, y } }
players

util functions:

len(x, y)
dist(sX, sY, tX, tY)
norm(x, y)

draw functions:

drawCircle(x, y, radius, stroke, fill)
drawRect(x, y, width, height, stroke, fill)
drawLine(sX, sY, dX, dY, stroke)

hints:

  • check any existing robots code examples and try hack it.
  • most functions with x and y variables, can use link object instead. like drawCircle(me, 10, '#0f0'), for drawLine use sLink and dLink.
loading