Ask coding questions

← Back to all posts
PIXI JS Help
h
Coder2195Text (35)

I've been trying to learn Pixi.js
I need help understanding texture altas
They say you only need to load json file
But how will the pixi read the tilesheet image if the json nor code references it?

Comments
hotnewtop
mwilki7 (1134)

It depends how the json file is parsed and whether paths to your tilesheet was put into it.

This website goes through setting up a basic scroller (which includes loading images)
http://www.yeahbutisitflash.com/?p=5226

var texture = PIXI.Texture.fromImage("path/to/your/tileset/here.png");
mwilki7 (1134)

@Coder2195Text how far have you gotten pixi.js to work? are you able to display any images/shapes/text?