Hi,
I’m new to Phaser
I try to create a Risk game board.
I try to load and create images dinamically, load them from an atlas but I don’t know how reference them from the create(). I load a JSON that have the coord X,Y, the name and some attributes. How can I create it?
Example of data for each image from the JSON
{
“name”: “Thracia.png”,
“ID”: “10191”,
“loc”: “378,291”,
“gp”: “8”,
“rv”: “1”,
“limits”: “10125,10113,10146,10089,10158”,
“nfp”: “5”,
“player”: “1”,
“terrain”: “m”
}
The name is the same into the atlas file, but I don’t know how iterate both, getting the “loc” X,Y and create it.
Salut,
Josep M