• Content Count

  • Joined

  • Last visited

About Gongreg

  • Rank

Contact Methods

  • Twitter
  1. Hello, I've been enjoying this framework, till I got into one thing - tilemaps. First of all, i want to create a tilemap from array (as I know one of the ways is to export array to csv and the give csv to the tilemap). so i can use this code: game.load.tilemap('fog', null, fog.toCsv(), Phaser.Tilemap.CSV);The tiles will be of 2 types - empty or black. So I only need one image (black.png for example). In earlies versions I saw something like game.load.tileset, but it's no longer there. so now I'm sitting with this code, and I have no idea what to do next: fog.tilemap = game.add.tilemap('fog'); /** * Dunno what to do here */ //fog.tilemap.addTilesetImage('Desert','tile'); var layer = map.createLayer('fog');How can I give the tileset with black image for the tilemap. I don't want to use the json file, since the maps will be dynamic, also i find the json in tilemap examples look really strange.