<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

  <title>DragonShadow Industries</title>
  <subtitle>Game development blog and other ramblings</subtitle>
  <link rel="alternate" href="http://www.dragonshadow.com"/>
  <link rel="self" href="http://www.dragonshadow.com/atom.xml"/>
  <updated>2008-04-29T18:12:15Z</updated>
  <icon>/fav.ico</icon>
  <author>
    <name>Skah T</name>
    <email>skah_t@dragonshadow.com</email>
  </author>
  <id>urn:dragonshadow-com:blog</id>

<!-- 2008 -->
<!-- 1209492733 -->
  <entry>
    <title>I shoulda been a librarian</title>
    <content type="html"><![CDATA[<p>I'm still sorting through and organizing my MTG cards in preparation for selling on eBay.  I must admit I'm having far more fun than I ought to be.  Some of it is nostalgia for seeing cards that I played with over ten years ago.  Brings back a lot of memories.  Some of it is just my innate compulsion for organization and order.  I think that tendency helps me be a better programmer.</p>

<p>I have just over 7000 cards now and am ordering some singles to fill in the blanks on a few sets.  I'm operating on the assumption that a full set is worth more than an almost-full set.  My spreadsheet contains over 30 worksheets, one for each set.  For the sets that I have a lot of cards I will be splitting them into multiple lots.  Usually one full set (maybe two), one set with just the uncommons and commons, one set with just commons (assuming I have enough left over), and the rest in a miscellaneous lot.</p>

<p>The expensive ones, as mentioned last time, are my dual lands.  Twenty one of them, ten of which will be included in my full set of Revised Edition.  The other eleven I'll sell loose.  I was pleasantly surprised that I ended up with a card from the super rare <a TARGET="_new" CLASS="external" href="http://en.wikipedia.org/wiki/Summer_Magic_%28Edgar%29">Summer Magic</a> set.  It's just a common, Fireball, but could be worth $50 or so just because of its rarity.  I also have another card, Mana Drain, from the Legends set that's worth about $60.  A couple other individual cards are worth more than $10.  Unfortunately I don't have any of the <a TARGET="_new" CLASS="external" href="http://en.wikipedia.org/wiki/Power_Nine">Power Nine</a> nor the few other $100+ cards from other sets.  If only I'd had the forethought to load up on Arabian Nights and Antiquities at the time.  I suppose every old timer MTG collector says that now.</p>]]></content>
    <link rel="alternate" href="http://www.dragonshadow.com/-/archive/2008_Q2.html#29_Apr_2008"/>
    <id>tag:dragonshadow.com,2008-04-29:/-/news/2008/20080429-a.txt</id>
    <updated>2008-04-29T18:12:13Z</updated>
  </entry>

<!-- 1207944652 -->
  <entry>
    <title>Auctioning off my memories</title>
    <content type="html"><![CDATA[<p>Not much progress on the bug from before.  I think it's due to an unimplemented Yaroze library function.  <span class="game">RobotRon</span> uses the 3D matrix functions and I hadn't bothered to implement them yet.  As such it was returning garbage, which I think was causing the random hang.  I haven't exactly pinpointed what goes wrong, but getting those functions working should fix it.</p>

<p>I haven't done much lately because I have decided to sell my old Magic the Gathering cards to fund other enterprises.  I  have six large binders full of cards - one for each of the colors plus another for artifacts & lands.  I also have a ton of loose cards.  I went through the loose cards and sorted them by expansion.  That's what you see here.</p>

<center><img src="/-/images/magiccards.jpg"></center>

<p>Each stack is a separate expansion set.  Top left are my betas (very well played so not worth much).  Next to them are the Unlimiteds and then the big stack of Reviseds.  Other big stacks are for Fallen Empires, Ice Age, Homelands, and Urza's Saga.</p>

<p>And that doesn't even include the ones in the binders!  I'm hoping to get about $500 from all this.  The big ticket items are my dual lands, of which I have eighteen.  They're worth $15-30 a pop.</p>

<p>I'll sell the expensive ones on eBay.  Then I'll put the rest up on <a TARGET="_new" CLASS="external" href="http://www.cardshark.com">Card Shark</a>.  It's a great site that lets you buy and sell individual cards from other collectors.  In fact I just purchased a bunch of cards from there to fill out the rest of my Unglued set.  I figure I'll get more for it if it's complete - I was only a few short.  Other expansions I'm missing quite a few so they probably aren't worth completing.</p>

<p>As I sorted through the big stack of Urza's Saga I made note of the cards that were worth the most according to Card Shark.  Of course, I don't have any of them.  Typical.</p>
]]></content>
    <link rel="alternate" href="http://www.dragonshadow.com/-/archive/2008_Q2.html#11_Apr_2008"/>
    <id>tag:dragonshadow.com,2008-04-11:/-/news/2008/20080411-a.txt</id>
    <updated>2008-04-11T20:10:52Z</updated>
  </entry>

<!-- 1207085786 -->
  <entry>
    <title>A devious bug</title>
    <content type="html"><![CDATA[<p><!--#include virtual="/-/common/gameprogress.inc"-->
I'm trying to track down a pretty crafty bug at the moment.  It deals with my new background star renderer.  The code works fine during the "Get Ready" screen, but as soon as it kicks into the game proper it crashes.</p>

<p>Dumping registers makes me think a DMA is going wrong somewhere.  I figured out the reason why the main game crashes is that it draws gradiated lines, whereas the Get Ready screen does not.</p>

<p>So there's some interaction going on and a bug somewhere, but darned if I can find it.</p>
]]></content>
    <link rel="alternate" href="http://www.dragonshadow.com/-/archive/2008_Q2.html#01_Apr_2008"/>
    <id>tag:dragonshadow.com,2008-04-01:/-/news/2008/20080401-a.txt</id>
    <updated>2008-04-01T21:36:26Z</updated>
  </entry>

<!-- 1206641667 -->
  <entry>
    <title>Renderer creation and code reclamation</title>
    <content type="html"><![CDATA[<p><!--#include virtual="/-/common/gameprogress.inc"-->
I'm working on optimizing the "Get Ready" screen before each level.  To get it running full speed I have written two new renderers for the sprite lib.  One is a clear renderer that erases the screen and then adds stars.  This will be used for the background and remove the need to draw 90 separate single-pixel sprites for the stars.  The other is a dedicated box renderer so that boxes no longer need to be drawn using sprites.</p>

<p>I got the clear renderer mostly working and it shaved off almost 30ms per frame (used to be 75ms, now is around 45ms).  The cool thing is I can go back and add this renderer to <span class="game">Decaying Orbit</span> so that it no longer has static backgrounds.  Huzzah!</p>

<p>The box renderer isn't debugged yet, but should provide a similar speed boost I would think.</p>

<p>Most recently, however, I dived back into the sprite library source.  I want a couple small features and have hit the code size limit.  The assembly has to fit in 4kB because that is the amount of iram on each MPE.  I was pretty much hitting the limit, but now after some investigations I have reduced it somewhat.  I shaved off about 100 bytes.  This may not seem like much, but it provides more than enough room to do what I want.</p>

<p>One of my goals with the code reduction is to add performance monitoring as a permanent feature.  In the past I could optionally include it using ifdefs.  However, due to the code size hitting the limit I was no longer able to include it.  Now that I've reclaimed some space I want to put it back permanently so that I can use it to tune the sprite library.</p>]]></content>
    <link rel="alternate" href="http://www.dragonshadow.com/-/archive/2008_Q1.html#27_Mar_2008"/>
    <id>tag:dragonshadow.com,2008-03-27:/-/news/2008/20080327-a.txt</id>
    <updated>2008-03-27T18:14:27Z</updated>
  </entry>

<!-- 1205966696 -->
  <entry>
    <title>So far so good</title>
    <content type="html"><![CDATA[<p><!--#include virtual="/-/common/gameprogress.inc"-->
I have the title screen for <span class="game">Robot Ron</span> running at full speed now.  Well, technically the render time per frame oscillates above and below 20 ms so I may do a spot more of optimization to get it at a consistent 50 fps.</p>

<p>The next part is the "Get Ready" screen before each level.  It is dog slow due two main things.  First, the star background is drawn as single-pixel lines.  Thankfully I added point plotting for <span class="game">Decaying Orbit</span> and can easily reuse that here.  The more difficult issues are the large rectangles.  I pointed them out at about 1:56 of the <a CLASS="internal" href="/-/archive/2007_Q3.html#09_Jul_2007">Robot Ron video blog post</a>.  Writing a special case renderer that handles boxes will speed things up a bunch.</p>

<p>Is anyone interested in playing around with this?  I could post a version that you can burn to a CD and try yourself.</p>

<p>Edit: I also added a link to the authentication tools to the left nav bar.</p>]]></content>
    <link rel="alternate" href="http://www.dragonshadow.com/-/archive/2008_Q1.html#19_Mar_2008"/>
    <id>tag:dragonshadow.com,2008-03-19:/-/news/2008/20080319-a.txt</id>
    <updated>2008-03-19T22:44:56Z</updated>
  </entry>

<!-- 2007 -->
<!-- 2006 -->
<!-- 2005 -->
<!-- 2004 -->
<!-- 2003 -->
<!-- 2002 -->
<!-- 2001 -->
<!-- 2000 -->
<!-- 1999 -->
<!-- 1998 -->
<!-- 1997 -->
</feed>
