Skip to content

configcat-labs/ab-testing-godot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to implement A/B tests in GODOT

This is a 2D game created with the Godot game engine, demonstrating the implementation of A/B tests using ConfigCat for feature flag management and Amplitude for analytics.

The game features two distinct chest collecting variants based on the feature flag value:

  • Variant A: Players must stand in front of the chest for 4 seconds to collect it.
  • Variant B: Players must stand in front of the chest and press the 'Q' key three times to collect it.

Once the collection is successfully performed, the event is logged to Amplitude.

Gameplay

Requirements

To run the project, ensure you have the following:

Build & Run

  1. Clone this repository to your local machine.

  2. Open the project.godot file using the Godot importer.

  3. Locate the AmplitudeAnalytics.cs and ConfigCatService.cs files in the /globals folder. Open these files with your code editor and replace the placeholder keys with your own keys.

  4. In the ConfigCatService.cs make sure to match the flag name exactly as it set in ConfigCat's dashboard.

  5. Return to the game engine and click the Play button to run the game.

  6. Collect the chests in the game to generate Amplitude data.

  7. Create a chart on Amplitude and add the OnTap Chests Collected and OnTimer Chests Collected events to analyze the results.

Learn more

ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here.

You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on Twitter, Facebook, LinkedIn, and GitHub.

Author

Emil Kovacevic

Contributions

Contributions are welcome!

About

a-b-testing-in-godot-sample-app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published