I would like to create a programming/electronics game in which the player has to create a system to control something. My issue with this is creating a way for the user to program in game, so say open a terminal or whatever and enter in code.
What I would like to do is import a programming language (maybe in a self contained object that can read how many and what inputs and outputs it has etc) in order to be used to program something in game. Say for example the player is given a reactor with sensor outputs and inputs and are told to give parts of it commands depending on different conditions.
Does anyone know if this would be possible? I want to base it on real languages rather than create one just for the game, for example c++, python or maybe multiple different languages so that the player can chose what they are comfortable with or want to learn.
I know I could essentially create the language from scratch in a sudo sort of way but I think that could lead down a very dark path full of bugs and tears haha. (I also want the user to be able to design the control circuity for each part but that’s the next step).
I know there won’t be a simple answer for this but I does anyone know if it is possible? I have seen it in minecraft mods such as computercraft (they use lua) but I would really like to create something with cool graphics).