Thanks guys!
Some updates, nonZero is now working on the GUI for the game, I've fixed everything on the bugs list, and I'm adding in the final features.
C++ development has started already as well. I've started on the script compiler first because that lays down the ground upon which the game will be built. The scripts in the new engine are going to be C-inspired code rather than command line code.
So far, the program can take a file like this:
void main ( void )
{
int i ;CreateUnit(
x, y,
yeah );
return
;
}
(no one would code like that, it's just for an extreme test)
And the program converts it to a much more readable form, which can be properly compiled:
The method for compiling a file is part of the ScriptManager class, and looks like this:
cScriptManager* mScriptManager = new cScriptManager;
success = mScriptManager->compile( "testScript.pony", 1 );
The compiled byte-code is added to a pool of data, and a pointer to the first instruction is stored and associated with the passed script index internally. This means that you can run two instances of the script at the same time like this:
// will run script 1 twice, at the same time
mScriptManager->runScript( 1 );
mScriptManager->runScript( 1 );
TheComet