CocosXtension is a Cocos2d-x Framework Extension.
Objective-C Java C++ C Objective-C++ Python Other
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 593 commits ahead, 6 commits behind cocos2d-x:v3.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jsbindings
luabindings
plugins
protocols
samples
tools
.gitignore
.travis.yml
AUTHORS
CHANGELOG.md
README.md

README.md

#Senspark Plugins

Senspark Plugin provides common utilities for developers to use in game across different platforms with cocos2d-x.

This plugin is developed basing on Plugin-x, which provides an easy way for developers to integrate various third party SDKs.

Highlights

One unified API for all SDKs

  • Ads
  • Analytics
  • BaaS (Backend as a Service)
  • Data
  • IAP (comming soon)
  • Sharing
  • Social

How To Contribute

  1. Prerequisites

    • Define environment variable COCOS2DX_ROOT in /etc/launchd.conf (using this help)

    • Put this line in ~/.profile file

        grep -E "^setenv" /etc/launchd.conf | xargs -t -L 1 launchctl
      
  2. ...

How To Use

1. Analytics

  • Providers

    • Flurry Analytics
    • Google Analytics
  • Using

    • Example

        auto manager = SensparkPluginManager::getInstance();
        
        auto pluginProtocol = manager->loadAnalyticsPlugin(AnalyticsPluginType::GOOGLE_ANALYTICS);
      
        auto googleAnalytics = static_cast<GoogleProtocolAnalytics*>(pluginProtocol) 
      

2. Ads

  • Providers
    • Admob
    • AdColony
    • Facebook Ads
    • Tapjoy
    • Vungle
  • Using
    • Example

        auto manager = SensparkPluginManager::getInstance();
        
        auto pluginProtocol = manager->loadAnalyticsPlugin(AdsPluginType::ADMOB);
      
        auto admobAd = static_cast<AdmobProtocolAds*>(pluginProtocol) 
      

3. BaaS

4. Data

5. IAP

6. Sharing

7. Social