ASH with RL2.0

vishwas.gagrani's Avatar

vishwas.gagrani

28 Feb, 2013 12:19 PM

hi!
Was going through this page:
http://knowledge.robotlegs.org/discussions/examples/20-links-to-rob...

Stumbled upon : ASH entity framework by Richard Lord.
googled and found this : http://shaun.boyblack.co.za/blog/2012/08/04/games-and-entity-system...

Since a long time I had been trying to explore entiy-framework for use in game dev. Tried studying Artemis.
**"I was told, that Entity System Framework, cannot be thought of , by thinking in the lines of OOPs and MVC" **

But when I saw ASH using Robotlegs 2.0, i had to post this question. Is it possible to use Entity System Framework, with Robotlegs 2.0 ? Two different frameworks togather ?

Vishwas.

  1. 1 Posted by Michal Wroblews... on 28 Feb, 2013 12:53 PM

    Michal Wroblewski's Avatar

    Hi Vishwas,
    Ash integration into Robotlegs 2.0 is just this one line:
    context.injector.map( Engine ).toValue( new SwiftSuspendersEngine( context.injector ) ); So it just creates new SwiftSuspendersEngine instance that uses context injector. So all the Robotlegs would be used to handle MVCS part of the game (menus, services etc), and also one Engine instance is shared in the framework. That's all.

    Cheers,
    Michal

  2. 2 Posted by vishwas.gagrani on 28 Feb, 2013 02:01 PM

    vishwas.gagrani's Avatar

    hmm... thnx.
    I too once wanted to do something like that.. by using Robotlegs (MVC) for "Enclosing Application, ie. menus and application level msg-boxes" and then loading different views ( each one representing a different game). And each of these views using some Entity Framework placed inside the view package. Was never sure, if it's a good practice to use two frameworks like this.

    However, the way you mentioned, seems quite a different approach. Leads me to think, it's much more difficult than i had imagined. :p

  3. 3 Posted by Michal Wroblews... on 28 Feb, 2013 03:38 PM

    Michal Wroblewski's Avatar

    Having that extension isn't required to use Ash inside of one RL view. You can create Engine instance (and initialize your game) on any step. And also if you want to have different instances of Engine in different views don't use the extension. These frameworks don't interfere, they work on a different level. Ash is part of one of your views.

    It there's anything else unclear, post once again :)

  4. Support Staff 4 Posted by Shaun Smith on 02 Mar, 2013 02:05 PM

    Shaun Smith's Avatar

    Closing this thread for now. Please feel free to re-open it if you have more to discuss.

  5. Shaun Smith closed this discussion on 02 Mar, 2013 02:05 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac