Original Post
Okay guys, this is a design question.
Premise #1: We have a game engine that repeatedly calls a quick-exit loop. Said loop does one general Update() call and one general Render() call. Nothing new so far. We''d like to keep it in this format as the core has proven pretty tough and alt-tab friendly.
Premise #2: We''re about to integrate a script engine, as the game will pretty much be an adventure game.
Our problem: Since the main call of the game is a must-be-quick-exit function, we can''t use the usual method with script engines which is to have the script engine control the loop and occasionally call ''CheckWinMessages'' or whatnot.
I''d like to hear from everyone who''ve used script engines, or made adventure games. Are there solutions out there for this particular problem? We''re thinking we could use tons of messages and turn the script engine into more of a ''Message handler'' for our situations. Are there any other ideas out there?
=^.^= Leaders and teachers should remember: It is best to offer others what they Need, not what they Want.