And yeah, still had to include some UI stuff like CMenuManager and CMessageBox2d as the game seems to really need them
pegperegogaucho
this actually works in-game?
adrientd
yes
adrientd
it just shows the sky color from the previously loaded level
adrientd
and you can still load to another level fine
adrientd
With this we can now make a new level from scratch, instead of reusing a preexisting one
adrientd
And because at this state all references are parsed, we can easily add/remove objects with less worry
pegperegogaucho
Asterix & Obelix without Asterix & Obelix
adrientd
Now I would have to find a way how to share objects between levels (to import common hooks from existing level to new one)
adrientd
That will be lots of fun
pegperegogaucho
pegperegogaucho
but how would you go about doing that
adrientd
I'm still thinking about that
adrientd
One idea could be to serialize objects/hooks (including all objects used by the hook) into a separate file (in binary or text, json, ...) and then deserialize them in another level
adrientd
Or instead of the file it can also be in the clipboard (so you just copy/paste hooks from one editor instance to another)
adrientd
I would still need to check if that's actually possible ^^
pegperegogaucho
i wouldn't do the clipboard method
pegperegogaucho
but of course it would be smart to have a dropdown of hooks you could insert of a class and they would somehow be available already