lua-users home
lua-l archive

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


Bertrand Mansion wrote:
I am working on an interactive demo of Lua based on what was done for
Ruby here: http://tryruby.hobix.com/

I still have to write a little step-by-step "tutorial" that
demonstrates what Lua is good at and introduces the Lua syntax. Do you
have any links to an existing short tutorial and/or ideas about  cool
one-liners in Lua ?

Thanks,

Sorry for massive delay, but I was tied up for a bit and forgot :(

local moving_forward = GameCntrls:KeyPressed(ENUM_KEY_W) and 15 or (GameCntrls:KeyPressed(ENUM_KEY_S) and -15 or 0)
That sort of thing has always been a wonderful feature of Lua for me.
Too lazy to write a full if-then-elseif-else-end statement.