Giter Site home page Giter Site logo

cocos2dx-store-example's Introduction

cocos2dx-store-example

cocos2dx-store-example is an example project demonstrating usage and implementation of SOOMLA's cocos2dx-store.

This project contains examples for implementing all of SOOMLA's interfaces and using SOOMLA's various services. Read up on what you can do with SOOMLA in this wiki (the wiki is for Android but it applies to all the projects under The SOOMLA Project).

Getting started

  1. Obtain the Cocos2d-x framework either from git or from the Cocos2d-x website. Make sure to use the latest stable version (v2.2 as of Oct 25 2013).

    $ git clone [email protected]:cocos2d/cocos2d-x.git
    
  2. Recursively clone our cocos2dx-store library into the extensions directory in the root of your Cocos2d-x framework.

    $ cd cocos2dx
    $ git clone --recursive [email protected]:soomla/cocos2dx-store.git extensions/cocos2dx-store
    
  3. Clone our fork of the janssen library into the external directory in the root of your Cocos2d-x framework.

    $ git clone [email protected]:vedi/jansson.git external/jansson
    
  4. Clone cocos2dx-store-example into the projects directory at the root of the Cocos2d-x framework.

    $ git clone [email protected]:soomla/cocos2dx-store-example.git projects/cocos2dx-store-example
    

Build instructions for Android

  1. Run the build_native.sh script located in projects/cocos2dx-store-example/proj.android. This step should take a while.

    $ cd projects/cocos2dx-store-example/proj.android
    $ ./build_native.sh
    
  2. Finally, open the proj.android directory located in cocos2dx-store-example in Android Studio (IntelliJ IDEA). proj.android is an Android Studio project.

  3. Build the project, run ExampleActivity, and you're ready to go! The application should launch in an emulator or on your device.

Take a look around, and get a feel for all you can do with cocos2dx-store.

Build instructions for iOS

  1. Open the XCode project under proj.ios.
  2. Build the project, run it, and you're ready to go! The application should launch in the simulator or on your device.

Take a look around, and get a feel for all you can do with cocos2dx-store.

CCIStoreAssets

A good example of how to define an economy model can be found in MuffinRushAssets.

Take a look at that file and see how you can define your specific game's economy.

Scenes

This project contains three main scenes: MainScene, StoreAScene, and StoreBScene. They are all built with CocosBuilder

  • MainScene: serves as an entry point to the store, use it as a reference how to enter the store in your app.
  • StoreAScene: contains all of the PurchaseWithVirtualItem items and allows the user to buy them.
  • StoreBScene: contains all of the PurchaseWithMarket items and allows the user to buy them.

SOOMLA, Elsewhere ...

License

MIT License. Copyright (c) 2012 SOOMLA. http://project.soom.la

cocos2dx-store-example's People

Contributors

ronmrdechai avatar refaelos avatar vedi avatar

Watchers

 avatar James Cloos avatar

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.