adicirstei Posted February 17, 2015 Share Posted February 17, 2015 I need to create a board for a match three type game. The board is comprised of tiles and a border. The board shape is not always a rectangle. The user do not interact with it in any way. It just need to stay behind. What is the best option memory wise to create it? 1 a group of sprites / images2 a BitmapData object on which I draw the images3 any other solution? Thanks! Link to comment Share on other sites More sharing options...
ptdnet Posted February 17, 2015 Share Posted February 17, 2015 Honestly, just use one PNG file for it. We're not limited to that power-of-two stuff any more. Link to comment Share on other sites More sharing options...
adicirstei Posted February 17, 2015 Author Share Posted February 17, 2015 It is different for each level. I intend to generate it from level matrix. Link to comment Share on other sites More sharing options...
ptdnet Posted February 17, 2015 Share Posted February 17, 2015 Ah... you can create a group (game.add.group) and then draw a bunch of tiles into it.var pGroup = game.add.group();pGroup.create(0, 0, "myTiles", 32);pGroup.create(40, 0, "myTiles", 30);// etcWhen you need a new level just pGroup.destroy(true); Link to comment Share on other sites More sharing options...
Recommended Posts