Hello. For my game I need to create continuous hills like at Tiny Wings, Ski Safari or Hill Climb Racing games. I would like to create levels for the game at Inkscape, where hills will be represented as a bézier curves. I know how to parse SVG file, I know how to effectively convert bézier curves to polygons, i know how to draw these polygons using Gideros. But I need to render the hills with some kind of shadow or highlight on the top, so they will look more realistic, like they are rendered at those referenced games. Does anybody know if there is a way how to do it?
Comments
I have read this article but using OpenGL and Objetive-C.
http://www.raywenderlich.com/32954/how-to-create-a-game-like-tiny-wings-with-cocos2d-2-x-part-1
I assume you can use Gideros Shape filled with some textured and Shape.LINE_STYLE.
GiderosCodingEasy has some methods to draw Beziers Curves, so the question is: can we use GiderosCodingEasy to create Beziers Curves as a box2d shape? This will do very easy to develop a simple game with random hills.
Likes: seppsepp
I will ask her later to pack it up all in one class and post some where on the forum.
But basically all it needs is set of coordinates and a texture to use
Example here
Likes: jdbc, Mells
https://github.com/jdbcdev/TinyWings
Likes: vitalitymobile