glass22 Posted January 7, 2015 Share Posted January 7, 2015 How can I have curved rarther than flat terain in a platformer? is it possible in phaser Link to comment Share on other sites More sharing options...
markusT Posted January 8, 2015 Share Posted January 8, 2015 There are multiple ways to create a curved terrain. Either you use a Physics engine like P2 or Box2d, that really doesn't matter, or you use a algorithm to get a point on a curve and move towards them. Here an example with physicshttp://www.emanueleferonato.com/2011/08/26/create-a-terrain-like-the-one-in-tiny-wings-with-flash-and-box2d-adding-textures/ Here an example with custom curveshttp://www.inkfood.com/smoothnoise/ Hope that helps to start off Link to comment Share on other sites More sharing options...
valueerror Posted January 8, 2015 Share Posted January 8, 2015 http://www.html5gamedevs.com/topic/6556-how-to-export-from-tiled-and-integrate-into-phaser/?p=39495 and here is a downloadable zip file of a tiled map layer example with slanted (or curved - depends on what you do with the polylines) tiles.. Link to comment Share on other sites More sharing options...
Recommended Posts