This read only variable returns the display name of your game for the target platform, as set in the Global Game Settings.
NOTE: This is a Pro version only variable, and on the regular version it will always return "Made With GameMaker: Studio".
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.