changing map size
This commit is contained in:
parent
f8d2352704
commit
adca961f40
|
@ -45,7 +45,7 @@
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
#sliderWrapper {
|
#sliderWrapper {
|
||||||
width: 980px;
|
width: 920px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -95,8 +95,10 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="header"><img src="top.png"></div>
|
<div id="header"><img src="top.png"></div>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<img id="map" src="map.jpg" width="980" height="500">
|
<div id="container">
|
||||||
<canvas id="canvas" width="980" height="500"></canvas>
|
<img id="map" src="map.png" width="980" height="490">
|
||||||
|
<canvas id="canvas" width="980" height="490"></canvas>
|
||||||
|
</div>
|
||||||
<div id="timer"></div>
|
<div id="timer"></div>
|
||||||
<div id="slider">
|
<div id="slider">
|
||||||
<div id="sliderWrapper">
|
<div id="sliderWrapper">
|
||||||
|
|
|
@ -2,7 +2,7 @@ var currentTime = 60*(24*1+10.4);
|
||||||
var clients = [];
|
var clients = [];
|
||||||
var context;
|
var context;
|
||||||
var width = 980;
|
var width = 980;
|
||||||
var height = 500;
|
var height = 490;
|
||||||
var gridSize = 3;
|
var gridSize = 3;
|
||||||
var nearFieldRadius = 30;
|
var nearFieldRadius = 30;
|
||||||
|
|
||||||
|
@ -37,28 +37,6 @@ function init() {
|
||||||
clients[index] = {point:undefined, x:0, y:0, r:0, x0:0, y0:0, r0:0, index:index, lastEvent:0};
|
clients[index] = {point:undefined, x:0, y:0, r:0, x0:0, y0:0, r0:0, index:index, lastEvent:0};
|
||||||
random[index] = Math.random();
|
random[index] = Math.random();
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
var menu = $('#menu');
|
|
||||||
for (var i = 2; i < 16; i++) {
|
|
||||||
(function () {
|
|
||||||
var time = i*6*60;
|
|
||||||
var d = Math.floor(i/4);
|
|
||||||
var h = (i % 4)*6;
|
|
||||||
var node = $('<span class="button">T'+d+' '+h+':00</span>');
|
|
||||||
node.click(function () {
|
|
||||||
currentTime = time;
|
|
||||||
jump = true;
|
|
||||||
start();
|
|
||||||
})
|
|
||||||
menu.append(node);
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
var node = $('<span class="button">Stop</span>');
|
|
||||||
node.click(stop);
|
|
||||||
menu.append(node);
|
|
||||||
*/
|
|
||||||
|
|
||||||
var index = -1;
|
var index = -1;
|
||||||
for (var time = -60; time <= (4*24+1)*60; time++) {
|
for (var time = -60; time <= (4*24+1)*60; time++) {
|
||||||
|
|
Loading…
Reference in New Issue