tembac Posted July 18, 2017 Share Posted July 18, 2017 Hi Everyone, I need guidance on how can I approach this problem: Would like to apply a tiled texture to complex polygons. I'm using P2 for the physics and tiled for the level editor. I would like to get something similar to worms where the terrain has a tiled texture, the top has grass and the bottom is darker. These are some examples of what I would like to achieve: I don't care at all about destructible terrain. This is how my level looks now with polygons from tiled: http://puu.sh/wMwsg/28b1609d74.jpg Link to comment Share on other sites More sharing options...
tembac Posted July 20, 2017 Author Share Posted July 20, 2017 I uploaded a demo with some test. I'm using a mask for the texture and lines for the borders. I'll be glad to hear comments about this. I'm not sure yet what to do so the borders look nicer.https://github.com/Tembac/PhaserPolygonTextureDemo samme 1 Link to comment Share on other sites More sharing options...
Recommended Posts