<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Oxeye Game Studio &#187; Lua</title>
	<atom:link href="http://www.oxeyegames.com/category/lua/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oxeyegames.com</link>
	<description>Creative Games</description>
	<lastBuildDate>Fri, 16 Jul 2010 16:59:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Secret Gifts &#8211; Part Two &#8211; Heads-up</title>
		<link>http://www.oxeyegames.com/secret-gifts-part-two-heads-up/</link>
		<comments>http://www.oxeyegames.com/secret-gifts-part-two-heads-up/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 08:36:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DaisyMoon]]></category>
		<category><![CDATA[Gifts]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Project B]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/?p=238</guid>
		<description><![CDATA[I just wanted to give you a small heads-up on the next Project B secret gift!
The next gift will be sent to somebody who creates something interesting in our Lua prototyping engine, DaisyMoon. We haven&#8217;t decided on the hows, whens and whys yet, so the challenge hasn&#8217;t officially started yet. We&#8217;re waiting until the documentation [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to give you a small heads-up on the next Project B secret gift!</p>
<p>The next gift will be sent to somebody who creates something interesting in our Lua prototyping engine, DaisyMoon. We haven&#8217;t decided on the hows, whens and whys yet, so the challenge hasn&#8217;t officially started yet. We&#8217;re waiting until <a href="http://www.oxeyegames.com/wiki">the documentation</a> is more complete and we have a Mac build working again (progress has been made).</p>
<p>Anthony Salter of <a href="http://www.viridiangames.com/">Viridian Games</a> has planned to do a <a href="http://www.viridiangames.com/blog/daisymoon">small video blog series</a> about DaisyMoon. Something to keep an eye on! <img  src='http://www.oxeyegames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>/jeb</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/secret-gifts-part-two-heads-up/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Horror Tactics (Prototype)</title>
		<link>http://www.oxeyegames.com/horror-tactics-prototype/</link>
		<comments>http://www.oxeyegames.com/horror-tactics-prototype/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 11:39:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Horror Tactics]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Prototypes]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/?p=115</guid>
		<description><![CDATA[Hey
We&#8217;ve made a new game prototype called &#8220;Horror Tactics&#8221;. It&#8217;s a &#8220;move&#8217;em&#8217;up&#8221; kind of game inspired by Games Workshop&#8217;s old Space Hulk board game.
The game has been scripted in our DaisyMoon Lua engine, so you can view and edit the source code if you want to change settings or difficulty. The music has been made [...]]]></description>
			<content:encoded><![CDATA[<p><img  class="alignright" title="Horror Tactics Portrait" src="http://www.oxeyegames.com/files/HT/face.jpg" alt="" width="300" height="141" />Hey</p>
<p>We&#8217;ve made a new game prototype called &#8220;Horror Tactics&#8221;. It&#8217;s a &#8220;move&#8217;em&#8217;up&#8221; kind of game inspired by Games Workshop&#8217;s old Space Hulk board game.</p>
<p>The game has been scripted in our DaisyMoon Lua engine, so you can view and edit the source code if you want to change settings or difficulty. The music has been made by Blackspawn.</p>
<p>Please give the prototype a go and give us feedback on what you think about it!</p>
<p>Windows: <a href="http://www.oxeyegames.com/files/HT/HorrorTactics.zip">http://www.oxeyegames.com/files/HT/HorrorTactics.zip</a></p>
<p>You may also <a href="http://www.oxeyegames.com/forum/viewtopic.php?f=13&amp;p=3327">discuss this in our forums</a>.</p>
<p>Cheers!</p>
<p><em>/jeb</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/horror-tactics-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lua Binding Woes</title>
		<link>http://www.oxeyegames.com/lua-binding-woes/</link>
		<comments>http://www.oxeyegames.com/lua-binding-woes/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 19:21:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Code Stuff]]></category>
		<category><![CDATA[Lua]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/lua-binding-woes/</guid>
		<description><![CDATA[As you know, we&#8217;ve been using Lua to make prototypes and add mod support to Harvest. However, I&#8217;ve always thought that the C++ binding we&#8217;ve used hasn&#8217;t really worked the way I&#8217;d like it to. Basically we&#8217;ve used simple C functions to create our own Lua library for callbacks, and some Lunar objects in Harvest. [...]]]></description>
			<content:encoded><![CDATA[<p><img  src="http://www.oxeyegames.com/wp-content/uploads/2008/04/logo.gif" alt="Lua Logo" class="alignright" />As you know, we&#8217;ve been using Lua to make prototypes and add mod support to Harvest. However, I&#8217;ve always thought that the C++ binding we&#8217;ve used hasn&#8217;t really worked the way I&#8217;d like it to. Basically we&#8217;ve used simple C functions to create our own Lua library for callbacks, and some <a href="http://lua-users.org/wiki/CppBindingWithLunar">Lunar</a> objects in Harvest. Lunar allows you to do stuff such as this:</p>
<blockquote><p>local stuff = lib.getStuff()<br />
stuff:foobar() &#8212; call C++ member method</p></blockquote>
<p>However, it doesn&#8217;t allow you to do this:</p>
<blockquote><p>local stuff = lib.getStuff()<br />
stuff.onEvent = function(self) print(&#8221;Recieved event!&#8221;) end</p></blockquote>
<p>The problem is that with Lunar all objects of the &#8220;stuff&#8221; class share the same meta table. It&#8217;s possible to modify the meta table in Lua by calling getmetatable(), but then you will be modifying the meta table of <em>all</em> instances of &#8220;stuff&#8230;&#8221;</p>
<p><span id="more-89"></span>In other words I needed a new solution. A friend over at #gamedev (at QuakeNet), Joris &#8220;Interface&#8221; de Gruyter, gave me a link to a <a href="http://www.codeproject.com/KB/cpp/luaincpp.aspx">Lua in C++</a> article at CodeProject. That was great, it had all kinds of useful stuff, but it required the script to be run for each object because it used a &#8220;this pointer&#8221; method, such as:</p>
<blockquote><p>this:foobar() &#8212; call C++ member function<br />
this.onEvent = function(self) end &#8212; create callback function</p></blockquote>
<p>I can imagine this kind of system is great for certain kinds of projects, since it cleans up the Lua code and places different objects into different Lua files. However, this was <em>still</em> not what I wanted! So I scratched my head a while and looked around in the code of the two options&#8230; and then I realized they were combinable!</p>
<p>So the solution I used was to create a new Lunar-like class (called &#8220;Lunamatic,&#8221; after a famous Akarra/Harvest player), since it had that nice member-function pointer stuff, but instead of placing the meta table information in the global scope I recreated the table for every instance of the class. As you can imagine, this is less efficient than using a shared table, so it&#8217;s not useful in <em>every</em> situation, but sometimes. This way I could achieve what I was really looking for, namely:</p>
<blockquote><p>local button1 = gui.createComponent(&#8221;button&#8221;)<br />
local button2 = gui.createComponent(&#8221;button&#8221;)<br />
button1:moveTo(100, 100)<br />
button1.onClick = function(self) print(&#8221;foo&#8221;) end<br />
button2.onClick = function(self) print(&#8221;bar&#8221;) end</p></blockquote>
<p>Since our WordPress skin isn&#8217;t suitable for code dumps, I have put the juicy stuff in our forums. For the interested, pleace follow this link: <a href="http://www.oxeyegames.com/forum/viewtopic.php?f=13&amp;t=346">http://www.oxeyegames.com/forum/viewtopic.php?f=13&amp;t=346</a></p>
<p><em>/jeb</em></p>
<p>PS. The RTS article series will continue &#8220;in 2009&#8243; <img  src='http://www.oxeyegames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  DS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/lua-binding-woes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>House Globe, Space RTS in the Second Dimension</title>
		<link>http://www.oxeyegames.com/house-globe-space-rts-in-the-second-dimension/</link>
		<comments>http://www.oxeyegames.com/house-globe-space-rts-in-the-second-dimension/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 19:00:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Competitions]]></category>
		<category><![CDATA[House Globe]]></category>
		<category><![CDATA[Lua]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/house-globe-space-rts-in-the-second-dimension/</guid>
		<description><![CDATA[Remember &#8220;Because it&#8217;s fun, Fay?&#8221; It was a game we made for the TIGSource Procedural Generation Competition, held earlier this summer. We created it using our Lua script engine, Daisy Moon, which we usually use when we want to prototype different game ideas (we also use Multi-media Fusion sometimes, depending on the situation). The game [...]]]></description>
			<content:encoded><![CDATA[<p>Remember &#8220;<a href="http://www.oxeyegames.com/because-its-fun-fay/">Because it&#8217;s fun, Fay</a>?&#8221; It was a game we made for the <a href="http://www.tigsource.com/features/pgc/index.html">TIGSource Procedural Generation Competition</a>, held earlier this summer. We created it using our Lua script engine, Daisy Moon, which we usually use when we want to prototype different game ideas (we also use <a href="http://www.oxeyegames.com/thewreck-in-retrospect-part-1/">Multi-media Fusion sometimes</a>, depending on the situation). The game turned out to be a two-player platform game with one character living in a rotated dimension, and with a JRPG end-boss fight. Maybe not our greatest game, but if you haven&#8217;t tried it, you can find it <a href="http://www.oxeyegames.com/because-its-fun-fay/">here</a>.</p>
<p>Now it&#8217;s time for a new TIGSource competition and a new game! This time the theme is <a href="http://tigsource.com/articles/2008/08/01/tigcompo-bootleg-demakes">Bootleg Demakes</a>, and people have posted over 100 threads about competition projects. A &#8220;bootleg&#8221; means &#8220;inofficial copy&#8221; and &#8220;demake&#8221; means &#8220;that is made to look as though it were running on older-generation hardware&#8221;. We could obviously not resist competing again and, using our Daisy Moon engine once more, created <strong>House Globe</strong>.</p>
<p>Hit the jump for the full story!</p>
<p><span id="more-62"></span></p>
<p><img class='PxgGlobalImage'  src="http://www.dawnofdaria.com/Kinten/ourglobe/box.gif" height="365" width="373" /></p>
<p><strong>Artifact&#8217;s House Globe &#8211; 2D Real-time Strategy Game</strong></p>
<p>Our competition entry is a demake of the classic Homeworld by Relic. If you haven&#8217;t played it, the short story is that Homeworld is a real-time strategy game in space. Your fleet is centered around your Mothership, which constructs units and is the drop-off zone for resources. In the game you are travelling through space in order to find your homeworld, while evil aliens attempt to destroy you (obviously).</p>
<p>When we began making the game we set our hardware target at the PC games of the mid-ninetees, think <a href="http://en.wikipedia.org/wiki/Dune_2">Dune 2</a> (i.e. the 320&#215;240 resolution is <em>intentional</em>). We wanted to translate Homeworld&#8217;s 3D view to a flat 2D version, while keeping the key features that made Homeworld the game it is. That means your Mothership (called Maternal Vessel in House Globe) is the center piece of your fleet and will construct all units. It also means that we wanted to keep the tactical/strategical toggle that Homeworld has.</p>
<p>Beyond those initial concepts, we felt quite free to design our own game. We put much effort on making the &#8220;micro&#8221; part interesting (good control/response when moving units), and having a balanced technology tree. In the end we believe we managed to make a really good game in only 10 days or so.</p>
<p>Features:</p>
<ul>
<li>2D RTS</li>
<li>Single-player practice vs the computer</li>
<li>1on1 online multi-player</li>
<li>Replay recordings of multi-player games</li>
</ul>
<p>Screenshots:</p>
<p><a href="http://www.dawnofdaria.com/Kinten/ourglobe/Build.jpg"><img class='PxgGlobalImage'  src="http://www.dawnofdaria.com/Kinten/ourglobe/smBuild.jpg" height="75" width="100" /></a>  <a href="http://www.dawnofdaria.com/Kinten/ourglobe/Menu.jpg"><img class='PxgGlobalImage'  src="http://www.dawnofdaria.com/Kinten/ourglobe/smMenu.jpg" height="75" width="100" /></a> <a href="http://www.dawnofdaria.com/Kinten/ourglobe/Hunt.jpg"><img class='PxgGlobalImage'  src="http://www.dawnofdaria.com/Kinten/ourglobe/smHunt.jpg" height="75" width="100" /></a> <a href="http://www.dawnofdaria.com/Kinten/ourglobe/Large.jpg"><img class='PxgGlobalImage'  src="http://www.dawnofdaria.com/Kinten/ourglobe/smLarge.jpg" height="75" width="100" /></a></p>
<p>Downloads:</p>
<ul>
<li><a href="http://www.oxeyegames.com/files/ourglobe/HouseGlobe.dmg">Mac OS X (Universal Binary, 16 MB)</a></li>
<li><a href="http://www.oxeyegames.com/files/ourglobe/HouseGlobe.rar">Windows (14 MB)</a></li>
</ul>
<p>Check the readme for game controls (it&#8217;s fairly inituitive). If you play any multi-player games, <em>please</em> send us the replay files! And&#8230; have fun! <img  src='http://www.oxeyegames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>/ jeb</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/house-globe-space-rts-in-the-second-dimension/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Harvest Update, Version 1.14</title>
		<link>http://www.oxeyegames.com/harvest-update-version-114/</link>
		<comments>http://www.oxeyegames.com/harvest-update-version-114/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 17:50:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Harvest]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Mods]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Updates & Patches]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/harvest-update-version-114/</guid>
		<description><![CDATA[It’s time for another “Harvest: Massive Encounter” update. The new version is numbered 1.14, and is a non-crucial patch that adds mod support to the Creative Mode. We have started a whole new section on the forums related to Harvest modding, head over there now and check out all the mods that are being made! [...]]]></description>
			<content:encoded><![CDATA[<p>It’s time for another “Harvest: Massive Encounter” update. The new version is numbered 1.14, and is a non-crucial patch that adds mod support to the Creative Mode. We have started a whole <a href="http://www.oxeyegames.com/forum/viewforum.php?f=19" title="Harvest Massive Encounter Mods Forum">new section on the forums</a> related to Harvest modding, head over there now and check out all the mods that are being made! The forum section also contains all the necessary information needed to get started with making your own mod. For example, check out <a href="http://www.oxeyegames.com/forum/viewtopic.php?f=19&amp;t=239" title="How to Create Mods">How To Create Mods</a> or <a href="http://www.oxeyegames.com/forum/viewtopic.php?f=19&amp;t=257" title="How to Create Custom Graphics">How To Create Custom Graphics</a> to get you going. All mods are open source and easily changeable in any text editing tool.</p>
<p>The patch contains the following mods:</p>
<ul>
<li><strong>Emulate Normal Mode</strong>:  A mod that works just like the Normal Mode.</li>
<li><strong>Emulate Rush Mode: </strong>A mod that works just like Rush Mode.</li>
<li><strong>Emulate Wave Mode: </strong>A mod that works just like Wave Mode.</li>
<li><strong>Starhawk: </strong>A mod that allows the player to send in a small fighter jet with custom graphics by entering &#8220;starhawk&#8221; in the input field that appears after pressing Enter ingame.</li>
<li><strong>Super Gun</strong>: A mod that allows the player to upgrade defense towers into bullet spewing super guns! These guns don&#8217;t require energy, but instead eat credits when they need to refill ammo.</li>
<li><strong>Infinite Credits: </strong>A mod that gives the player infinite credits.</li>
</ul>
<p>Here’s the <a href="http://www.oxeyegames.com/files/updates/HarvestPatcher114.dmg"><strong>Mac OS X updater for registered users</strong></a> (2.6 MB). Open the dmg and run the patcher, then simply drag and drop the Harvest application on to the patcher’s window.</p>
<p>The <a href="http://www.oxeyegames.com/files/updates/HarvestPatcher114.exe"><strong>Windows update is available here</strong></a> (1.3 MB). This patcher requires a previous installation of Harvest, simply use the same application folder when you run it.</p>
<p>Happy Modding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/harvest-update-version-114/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Because it&#8217;s fun, Fay</title>
		<link>http://www.oxeyegames.com/because-its-fun-fay/</link>
		<comments>http://www.oxeyegames.com/because-its-fun-fay/#comments</comments>
		<pubDate>Mon, 02 Jun 2008 21:29:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Competitions]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Lua]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/because-its-fun-fay/</guid>
		<description><![CDATA[During the last couple of weeks we&#8217;ve been working on a small game for TIGSource&#8217;s Procedural Generation competition. The deadline is tonight, and we are just finished! The game&#8217;s called &#8220;Because it&#8217;s Fun, Fay&#8221;, and is about a woman called Fay who has been trapped in a tower by a lonely fairy known as Cornipolous. [...]]]></description>
			<content:encoded><![CDATA[<p>During the last couple of weeks we&#8217;ve been working on a small game for <a href="http://www.tigsource.com">TIGSource</a>&#8217;s Procedural Generation competition. The deadline is tonight, and we are <em>just</em> finished! The game&#8217;s called &#8220;Because it&#8217;s Fun, Fay&#8221;, and is about a woman called Fay who has been trapped in a tower by a lonely fairy known as Cornipolous. Not interested in being anybody&#8217;s pet prisoner, Fay decisively begins to find her way out of the tower. Cornipolous knows there are many dangerous monsters around, and he doesn&#8217;t want her to get hurt, so he&#8217;s forced to assist in her escape.</p>
<p>You can either play yourself or cooperatively with a friend, but in both cases the objective is to get Fay and Corn to the top of the tower, where an evil boss awaits. The topic of the competition was that the game should be different every time you play, so the game&#8217;s level and boss are randomized when the game begins. Download the game here:</p>
<ul>
<li>Mac OS X: <a href="http://www.oxeye.se/files/stuff/BIFF_Mac.zip">http://www.oxeye.se/files/stuff/BIFF_Mac.zip</a></li>
<li>Windows:  <a href="http://www.oxeye.se/files/stuff/BIFF.zip">http://www.oxeye.se/files/stuff/BIFF.zip</a></li>
</ul>
<p>Like the <a href="http://www.oxeyegames.com/forum/viewforum.php?f=19">mods for Harvest</a>, this game has been written completely in Lua. This has been an interesting experiment, and feels like an easy and quick way of testing new game ideas. You will probably see more of this from us <img  src='http://www.oxeyegames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><em>Hit the jump for a screenshot from the game&#8230;</em></p>
<p><span id="more-57"></span></p>
<p><a href="http://www.oxeye.se/files/stuff/Screen-080602-00.jpg" rel='PixGallery' title=""><img src="http://www.oxeyegames.com//wp-content/uploads/cache/a0c6e79deb1b59ac8105585297a596e5.jpg" height="384" width="512" / class='PxgGlobalImage'></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/because-its-fun-fay/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Modding Harvest</title>
		<link>http://www.oxeyegames.com/modding-harvest/</link>
		<comments>http://www.oxeyegames.com/modding-harvest/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 10:49:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Harvest]]></category>
		<category><![CDATA[Lua]]></category>
		<category><![CDATA[Mods]]></category>

		<guid isPermaLink="false">http://www.oxeyegames.com/modding-harvest/</guid>
		<description><![CDATA[As some of you might already know, we&#8217;ve been working (experimenting) with adding Lua to Harvest.  The mods allow you to alter the game rules in Creative Mode, and can be used to add new effects, triggers and even gameplay elements. While there still is a lot of work to be done (such as [...]]]></description>
			<content:encoded><![CDATA[<p><img  src="http://www.oxeyegames.com/wp-content/uploads/2008/04/logo.gif" alt="Lua Logo" class="alignright" />As some of you might already know, we&#8217;ve been working (experimenting) with adding <a href="http://www.lua.org">Lua</a> to Harvest.  The mods allow you to alter the game rules in Creative Mode, and can be used to add new effects, triggers and even gameplay elements. While there still is a lot of work to be done (such as modifying alien AI), it&#8217;s already running nicely.</p>
<p>The mod support has its own <a href="http://www.oxeyegames.com/forum/viewforum.php?f=19">forum category</a>, where you will be able to find documentation and other people&#8217;s mods. So far we&#8217;ve released a &#8220;beta patch&#8221; for those who wants to try the mods or make their own ones. You find the patch, and some basic example mods, here: <a href="http://www.oxeyegames.com/forum/viewtopic.php?f=19&amp;t=246">http://www.oxeyegames.com/forum/viewtopic.php?f=19&amp;t=246</a></p>
<p><em>/jeb</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.oxeyegames.com/modding-harvest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
