I've started work on my world editor, thanks to the wonderful WinBlitz3D lib. A few questions...
At the moment I am loading meshes, placing/moving/scaling/etc them, iterating through the Types to gather up entity placement data for the engine to load and finally exporting the data to a .txt file. Everything is working fine - but I haven't reached the "save/load" functions yet. What's the best way to do this? Just load up the .txt file like the engine does? I know it seems logical but I want to get it right. I suppose saving the current state of all the sliders, checkboxes, etc should be just importing the numbers and setting the gadgets accordingly?
Undo/Redo. *shiver*. We'll leave that one alone for now :).
Final question. If my editor is separate from the game engine, what's the best way to launch the engine from the editor? Is it a good idea to pause the editor during game execution, or just ExecFile() and leave it running?
At the moment I am loading meshes, placing/moving/scaling/etc them, iterating through the Types to gather up entity placement data for the engine to load and finally exporting the data to a .txt file. Everything is working fine - but I haven't reached the "save/load" functions yet. What's the best way to do this? Just load up the .txt file like the engine does? I know it seems logical but I want to get it right. I suppose saving the current state of all the sliders, checkboxes, etc should be just importing the numbers and setting the gadgets accordingly?
Undo/Redo. *shiver*. We'll leave that one alone for now :).
Final question. If my editor is separate from the game engine, what's the best way to launch the engine from the editor? Is it a good idea to pause the editor during game execution, or just ExecFile() and leave it running?