diff webGL/dandy/dandy4.html @ 13:4684e849866c

upload
author NOBUYASU Oshiro
date Sat, 17 Jul 2010 01:26:32 +0900
parents 61febc94fa62
children a2b31fe50d9d
line wrap: on
line diff
--- a/webGL/dandy/dandy4.html	Thu Jul 15 07:08:37 2010 +0900
+++ b/webGL/dandy/dandy4.html	Sat Jul 17 01:26:32 2010 +0900
@@ -135,6 +135,7 @@
 				ctx.perspectiveMatrix = new CanvasMatrix4();
 			        ctx.perspectiveMatrix.lookat(0,0,-60, 0, 0, 0, 0, 1, 0);
 				ctx.perspectiveMatrix.ortho(ortho.left, ortho.right, ortho.top, -ortho.bottom, 0, 10000);
+//				ctx.perspectiveMatrix.ortho(-600, 600, 600, -600, 0, 10000);
 			}
 			
 
@@ -149,7 +150,7 @@
 			        Player(ctx, jiki, pad, ortho);
 
 			        obj_draw(ctx);
-
+			
 			        PutBom(ctx);
 			        pause();
 
@@ -190,6 +191,10 @@
 			}
 			function start()
 			{
+//			        event.onkeydown = keydown;
+//			        event.onkeypress = keypress;
+//			        event.onkeyup = keyup;
+
                			var ortho = makeOrthoPara(0,200,140,0);
 
 				var c = document.getElementById("example");
@@ -217,7 +222,8 @@
 			}
 			</style> 
 	</head> 
-	<body onload="start()" onkeydown="keybordDown()" onkeypress="keybordPress()" onkeyup="keybordUp()" style='overflow:hidden'> 
+	<body onload="start()" onkeydown="keybordDown()" onkeypress="keybordPress()" onkeyup="keybordUp()" style='overflow:hidden'>
+<!--<body onload = "start()" style='overflow:hidden'> -->
 		<canvas id="example"> 
 			There is supposed to be an example drawing here, but it's not important.
 		</canvas>