Jump to content

Joery

Members
  • Content Count

    1
  • Joined

  • Last visited

  1. Hello, I'm creating something to know how Pixi.js works, but I need a depth system and I've no idea if it's implemented in Pixi.js or not. When I add add new sprite(furniture) the 'selector' tile is above it. The code I'm using: for (x = 0; x < mapxtiles; x++) { for (y = 0; y < mapytiles; y++) { if(map[x][y].height != 'x') { i++; var topPos = (x * 16) + (y * 16) - 24; var leftPos = (y * 32) - (x * 32) + (mapxtiles * 32) - 32; var normalTileTexture = PIXI.Texture.fromImage("./assets/map/normal.png");
×
×
  • Create New...