Giter Site home page Giter Site logo

boyquotes / mamau_chartboost Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beocat/mamau_chartboost

0.0 0.0 0.0 13 KB

Chartboost for Godot Game Engine - Android & iOS

License: MIT License

C++ 8.79% Python 5.29% C 0.68% Java 39.01% Objective-C++ 34.82% GDScript 11.42%

mamau_chartboost's Introduction

MamauChartboost

This is an implementation of the Chartboost Api for the Godot Engine (https://github.com/okamstudio/godot)

The module works for both Android and iOS and has been tested with Godot 2.0.2.

Example project can be found in the mamau_chartboost_example folder.

General Setup

  1. Add the folder mamau_chartboost to the modules folder.
  2. Download and expand the SDK for the platform you would like to use.

Android

  1. From the Android SDK Manager, make sure you have the following installed:
  2. Android Support Repository
  3. Android Suppport Library
  4. Google Repository
  5. Add the file chartboost.jar from the SDK to the android/lib folder
  6. Add the module in the engine.cfg
[android]
modules="org/godotengine/godot/MamauChartboost"
  1. See chartboost.com for required and optional permissions

iOS

  1. Add the Chartboost.Framework from the SDK to the ios/lib folder

Simplify appID and appSignature (Optional)

If using the module on both platforms, it is possible to let Godot take care of getting the correct appId and appSignature. This can be done by specifying them in engine.cfg like this:

[mamau_chartboost.Android]
app_id="xxxxxxxxxxxxxxxxxxxxxxxx"
app_signature="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

[mamau_chartboost.iOS]
app_id="xxxxxxxxxxxxxxxxxxxxxxxx"
app_signature="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Then you can initialize Chartboost like this:

var chartboost

if(Globals.has_singleton("MamauChartboost")):
		chartboost = Globals.get_singleton("MamauChartboost")
		chartboost.init(Globals.get("mamau_chartboost/app_id"), Globals.get("mamau_chartboost/app_signature"))

API Reference

void init(String appId, String appSignature) #Always start by calling init

void cache_interstitial()
bool has_interstitial()
void show_interstitial()

void cache_reward_video()
bool has_reward_video()
void show_reward_video()

void cache_more_apps()
bool has_more_apps()
void show_more_apps()

bool get_auto_cache_ads()
void set_auto_cache_ads(bool auto_cache_ads)

void set_should_request_interstitials_in_first_session(bool should_request)

mamau_chartboost's People

Contributors

beocat 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.