Created
March 30, 2013 17:37
-
-
Save Sailias/5277596 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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