So I a while back I was wondering here and there if it would be possible if AGS can run 2 games at the same time and have them interact with each other on the same computer. While working on one of my online based games the thought grew more and more and with it as usual an ambition to try the idea out. I knew I was already working on Mile's Adventure and a hell of a lot of other things. So, I said the only way I could try this was if I made something simple and not to too complex to make using 2 games at the same time. So when I started I came up with "blue print" in MS paint. It was with this that allowed me to grasp and I idea of what type of game I wanted to make. my first thought was to make a short PMQ tech demo that used a small puzzle part of one of my other games but made it where it would work using two screens. However the idea was scraped and I eventually changed the game to a Shard Hunters tech demo.
Shard Hunters was organically supposed to be a MAGS game but was never finished. It was a simple game but I was already busy with something else so I dropped it cause I thought I wasn't gonna finish it on time.Cross Window Play System
, is the name of the the "new way to play!". Both games runs like any other AGS games but it's the way the play that's different. The way both games interact with each other is the .tmp files made and deleted by 1 or the games. Whether you got a new item or are low on HP, the games will always be interacting. It not that hard to script the everything, it just takes a clear head and a lot of planing. Once you learn how script in AGS and use it's file function stuff then the rest it is just logic.
Something like this would be used by 1 game if a Quit Game button was clicked.
File *output = File.Open("CrossExit.tmp", eFileWrite);
output.WriteString("You will die!");
Then this would be used by both games under repeatably_execute.
File *output = File.Open("CrossExit.tmp",eFileRead);
if (output == null)
btnAbout.Text = "1";
// output.WriteString("test string");
This would close both games at the same time and delete the CrossExit.tmp file so that it does not mess with the games on their next launch, like closing them as soon as they load up.
Though game was made to test something, would you use this type of play style for 1 of your games? I don't think it's really that much to script but the then again that mostly depends on the type of game your trying to make.