TanPhi

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. problem solved. i don't know why, my phaser.min.js was wrong
  2. I have followed the tutorial https://phaser.io/examples/v2/tile-sprites/tiling-sprite-atlas-32x32 The phaser example webpage works but when I test it on my localhost, I have this error: [.Offscreen-For-WebGL-0x1f024f3ff800]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
  3. Thank you. I have always the same issue: the whole image is displayed and no message in the console. And with w:15 and h:15 it works... json: {"frames": { "road":{ "frame": {"x":0,"y":0,"w":16,"h":16}, "rotated": false, "trimmed": true, "spriteSourceSize": {"x":0,"y":0,"w":16,"h":16}, "sourceSize": {"w":16,"h":16} }, "road2":{ "frame": {"x":16,"y":0,"w":16,"h":16}, "rotated": false, "trimmed": true, "spriteSourceSize": {"x":0,"y":0,"w":16,"h":16}, "sourceSize": {"w":16,"h":16} } } } preload: game.load.atlasJSONHash('scene', 'assets/background/scene.png', 'assets/background/scene.json'); call: sprite = game.add.tileSprite(0, 0, 128, 64, 'scene', 'road');
  4. I am always searching...
  5. Same result with 64x64. with no console message.
  6. Hi everyone, I have a strange issue with the webgl and tilesprite behavior which seems for me to not follow the Phaser documentation. My background is contained inside a sprite atlas described by a json file. All the sprites have dimension equal to a power of 2 (height and width) and the png file too. I have followed the tutorial https://phaser.io/examples/v2/tile-sprites/tiling-sprite-atlas It works great with this example and the octopus dimensions used are "w":62,"h":94 But, when I change one of this parameters to a power of 2, for example: "w":64,"h":94, the tilesprite has a strange behavior: the entire image is displayed from x:0 y:0 No problem with canvas. I suppose it is a newbee issue... any help? Thanks!
  7. TanPhi

    A GPS game

    I everyone, i'm beginner in Pixi.js. I don't know if it is the good engine for my game but i'm a little lost with all the engines. I want to create a sort of GPS. The background is a map and the player represented by a triangle which doesn't move in the center of the screen. The background is create by a drawing function (with many Bezier curves) and it is bigger than the screen of course. So the purpose is to translate and rotate the background - to move on it. Is it possible and easy with Pixi.js ? thanks!