Skip to content

Instantly share code, notes, and snippets.

@Sailias
Created March 30, 2013 17:37
Show Gist options
  • Save Sailias/5277596 to your computer and use it in GitHub Desktop.
Save Sailias/5277596 to your computer and use it in GitHub Desktop.
window.startVisualization = () ->
$('#tic_value').html("0")
$('#tic_planets').html("0")
$('#total_planets').html("0")
# Initialize the map
visualizer.map.init()
schemaverse.getPlayers () ->
# Get the initial planet data
schemaverse.getPlanets((planetData) ->
# Set the map bounds and more map initialization stuff
visualizer.map.setXY(planetData)
# Draw all the planets for the first time
visualizer.drawPlanets(planetData)
# Get all the players
schemaverse.getPlayers () ->
# Once the players have loaded, start going through the tics
schemaverse.getTic () ->
schemaverse.active = true
# The starting tic to start mapping
schemaverse.mapTic(380)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment