Use the Wolfram knowledgebase to inject real-world data in a game.

In this project, we will generate the code necessary to get data from the Wolfram knowledgebase and deploy the code to a Unity project. This Unity project will build a game that gives informations about a country selected by clicking on a globe.

Extract basic country information based on latitude and longitude data:

For example at the latitude 0 and longitude 0:

Use EmbedCode to create the code for calling a Cloud API from Unity and save the generated code in the Unity project world:

The Unity project world is made a scene with a globe and modules to display country data generated from the Wolfram knowledgebase. Open the project with UnityOpen:

After opening the scene, use UnityBuild to build the game:

Launch the game: