Cocoon – Supported C2 objects & plugins

What’s supported and what’s not

Due to the fact that Canvas+ isn’t a complete browser, it has some restrictions. This doesn’t apply to the WebView(+) engine!

Supported features

  • Canvas
  • WebGL
  • Audio
  • Websockets
  • XHR
  • Localstorage (with no limit)
  • Extend it using Plugins for Cordova
  • Cocoon plugins

Unsupported features

  • CSS and DOM UI elements
  • WebAudio
  • DOMParser class
  • WebRTC
  • WebWorkers

For more information please see the cocoon Wiki over here

[creativ_button url=”http://docs.cocoon.io/article/canvas-engine/” icon=”book” label=”Canvas+” colour=”theme” colour_custom=”” size=”medium” edge=”rounded” target=”_blank”]

Construct 2 objects & plugins

But what does this mean for construct games? Some objects and plugins are using unsupported features and this could lead to a black screen / crash.

Supported

Data & Storage

  • Array
  • Dictionary
  • LocalStorage (no limits)
  • WebStorage (deprecated)

General

  • 9-patch
  • Function
  • Particles
  • Shadow Light
  • Sprite
  • SpriteFont
  • Text (works, but use SpriteFont instead)
  • Tiled Background
  • Tilemap

Input

  • Gamepad
  • Keyboard (works, but useless)
  • Mouse (works, but useless)
  • Touch

Media

  • Audio
  • Geolocation

Monetisation

  • AdMob (offical Scirra plugin, you must install the “Cordova AdMob” in your Cocoon project then)
  • iAd(offical Scirra plugin, you must install the “Cordova iAd” in your Cocoon project then)

Web

  • AJAX (but note, XML is not supported!)
  • Browser (with restrictions)
  • WebSocket

Not supported

Data & Storage

  • XML

Form Controls

  • Buttons
  • File chooser
  • List
  • Progress bar
  • Slider Bar
  • TextBox

Media

  • User Media (untested, let me know!)
  • Video (untested, let me know!)

Monetisation

  • IAP (offical Scirra plugin)
  • PubCenter (untested, let me know!)

Platform specific

  • Google Play (offical Scirra plugin)    | use the Cocoon GooglePlayGame plugin instead
  • GameCenter (offical Scirra plugin)   | use the Cocoon GameCenter plugin instead
  • Rest should be clear…

Web

  • Multiplayer (due to the lack of WebRTC support)
Updated on July 20, 2016
Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
Visist our Forum!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.