How to Use Gamee Plugins in Construct 2 & 3

4
  • 3 favourites

Tagged

Stats

1,586 visits, 2,025 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Introduction

GAMEE is a social platform full of HTML5 games. Our main goal is to make the games playable everywhere. You can play on mobile apps (Android, iOS), bots (Telegram, Kik, Facebook Messenger) or directly on the web.

GAMEE JS is our Javascript framework for connecting HTML5 game to GAMEE platform.

Construct Plugins

We developed 2 plugins for C3 and C2 to allow Construct users to integrate our javascript framework without any need to learn any code. More than that, we developed an Emulator that helps game designers create and test games within the Gamee's Construct Plugins. The Emulator is not connected to any backend. It should work as a replica of the web platform.

The Emulator Tool is only published in our website, you can use it from here

PS For a better version of this document, please check out the Markdown version on github from here

Table of contents

  • Download
  • Setup
    • Add plugins to the editors
      • C2
      • C3
    • Use Gamee Emulator
      • C2
      • C3
  • Usage
  • Properties
  • Conditions
    • General
    • Ads
    • Audio
    • Erros
    • Ghost
    • Player
    • Purchase
    • Replay
    • Social
  • Actions
    • General
      • Game Over
      • Game Save
      • Update Score
    • Ads
    • Log
      • Log Event
    • Player
      • Request Player Replay
      • Request Player Save State
    • Purchase
      • Purchase Item
    • Social
      • Share

Download

You can download the C3 and C2 plugins from here :

Setup

Add plugins to the editors

C2

  • Drag drop the gamee.c2addon to the Construct 2 Application
  • Click install
  • Restart the Editor

C3

  • Menu -> View -> Addon Manager
  • Install new Addon
  • Select the gamee.c3addon and Click Open
  • Restart the Editor

Use Gamee Emulator

C2

  • Press F5 or Click on Run Layout
  • Copy/Paste the opened url to the Emulator
  • Click on Upload Game

C3

  • Menu -> Project -> Remote Preview
  • Copy/Paste the generate link to the Emulator
  • Click on Upload Game

!IMPORTANT : if you are going to use a non-secure url you must load the game in the non-secure url of the emulator as well

Usage

Properties

Name Description
Coins Enable in-game-purchase using Gamee Coins
Ghost mode Enable the Ghost mode where you see other players' movements when you play
Log events Enable events logging
Player data Enable loading a player data from Gamees' servers
Replay Enable the Replay mode for your games
Rewarded ads Enable ads in the game
Save state Enable getting and setting states
Share Enable sharing your score with other players
Social data Enable getting other players data

Conditions

General

Name Description
On Initialized Will be triggered when the Handshake is done
On Start Will be triggered when the user starts or restarts a game
On Stop Will be triggered when the user pauses the game
On Resume Will be triggered when the user resumes the game after pause or GameeApp suspension

Ads

Name Description
On Loaded Rewarded Video Will be triggered when a rewarded video is available and loaded
On Rewarded Video Watched Will be triggered when a player finishes watching the rewarded video
On Rewarded Video Skipped/Ignored Will be triggered when a player skip or ignore the rewarded video
On No Rewarded Video available Will be triggered when no rewarded videos are available

Audio

Name Description
On Mute Will be triggered when user clicks the mute button and the game must mute all game sounds
On Unmute Will be triggered when user clicks the unmute button and the game should unmute all game sounds

Erros

Name Description
On Error Will be triggered when an error occurs

Ghost

Name Description
Is Ghost Mode Will be triggered when the ghost mode is active
On Ghost Show Will be triggered when the ghost is shown
On Ghost Hide Will be triggered when the ghost is hidden

Player

Name Description
On Request Player Data Will be triggered when a player data is requested
On Request Player Replay Will be triggered when a player replay is requested
On Request Save State Will be triggered when a player save state is requested

Purchase

Name Description
On Purchased Item Will be triggered when an Item has been purchased
On Purchased Item Fail Will be triggered when an Item purchase fails

Replay

Name Description
Is Replay Mode Will be triggered when Replay mode is active

Social

Name Description
On Post Shared Will be triggered when a post is shared
On Post Shared fail Will be triggered when a post sharing fails
On Request Social Will be triggered when a social request is made

Actions

General

Name Description
Game Initialization Initial handshake action, game notifies Gamee platform about its existence
Game Ready Should be called when the game is ready to start. It signals the Gamee plateform that it is able to recevie the start event
Game Over Notifies the platform that the player ended the game
Game Save Saves data from the game. Requires the property Save State to be Enabled
Update Score Updates the score making it visible to the player
  • Game Over
    • Optional
      • Replay Data Data to use on replay mode or ghost mode
      • Save State Data you want to store from the game
  • Game Save
    • Mandatory
      • Json to store The json you want to store in Gamee servers, it must be a string
    • Optional
      • Share Score When you save the Game State, you can set the Share Score option to True. It will trigger a screen asking the player to share the progress with his actual score. The game must be paused during this process. The game continues when it receives a resume message
  • Update Score
    • Mandatory
      • Score The Player score
    • Optional
      • Ghost Sign if it is set to true, it will update the Ghost Score, if the game is in Ghost mode

Ads

You must Enable the property Rewarded Ads

Name Description
Load Rewarded Video Load rewarded ads inside the game
Show Rewarded Video Show rewarded ads inside the game

Log

You must Enable the property Log events

Name Description
Log Event Events that the developer can store so he would be able to see statistics of the game
  • Log Event
    • Mandatory
      • Event Name The name of the event, shouldn´t be longer than 24 characters
      • Event Value The value of the event

Player

Name Description
Request Player Data Will get information about the current logged in player. Requires the property Player Data to be Enabled
Request Player Replay Will get information for Replay Mode. Requires the property Replay to be Enabled
Request Player Save State Will get save state of specific user. Requires the property Save State to be Enabled
  • Request Player Replay
    • Mandatory
      • User ID The unique ID of the player that you want to get their Replay Data
  • Request Player Save State
    • Mandatory
      • User ID The unique ID of the player that you want to get their Save State

Purchase

Name Description
Purchase Item Purchase items inside the game using GAMEE Coins. Requires the property Coins to be Enabled
  • Purchase Item
    • Mandatory
      • Coin Cost The cost of the item
      • Item Name The name of the item
      • Item Image The Image of the item (base64Image)
    • Optional
      • Developer Payload Purchase data to be stored

Social

Name Description
Share Shares a post on Feed or Battles. Requires the property Share to be Enabled
Request Social Will get more social data about Gamee players. Requires the property Social Data to be Enabled
  • Share
    • Mandatory
      • Text The message of the post
      • Destination It will indicate where the post is going to be published, on Feed or Battle
      • Picture Image for the post. The image should be in format 4:3 (640x480px), 1:1 (640x640), or 3:4 (640x852). Maximum size is 150 kB. (base64Image)
    • Optional
      • Score The score of the Player
      • Init Data Data that will be shared with other players when they use the post

Expressions

Name Description
gameeSaveState Contains data you previously saved
gameeReplayData Contains data to use on replay mode or ghost mode
gameeReplayVariant Contains variante to use on replay mode or ghost mode
gameeSocialData Contains friends and player data (score, avatar, highScore, etc...)
gameePlatform Contains the platform the player is using, it could be android,ios,web,mobile_web
gameeLocale Contains the country and the language of the player, for example en_US,es_MX/,pt_BZ
gameeGameContext contains the context of the game, it could be normal or battle
gameePlayerData Received Json when a player accesses the game through a post made with the Share action
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!