This is a sample project that use the last version of Cocos2d-X, the version3.
I try make the simple things with this project to help anyone that need start cocos2d-x.
I will make when i get more time the TODO tasks in README of repository.
I converted some classes like SneakyInput to new version.
My goal is make a real player move and jump with SneakyInput, parallax background, box2d player, box2d ground, box2d limits, camera that move with player and a menu screen.
Please help us and all users. I start it. Help me advance it.
Now we have a simple Player (see the screenshot on github).
It move and jump. I put a sprite to simulate waking but have a bug. After constructor i cant change the player action, i got null exception. Can anyone help me?
I have update the project and Player class now have a create method to create new player with static method.
Now my problem is other, on update call from scheduleUpdate i update the player, but get an error BAD_ADDRESS, but the player is a member of current scene, if never will deleted until the scene release it, correct?
Can anyone help me?
I have attached a screenshot. The source is on screenshot but you can see on github repo. too.
I see that my problem is with retain/release/pool, because if i put a lot of retain, it works and after change the animation sometimes, i get null exception.
But how the retain count can be go to ZERO if i have an instance allocated to the LAYER class (HelloWorld)?
I built a small c++ example that shows that my class instance is not auto-released if his scope go out.