<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Question about LUA scripts]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=181&amp;type=atom"/>
	<updated>2011-10-09T15:29:18Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=181</id>
		<entry>
			<title type="html"><![CDATA[Re: Question about LUA scripts]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=708#p708"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-10-09T15:29:18Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=708#p708</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Question about LUA scripts]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=707#p707"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2011-10-09T09:13:00Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=707#p707</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Question about LUA scripts]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=705#p705"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2011-10-08T20:42:58Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=705#p705</id>
		</entry>
</feed>
