diff webGL/dandy/resources/Character.js~ @ 9:1d76f5717ba7

upload dandy4.html
author NOBUYASU Oshiro
date Sat, 10 Jul 2010 16:38:10 +0900
parents 03b67cd2bde7
children 680b5b0cd1e4
line wrap: on
line diff
--- a/webGL/dandy/resources/Character.js~	Fri Jul 09 01:48:59 2010 +0900
+++ b/webGL/dandy/resources/Character.js~	Sat Jul 10 16:38:10 2010 +0900
@@ -15,6 +15,7 @@
 {
     this.x=0;
     this.y=0;
+    this.scale=1.0;
     this.dx=0;
     this.dy=0;
     this.w=0;
@@ -61,9 +62,7 @@
 
     // generate the model-view matrix
     var mvMatrix = new CanvasMatrix4();
-    mvMatrix.scale(1, 1, 1);
-    mvMatrix.translate(0,0,0);
-    mvMatrix.rotate(180, 0,0,1);
+    mvMatrix.scale(jiki.scale, jiki.scale, jiki.scale);
     mvMatrix.translate(glObj.x,glObj.y,10);
     
     // construct the normal matrix from the model-view matrix