Difference between revisions of "Megacool"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 6: Line 6:
  
 
=== Description ===
 
=== Description ===
'''The Megacool plugin is kind of 'preview' at the moment, since iOS isn't supported, more internal API could be exposed, etc'''
+
'''MEGACOOL HAS SHUT DOWN!'''
 +
'''https://megacool.medal.tv/blog/wrapping-up/'''
  
Megacool SDK plugin is available for only Andorid and iOS as an external plugin. To use Megacool module:
+
'''The Megacool plugin is kind of 'preview' at the moment, more internal API could be exposed, etc'''
  
 +
Megacool SDK plugin is available for only Andorid and iOS as an external plugin.
 +
<syntaxhighlight lang="lua">
 +
require "Megacool"
 +
</syntaxhighlight>
 
# add the plugin to your project
 
# add the plugin to your project
 
# go to http://megacool.co and sign up, add your game.  You will need to know your app identifier and the key for Android/iOS
 
# go to http://megacool.co and sign up, add your game.  You will need to know your app identifier and the key for Android/iOS
 
# in the gideros Megcool plugin settings fill in the identifier and key strings
 
# in the gideros Megcool plugin settings fill in the identifier and key strings
 
To add Megacool SDK to your application you call:
 
<syntaxhighlight lang="lua">
 
require "Megacool"
 
</syntaxhighlight>
 
  
 
  Megacool needs OpenGL ES 3 to work, you need to check for this before you require the plugin:
 
  Megacool needs OpenGL ES 3 to work, you need to check for this before you require the plugin:

Latest revision as of 21:57, 24 January 2026

Supported platforms: Platform android.pngPlatform ios.png
Available since: Gideros 2018.10
Inherits from: EventDispatcher

Description

MEGACOOL HAS SHUT DOWN!
https://megacool.medal.tv/blog/wrapping-up/

The Megacool plugin is kind of 'preview' at the moment, more internal API could be exposed, etc

Megacool SDK plugin is available for only Andorid and iOS as an external plugin.

require "Megacool"
  1. add the plugin to your project
  2. go to http://megacool.co and sign up, add your game. You will need to know your app identifier and the key for Android/iOS
  3. in the gideros Megcool plugin settings fill in the identifier and key strings
Megacool needs OpenGL ES 3 to work, you need to check for this before you require the plugin:
-- assume you have this line to make strings nicer to use:
local sub,lower=string.sub,string.lower

if lower(sub(Shader:getProperties().version,1,11))=="opengl es 3" then enhancedGfx=true end
if enhancedGfx then pcall(function() Megacool=require "Megacool" end) end
if Megacool then print("Megacool started") else print("Megacool not started") end

Methods

Megacool.startRecording
Megacool.stopRecording
Megacool.share
Megacool.setSharingText

Events

Event.RECEIVED_SHARE_OPENED
Event.SENT_SHARE_OPENED

Constants