Water ... that adapts itself to the flow, that breaks everything like a sword
Little Big Adventure: Preview 6
Get link
Facebook
Twitter
Pinterest
Email
Other Apps
-
Tym razem wyszła trochę dłuższa prezentacja ale wydaje mi się, że nie powinno wam się nudzić oglądając ja :] więc nie będę już przeciągać oto pokaz nr. 6 :
So like always start with problem description: I have some pool of command represented as enumerator. Each of command can have unique data that size can be different. I wanted to create system that allow me in easy way iterate over them and execute. After some time I created this implementation: template<ECommands::enum cmd> bool execCommandTemp(ECommands::ENUM a_cmd, void* a_data) { if (a_cmd == cmd) { SCommand<cmd>::execute((SCommand ::SData*)a_data); return false; } return execCommandTemp<(ECommands::ENUM)(cmd+1)>(a_cmd, a_data); } template<> bool execCommandTemp<ECommands::WRAP>(ECommands::ENUM a_cmd, void* a_data) { return true; } bool execCommand( ECommands::ENUM a_cmd, void* a_data ) { return execCommandTemp<(ECommands::ENUM)0>(a_cmd, a_data); } where SCommand look in example such a way: template <> struct
And as I said last time new preview is available: As you can see a lot has changed. Right now I mostly focus on gameplay so I do test of AI (some of them you can see on end of movie), changes in fight, items managing, fix some problem with physics and many other things. To say truth I don't remember them all :P So I'm going back to work and till next week.
This time some more details about architecture of engine. First thing that I need to mention W.R.E. is not engine for L.B.A. project, I create tools that will be use in next productions. Because of that I take some decision that make it's structure more complicated but in the same time more flexible. In this moment W.R.E. is based on four modules: But as you see there is five elements :] Why ? Exe is only wrapper to game dll and do nothing else so I don't count it as module. Ok, so from begin: W.R.E. - Is main part of engine it's managing window, taking care of rendering, physic, sounds, file, materials and things like that. Game Engine - It's the frame of game. Contain all templates for objects i.e. Models, Characters, Action objects. Other important function of this module is editor functionality. Editor GUI - It's interface of editor based on Qt. It's mostly call function that are inside Game Engine. Game - This is DLL so it could be simple connected
Comments
Post a Comment