Sign in to follow this  
ddn3

Unity Try out Lua

Recommended Posts

I've released a small demo application I use to prototype tech I'm researching. I've used it to integrate Lua and LuaJit into an a working application among other things. If your interested in trying out Lua without rolling your own implementation, you can now try it out in a simple interactive IDE. http://www.gamedev.net/community/forums/topic.asp?topic_id=562961 To access Lua you'll need to enable the toolbar which will let you show the editor with which you can start writing scripts (modify the Tunings.xml value EnableToolBar to true). Use the F6 key to run/compile the script ur currently on. It's also sandbox (I've removed as many of the offending API as recommended from this page (http://lua-users.org/wiki/SandBoxes) and still keep it functional (require is still available but modified and setmetatable so you can explore OO Programming in Lua). Enjoy! -ddn

Share this post


Link to post
Share on other sites
Quote:
Original post by ddn3
I've released a small demo application I use to prototype tech I'm researching. I've used it to integrate Lua and LuaJit into an a working application among other things. If your interested in trying out Lua without rolling your own implementation, you can now try it out in a simple interactive IDE.

http://www.gamedev.net/community/forums/topic.asp?topic_id=562961

To access Lua you'll need to enable the toolbar which will let you show the editor with which you can start writing scripts (modify the Tunings.xml value EnableToolBar to true).

Use the F6 key to run/compile the script ur currently on. It's also sandbox (I've removed as many of the offending API as recommended from this page (http://lua-users.org/wiki/SandBoxes) and still keep it functional (require is still available but modified and setmetatable so you can explore OO Programming in Lua).

Enjoy!

-ddn


Mind me asking what LuaJit is? I went to the website and it sounded like a faster version of lua or something?

Share this post


Link to post
Share on other sites
That's a just in time compiler for Lua. It converts Lua into x86 asm on the fly, resulting in an average speed increase of 3x. Here's the webpage :

http://luajit.org/

I'm only using the 1.0 version, as I couldn't get 2.0 to compile and it's in beta.

Enjoy!

-ddn

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this