Where can I find a tutorial for Cocos2d-x?

Where can I find a tutorial for Cocos2d-x?

Instruction for other operating systems are available from the cocos2d-x homepage. Start by downloading Cocos2d-x from www.cocos2d-x.org/download. The tutorial is created using 3.16 – all parts except for the polygon packing should also work with older releases, too.

When to release the shared engine object in cocos2d-x?

Make sure to call SimpleAudioEngine::end () when the sound engine is not needed anymore to release allocated resources. Release the shared Engine object. It must be called before the application exit, or it will lead to memory leaks. Release the shared Engine object. It must be called before the application exit, or it will lead to memory leaks.

Can you use texturepacker with Cocos2d-x?

The good news is: You don’t have to care about it when you are using TexturePacker — it can create rectangular and polygon trimmed shapes for your sprites in a format that cocos2d-x can read out of the box. cocos2d-x is a highly portable game development framework – which takes a lot of work from you when you want to support different devices.

How to add scaling variants in cocos2d-x?

Click on Scaling variants in the right panel. Select cocos2d-x HDR/HD/SD from the drop down menu in the dialog. Press Apply . You see 3 scaling variants: /HDR/ with a scaling factor of 1, /HD/ with a factor of 0.5 and /SD/ with 0.25. You can add or remove scaling variants if you don’t want them. Press Close to return to the sprite sheet.

How to save a sprite sheet in Cocos2d?

Press Close to return to the sprite sheet. You should now see 3 tabs in the center screen. Each one is a preview of the sprite sheet created for that scaling variant. Click the small folder next to Data file and set it to save a file names cityscene.png inside your project’s res folder.

How do I create animation on a node?

If you want to create an animation on a Node, we must create a new Animation component for it. Choose the Node that you want to use. Click + on the top right corner or Add component below in the Properties and choose Animation in “other components”. Open the animation editor.