Code Monkey home page Code Monkey logo

cocoonjs-plugins's Introduction

CocoonJS Plugins

Ludei's plugins (also called extensions) are multiplatform Javascript APIs, that work in any of the three environments of CocoonJS: Canvas+, WebView+ and System webview.

Visit http://doc.ludei.com/latest/ where you'll find detailed documentation for all of the CocoonJS javascript plugins.

You can find the final, minified files in the "build/" directory.

Here is a list of the most common APIs you'd be interested in:

  • Ads (Mopub, Chartboost, AdMob, etc...)
  • Camera (Access to the camera raw data)
  • Device (Device APIs to control things like the orientation of your app)
  • Dialog (Native prompt and confirm dialogs)
  • Motion ( Gyroscope and Accelerometer APIs)
  • Multiplayer (Game Center and Google Play Games)
  • Notification (Push and local notifications)
  • Social ( Facebook, Google Play, Game Center)
  • Store
  • Touch
  • WebView

We hope you find everything you need to get going here, but if you stumble on any problems with the docs or the extensions, just drop us a line at our forum (support.ludei.com) and we'll do our best to help you out.

How to build this project

Clone this repo and run the following command.

$ npm install
$ grunt && grunt jsdoc

This command will create a folder called build/ that will contain cocoon.js and cocoon.min.js.

Useful links

How to use: https://www.ludei.com/cocoonjs/how-to-use/
Documentation: http://doc.ludei.com/latest/
Cloud compiler: http://cloud.ludei.com

cocoonjs-plugins's People

Contributors

abdul-martinez avatar andyperlitch avatar karliky avatar libelulav avatar mattdesl avatar mortimergoro avatar naeemkhedarun avatar rogersolsona avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocoonjs-plugins's Issues

publish to bower

Hey guys,

It is awesome that you have moved this to github. Have you thought about registering this to bower?

GooglePlayGames - getter for Access Token

There is currently no way to retrieve the access token after logging the user in with the social interface. The access token can be useful to have when authenticating with a back end. The Facebook plugin provides a method in the social interface called getAuthResponse(), something similar to this for GooglePlayGames would be helpful.

Local notifications don't work with Canvas+

If I use Canvas+, all local notifications are received immediately after I send them, no matter what time I set in notification properties (date). If I use Webview, it works fine.

Prismatic joints in cocoon_box2d.js?

Hi, I really need the cocoon_box2d.js for a game I'm developing, but the current implementation is missing prismatic joints - a key feature already in my game!

Please help, I've invested almost a year into this game!

Cocoon.Social.GameCenter.Score constructor called with improper arguments

On line 516 of cocoon_game_center.js, a new Cocoon.Social.GameCenter.Score is created, but the argument list is incorrect.

The following json structure is expected in the gcScore variable at this point:

{
  "category": "[string]",
  "date": [timestamp],
  "formattedValue": "[string]
  "playerID": "[playerID]"
  "rank": [number]
  "value": [number]
}

As you can see, this new score object's constructor is being passed the following arguments:

  1. gcScore.playerID
  2. gcScore.value
  3. empty string
  4. empty string
  5. gcScore.category

However, the Cocoon.Social.GameCenter.Score constructor is expecting a value and a category as the only two arguments.

I propose that Cocoon.Social.GameCenter.Score follow the same interface that Cocoon.Social.Score, with the original object from the game center added to it for game center-specific stuff.

I'll work on a pull request for this.

fb.getPermissions send back the wrong parameter

Hi,

Line 274 of cocoon_facebook.js,

the function "getPermission" doesn't work because it calls the callback function with the wrong information.

callback(response.data && response.data[0] ? response.data[0] : {});

Facebook API v2.2 respond to /me/permissions with an array of objects.
This fix works :

callback(response.data ? response.data : {});

Regards.

add download method in namespace app

This method could be great very useful, for example when you purchase a picture you can then download it like an order :

Cocoon.App.downloadFile(url, filename, storageType, callback)

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.