User Components now have to reside in the engine directory?

1 view
Skip to first unread message

Terence Tan

unread,
May 21, 2011, 6:12:56 AM5/21/11
to The Render Engine
Since the project I am working on is more of a long term one, I
switched over from 1.5 to 2.0 today.

One of the few things I noticed is that there is no longer an
'include' but and R.engine.define to use components. This means all
'user components' now have to reside in the engine file area which
sorta makes code management messy. I must caveat this by saying I have
only been playing around with it for a day.

IMHO, that makes things pretty messy for user written components which
I would rather exist in a separate directory from the engine source.
Is there a workaround?

Brett Fattori

unread,
May 21, 2011, 10:00:54 AM5/21/11
to the-rend...@googlegroups.com
The R.Engine.define construct not only allows you to define dependencies, but it allows you to set includes and requirements. I'd suggest taking a look at level editor which has a more complex include. Anything relative to the engine will be automatically pathed. But you can also specify absolute paths. I'm on vacation this weekend without my computer so I'll respond more thoroughly when I get back.

- Brett Fattori

PS: I sent this from my iPad, so apologies for misspllings, typ0s, and badly grammar! =)

> --
> You received this message because you are subscribed to "The Render Engine" group.
> To post to this group, send email to the-rend...@googlegroups.com
> To unsubscribe from this group, send email to
> the-render-eng...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/the-render-engine?hl=en

Terence Tan

unread,
May 21, 2011, 10:58:21 AM5/21/11
to The Render Engine
I took a look the level editor. Looks pretty straight forward. I was
going around saying "Curses! You took my class name" before you
explained it all. I can see why you did away with way you did engine
includes though.

Would like to see more of the level editor now that you pointed it out
to guide me on some of the UI work I have to do with the Game Editor I
am building. I have to admit all this "Web" stuff gives me a headache
after not having done it for over ...10 years..

-T

On May 21, 10:00 pm, Brett Fattori <bfatt...@gmail.com> wrote:
> The R.Engine.define construct not only allows you to define dependencies, but it allows you to set includes and requirements.  I'd suggest taking a look at level editor which has a more complex include. Anything relative to the engine will be automatically pathed. But you can also specify absolute paths. I'm on vacation this weekend without my computer so I'll respond more thoroughly when I get back.
>
> - Brett Fattori
>
> PS: I sent this from my iPad, so apologies for misspllings, typ0s, and badly grammar! =)
>
Reply all
Reply to author
Forward
0 new messages