From 62f4327f9b83760e52a1f6bf1e689b1e0a780fbb Mon Sep 17 00:00:00 2001 From: hwc487 Date: Fri, 23 Mar 2012 17:15:28 -0700 Subject: textures --- js/lib/rdge/texture.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/lib/rdge') diff --git a/js/lib/rdge/texture.js b/js/lib/rdge/texture.js index 28dc868a..c72864b8 100644 --- a/js/lib/rdge/texture.js +++ b/js/lib/rdge/texture.js @@ -207,6 +207,7 @@ function Texture( dstWorld ) width = this.nextHighestPowerOfTwo( width ); height = this.nextHighestPowerOfTwo( height ); } + width = 64; height = 64; // create a canvas to be used as the image for the texture map var doc = srcCanvas.ownerDocument; @@ -246,6 +247,10 @@ function Texture( dstWorld ) var nBytes = width*height*4; for (var i=0; i 1000) nPrint = 1000; + for (var i=0; i