niv3k Posted December 29, 2009 Share Posted December 29, 2009 I've been reading about that LUA takes less time and code, and basically does everything C++ does. Is is possible to make a FPS with just LUA scripting and no need for C++? any info will be greatly appreciated Thanks, -Kevin Quote Link to comment Share on other sites More sharing options...
Josh Posted December 29, 2009 Share Posted December 29, 2009 Yes. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Rick Posted December 29, 2009 Share Posted December 29, 2009 Look in Scripts/Games to see a fps lua example. Quote Link to comment Share on other sites More sharing options...
niv3k Posted December 29, 2009 Author Share Posted December 29, 2009 Look in Scripts/Games to see a fps lua example. where is that? And i just remembered Crysis was a huge scripted game. Quote Link to comment Share on other sites More sharing options...
Rick Posted December 29, 2009 Share Posted December 29, 2009 It's right under the LE directory that you installed. The thing to remember is that all the languages you can use with LE can do everything LE provides. LUA is slower but allows for realtime editing where you can see the change you make instantly. C++ is faster but you have to go through a compiling step. So if you were using C++ to position something just perfectly, it would take you way longer to change code, recompile until you get it right. If you are using LUA it would all be instant and would take no time at all. The trade off is that when using lua, you might lose some frames per second depending on what you have lua doing. If it's running heavy logic it will slow your game down. You can, however, mix your C++ classes with lua so you can have C++ doing the heavy lifting so that part is faster. This would however take some experience and most likely drive you insane after some time Quote Link to comment Share on other sites More sharing options...
macklebee Posted December 29, 2009 Share Posted December 29, 2009 where is that? And i just remembered Crysis was a huge scripted game. you have to have the 2.3 upgrade to have access to the lua stuff built into LE Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
niv3k Posted December 29, 2009 Author Share Posted December 29, 2009 you have to have the 2.3 upgrade to have access to the lua stuff built into LE i know. ha. i was just asking questions, but will be upgrading soon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.