Game Maker's Garage Forum

Game Creation => Code Exchange => Topic started by: GMG Kurt on August 25, 2011, 03:39:02 PM

Title: Game Hub [GM]
Post by: GMG Kurt on August 25, 2011, 03:39:02 PM
do you want to bundle all of your GM applications into one without the burden of copy and pasting?
Game hub gives you this option with the use of the simple UNIX open command with the -a switch

the base of the programming is
Code: [Select]
BEGIN APPLESCRIPT
  do shell script "open -a game1"

  tell application "GameHub"
  quit
  end tell
END APPLESCRIPT
which opens a compiled GM application called Game1 and closes a compiled application called GameHub. Game hub acts as an intermediant between games, which is optional, but seems like a good idea for interfacing multiple games. The other games can be anywhere on the machine, and it's suggested you put the other games in a folder and hide them with the
"chflags hidden ~/desktop/ManionGameHub/games" commands (assuming the games are in your desktop in a folder called games inside ManionGameHub.)

here's a sample program bundle using Game Hub. I'll try to create a tutorial on this soon.
http://www.mediafire.com/?btrxqy2r5jcx4n2