Creating single bodies cocos2dx
Posted: Tue May 26, 2015 7:31 pm
I have a 2d endless runner game where obstacles are generated randomly.
The obstacles are of complex shapes ie circles and rectangles wont do for collision.
I want to create these bodies in the editor in separate json files.And import them into the game.
Just create simple objects in the editor and import them and create them randomly in my game.
The rest of the world will not be from RUBE just the objects.Is this possible?
For example in physicseditor you use images to create fixtures and the fixtures are saved in a plist.
In the game you create the body and the sprite and add the fixtures from the plist.
This is what I am looking for
The obstacles are of complex shapes ie circles and rectangles wont do for collision.
I want to create these bodies in the editor in separate json files.And import them into the game.
Just create simple objects in the editor and import them and create them randomly in my game.
The rest of the world will not be from RUBE just the objects.Is this possible?
For example in physicseditor you use images to create fixtures and the fixtures are saved in a plist.
In the game you create the body and the sprite and add the fixtures from the plist.
This is what I am looking for