<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Question about LUA scripts]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=181</link>
		<description><![CDATA[The most recent posts in Question about LUA scripts.]]></description>
		<lastBuildDate>Sun, 09 Oct 2011 15:29:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Question about LUA scripts]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=708#p708</link>
			<description><![CDATA[<p>Perfect <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Making functions and splitting files will greatly help, made some test already,<br />so far everything is working fine!</p><p>Very big thanks <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Sun, 09 Oct 2011 15:29:18 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=708#p708</guid>
		</item>
		<item>
			<title><![CDATA[Re: Question about LUA scripts]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=707#p707</link>
			<description><![CDATA[<p>Hi,<br />I&#039;ll have a look, for now I will say that the very important thing you need to do is using<br />functions to create generic stuff and reuse code on maximum. For exemple, when you see<br />that you are doing something more than one, make a function and call the function.</p><p>And for your variable, try to pack it in class or tables.</p><p>You can also cut your script and distribute it in multiple files for better clarity<br />(for example you can put all the functions in a separate lua file)</p><p>But I should say that the best way to make a game is to create all the generic and consuming stuff<br />as c++ behavior, and then do the logic in lua. Because once a behavior is done, you just have to put it on an object<br />and the time you finally gain is uge.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 09 Oct 2011 09:13:00 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=707#p707</guid>
		</item>
		<item>
			<title><![CDATA[Question about LUA scripts]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=705#p705</link>
			<description><![CDATA[<p>Hello,</p><p>In general, what is the best way to organize them ?</p><p>Cause i&#039;m over 500 lines for just some graphics and pretty basic movement / ennemy respawn system, <br />spending more time scrolling up side down into a variable labyrinth trying to fix small things rather than doing usefull<br />stuff for the game. This is slowing me as hell, any tips are (more than) welcome !</p><p>Here&#039;s the code i&#039;m working on : <a href="http://dl.dropbox.com/u/19970067/Questions/Skyline.lua">http://dl.dropbox.com/u/19970067/Questions/Skyline.lua</a><br />Its pretty basic and cowboy coded however i better ask now before i got burrowed under variables.</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Sat, 08 Oct 2011 20:42:58 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=705#p705</guid>
		</item>
	</channel>
</rss>
