jeremyjh / Spriter2dX-example

Example using Spriter2dX - a Spriter implementation for Cocos2d-X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a very basic example project to demonstrate use of Spriter2dX.

This is based on (shamelessly robbed from) the example provided in SpriterPlusPlus.

Presently Spriter2dX only supports cmake and Android project files and has only been tested on Linux and Android.

This repository has a lot of files due to the standard project template for Cocos2d - you may just want to take a look at the relevant code.

To download and build this start by cloning it and initializing its sub-repositories:

git clone https://github.com/jeremyjh/Spriter2dX-example
git submodule update --init --recursive 

Now we need to satisfy the expected cocos2d/ dependency.

I have not found a good way to distribute a ready-to-run Cocos2d-X project, as it includes its entire source directory and installs lots of third party binary dependencies for the development platform you are using.

So we have to do something a little bit convoluted. Suggestions welcome on this by the way.

The easiest thing is just copy the cocos2d/ folder from an existing game you have into Spriter2dX-example/, to make the example project whole. This example template was built using Cocos2d-X 3.8.1.

If you don't already have Cocos2d installed follow the instructions for installation of Cocos2d-X and creating a new game using the cocos utility. cocos new MyTemplate -p com.your_company.mygame -l cpp -d Template

Then, you can copy/move the Template/cocos2d folder into the root of Spriter2dX-example repository, to provide the cocos2d/ folder it expects to find there with all the required dependencies.

Then you can build with cocos utility (e.g. cocos compile -s ./ -p android).

About

Example using Spriter2dX - a Spriter implementation for Cocos2d-X

License:Other


Languages

Language:C++ 79.5%Language:Objective-C++ 8.1%Language:CMake 4.7%Language:Java 2.4%Language:Makefile 1.9%Language:Objective-C 1.6%Language:Python 1.1%Language:C 0.7%