Questions tagged [cocoonjs]

CocoonJS is a platform that allows developers to deploy, accelerate, and monetize their JavaScript HTML5 games in the App store and Google Play.

What is CocoonJS?

CocoonJS is a platform that allows developers to deploy, accelerate, and monetize their JavaScript HTML5 games in the App store and Google Play.

How to use CocoonJS?

Try your games for free using the CocoonJS Launcher App. Once you have tested it, generate a final file to be uploaded to the markets using our cloud based compilation system. What HTML5 features are allowed?

CocoonJS provides an accelerated canvas bound to OpenGL ES but also provides full DOM and CSS support via a WebView plus access to device features (camera, GPS, contact list, ...), monetization channels (ads, IAP, ...) and more.

Source: CocoonJS

82 questions
2
votes
1 answer

CocoonJS + Three.js webGLRenderTarget silent death

I'm using three v 67's WebGLRenderTarget to render a second camera/scene to a buffer for future use in a texture. Standard stuff in Three.js, but it dies a silent death in CocoonJS. I have tried similar ways of accessing the data in CocoonJS…
Alex Smith
  • 21
  • 1
2
votes
0 answers

Which kind of Facebook App is necessary to implement Facebook Social with CocoonJS

We've been creating a game for a while now and we'd like to integrate Facebook with CocoonJS, in order to publish game results or even some kind of message in-game. We would like to know which kind of app we'd have to create that allow us to…
Vitor Figueredo
  • 629
  • 7
  • 20
2
votes
3 answers

Menus in DOM or Canvas with CocoonJS?

So, I am making a game with HTML5, and I want to convert it to an app using CocoonJS. I have menus made in DOM, with HTML stuff, such as buttons that are binded to the script. Then the main game is in the Canvas element. Will it work with CocoonJS…
user2039981
2
votes
1 answer

CocoonJS + Crafty compatibility

I just have a simple question: has anyone tried deploying a HTML5 game built on Crafty Game Engine (CraftyJS earlier) into a CocoonJS container? If so, what is your experience? How does it perform? Any issues?
AfroMogli
  • 577
  • 5
  • 18
1
vote
0 answers

Change devices target of an .xcarchive

I´m using Cocoon to build a Construct 2 project for IOS, specifically for iPhone. The problem is that cocoon builds for "Universal" (iphone and iPad). The build format is .xcarchive. My question: How can I change the device target of a .xcarchive to…
Fabio Colombini
  • 112
  • 1
  • 12
1
vote
1 answer

How to get Pixijs with Cocoonjs to use a WebGLRenderer with canvas+ webview engine

I can't seem to get the canvas+ webview engine within Cocoon to use a PIXI.WebGLRenderer no matter what I try. Here is a simple example:
1
vote
1 answer

How To Detect If Web App Is Wrapped By CocoonJS

How can I detect if my web app is running under the CocoonJS wrapper using WebView+? I've tried if (typeof Cocoon == 'undefined') ... but that doesn't seem to work. I've checked the CocoonJS site, but this information is not easily found.
James Wilkins
  • 6,836
  • 3
  • 48
  • 73
1
vote
2 answers

getImageData(), putImageData() not working on Nexus 4, using Cocoonjs canvas+

I'm writing a small demo program to test canvas+ performance. But getImageData(), putImageData() don't seem to work. It leaves a black square on the canvas. Half size in width and height, of course considering the window.devicePixelRatio is 2,…
spikeyang
  • 691
  • 9
  • 17
1
vote
1 answer

Quintus to Android

I have tried to Google and read the Quintus wiki but no solution. Why does quintus platformer need server to run? Because this I can't use phonegap nor cocoonjs to convert my project to android game. Is there a better HTML5 2d game engine that I can…
Shnigi
  • 972
  • 9
  • 19
1
vote
2 answers

HTML Media Capture ludei cocoonJS support

I'm using Ludei CocoonJS to build my html5 Application. I use HTML5 Media Capture (http://dev.w3.org/2009/dap/camera/) to acquire an image that I want to decode to have a qr code. I'm using this tag to launch the camera default camera or upload a…
Nadir Bertolasi
  • 527
  • 6
  • 17
1
vote
1 answer

CocoonJS & Cordova plugins: "class not found" error

I would be glad if we had an example on how cordova plugins should be wrapped for CocoonJS. I'm trying to use the device-orientation plugin (compass) in a simple example but after the app has initialized, the navigator.compass.getCurrentHeading()…
lephleg
  • 1,724
  • 2
  • 21
  • 41
1
vote
1 answer

Creating a CocoonJS developer environment for Android?

I have searched everywhere, whether it be forums, blogs, Google, and even documentation but could not figure out how to do Android specific things for CocoonJS. I want to start developing a javascript game and build it with CocoonJS and I know…
sociallymellow
  • 155
  • 1
  • 2
  • 14
1
vote
0 answers

In cocoonjs Which one of these methods give most performance for canvas

Goal is to redraw sprites so i can have sprite animations... there are 3 methods of doing it: Draw directly from image (using drawImage function) Draw once on canvas then draw directly from there using drawImage. Draw once on canvas, load it in…
Muhammad Umer
  • 17,263
  • 19
  • 97
  • 168
1
vote
1 answer

LimeJS failing on CocoonJS Android Launcher

As a prelude to moving my LimeJS game from PC to Android, I'm trying to get the Android CocoonJS Launcher to work with a basic LimeJS application. Am I doing something wrong here? I have some questions some of which may be only known to Tõnis Tiigi…
Dean
  • 301
  • 4
  • 11
1
vote
1 answer

CocoonJS app works in launcher but not compiled apk or ipa

I have an app built with cocoonjs that works perfectly in the launcher app on both iOS and Android, but the compiled versions of both freeze after the launch screen. After doing an adb logcat on Android I can see the error 'Box2d is not defined'…
Richard Lovejoy
  • 663
  • 10
  • 18