Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup(){
- context.fillStyle="#000000";
- context.fillRect(0,0,canvas.width,canvas.height);
- context.fillStyle="#FFFFFF";
- context.fillStyle="16 px Tahoma";
- context.textBaseline = 'middle';
- context.textAlign = "center";
- context.fillText("Loading, please wait...",canvas.width/2,canvas.height/2)
- $(document).ready(function() {
- for(var i=0;i<2;i++)
- {$.getJSON('map'+i+'.json', function(data){
- mapData[i] = data;
- });
- wait(1000);
- }
- /*
- var i = 0;
- getJson(i);
- var getJson = function(i) {
- if (i < 2) {
- $.getJSON('map' + i + '.json', function(data) {
- mapData[i] = data;
- i++;
- getJson(i);
- }
- }
- }
- */
- //wait(10000);
- context.fillStyle="#000000";
- context.fillRect(0,0,canvas.width,canvas.height);
- });
- //setInterval("game();",1000/144);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement