Skip to content
This repository has been archived by the owner. It is now read-only.
v3
Go to file
Code
This branch is 593 commits ahead, 6 commits behind cocos2d-x:v3.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

CocosXtension is a Cocos2d-x Framework Extension.

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.