I have an idea for a game, wherein the player must control and repair the software systems of a spaceship or something similar, in order to
- A) Fix the ship by ordering repairs
or diverting power
- B) Create “artificial intelligence”
for the ship to maneuver by itself
- C) Attack/defend the ship from some
kind of enemy
- D) Create security- or convenience
systems on board.
The purpose is to create an engaging game, that may teach or engage players in learning how to code.
The programming language, I imagine to be identical or similar to C#, however it should not use any standard Unity functions, instead it should use a small library of functions only available inside the game world.
My problem is, however, I need to implement a programming language INSIDE the game. That is, you must be able to type code in a GUI element or something similar, have it compile and somehow affect the game world.
I’m not sure how to start. Are there any functions available to process code directly, or will I have to start from the bottom with this? Any insight would be useful, as would articles relating to this - Google Searches for “progamming inside a game” yields nothing useful.