Wolfos

Members
  • Content Count

    4
  • Joined

  • Last visited

  1. Thanks. That did occur to me once but apparently I didn't verify it. Not used to asset loading being asynchronous.
  2. Yeah, so apparently the builtin webserver doesn't serve JSON files. You can get around this by modifying the web.config file. Pretty stupid, but has nothing to do with Phaser.
  3. So I got this whole tile renderer, that I think should work (followed the docs pretty closely) but it doesn't. So I put together some minimal code to render an image to a renderTexture and that doesn't work either (nothing in the log, just doesn't work). This code doesn't work: var renderTexture = new PIXI.RenderTexture(1024, 1024);var sprite = new PIXI.Sprite(renderTexture);stage.addChild(sprite); var texture = PIXI.Texture.fromImage("Assets/Sprites/Image.png");var textureSprite = new PIXI.Sprite(texture);renderTexture.render(textureSprite);But rendering text to the RenderTexture (as in this blog post) works just fine, as well as just rendering the image to the stage directly. What am I doing wrong here? EDIT: It seems that the RenderTexture example uses Pixi 1.2.0, which is almost 2 years old. Can anyone confirm RenderTextures being broken in the latest release?
  4. I'm trying to load a tilemap, and while the images all load fine, every time I try to load the map.json file it just returns a 404 error. I have no idea how Typescript's testing environment gets it's resources, because it doesn't matter if I set it to 'copy always' or just 'don't copy', it always finds the PNG files, never the json. Using Typescript in the latest Visual Studio 2013.