tembac Posted July 18, 2017 Report 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 Quote Link to comment Share on other sites More sharing options...
tembac Posted July 20, 2017 Author Report 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.