<?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>Ludum Dare &#187; MrPhil</title>
	<atom:link href="http://www.ludumdare.com/compo/tag/mrphil/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ludumdare.com/compo</link>
	<description>A tri-annual 48 hour solo game development competition.</description>
	<lastBuildDate>Wed, 08 Feb 2012 14:14:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Iron Roads &#8211; Thanks</title>
		<link>http://www.ludumdare.com/compo/2008/12/21/iron-roads-thanks/</link>
		<comments>http://www.ludumdare.com/compo/2008/12/21/iron-roads-thanks/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 04:37:19 +0000</pubDate>
		<dc:creator>MrPhil</dc:creator>
				<category><![CDATA[LD #13 - Roads - 2008]]></category>
		<category><![CDATA[MrPhil]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=4336</guid>
		<description><![CDATA[I just wanted to thank all the people that graded my unfinished game.  I&#8217;m very apperciative of all the encourging comments.  Many of you will be happy to know that I&#8217;ve continued to work on the game and will keep you posted!  Finally, thanks to the mysterious super secret ludum dare organizers.]]></description>
			<content:encoded><![CDATA[<p>I just wanted to thank all the people that graded my unfinished game.  I&#8217;m very apperciative of all the encourging comments.  Many of you will be happy to know that I&#8217;ve continued to work on the game and will keep you posted!  Finally, thanks to the mysterious super secret ludum dare organizers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/12/21/iron-roads-thanks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count Me In</title>
		<link>http://www.ludumdare.com/compo/2008/12/05/count-me-in/</link>
		<comments>http://www.ludumdare.com/compo/2008/12/05/count-me-in/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 23:02:32 +0000</pubDate>
		<dc:creator>MrPhil</dc:creator>
				<category><![CDATA[LD #13 - Roads - 2008]]></category>
		<category><![CDATA[MrPhil]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=3697</guid>
		<description><![CDATA[I&#8217;ve decided to enter again.  This will be Ludum Dare number 4 for me.  This time I&#8217;m planning to use BlitzMax and Jake Birkett&#8217;s Grey Alien BlitzMax Game Framework.  Here is the basic setup code I&#8217;ll be using (if you follow the &#8220;Start Here&#8221; document this should be your result, except I added a try-catch [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to enter again.  This will be Ludum Dare number 4 for me.  This time I&#8217;m planning to use <a title="BlitzMax" href="http://blitzmax.com/Home/_index_.php" target="_blank">BlitzMax</a> and Jake Birkett&#8217;s <a title="Grey Alien BlitzMax Game Framework" href="http://www.greyaliengames.com/framework.php" target="_blank"><span class="maintitle">Grey Alien BlitzMax Game Framework</span></a>.  Here is the basic setup code I&#8217;ll be using (if you follow the &#8220;Start Here&#8221; document this should be your result, except I added a try-catch around everything for unhandled exceptions):<span id="more-3697"></span></p>
<p>SuperStrict</p>
<p>?Win32<br />
Import &#8220;../include/fullaccess.cpp&#8221;<br />
Import &#8220;-ladvapi32&#8243;<br />
?</p>
<p>&#8216;Import various Mac OS API calls made in C.</p>
<p>?MacOS<br />
Import &#8220;../include/GAGMacLib.m&#8221;<br />
?</p>
<p>Include &#8220;../include/commoncode.bmx&#8221;<br />
Include &#8220;../include/commontypes.bmx&#8221;</p>
<p>Try</p>
<p>ccCreateMutex(&#8220;BasicSetup&#8221;)</p>
<p>AppTitle = &#8220;BasicSetup&#8221;</p>
<p>ScreenWidth = 800<br />
ScreenHeight = 600</p>
<p>Game = New TGame<br />
Game.SetSubPathWrapper(&#8220;Grey Alien Games/Basic Setup&#8221;)<br />
Game.Init()<br />
Game.DebugDisplayX = 5<br />
Game.DebugDisplayY = 95<br />
Game.SetEscapeSound(&#8220;ButtonClick&#8221;)</p>
<p>Global images:TImageBank = New TImageBank<br />
images.SetPath(Game.ImagePath)<br />
Global sounds:TSoundBank = New TSoundBank<br />
sounds.SetPath(Game.SoundPath)</p>
<p>&#8216;Instance both types that we created<br />
Global TitleScreen: TTitleScreen = New TTitleScreen<br />
Global GameScreen: TGameScreen= New TGameScreen</p>
<p>Game.GraphicsCreate() &#8216;Create a graphics context<br />
HideMouse &#8216;hide the mouse<br />
LoadData() &#8216;load data using a function we will define<br />
ccFlushAll() &#8216;flush keys and mouse</p>
<p>Local LoopExit:Int = 0 &#8216;boolean for exiting the main loop<br />
Game.FixedRateLogic.Init()<br />
Game.NoTimingTicks = 3 &#8216;only applied if Game.NoTiming=1</p>
<p>Repeat<br />
&#8216;do the logic separately from the drawing<br />
If Game.MainLogicLoop() = -1 Then ShutDown()<br />
&#8216;draw the screen and flip it to show it<br />
Game.ScreenDraw()<br />
Until LoopExit = 1<br />
ShutDown()</p>
<p>Function Shutdown()<br />
Tgame.MakeGoodExit()<br />
ShowMouse() &#8216;just in case it was hidden.<br />
&#8216;Exit the program<br />
End<br />
End Function</p>
<p>&#8216;Instance both types that we created</p>
<p>Function LoadData()<br />
AutoMidHandle True<br />
ccClsVSync()&#8217;Ensure clear screen when loading</p>
<p>LoadSounds()<br />
LoadImages()<br />
TitleScreen.Load() &#8216;Call load method of TitleScreen<br />
TitleScreen.Start() &#8216;Call start method of TitleScreen<br />
&#8216;Now loading is complete, let the main loop handle the drawing<br />
Game.CurrentTScreen = TitleScreen</p>
<p>?Win32 &#8216;Has the app been suspended while loading? If so, deal with it.<br />
If GetForegroundWindow()&lt;&gt;Game.WindowHandle<br />
Game.SuspendedEvent = 1<br />
EndIf<br />
?<br />
End Function</p>
<p>Function LoadSounds()<br />
sounds.Load(&#8220;ButtonClick&#8221;) &#8216;load the sound &#8220;buttonclick&#8221;<br />
End Function</p>
<p>Function LoadImages()<br />
Game.mouse.Load(&#8220;pointer&#8221;) &#8216;load mouse pointer image<br />
images.Load(&#8220;Paused&#8221;) &#8216;Load &#8220;paused&#8221; graphic<br />
&#8216;Create Paused sprite<br />
Game.SpritePausedCreate(Images.Find(&#8220;Paused&#8221;))<br />
End Function</p>
<p>Type TTitleScreen Extends TScreen<br />
Field x#,y#</p>
<p>Method Load()<br />
&#8216;this is a TScreen method<br />
ImageLoad(&#8220;title.jpg&#8221;,FILTEREDIMAGE)<br />
MidHandleImage(Image)<br />
&#8216;this gets midhandled automatically<br />
HeaderLoad(&#8220;logolarge&#8221;,screenwidth/2,100)<br />
Menu = TMenu.Create(&#8220;ButtonMO&#8221;, &#8220;ButtonClick&#8221;,0,0,10)<br />
&#8216;Add a new Button<br />
&#8216;Allow Space and Enter to trigger it<br />
Menu.AddNew(&#8220;playgame&#8221;, &#8220;playgameMO&#8221;).OKButton = 1<br />
Menu.AddNew(&#8220;exitgame&#8221;,&#8221;exitgameMO&#8221;)<br />
Menu.Centre() &#8216;Center the Menu<br />
&#8216;Move the Y position of the menu<br />
Menu.SetY(Menu.Y+50)<br />
End Method</p>
<p>Method Start()<br />
Super.Start() &#8216;Call Start method of base type TScreen<br />
Game.GameFade.Init(FADE_SPEED,0) &#8216;fade in<br />
Game.Mouse.On()<br />
Game.FixedRateLogic.Init()<br />
End Method</p>
<p>Method Logic()<br />
&#8216;Call the logic method of the base type<br />
Super.Logic()<br />
&#8216;If the start button is clicked, fade to the next screen<br />
&#8216;and set that next screen to the GameScreen<br />
If Menu.FindButton(&#8220;playgame&#8221;).Clicked Then<br />
Game.GameFade.Init(FADE_SPEED,1,Game.MusicChannel, True)<br />
Game.DestinationTScreen = GameScreen<br />
EndIf</p>
<p>&#8216;If the exit button is clicked, fade the screen and exit<br />
If Menu.FindButton(&#8220;exitgame&#8221;).Clicked Then<br />
Game.GameFade.Init(FADE_SPEED,1,Game.MusicChannel, True)<br />
Game.DestinationTScreen = Game.ExitScreen<br />
EndIf<br />
End Method</p>
<p>Method Draw()<br />
SetBlend SOLIDBLEND<br />
&#8216;Image is a field of the base type TScreen<br />
DrawImage(Image,screenwidth/2+x,screenheight/2+y)<br />
SetBlend ALPHABLEND<br />
Header.Draw() &#8216;Draw the logo that we loaded earlier<br />
Menu.Draw() &#8216;Draw the Menu<br />
End Method<br />
End Type</p>
<p>Type TGameScreen Extends TScreen</p>
<p>Method Load()<br />
ImageLoad(&#8220;bg1.jpg&#8221;)<br />
HeaderLoad(&#8220;logosmall&#8221;,210,35)<br />
End Method</p>
<p>Method Start()<br />
Super.Start()<br />
Game.GameFade.Init(FADE_SPEED,0) &#8216;initiate fading<br />
Game.Mouse.Off() &#8216;Turn the mouse off<br />
Game.FixedRateLogic.Init()<br />
End Method</p>
<p>Method Logic()<br />
Super.Logic() &#8216;handles menu core logic<br />
End Method</p>
<p>Method Draw()<br />
Cls<br />
SetBlend ALPHABLEND<br />
DrawImage(image,0,0)<br />
Header.Draw() &#8216;Draw the header<br />
SetColor 255,255,255<br />
&#8216;Draw instructional text<br />
ccDrawTextCentre(&#8220;Press &lt;esc&gt; to Exit&#8221;,560,1)<br />
End Method</p>
<p>Method SetEscDestination() &#8216;over ride base type method<br />
&#8216;if esc is pressed, go to the TitleScreen<br />
Game.DestinationTScreen = TitleScreen<br />
End Method<br />
End Type</p>
<p>Catch ex:Object</p>
<p>Print &#8220;Unhandled exception:&#8221;<br />
Print ex.ToString()</p>
<p>End Try</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/12/05/count-me-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stacker High Score</title>
		<link>http://www.ludumdare.com/compo/2008/08/11/stacker-high-score/</link>
		<comments>http://www.ludumdare.com/compo/2008/08/11/stacker-high-score/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 17:44:35 +0000</pubDate>
		<dc:creator>MrPhil</dc:creator>
				<category><![CDATA[LD #12 - The Tower - 2008]]></category>
		<category><![CDATA[MrPhil]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=3428</guid>
		<description><![CDATA[I actually enjoy playing my game! I finally beat level 14! Has anyone else done better?]]></description>
			<content:encoded><![CDATA[<p>I actually enjoy playing my game!  I finally beat level 14!</p>
<p><a href='http://www.ludumdare.com/compo/wp-content/uploads/2008/08/stackerhighscore.gif'><img src="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/stackerhighscore-300x297.gif" alt="MrPhil Stacker High Score L14" width="300" height="297" class="alignnone size-medium wp-image-3429" /></a></p>
<p>Has anyone else done better?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/08/11/stacker-high-score/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stacker Final</title>
		<link>http://www.ludumdare.com/compo/2008/08/10/stacker-final/</link>
		<comments>http://www.ludumdare.com/compo/2008/08/10/stacker-final/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 02:58:11 +0000</pubDate>
		<dc:creator>MrPhil</dc:creator>
				<category><![CDATA[LD #12 - The Tower - 2008]]></category>
		<category><![CDATA[final]]></category>
		<category><![CDATA[MrPhil]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=3340</guid>
		<description><![CDATA[I made it harder at higher levels.  Have fun! Stacker Final&#8212;(See note below) It is written in C# for Silverlight 2.0 Beta 2.  It should run in Firefox and IE on Mac and Windows. I used the Farseer Physics Engine and the rest was written from scratch. NOTE: I found a bug that can lock up [...]]]></description>
			<content:encoded><![CDATA[<p>I made it harder at higher levels.  Have fun!</p>
<p><a href="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/stackerfinal.gif"><img class="alignnone size-medium wp-image-3345" src="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/stackerfinal-300x299.gif" alt="Stacker Final" width="300" height="299" /></a></p>
<p><a class="alignleft" title="Stacker Final" href="http://www.mrphilgames.com/experimental/ludum-dare-12/" target="_blank">Stacker Final</a>&#8212;(See note below)<br />
It is written in C# for Silverlight 2.0 Beta 2.  It should run in Firefox and IE on Mac and Windows.</p>
<p>I used the <a title="Farseer Physics Engine" href="http://www.codeplex.com/FarseerPhysics" target="_blank">Farseer Physics Engine</a> and the rest was written from scratch.</p>
<p>NOTE: I found a bug that can lock up the browser: Here is the repair <a title="Stacker Final (Repaired)" href="http://www.mrphilgames.com/experimental/ludum-dare-12/" target="_blank">Stacker Final (Repaired)</a> I now limit how many blocks you can use and make you restart the level if you go over.  The Farseer engine starts to suck up all the CPU cycles after about 90 blocks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/08/10/stacker-final/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stacker (maybe final)</title>
		<link>http://www.ludumdare.com/compo/2008/08/10/stacker-maybe-final/</link>
		<comments>http://www.ludumdare.com/compo/2008/08/10/stacker-maybe-final/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 01:52:24 +0000</pubDate>
		<dc:creator>MrPhil</dc:creator>
				<category><![CDATA[LD #12 - The Tower - 2008]]></category>
		<category><![CDATA[MrPhil]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=3301</guid>
		<description><![CDATA[Getting close to the deadline so I wanted to submit a backup final. I&#8217;m calling my game Stacker. Goal is to get the little blocks to stack up to the line. If you are successful the next level raises the bar a little. I have not made it too the very top yet. It should [...]]]></description>
			<content:encoded><![CDATA[<p>Getting close to the deadline so I wanted to submit a backup final.</p>
<p>I&#8217;m calling my game Stacker.  Goal is to get the little blocks to stack up to the line.  If you are successful the next level raises the bar a little.  I have not made it too the very top yet.  It should reward you, but I haven&#8217;t been able to tested it yet.</p>
<p><a href="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/stacker.gif"><img class="alignnone size-medium wp-image-3305" src="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/stacker-300x218.gif" alt="How high can you go!" width="300" height="218" /></a><br />
Here is the link: <a class="alignleft" title="Stacker 0.9" href="http://www.mrphilgames.com/stacker/" target="_blank">Stacker</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/08/10/stacker-maybe-final/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why does it start spinning just before hitting the ground?!?</title>
		<link>http://www.ludumdare.com/compo/2008/08/09/spinning/</link>
		<comments>http://www.ludumdare.com/compo/2008/08/09/spinning/#comments</comments>
		<pubDate>Sun, 10 Aug 2008 03:38:45 +0000</pubDate>
		<dc:creator>MrPhil</dc:creator>
				<category><![CDATA[LD #12 - The Tower - 2008]]></category>
		<category><![CDATA[MrPhil]]></category>

		<guid isPermaLink="false">http://www.ludumdare.com/compo/?p=3071</guid>
		<description><![CDATA[Pretty much spent every hour since the start trying to get the Farseer engine to work.   My biggest and lengthiest hurdle was discovering and then fixing the fact that Silverlight uses a TopLeft coordinate system and Farseer use a center of object system. I probably would have figured it out faster, but I just happen [...]]]></description>
			<content:encoded><![CDATA[<p>Pretty much spent every hour since the start trying to get the Farseer engine to work.   My biggest and lengthiest hurdle was discovering and then fixing the fact that Silverlight uses a TopLeft coordinate system and Farseer use a center of object system.<span> </span>I probably would have figured it out faster, but I just happen to pick coordinates that interacted in a way that my small test box would hit the corner of the ground and bounce off spinning.<span> </span>Visibly the ground took up the bottom of the screen so it sent me on a wild goose chase looking for buggy forces.</p>
<p><a href="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/mrphil-ld12.gif"><img class="alignnone size-medium wp-image-3073" src="http://www.ludumdare.com/compo/wp-content/uploads/2008/08/mrphil-ld12-300x237.gif" alt="Farseer finally behaving" width="300" height="237" /></a></p>
<p>PS.  I&#8217;ve been Twittering as I work in a sort of experiment.  If anyone else is, let me know and I&#8217;ll follow: http://twitter.com/MrPhilGames</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ludumdare.com/compo/2008/08/09/spinning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

