For coding game, you can create an easy, intuitive coding interface with Blockly (block editor open source) . By WebSocket we can connect Blockly and UPBGE.
The repository is here : https://forge.apps.education.fr/blender-edutech/portail-coulissant/jumeau-numerique