Godot Version
4.4.1.stable.mono.nixpkgs.49a5bc7b6
(Game Dev Noob) Question
Hello! It’s my first time working with Godot and I need to add a menu to a Pacman implementation. The menu should ask the player a question, give the player 4 options to answer it and determine whether the player has answered correctly. I’m having trouble showing the question and answer options to the player.
Code
The entire source code of the game, with Godot assets and scenes is available at: GitHub - nicolasdumitru/pacman at question_menu
Here, you can find what I’ve already tried to do.
Brief Explanation
The game’s main script is Game.cs. It handles, among other things, freezing the game, which is of necessary, as I need to show the question menu when Pacman is caught by a ghost.
I have added the QuestionMenu scene and C# script to the project. The QuestionMenu.cs script is supposed to deserialize a question received as JSON from an external program and handle the menu’s functionality: showing the menu, getting the answer from the player and determine whether it’s the correct answer. For testing purposes, at the moment, the external program’s code is question_menu.cpp and the QuestionMenu class expects a compiled binary to be res://bin/question_generator (or question_generator.exe on windows).
Thank you for taking the time to try and help me!