Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Is there a tutorial for cocos2d-x hello world?


Asked by Penelope Pruitt on Dec 01, 2021 FAQ



The tutorial currently consists of: This section looks at getting Cocos2d-x setup and running. It gives a bit of an overview of Cocos2d-x’s history. Then it presents a minimal Hello World example, showing the basics of how a Cocos2d-x application works.
Accordingly,
While Cocos2d-x is capable of building games for many platforms, in this tutorial you’ll focus on making an OS X app. Porting this project to other platforms is a trivial (yes, trivial!) matter discussed briefly at the end of this tutorial.
Similarly, Cocos2D-X is a C++ port of the Cocos2D API, so you can use the API you know and love. And since it’s in C++, it works on many platforms – from iOS to Android to Windows to Linux and more! In this Cocos2D-X tutorial, you’ll learn how to use Cocos2D-X and C++ to produce a cross-platform “Hello World” app that will run under both iOS and Android.
One may also ask,
While you’re at it, take a look at the project files in Xcode – particularly Classes\HelloWorldScene.h and Classes\HelloWorldScene.cpp. If you’re familiar with Cocos2D, this should look familiar to you – the same Cocos2D API, but in C++!
Next,
The $COCOS2DX_HOME directory contains a shell script named create-android-project.sh that you will use to generate the android project.