Ask HN: My 12 year old nephew wants to make a game, how do I help him? 11 years ago
There is a MOD for minecraft called 'ComputerCraft' it has a LUA based programming environment with a basic OS (filesystem, console) and various API (including a HTTP API). You can use it in game to control and interact with various things.
To see it in action: https://www.youtube.com/watch?v=wrUHUhfCY5A&list=PLah_Dh8PIq... (the video's author, Direwolf20, had a good MOD pack including ComputerCraft).
Of course it's not directly creating a game, but perhaps a fun way to get introduced to programming.