Przeglądaj źródła

[ts] More test refactoring.

badlogic 7 lat temu
rodzic
commit
e6c2b75101

+ 4 - 4
spine-ts/webgl/tests/test-pma-tintblack.html

@@ -84,8 +84,8 @@
 	var ivanShader = loadIvanShader(context, shader);
 
 	var assetManager = new spine.webgl.AssetManager(context);
-	assetManager.loadTexture("assets/spineboy.png");
-	assetManager.loadTexture("assets/spineboy-pma.png");
+	assetManager.loadTexture("../example/assets/spineboy.png");
+	assetManager.loadTexture("../example/assets/spineboy-pma.png");
 
 	var camMatrix = new spine.webgl.Matrix4();
 
@@ -95,8 +95,8 @@
 
 	function load () {
 		if (assetManager.isLoadingComplete()) {
-			texture = assetManager.get("assets/spineboy.png");
-			texturePma = assetManager.get("assets/spineboy-pma.png");
+			texture = assetManager.get("../example/assets/spineboy.png");
+			texturePma = assetManager.get("../example/assets/spineboy-pma.png");
 			requestAnimationFrame(render);
 		} else requestAnimationFrame(load);
 	}

+ 1 - 1
spine-ts/webgl/tests/test.html

@@ -45,7 +45,7 @@ function init() {
 	swirlEffect.centerY = 200;
 	swirlEffect.radius = 500;
 
-	assetManager = new spine.webgl.AssetManager(context, "assets/");
+	assetManager = new spine.webgl.AssetManager(context, "../example/assets/");
 	var textureLoader = function(img) { return new spine.webgl.GLTexture(gl, img); };
 	input = new spine.webgl.Input(canvas);
 

+ 2 - 2
spine-ts/webgl/tests/test2.html

@@ -30,7 +30,7 @@ mesh.setIndices(indices);
 var shader = spine.webgl.Shader.newTwoColoredTextured(context);
 
 var assetManager = new spine.webgl.AssetManager(context);
-assetManager.loadTexture("assets/spineboy.png");
+assetManager.loadTexture("../example/assets/spineboy.png");
 
 var camMatrix = new spine.webgl.Matrix4();
 
@@ -40,7 +40,7 @@ requestAnimationFrame(load);
 
 function load () {
 	if (assetManager.isLoadingComplete()) {
-		texture = assetManager.get("assets/spineboy.png");
+		texture = assetManager.get("../example/assets/spineboy.png");
 		requestAnimationFrame(render);
 	} else requestAnimationFrame(load);
 }