소스 검색

[ts] More test refactoring.

badlogic 7 년 전
부모
커밋
e6c2b75101
3개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 4
      spine-ts/webgl/tests/test-pma-tintblack.html
  2. 1 1
      spine-ts/webgl/tests/test.html
  3. 2 2
      spine-ts/webgl/tests/test2.html

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

@@ -84,8 +84,8 @@
 	var ivanShader = loadIvanShader(context, shader);
 	var ivanShader = loadIvanShader(context, shader);
 
 
 	var assetManager = new spine.webgl.AssetManager(context);
 	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();
 	var camMatrix = new spine.webgl.Matrix4();
 
 
@@ -95,8 +95,8 @@
 
 
 	function load () {
 	function load () {
 		if (assetManager.isLoadingComplete()) {
 		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);
 			requestAnimationFrame(render);
 		} else requestAnimationFrame(load);
 		} else requestAnimationFrame(load);
 	}
 	}

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

@@ -45,7 +45,7 @@ function init() {
 	swirlEffect.centerY = 200;
 	swirlEffect.centerY = 200;
 	swirlEffect.radius = 500;
 	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); };
 	var textureLoader = function(img) { return new spine.webgl.GLTexture(gl, img); };
 	input = new spine.webgl.Input(canvas);
 	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 shader = spine.webgl.Shader.newTwoColoredTextured(context);
 
 
 var assetManager = new spine.webgl.AssetManager(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();
 var camMatrix = new spine.webgl.Matrix4();
 
 
@@ -40,7 +40,7 @@ requestAnimationFrame(load);
 
 
 function load () {
 function load () {
 	if (assetManager.isLoadingComplete()) {
 	if (assetManager.isLoadingComplete()) {
-		texture = assetManager.get("assets/spineboy.png");
+		texture = assetManager.get("../example/assets/spineboy.png");
 		requestAnimationFrame(render);
 		requestAnimationFrame(render);
 	} else requestAnimationFrame(load);
 	} else requestAnimationFrame(load);
 }
 }