Pyxel Edit Forum Archive
ArchiveGeneral

Pyxel Edit and Phaser Framework

G
gnarvin
Jul 14, 2014 at 2:28 pm
Hi, I just started using both Pyxel Edit and Phaser, I'm trying to get tiled maps working but can't seem to get it. When I say and export as a json file it tells me that Phaser only supports orthogonal maps. Is there a setting for this, or does Pyxel edit just not support that or am I just doing everything wrong completely. If anyone has used both PE and Phaser together and could help me out it would be greatly appreciated.
S
seitensei
Jul 15, 2014 at 10:25 pm
gnarvin,

To my understanding, Phaser specifically supports JSON files that follow Tiled's JSON format. There are a number of differences between the JSON exported by PyxelEdit and the JSON exported by Tiled, which is to say that Phaser doesn't support the JSON Tilemaps exported by PyxelEdit without modification (to my understanding).
Danik
Jul 20, 2014 at 12:31 pm
Like Seitensei said, Phaser uses a different tilemap format so you'd have to implement the loading.

Maybe this AS3 example is helpful since AS3 and Javascript are very similar: https://github.com/Danik/Pyxel-Edit/blob/master/examples/as3/TilemapLoading.as3