This read only variable returns the display name of your game for the target platform, as set in the Game Options.
var name = game_display_name;
var ver = string(GM_version);
draw_text(32, 32, name + ":" + ver);
The above code gets the display name and the version number of the game and draws them.