<?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>Slyfox &#187; Game Development</title>
	<atom:link href="http://slyfox.za.net/category/development/game-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://slyfox.za.net</link>
	<description>Concentrated awesome</description>
	<lastBuildDate>Sun, 30 Aug 2009 18:29:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MegaTrader I: The Premise</title>
		<link>http://slyfox.za.net/2009/01/megatrader-i-the-premise/</link>
		<comments>http://slyfox.za.net/2009/01/megatrader-i-the-premise/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 20:28:43 +0000</pubDate>
		<dc:creator>slyfox</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://slyfox.za.net/?p=67</guid>
		<description><![CDATA[A few months ago, I started working on a J2ME game called MegaTrader, which eventually fell by the wayside as I finished up on my honours work and settled into my new work. Lately, though, I&#8217;ve been spending some time again drafting ideas and notes on the game; notes I thought I&#8217;d write up here [...]]]></description>
			<content:encoded><![CDATA[<p>A <a href="/2008/10/megatrader/">few months ago</a>, I started working on a J2ME game called MegaTrader, which eventually fell by the wayside as I finished up on my honours work and settled into my new work. Lately, though, I&#8217;ve been spending some time again drafting ideas and notes on the game; notes I thought I&#8217;d write up here for the sake of commentary and the sake of getting it down in written form.</p>
<p><span id="more-67"></span></p>
<p>So, let&#8217;s start at the most basic iteration of the game itself, ignoring any details such as interface and representation. As I stated in the original article, the game can be summed up as <a href="http://en.wikipedia.org/wiki/Dope_Wars">Dope Wars</a> in space. Thus, the mechanics of the game may be summed up as follows:</p>
<ol>
<li><strong>Sell</strong> any inventory so as to make a profit.</li>
<li><strong>Buy</strong> more inventory at a low enough price to ensure a profit in the future (the nearer in the future and the higher the profit, the better).</li>
<li><strong>Travel</strong> to a different location, repeating the process from step 1.</li>
</ol>
<p>This process is repeated until a pre-set time limit is reached, with travelling using one time unit, and inventory actions being &#8220;free&#8221; actions. The end goal of the game is to amass as much wealth as possible within the time limit, in effect competing with yourself to better a personal best high score.</p>
<p>Each turn, the inventory prices are randomised according to a item&#8217;s base value and some measure of variance. The skill involved in the game then relies on the player&#8217;s ability to recognise the base values and variances of inventory items, such that they know when a certain item is at a &#8220;low&#8221; or a &#8220;high&#8221; price, corresponding to a &#8220;buy&#8221; or a &#8220;sell&#8221; on the part of the player.</p>
<p>To add an additional level of randomisation to the game, random events may be introduced that alter the player&#8217;s stock or money levels, or drastically alter the variation in prices. This may be implemented using non-uniform random number generation, such that smaller variations are more common than extremely large variations, which may well count for a mere fraction of the random number space, but may potentially yield vast gains for the player.</p>
<p>At this basic level, the game does not invite many opportunities for strategic play, since the game may effectively be &#8220;broken&#8221; if a player collects enough data about inventory prices, disregarding any random fluctuations/events. The next article in this series will outline some of the ideas I&#8217;ve had to expand the gameplay to make the game more interesting and challenging to a player.</p>
]]></content:encoded>
			<wfw:commentRss>http://slyfox.za.net/2009/01/megatrader-i-the-premise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Megatrader</title>
		<link>http://slyfox.za.net/2008/10/megatrader/</link>
		<comments>http://slyfox.za.net/2008/10/megatrader/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 21:25:49 +0000</pubDate>
		<dc:creator>slyfox</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[j2me]]></category>
		<category><![CDATA[megatrader]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://slyfox.za.net/?p=21</guid>
		<description><![CDATA[For the past week, when I haven&#8217;t been working, I&#8217;ve been spending a good deal of my free time developing a J2ME mobile game. The basic premise is Dope Wars in space, albeit with less drugs and more futuristic trade goods. The inset image is the main menu screen running in the WTK emulator. Right [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_22" class="wp-caption alignleft" style="width: 160px"><a href="http://slyfox.za.net/wp-content/uploads/2008/10/mtemu1.jpg" rel="shadowbox[post-21];player=img;"><img src="http://slyfox.za.net/wp-content/uploads/2008/10/mtemu1-150x150.jpg" alt="Megatrader Main Menu" title="Megatrader Main Menu" width="150" height="150" class="size-thumbnail wp-image-22" /></a><p class="wp-caption-text">Megatrader Main Menu</p></div>
<p>For the past week, when I haven&#8217;t been working, I&#8217;ve been spending a good deal of my free time developing a <a href="http://java.sun.com/javame/index.jsp">J2ME</a> mobile game. The basic premise is Dope Wars in space, albeit with less drugs and more futuristic trade goods. The inset image is the main menu screen running in the <acronym title="Wireless ToolKit">WTK</acronym> emulator. Right now, I&#8217;m more or less at the point where I can actually start on getting the game up and running, having spent the time thus far on getting all the support functionality down (such as drawing text using my custom fonts and being able to easily support different resolutions, since I&#8217;ll be targeting at least <a href="http://en.wikipedia.org/wiki/Quarter_VGA">QVGA</a> and <a href="http://en.wikipedia.org/wiki/Common_Intermediate_Format">QCIF+</a> displays).</p>
<p>Initially, the game will be fairly simple, featuring only simple trading: buy at planet A, travel to planet B and sell, rinse and repeat until the time limit is hit, with random price fluctuations as per the drug busts in Dope Wars. In the future, there are a couple of distinguishing features I want to add to the game, such as competing against computer-controlled traders and being able to buy different ships which affect their cargo space and travel speed, amongst other things.</p>
<p><span id="more-21"></span></p>
<div id="attachment_23" class="wp-caption alignright" style="width: 160px"><a href="http://slyfox.za.net/wp-content/uploads/2008/10/mtemu2.jpg" rel="shadowbox[post-21];player=img;"><img src="http://slyfox.za.net/wp-content/uploads/2008/10/mtemu2-150x150.jpg" alt="Megatrader: Planet Screen WIP" title="Megatrader: Planet Screen WIP" width="150" height="150" class="size-thumbnail wp-image-23" /></a><p class="wp-caption-text">Megatrader: Planet Screen WIP</p></div>
<p>For the ship travel speed to be meaningful, a distance matrix of the distances between the planets will be calculated at game initialisation, with the distance and travel speed affecting the number of days that elapse when travelling from one planet to the other. To make this an attractive option to the player, distant planets will have to have a higher bias for delivering higher yields (meaning prices are inflated or reduced more than normal), making trips to distant planets a potentially lucrative expedition, but on the other hand, may end up causing the player to lose precious time; and in this game, time is indeed money.</p>
<p>Another idea I toyed with was that of having a simple economy built in, especially if other traders are taken into account as well. If a trader reaches a planet before you and sells an enormous amount of one cargo, the demand will experience a sharp drop, causing the price to plummet. On the other hand, if you get to a planet and fill your ship&#8217;s cargo hold with a cargo type, supply decreases, and the price will increase to the next trader&#8217;s detriment.</p>
<p>An old favourite I&#8217;d thought about when designing an earlier trading game is that of black market goods. These goods perform a function similar to the distant planet idea, in that they are a potential source of a higher than normal income. Whereas distant planets are not guaranteed to have a higher price, black market goods will <em>always</em> fetch a higher price. The risk involved with black market goods is that the player stands a random chance of being caught by the authorities, resulting in the cargo being seized and the player receiving a hefty fine for their transgression.</p>
<p>There are a couple of other ideas on the whiteboard, so to speak, but for now I&#8217;ll be concentrating on getting the basics done and working, and figuring out the One And True game balance for the basic trade goods (i.e. pricing, fluctuation biases, etc.). Another thing that will limit the implementation of all these ideas is the possible limitations on code/data size on the mobile phone platforms: at the moment the QVGA version of Megatrader already weighs in 357KB. Most of the JAR&#8217;s size is caused by the background screens, which are rather varied in terms of their colour content. Since J2ME applications use PNG as image format, images that are not uniformly coloured and that do not feature consecutive strings of the same colour tend not to compress that well. Depending on how many screens I still have to add, this may or may not become an issue. If it does, I&#8217;ll have to drop a fair amount of the detail present in the screens, something I am loathe to do, since it&#8217;s about damn time we have a mobile Java game that looks <em>good</em>, for fuck&#8217;s sake.</p>
<p>Hopefully I&#8217;ll have a playable version of the game by the end of next week. And after that&#8230; well, maybe I&#8217;ll have a gander at that iPhone SDK. Or, considering I might be looking at getting a Windows Mobile phone soon, I&#8217;ll see what that old beast we call the .NET Compact Framework can do for the world. But that&#8217;s getting ahead of myself. I have to finish one version of the game first!</p>
]]></content:encoded>
			<wfw:commentRss>http://slyfox.za.net/2008/10/megatrader/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
