Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

no message

  • Loading branch information...
commit f2e5dabc4021c93a04dcec877c0593dd0f107e5c 1 parent e097675
Robbert Streng authored October 11, 2011

Showing 1 changed file with 7 additions and 15 deletions. Show diff stats Hide diff stats

  1. 22  index.html
22  index.html
@@ -58,6 +58,7 @@
58 58
 			var m2t;
59 59
 			var miniMe;
60 60
 			var control;
  61
+			var drawInfoCanvas = false;
61 62
 			
62 63
 			function init(){
63 64
 				
@@ -98,14 +99,13 @@
98 99
 			function updateFrame()
99 100
 			{
100 101
 				map.update();
101  
-				map.draw();
  102
+				map.draw( drawInfoCanvas );
102 103
 				var dir = control.getDirection();
103 104
 				
104 105
 				if( dir<8 )
105 106
 				{
106 107
 					// console.log( "dir="+dir );
107  
-					document.getElementById( 'dir'+dir ).checked = true;
108  
-					miniMe.mover._moveInRequest = true;
  108
+					miniMe.mover.setRequested( true );
109 109
 					if( miniMe.mover.isSnapped() )
110 110
 					{
111 111
 						miniMe.play();
@@ -125,18 +125,10 @@
125 125
 			
126 126
 		</script>
127 127
 	</head>
128  
-	<body onLoad="init()">
129  
-	<canvas style="position:absolute" id="floor" width="200" height="200" >your browser does not support the canvas tag </canvas>
130  
-	<canvas style="position:absolute" id="item" width="200" height="200" >your browser does not support the canvas tag </canvas>
131  
-	<canvas style="position:absolute" id="info" width="200" height="200" >your browser does not support the canvas tag </canvas>
  128
+	<body style="overflow-x:hidden;overflow-y:hidden;" onLoad="init()">
  129
+	<canvas style="position:absolute" id="floor" width="2000" height="1000" >your browser does not support the canvas tag </canvas>
  130
+	<canvas style="position:absolute" id="item" width="2000" height="1000" >your browser does not support the canvas tag </canvas>
  131
+	<canvas style="position:absolute" id="info" width="2000" height="1000" >your browser does not support the canvas tag </canvas>
132 132
     <canvas id="m2t" width="64" height="32" >your browser does not support the canvas tag </canvas>
133  
-	<input type='checkbox' id='dir0' />
134  
-	<input type='checkbox' id='dir1' />
135  
-	<input type='checkbox' id='dir2' />
136  
-	<input type='checkbox' id='dir3' />
137  
-	<input type='checkbox' id='dir4' />
138  
-	<input type='checkbox' id='dir5' />
139  
-	<input type='checkbox' id='dir6' />
140  
-	<input type='checkbox' id='dir7' />
141 133
 	</body>
142 134
 </html>

0 notes on commit f2e5dab

Please sign in to comment.
Something went wrong with that request. Please try again.