Cart based games / download game demos

I was thinking about the usefulness of being able to reboot the engine in a normal application, and I realized that it could potentially be used with downloaded game.darc files as long as they are the same engine version.

One application could be to have a “gameportal” main app which can then download lists of games, and then be able to download each game, and boot in and out of it through using the ability to relaunch Defold’s engine.

Another would be to download mini playable demos of games to promote them. So you could download the demo archive, and then invite the user to play instantly, and then either go to the app’s store link, or return back to the main game. Of course you can bundle demos like this in with your main game as their own collections, but being able to stream them in remotely and arbitrarily would be nice - they just have to be built with same engine version, and be made to know how to reboot back into the main project.

I don’t think this is currently possible to do (am I wrong?), but it should be possible with some changes to allow it.

2 Likes

Maybe I don’t understand perfectly what you mean, but you can reboot the engine and start another game in it (without restarting the process). http://www.defold.com/ref/sys/#reboot:arg1-arg2-arg3-arg4-arg5-arg6

This is what we do when you are running a dev app on a phone. When you build and launch, the editor sends that message over the network. That’s why the app doesn’t die, but restarts different games.

1 Like

I want to be able to download extra game.darcs from remote servers, save them in a directory, and then reboot into them. What would be the best method to download and save the files so that they can be used to reboot into?

1 Like

Woah, that could be useful. I’m not sure if this works currently, but I might experiment some to see if it’s doable!

1 Like

If you get it working please let me know! And detail why it doesn’t if it doesn’t. I think there is no way to properly save the files needed so that they can then be used to reboot into.