Code Monkey home page Code Monkey logo

cocos2d-x-samples's Introduction

Cocos2d-x-samples

Contains different samples that show how to use Cocos2d-x v3.2 with 3rd party libraries:

Running the samples

Download

$ git clone https://github.com/cocos2d/cocos2d-x-samples.git
$ cd cocos2d-x-samples
$ git submodule update --init
$ cd libs/cocos2d-x/
$ ./download-deps.py

Running

Once the samples were downloaded just go any sample, and open the project. eg:

$ cd cocos2d-x-samples/samples/LiquidFun-Testbed/proj.ios_mac
$ open LiquidFun-Testbed.xcodeproj/

Available samples:

LiquidFun

Based on Box2d, LiquidFun features particle-based fluid simulation. Game developers can use it for new game mechanics and add realistic physics to game play. Designers can use the library to create beautiful fluid interactive experiences.

We provide 2 samples:

LiquidFun - Testbed

Testbed

The Testbed that comes with LiquidFun, adapted for cocos2d-x.

Supported platforms:

  • iOS
  • Mac
  • Win32

LiquidFun - EyeCandy

Eye Candy

The Eye Candy demo that comes with LiquidFun, adapted for cocos2d-x. Includes two useful classes:

  • LFParticleSystemNode: Wraps a LiquidFun b2ParticleSystem into a cocos2d-x node.
  • LFPhysicsSpriteNode: Wraps a LiquidFun b2Body into a cocos2d-x node.

Supported platforms:

  • iOS

GAF

From GAF homepage:

"GAF stands for Generic Animation Format. GAF is designed to store Flash animations in an open cross platform format for further playback in a multitude of game development frameworks and devices. GAF enables artists and animators to use Flash CS for creating complex animations and seamlessly use them with various game development frameworks."

This sample shows how to use GAF with cocos2d-x. It has 5 different GAF samples and shows how to play sound events with GAF.

Supported platforms:

  • iOS
  • Android

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.