Jump to content
  • Advertisement
Sign in to follow this  
ddn3

Unity Try out Lua

This topic is 3044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!