lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


yo,

yeap, seems like the general consensus would be "game logic in lua and
engine stuff in C"....

i have the same idea  as Chris Chapman's 3 layer thingy where some logic is
defined in C to 'lighten up' lua. this definitely will help with lua
debugging

for example (this could be bad idea comments welcome;)) .. the character's
behavior defined using C at 1 layer above  (i definitely agree it should be
oblivious to the engine) the engine code.... by this i mean the character's
walk anim, walk speed, jumps, melee atacks, everyting it can do.... this
means... i can load up a level, drop the guy onto it and he can move around
jumps etc without any lua.... lua only comes in if i wan somehting to happen
when i press x when hes standing on a certain location...

has anybody else tried this 3 layered thingy (Lua|game libs|game engine) or
its just Lua and Engine.... ???


and we definitely have that problem of debuggin lua. sounds like attempts
have been made to debug lua inside the engine... kinda sounds like u need
threads coz u are blocking the main loop then u have to get user input so i
can step through look at variable values etc...

thanks
tham