<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Article RSS Feed</title>
    <link>http://www.fruwe.com/rss/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Fruwe Limited Blog</description>
    
    
        <item>
          <title>Tile Engine in ActionScript</title>
          <description>&lt;h3&gt;Tile Engine in ActionScript&lt;/h3&gt;
&lt;div class=&quot;posted&quot;&gt;Posted by Christian-Manuel Butzke on May 28, 2009&lt;em&gt;|&lt;/em&gt;&lt;img src=&quot;http://spurrd.com/assets/123/comment.png&quot; /&gt;&lt;a href=&quot;/blog/2009/05/28/tile-engine-in-actionscript/#disqus_thread&quot;&gt;Comments&lt;/a&gt;&lt;/div&gt;

	&lt;p&gt;Here is a small demo game, I created in a week or two a couple of years ago.&lt;/p&gt;


&lt;object classid=&quot;clsid:d27cdb6e-ae6d-11cf-96b8-444553540000&quot; codebase=&quot;http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0&quot; width=&quot;480&quot; height=&quot;272&quot; id=&quot;game&quot; align=&quot;middle&quot;&gt;
&lt;param name=&quot;allowScriptAccess&quot; value=&quot;www.fruwe.com&quot; /&gt;
&lt;param name=&quot;movie&quot; value=&quot;/game.swf&quot; /&gt;&lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;&lt;param name=&quot;bgcolor&quot; value=&quot;#000000&quot; /&gt;&lt;embed src=&quot;/game.swf&quot; quality=&quot;high&quot; bgcolor=&quot;#000000&quot; width=&quot;480&quot; height=&quot;272&quot; name=&quot;game&quot; align=&quot;middle&quot; allowScriptAccess=&quot;www.fruwe.com&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer&quot; /&gt;
&lt;/object&gt;

	&lt;h4&gt;Controls&lt;/h4&gt;


	&lt;p&gt;First you will probably have to click once on the flash file above, as when the page loads, the focus will be in the background.&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;Left Arrow&lt;/strong&gt; &amp;#8211; Move left
&lt;strong&gt;Right Arraw&lt;/strong&gt; &amp;#8211; Move right
&lt;strong&gt;Up Arrow&lt;/strong&gt; &amp;#8211; Jump
&lt;strong&gt;Space&lt;/strong&gt; &amp;#8211; Throw stones
&lt;strong&gt;Apple Key/Ctrl Key&lt;/strong&gt; &amp;#8211; Show tiles (exp.)&lt;/p&gt;


	&lt;p&gt;You have three lives and for each live you have a couple of Health Points&amp;#8230; So, it should not be that difficult&amp;#8230;.&lt;/p&gt;


	&lt;p&gt;Please enjoy&lt;/p&gt;


	&lt;h4&gt;History&lt;/h4&gt;


	&lt;p&gt;In 2006 I was working on some projects, which required certain abilities you often see in tile engines. And, next to the fact, that I thought that programming would be really cool in ActionScript, I decided to go for it and programmed an event driven tile engine. After that, the tile engine was reused in couple of other projects and more and more refined.&lt;/p&gt;


	&lt;p&gt;As the spring of 2007 came, I really wanted to try and see, whether this tile engine would be enough to actually program a game with it. And one or two weeks later I had this small, but playable small demo game finished. Actually one the most difficult parts of it, was the control. Even at this stage, the control is quite bad, sorry about that.&lt;/p&gt;


	&lt;p&gt;Also, moving on moving platforms and certain other subtle details, were kind of fun to figure out. I guess I will make a blog out of this&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Anyway, if you need any Flash or ActionScript Consultant &lt;a href=&quot;mailto:info@fruwe.com&quot;&gt;let me know&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;Thanks, and have a nice day,&lt;/p&gt;


	&lt;p&gt;Christian-Manuel Butzke
&lt;i&gt;Fruwe Limited&lt;/i&gt; &amp;#8211; &lt;span class=&quot;caps&quot;&gt;CEO&lt;/span&gt;&lt;/p&gt;


&lt;div id=&quot;disqus_thread&quot;&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://disqus.com/forums/fruwe/embed.js&quot;&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href=&quot;http://fruwe.disqus.com/?url=ref&quot;&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href=&quot;http://disqus.com&quot; class=&quot;dsq-brlink&quot;&gt;blog comments powered by &lt;span class=&quot;logo-disqus&quot;&gt;Disqus&lt;/span&gt;&lt;/a&gt;</description>
          <pubDate>Thu, 28 May 2009 00:00:29 GMT</pubDate>
          <guid>http://www.fruwe.com/blog/2009/05/28/tile-engine-in-actionscript/</guid>
          <link>http://www.fruwe.com/blog/2009/05/28/tile-engine-in-actionscript/</link>
        </item>
    
        <item>
          <title>uninitialized constant MiniMagick::MiniMagickError</title>
          <description>&lt;h3&gt;uninitialized constant MiniMagick::MiniMagickError&lt;/h3&gt;
&lt;div class=&quot;posted&quot;&gt;Posted by Christian-Manuel Butzke on December 23, 2008&lt;em&gt;|&lt;/em&gt;&lt;img src=&quot;http://spurrd.com/assets/123/comment.png&quot; /&gt;&lt;a href=&quot;/blog/2008/12/23/uninitialized-constant-minimagick-minimagickerror/#disqus_thread&quot;&gt;Comments&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;Yesterday morning, the world still a better place, a slight breeze of warm sunlight could have made it even more colorful. So, I did not mind much as the rain wildly plundered upon me on the way to offices of my customer. Yet, I did not know that whatever or whoever rules the universe did not mean to let Germans have yet another day of victorious feelings. The universe has to be kept in balance, as I believe, so something had to happen after Germany won three games in a row with an unusual high score.&lt;/p&gt;

    &lt;p&gt;Germany &amp;#8211; Australia 4:0
Germany &amp;#8211; England 4:1
Germany &amp;#8211; Argentine 4:0&lt;/p&gt;

    &lt;p&gt;But yet, little I knew about what was going on in the heads or whatever of whatever or whoever rules the universe, and even knowing &lt;span class=&quot;caps&quot;&gt;&lt;span class=&quot;caps&quot;&gt;THE&lt;/span&gt;&lt;/span&gt; answer &amp;#8211; 42 &amp;#8211; did not help that much. But a first sign, the ripple of an unfortunate day was roaring at me when I tried to run RSpec on our project, after doing an &amp;#8220;bundle install&amp;#8221;.&lt;/p&gt;

    &lt;p&gt;Just for reference, we are are running 
- Ubuntu 10.04
- Rails 3 Beta 04
- mini_magick (1.3.0 1cffd3) (installed by bundler)&lt;/p&gt;

    &lt;p&gt;A never seen before error popped up:&lt;/p&gt;

    &lt;ul&gt;
    &lt;li&gt;uninitialized constant MiniMagick::MiniMagickError **&lt;/li&gt;
    &lt;/ul&gt;

&lt;pre&gt;
3) Deal image size validation should scale down a landscape image to be exactly 100 by 64 pixels
    Failure/Error: @uploader.store!(File.open(file_name))
    uninitialized constant MiniMagick::MiniMagickError
    # /home/chris/.bundle/ruby/1.8/bundler/gems/carrierwave-9dd8738f4752a18c2c6c0a722070105dac5e4abd-master/lib/carrierwave/processing/mini_magick.rb:256:in `manipulate!'
    # /home/chris/.bundle/ruby/1.8/bundler/gems/carrierwave-9dd8738f4752a18c2c6c0a722070105dac5e4abd-master/lib/carrierwave/processing/mini_magick.rb:177:in `resize_to_fill'
    # /home/chris/.bundle/ruby/1.8/bundler/gems/carrierwave-9dd8738f4752a18c2c6c0a722070105dac5e4abd-master/lib/carrierwave/uploader/processing.rb:78:in `send'
&lt;/pre&gt;

    &lt;p&gt;With the back trace being inside the minimagick gem, it was obvious that, there was rather something odd going on.&lt;/p&gt;

    &lt;p&gt;A quick look at the source code of the mini_magick gem revealed, the obvious. There was no sign of a MiniMagickError class. Just an class called Error, yet, the source referenced to a MiniMagickError class.&lt;/p&gt;

    &lt;p&gt;A quick monkey patch in the environment fixed that up.&lt;/p&gt;

&lt;pre&gt;
module MiniMagick
  class MiniMagickError &amp;amp;lt; RuntimeError; end
end
&lt;/pre&gt;

    &lt;p&gt;A small fix for a small problem&amp;#8230;&lt;/p&gt;

    &lt;p&gt;Germany &amp;#8211; Spain 0:1
It was a fair play with an exceptional strong Spain. However, as a German, I can not deny, that I wished Germany would have won. Even though I am not interested in soccer, or even watching games, but the &lt;span class=&quot;caps&quot;&gt;&lt;span class=&quot;caps&quot;&gt;FIFA&lt;/span&gt;&lt;/span&gt; finals are just that great. haha. I enjoyed watching it though.&lt;/p&gt;

&lt;div id=&quot;disqus_thread&quot;&gt;&lt;/div&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;http://disqus.com/forums/fruwe/embed.js&quot;&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href=&quot;http://fruwe.disqus.com/?url=ref&quot;&gt;View the discussion thread.&lt;/a&gt;&lt;/noscript&gt;&lt;a href=&quot;http://disqus.com&quot; class=&quot;dsq-brlink&quot;&gt;blog comments powered by &lt;span class=&quot;logo-disqus&quot;&gt;Disqus&lt;/span&gt;&lt;/a&gt;</description>
          <pubDate>Tue, 23 Dec 2008 18:08:45 GMT</pubDate>
          <guid>http://www.fruwe.com/blog/2008/12/23/uninitialized-constant-minimagick-minimagickerror/</guid>
          <link>http://www.fruwe.com/blog/2008/12/23/uninitialized-constant-minimagick-minimagickerror/</link>
        </item>
    
    
  </channel>
</rss>

