<?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"
	>

<channel>
	<title>Matt Bennett: CAD &#38; Code</title>
	<atom:link href="http://www.matibee.co.uk/wpsite/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.matibee.co.uk/wpsite</link>
	<description>Freelance Programmer and Computer Aided Design Engineer</description>
	<pubDate>Tue, 04 May 2010 10:51:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>Short holiday</title>
		<link>http://www.matibee.co.uk/wpsite/?p=41</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=41#comments</comments>
		<pubDate>Tue, 04 May 2010 10:50:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=41</guid>
		<description><![CDATA[I won&#8217;t be around for a few days from today so purchase and support requests may well go unanswered.
I&#8217;ll be back on Monday 10th.
Cheers!
 
]]></description>
			<content:encoded><![CDATA[<p>I won&#8217;t be around for a few days from today so purchase and support requests may well go unanswered.</p>
<p>I&#8217;ll be back on Monday 10th.</p>
<p>Cheers!</p>
<p> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=41</wfw:commentRss>
		</item>
		<item>
		<title>How long are 10 seconds?</title>
		<link>http://www.matibee.co.uk/wpsite/?p=40</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=40#comments</comments>
		<pubDate>Tue, 27 Apr 2010 17:06:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[mbmFramework]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=40</guid>
		<description><![CDATA[A useful little game here for anyone interested in learning the inner workings of the mbmFramework, or even if you fancy a quick challenge on a competition themed game  
Thaaks has released the full source to his game &#8220;How long are 10 seconds&#8221;.  Read about it and download it from here.

]]></description>
			<content:encoded><![CDATA[<p>A useful little game here for anyone interested in learning the inner workings of the mbmFramework, or even if you fancy a quick challenge on a competition themed game <img src='http://www.matibee.co.uk/wpsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thaaks has released the full source to his game &#8220;How long are 10 seconds&#8221;.  <a href="http://www.haaks.net/10seconds/">Read about it and download it from here</a>.</p>
<p style="text-align: center;"><a href="http://www.haaks.net/10seconds/bv000001.jpg" target="_blank"><img class="aligncenter" src="http://www.haaks.net/10seconds/bv000001.jpg" alt="" width="468" height="380" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=40</wfw:commentRss>
		</item>
		<item>
		<title>2d Deformable terrain in Blitzmax</title>
		<link>http://www.matibee.co.uk/wpsite/?p=39</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=39#comments</comments>
		<pubDate>Sun, 04 Apr 2010 21:43:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[New code]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=39</guid>
		<description><![CDATA[
This has come up a few times so I decided to write a little demo.
The terrain and the eraser are defined as sets of horizontal lines.   Clipping one horizontal line to another just involves trimming one end or the other, or splitting it into two, or deleting it altogether:


The line sets are sorted by height [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.matibee.co.uk/temp/terrain.jpg" target="_blank"><img class="aligncenter" src="http://www.matibee.co.uk/temp/terrain.jpg" alt="2d deformable terrain" width="413" height="323" /></a></p>
<p style="text-align: left;">This has come up a few times so I decided to write a little demo.</p>
<p style="text-align: left;">The terrain and the eraser are defined as sets of horizontal lines.   Clipping one horizontal line to another just involves trimming one end or the other, or splitting it into two, or deleting it altogether:</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/trimlinesegments.jpg" alt="" width="300" height="470" /></p>
<p style="text-align: left;">
<p style="text-align: left;">The line sets are sorted by height allowing collision and trimming checks to early out once they come across a line segment that is beyond the target depth.</p>
<p style="text-align: left;">In the demo, move the red eraser with the mouse to shape the terrain and there&#8217;s a couple of hundred particle pixels on the screen too just to bring it to life a little.</p>
<p style="text-align: center;"><a href="http://www.matibee.co.uk/temp/2dDeformableTerrain.zip">Download demo source here</a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=39</wfw:commentRss>
		</item>
		<item>
		<title>mbmFramework V1.7 Released</title>
		<link>http://www.matibee.co.uk/wpsite/?p=38</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=38#comments</comments>
		<pubDate>Sat, 03 Apr 2010 17:51:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=38</guid>
		<description><![CDATA[What&#8217;s new:
Even more control over the look of GUI!
Previously each button state required a bitmap, but now you can specify an alpha blended coloured rect instead.  You can now also specify the distance of the text offset on mouse down (I didn&#8217;t like how it was hard coded +1 pixel in X an Y), and [...]]]></description>
			<content:encoded><![CDATA[<h2>What&#8217;s new:</h2>
<h3>Even more control over the look of GUI!</h3>
<p>Previously each button state required a bitmap, but now you can specify an alpha blended coloured rect instead.  You can now also specify the distance of the text offset on mouse down (I didn&#8217;t like how it was hard coded +1 pixel in X an Y), and the colour of the caption text for mouse over and mouse down states.  The new GUI control parameters are..</p>
<pre><span style="color: #00ff00;">&#8216; caption colors (in the usual r,g,b,a integer format)
</span></pre>
<pre><span style="color: #00ff00;">overcolor
downcolor</span></pre>
<pre><span style="color: #00ff00;">
</span></pre>
<pre><span style="color: #00ff00;">&#8216; image rects (colors in the r,g,b,a integer format)
</span></pre>
<pre><span style="color: #00ff00;">normalrect</span></pre>
<pre><span style="color: #00ff00;">overrect</span></pre>
<pre><span style="color: #00ff00;">downrect</span></pre>
<pre><span style="color: #00ff00;">
</span></pre>
<pre><span style="color: #00ff00;">&#8216; text caption offset for individual control
</span></pre>
<pre><span style="color: #00ff00;">downx</span></pre>
<pre><span style="color: #00ff00;">downy</span></pre>
<pre><span style="color: #00ff00;">&#8216; text caption offset for both values</span></pre>
<pre><span style="color: #00ff00;">downoffset</span></pre>
<p>This means the only asset you need to get started with the GUI is a bitmap font.</p>
<h3>Sprite methods renamed</h3>
<p>Since I figured out scope resolution in Blitzmax I&#8217;ve been able to rename the following sprite methods.. Set_X, Set_Y, Set_Alpha, Set_Rotation, Set_Position, Get_X, Get_Y, Get_Alpha, Get_Rotation, Get_Position.  Now none of them have that ugly underscore character.</p>
<h3>Sprite animation methods added</h3>
<p>CurrentFrame returns the current bitmap frame,</p>
<p>SetFrame sets the current bitmap frame,</p>
<p>TotalFrames returns the total number of bitmap frames.</p>
<p>Download links, links to the full changelog and updated docs in the <a href="http://www.matibee.co.uk/wpsite/?page_id=12">usual place</a>.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/mbmFramework-logo.png" alt="" width="414" height="81" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=38</wfw:commentRss>
		</item>
		<item>
		<title>mbmFramework V1.6 released</title>
		<link>http://www.matibee.co.uk/wpsite/?p=37</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=37#comments</comments>
		<pubDate>Fri, 05 Mar 2010 20:51:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[New code]]></category>

		<category><![CDATA[mbmFramework]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=37</guid>
		<description><![CDATA[What&#8217;s new?  A few major things..

Sprites can now be procedurally generated and still managed by the system, just the same as sprites loaded from disk via resource scripts.  There&#8217;s a new sample that shows just how this is achieved.
You can write your own custom sprite animators.  I&#8217;ve already provided animator code for [...]]]></description>
			<content:encoded><![CDATA[<p>What&#8217;s new?  A few major things..</p>
<ul>
<li>Sprites can now be procedurally generated and still managed by the system, just the same as sprites loaded from disk via resource scripts.  There&#8217;s a new sample that shows just how this is achieved.</li>
<li>You can write your own custom sprite animators.  I&#8217;ve already provided animator code for Sine waves, Linear Interpolate, Bouncing and Accelerate/braking, and they&#8217;re used extensively to animate the GUI elements and all kinds of things.  Now it&#8217;s possible to extend this animation system with your own code.  The animator sample has been updated to show how it&#8217;s done.</li>
</ul>
<p>And a few minor things&#8230; see the <a href="http://www.matibee.co.uk/temp/Changelog.txt">changelog</a>.</p>
<p> <img src='http://www.matibee.co.uk/wpsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>This sample (check out sample #6) shows 100 sprites that have been procedurally generated to have bitmap animations as well as scripted animators acting on them.  I used a simple blue ball image, and overlaid the yellow spot in several places to generate a turn left/right animation.  It looks better in motion!</p>
<p style="text-align: center;"><a href="http://www.matibee.co.uk/temp/Screenshot 05 Mar 2010 20-44-55.png" target="_blank"><img class="aligncenter" src="http://www.matibee.co.uk/temp/Screenshot 05 Mar 2010 20-44-55.png" alt="" width="272" height="204" /></a></p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/mbmFramework-logo.png" alt="" width="414" height="81" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=37</wfw:commentRss>
		</item>
		<item>
		<title>mbmFramework V1.5 released and tutorials continued..</title>
		<link>http://www.matibee.co.uk/wpsite/?p=36</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=36#comments</comments>
		<pubDate>Thu, 25 Feb 2010 15:45:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[New code]]></category>

		<category><![CDATA[mbmFramework]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=36</guid>
		<description><![CDATA[Version 1.5 makes a couple of potentially project breaking changes, but they are quite minor;

The AppModule Draw method no longer requires the sync:int parameter
Updating the Sprite deltatime no longer accepts a float delta, it requires a millisecond integer value just as the rest of the framework uses.

The tutorial code is now available right up to [...]]]></description>
			<content:encoded><![CDATA[<p>Version 1.5 makes a couple of potentially project breaking changes, but they are quite minor;</p>
<ul>
<li><strong>The AppModule Draw method no longer requires the sync:int parameter</strong></li>
<li><strong>Updating the Sprite deltatime no longer accepts a float delta, it requires a millisecond integer value just as the rest of the framework uses.</strong></li>
</ul>
<p>The tutorial code is now available right up to and including adding the high scores.</p>
<p> <img src='http://www.matibee.co.uk/wpsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/mbmFramework-logo.png" alt="" width="414" height="81" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=36</wfw:commentRss>
		</item>
		<item>
		<title>mbmFramework V1.4 released and tutorials started!</title>
		<link>http://www.matibee.co.uk/wpsite/?p=35</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=35#comments</comments>
		<pubDate>Thu, 18 Feb 2010 12:21:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[New code]]></category>

		<category><![CDATA[mbmFramework]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=35</guid>
		<description><![CDATA[The tutorials are underway and the very first one exposed some omissions from the framework.  First of all there was no way to work with individual X and Y values for a sprite without accessing their fields directly.  Not that there&#8217;s too much wrong in that, but I&#8217;d prefer it wasn&#8217;t necessary anywhere in the [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.matibee.co.uk/wpsite/?page_id=26">tutorials</a> are underway and the very first one exposed some omissions from the framework.  First of all there was no way to work with individual X and Y values for a sprite without accessing their fields directly.  Not that there&#8217;s too much wrong in that, but I&#8217;d prefer it wasn&#8217;t necessary anywhere in the framework code.  Once users are happy using fields directly it can cause chaos when they begin accessing those they shouldn&#8217;t.  (For non Blitzmax readers; while Blitzmax handles OOP, Polymorphism and Inheritance it is rather lacking in the Public / Private department).</p>
<p>Another thing missing was a simple way to handle lots of sprite objects.  I always use a list of free sprites that I create at start up, then take one from it everytime I need one and put it in a list of live sprites.  The live sprites are drawn, updated and used for collision detection etc.  When one of those live sprites is finished with, I take it out of the live list, and put it back in the free list so it can be recycled.  Simple enough.</p>
<p>Except, I&#8217;ve added a <a href="http://www.matibee.co.uk/temp/commands.html#SpriteList">SpriteList</a> type to the framework to handle this for you.  I&#8217;ve also updated the first tutorial to use this new type.</p>
<p> <img src='http://www.matibee.co.uk/wpsite/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/mbmFramework-logo.png" alt="" width="414" height="81" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=35</wfw:commentRss>
		</item>
		<item>
		<title>Dataflame - possibly the worlds best hosting provider!</title>
		<link>http://www.matibee.co.uk/wpsite/?p=25</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=25#comments</comments>
		<pubDate>Wed, 17 Feb 2010 16:55:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=25</guid>
		<description><![CDATA[Well, they are for me anyway&#8230;
Today I killed my website.
It&#8217;s easy done.  I have two mySql databases; one for this site and one for messing around with.  I decided to delete the &#8216;play&#8217; database to create another for different reasons.  Except I didn&#8217;t.  I deleted the database this whole site revolves around.
Step 1. Panic!  Thankfully I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<h3>Well, they are for me anyway&#8230;</h3>
<p>Today I killed my website.</p>
<p>It&#8217;s easy done.  I have two mySql databases; one for this site and one for messing around with.  I decided to delete the &#8216;play&#8217; database to create another for different reasons.  Except I didn&#8217;t.  I deleted the database this whole site revolves around.</p>
<p><strong>Step 1.</strong> Panic!  Thankfully I&#8217;ve not had the feeling of a massive-irreversible-f&#8211;k up for quite some time.  I remember it well.</p>
<p><strong>Step 2.</strong> Look for &#8216;undo&#8217;, &#8216;undelete&#8217; or &#8216;restore&#8217; options.  Nothing.</p>
<p><strong>Step 3.</strong> Go to <a href="http://www.dataflame.com">www.dataflame.co.uk</a> and log onto the support chat.  I got an operator (William) in about 20 seconds.  He had a look, but I couldn&#8217;t tell him my log in password so there was nothing he could do.  He told me to submit a support request.</p>
<p><strong>Step 4.</strong> Submit support request and begin chewing nails nervously.  Just how long would a support request take to be picked up?  Same day? Next day? Who knows.</p>
<p><strong>Step 5.</strong> Check emails impatiently for 5 minutes.  Nothing.</p>
<p><strong>Step 6.</strong> Check the site to see if by some miracle the last 10 minutes has all been a bad dream.  Amazingly it&#8217;s back!  A minute later I get an email from dataflame support (William again, I assume it&#8217;s the same guy).  Telling me it&#8217;s fixed and to check it and report any further problems.</p>
<p><strong>Step 7.</strong> Breath again.</p>
<p>There we go.  From the time of my dumb ass mistake to Dataflame support picking up the pieces and sending me on my way again was little more than 10 minutes.  I&#8217;ve used their support several times before and it&#8217;s always been very good but that was for really minor issues compared to this.</p>
<p>Really good job Dataflame guys.  I know where my hosting is staying for the foreseeable future.  I always recommended you before but now I&#8217;m on a crusade to put the entire internet in your hands!  Sort of.  Well here&#8217;s a banner ad anyway&#8230;</p>
<p style="text-align: center;"><a href="http://www.dataflame.co.uk/affiliate/idevaffiliate.php?id=728_5_1_2" target="_blank"><img src="http://www.dataflame.co.uk/affiliate/banners/468x60_1.gif" border="0" alt="" width="468" height="60" /></a></p>
<p>Thanks Dataflame!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>mbmFramework V1.3 and new Particle Editor released</title>
		<link>http://www.matibee.co.uk/wpsite/?p=24</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=24#comments</comments>
		<pubDate>Mon, 15 Feb 2010 17:39:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[New code]]></category>

		<category><![CDATA[mbmFramework]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=24</guid>
		<description><![CDATA[I&#8217;ve added some new parameters to the particle system to allow more emitter types.  You can now;

specify a random scale range for particles to spawn at



have a cone angle at which particles escape from the emitter
give an emitter an angular direction



spawn particles at a min/max distance from the emitter


Not big news, but not being able to do this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve added some new parameters to the particle system to allow more emitter types.  You can now;</p>
<ul>
<li>specify a random scale range for particles to spawn at</li>
</ul>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/particle-bubbles.jpg" alt="" width="167" height="179" /></p>
<ul>
<li>have a cone angle at which particles escape from the emitter</li>
<li>give an emitter an angular direction</li>
</ul>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/particle-rocket.jpg" alt="" width="305" height="250" /></p>
<ul>
<li>spawn particles at a min/max distance from the emitter</li>
</ul>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/particle-firering.jpg" alt="" width="250" height="251" /></p>
<p>Not big news, but not being able to do this was a bit of a glaring omission.  I&#8217;ve also tweaked the editor to run at 60FPS from the original 20.</p>
<p><strong>The particle editor comes with render source code so it can be used seperately (and freely) from the mbmFramework.</strong></p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/mbmFramework-logo.png" alt="" width="414" height="81" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=24</wfw:commentRss>
		</item>
		<item>
		<title>mbmFramework V1.2 released</title>
		<link>http://www.matibee.co.uk/wpsite/?p=22</link>
		<comments>http://www.matibee.co.uk/wpsite/?p=22#comments</comments>
		<pubDate>Wed, 10 Feb 2010 10:16:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Blitzmax]]></category>

		<category><![CDATA[New code]]></category>

		<category><![CDATA[mbmFramework]]></category>

		<guid isPermaLink="false">http://www.matibee.co.uk/wpsite/?p=22</guid>
		<description><![CDATA[I&#8217;ve brought the framework release up to the latest version (V1.2).  That can be found in the usual Downloads section.  I&#8217;ll also try and keep the Changelog viewable online too, along with the documentation.
Happy coding!

]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve brought the framework release up to the latest version (V1.2).  That can be found in the usual <a href="http://www.matibee.co.uk/wpsite/?page_id=12">Downloads</a> section.  I&#8217;ll also try and keep the <a href="http://www.matibee.co.uk/temp/Changelog.txt">Changelog</a> viewable online too, along with the <a href="http://www.matibee.co.uk/temp/commands.html">documentation</a>.</p>
<p>Happy coding!</p>
<p style="text-align: center;"><img class="aligncenter" src="http://www.matibee.co.uk/temp/mbmFramework-logo.png" alt="" width="414" height="81" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.matibee.co.uk/wpsite/?feed=rss2&amp;p=22</wfw:commentRss>
		</item>
	</channel>
</rss>
