Skip to content

JSON Object Documentation

iameli edited this page Nov 17, 2012 · 9 revisions

Documentation for the JSON object.

engine

Game engine. All clients should get almost all of their information from here.

engine.gameRunning integer

Whether or not the game is running. During the initial connection phase this will be set to false, when the game has started it will be set to true.

engine.lastUpdated integer

engine.timeElapsed integer

engine.turrets

engine.turrets.[key].owner

engine.turrets.[key].position

engine.turrets.[key].rotation

engine.turretBullets

engine.turretBullets.[key].owner

engine.turretBullets.[key].position

engine.turretBullets.[key].rotation

engine.fireballs

engine.fireballs.[key].position

engine.fireballs.[key].rotation

engine.minions

engine.minions.[key].position

engine.minions.[key].rotation

engine.batteries

engine.batteries.[key].position

engine.batteries.[key].rotation

engine.player

engine.player.energy

engine.player.position

engine.player.rotation

engine.eyeballs

engine.eyeballs.[deviceID].position

engine.eyeballs.[deviceID].rotation

engine.platforms

engine.platform.rows

engine.platform.columns

engine.platforms.deletedTiles list

phones

phones.[deviceID].score

phones.[deviceID].lastUpdated

phones.[deviceID].position

phones.[deviceID].rotation

phones.[deviceID].requests

phones.[deviceID].requests.minions

phones.[deviceID].requests.minions.[requestID].timeCreated

phones.[deviceID].requests.minions.[requestID].position

phones.[deviceID].requests.minions.[requestID].rotation

phones.[deviceID].requests.fireballs

phones.[deviceID].requests.fireballs.[requestID].timeCreated

phones.[deviceID].requests.fireballs.[requestID].position

phones.[deviceID].requests.fireballs.[requestID].rotation

phones.[deviceID].requests.objectPlacement

This is used for sending requests to resposition objects in the world.

phones.[deviceID].requests.objectPlacement.[objectID].timeCreated

phones.[deviceID].requests.objectPlacement.[objectID].type string

The only object type we have so far is "turret"

phones.[deviceID].requests.objectPlacement.[objectID].position

phones.[deviceID].requests.objectPlacement.[objectID].rotation

web

web.twitter

web.twitter.activeEffect string

The end result of a Twitter vote is to change this node. Its starting value is "none". Potential values: "robotBuff", "eyeballBuff"

web.twitter.activeVote

Null if there's no vote going.

web.twitter.activeVote.startTime

web.twitter.activeVote.hashtags list

This will just be a constant, currently set to ['#vichargame #robot", "#vichargame #eye"]

web.twitter.activeVote.votes

web.twitter.activeVote.votes.eye

web.twitter.activeVote.votes.robot

Clone this wiki locally