Sunday, February 8, 2015

Scene Managing

Lately, I was looking at the code for a game that used constants and a global variable to keep track of scene changes, something I've done in at least one of my WIPs, too. It got me thinking that it'd be nice to have some code available for spitting scene stuff out so authors don't have to reinvent the wheel each time.

A room might check scene settings like this:

And here is the actual scene routines and code:

Anyhow, not sure how useful this will be to most people so I probably won't add it to Roodylib, but there it is!

No comments:

Post a Comment