Hi all,
![Smile :)](./images/smilies/icon_smile.png)
I've pushed my local enhancement to 'development' after a lot of testing: (I'll upload a new binary in a few days.)
- Removed a lot of dead code, fixed a lot of code style, and merged certain members and classes to be much more straight forward about their use.
Eg: I merged the EditorContext and EditorMode Class into one as only two rendering functions where useful in the context class.
The ModeContext class was renamed InputManager because it is simply what it does.
- The app is now using a stack of AppModes which will load on demand, instead of being uselessly preloaded in an array.
- The render manager only loads the meshes once instead than for each context, thus preventing an ogre exception when loading the same resource twice.
- The map loading code was semi-merged into one and only function in the GameMap class. It should be easier later to improve that now.
- Simplified a lot the code complexity on the input handling in the editor and in-game with several benefits:
The light and cursor mesh now appear from the start and not when you click the first time.
The editor can now put several tiles when dragging and can move creatures again.
- The camera rotation has been fixed.
- For everyone, here is the game commands in the development branch:
WASD/arrows : move camera
Q/E : Rotate left, right.
Page up/down: tilt up, down.
Home/End- Mouse wheel: Move higher/lower. -> The mouse wheel is functioning. the keys are fixed locally, I'll push that asap.
For those willing to try the editor:
R can change the type of tile you put.
Note that the game still crash at exit or when you load the editor after the game and vice versa, but I've removed half of the reasons of it.
Ah, and last but not least, I'm sure we might enhance the tile missing walls if we can manage to debug the function Tile::refreshMesh() which reload the meshes
according to their neighbours.
I've got some other work atm, but after that, I'll keep bugfixing the GUI handling which can desync easily atm, especially with the console.
EDIT:
Paul, could you copy the Test.level file from the level_git folder into the SVN levels/ folder? (Or maybe I have access to SVN?)
Once done, we'll be able to delete the levels_git/ folder which is redundant. Thanks!
Best regards,