Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Senspark/CocosXtension

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 38.3%
  • Java 36.1%
  • C++ 11.3%
  • C 7.8%
  • Objective-C++ 4.8%
  • Python 0.5%
  • Other 1.2%