playgen.io

Documentation

Player events

Playground

Test and Visualize Game Events for Debugging and Integration

The Playground feature in playgen.io allows you to test and visualize game events in real-time, helping you debug and optimize your integration. Accessible from the game editor, the Playground provides a detailed view of each event as it occurs, letting you monitor player interactions and debug custom event handling.

Using the Playground

  1. Accessing the Playground:

    • Open the game editor and navigate to the Playground section.
    • This section is specifically designed to help developers view, test, and handle game events generated by playgen.io games.
  2. Viewing Events in Real-Time:

    • As players interact with the game, events are logged in the Playground interface.
    • The Outbound and Inbound tabs allow you to distinguish between events emitted by the game and responses or actions taken within your app.
  3. Debugging and Testing Integrations:

    • Use the Playground to confirm that events like PLAYGEN_GAME_STARTED, PLAYGEN_GAME_COMPLETED, and PLAYGEN_SHARE_X are functioning as expected.
    • Check event data and ensure that all relevant information (e.g., timestamps, user actions) is correctly transmitted.
    • For events requiring responses or custom logic (such as PLAYGEN_REQUEST_ARCHIVE), verify that your integration correctly handles these requests.

Why Use the Playground?

The Playground is invaluable for developers looking to:

  • Debug Integration Issues: Quickly identify and resolve issues in event handling without needing to deploy changes to production.
  • Visualize Event Flows: See the sequence of events as players interact with the game, giving insights into engagement patterns and feature usage.
  • Optimize Event Handling: Ensure that custom code for gated content, ads, or lead generation triggers at the correct times and without errors.

By leveraging the Playground, you gain a powerful tool to ensure smooth and reliable event-driven integrations, providing a better experience for your users and maximizing the value of playgen.io's features.

On this page