![]() Timer class .RewardPickupSystem 0 Android S5Neo 16FPS Timer class .systems.SpriteAnimationSystem 0 ![]() ![]() I did a little tuning exercise to find out: Pc 60FPS Times in milisec. My suspision was the combination of the rotations and the many composite objects used in the game. I need to spend some more time to analyse what is causing the delay. Performance on my phone (a S5 Neo) not so. We really need more good examples of games made with Overlap2D!īut the most important issue I still have is with the performance. Now I still see the actions in the git directory but don't know how we could apply these. This used to be easy when there still was a scene2d screen behind. I was not able to figure out how to fadeout the entire scene.Then initialise the word and then in code set the rotation for the box2d elements. My work arround for this was to store the rotation before the first initialisation of the box2d world. The rotation is undone as the physics body actually takes presedence over the rotation in the transform component. Rotating box2d elements in Overlap2D does not work.My quick fix was to remove the particles from the editor and create them on the fly when setting up the entities. When you add a particle in a composite in Overlap2D this is not displayed correctly. I wanted bubbles coming out of the air supply tanks floating in space. Particles within composites are not placed incorrectly on the screen.I eventually moved all the wind elements in composites that I could rotate without problems. Rotating anything in the Overlap2d editor other then a composite caused the element to become unselectable. I needed to rotate the 'wind' elements in my game. Rotating anything other then a composite gets stuck in the editor.For box2d the 'recommandation' is to use world units My solution for now was to ignore this recommandation. Spriter animations are using the world units for scaling, so when setting anything else then 1 the sprites are blown up out of proportion.Hopefully this will help some of you to avoid some of the same mistakes I made: Here are some of the obstacles I ran into. That being said, for this game Box2d did help me a lot.įor the overall game I did have to cut features of course, and I am sorry to say that there are no tentacles present in this release.I did have some issues with Overlap2d which caused me to loose quite some time. Possibly we could do with a physics engine for games. That said - there are still a lot of situations for which box2d is not the best solution. While Box2d does away with a lot of complications you would otherwise have to take care of yourself. Overlap2d really helps visualize your game. Overall I can say that I am happy with the result. Ha - actually published my game on time! Well looking back I can say that it is good for me to be under some kind of pressure to finish a game on time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |