Mini 2D-games inside the level

How. Could you please point me into the right direction? I want to add a mini-game to my 3d game. I want it to be playable from a terminal within the level.