<?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>Somethinghitme</title>
	<atom:link href="http://www.somethinghitme.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.somethinghitme.com</link>
	<description>Jason Browns personal blog</description>
	<lastBuildDate>Thu, 29 Mar 2012 19:40:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Turning canvas games into executables</title>
		<link>http://www.somethinghitme.com/2012/03/29/turning-canvas-games-into-executables/</link>
		<comments>http://www.somethinghitme.com/2012/03/29/turning-canvas-games-into-executables/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 19:36:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[executables]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=454</guid>
		<description><![CDATA[This is something I&#8217;ve been looking to do for the longest time. The closest I ever got was using Adobe Air. I didn&#8217;t like that solution though because it left all of your assets out in the open. Recently a friend reminded &#8230; <a href="http://www.somethinghitme.com/2012/03/29/turning-canvas-games-into-executables/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/03/ss1333030211.3125.png"><br />
<img class="size-medium wp-image-455" style="float: left; margin-right: 10px;" title="tetris exe" src="http://www.somethinghitme.com/wp-content/uploads/2012/03/ss1333030211.3125-288x300.png" alt="" width="288" height="300" /></a> This is something I&#8217;ve been looking to do for the longest time. The closest I ever got was using Adobe Air. I didn&#8217;t like that solution though because it left all of your assets out in the open. Recently a friend reminded me about <a href="http://qt.nokia.com/products/">QT</a> something I haven&#8217;t touched in a few years. After looking over some of their webkit examples I realized I could load in embedded resources.. making self contained canvas games.</p>
<p>I tested out my theory using the Fancy Browser sample, and just modifying it to load an embedded html, which include all the code for the game.</p>
<p>So far it works great. I need to do some more tests, such as finding out what dependencies the executable requires, and also what kind of performance I get (QT5 will include V8). This is still pretty cool in my opinion, just another way to monetize HTML5 games <img src='http://www.somethinghitme.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> &#8230;. or even&#8230; HTML5 screen savers!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/03/29/turning-canvas-games-into-executables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JEST another HTML5 Game Framework</title>
		<link>http://www.somethinghitme.com/2012/03/18/jest-another-html-game-framework/</link>
		<comments>http://www.somethinghitme.com/2012/03/18/jest-another-html-game-framework/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 04:47:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[game framework]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jest]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=451</guid>
		<description><![CDATA[I&#8217;ve been coming up with small games and demos using canvas for a couple of years now, and over that time I&#8217;ve created a framework for doing so. You can see examples in some of my earlier blog posts such &#8230; <a href="http://www.somethinghitme.com/2012/03/18/jest-another-html-game-framework/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been coming up with small games and demos using canvas for a couple of years now, and over that time I&#8217;ve created a framework for doing so. You can see examples in some of my earlier blog posts such as the SOPA game, and the SHMUP thats been in development for a while. Today I decided to pretty some of it up a bit and post it on github. Minified it comes in at only 31k, and provides quite a bit of functionality (I am biased though).</p>
<p><a href="https://github.com/loktar00/jest">Here is a link to the github repo</a> and the <a href="http://loktar00.github.com/jest/">first of many demo&#8217;s Ill be posting</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/03/18/jest-another-html-game-framework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Canvas Flood Fill</title>
		<link>http://www.somethinghitme.com/2012/03/07/html5-canvas-flood-fill/</link>
		<comments>http://www.somethinghitme.com/2012/03/07/html5-canvas-flood-fill/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 17:37:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[flood fill]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=436</guid>
		<description><![CDATA[Messing around in JS today (surprising eh?) making an HTML5 vs of rampart-ish. The more I do the less it becomes like rampart. Today I decied to tackle the flood fill portion which is a major part of the gameplay. &#8230; <a href="http://www.somethinghitme.com/2012/03/07/html5-canvas-flood-fill/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Messing around in JS today (surprising eh?) making an HTML5 vs of rampart-ish. The more I do the less it becomes like rampart. Today I decied to tackle the flood fill portion which is a major part of the gameplay.</p>
<p>Here is the workhorse function</p>
<pre class="brush: jscript; title: ; notranslate">
function floodFill(mapData, x, y, oldVal, newVal){
    var mapWidth = mapData.length,
        mapHeight = mapData[0].length;

        if(oldVal == null){
            oldVal=mapData[x][y];
        }

        if(mapData[x][y] !== oldVal){
            return true;
        }

    mapData[x][y] = newVal;

    if (x &gt; 0){
        floodFill(mapData, x-1, y, oldVal, newVal);
    }

    if(y &gt; 0){
        floodFill(mapData, x, y-1, oldVal, newVal);
    }

    if(x &lt; mapWidth-1){
        floodFill(mapData, x+1, y, oldVal, newVal);
    }

    if(y &lt; mapHeight-1){
        floodFill(mapData, x, y+1, oldVal, newVal);
    }
}
</pre>
<p>Which is called by doing this</p>
<pre class="brush: jscript; title: ; notranslate">
floodFill(map, 3,3,null,2);
</pre>
<p>map refers to a 2 dimensional array which contains the data, in my case, 0 or 1. The second 2 parameters are the x and y of where to start on the map, null is the initial value to start with, and 2 is the change value parameter, which tells the function to change any tile with the value 0, to 2.</p>
<p>The function is pretty straightforward it recursively checks each points north/south/east/west neighbor until it encounters a neighbors whos value is not 0. <a href="http://jsfiddle.net/loktar/ZLw9m/">Try the code for yourself</a>. I have portions commented out that generate a larger random map to fill for testing purposes. Anything beyond 256&#215;256 has issues within chrome due to stack size restrictions.</p>
<p>Below is the result of the function.</p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/03/filled.png"><img class="alignleft size-medium wp-image-437" title="Flood Fill" src="http://www.somethinghitme.com/wp-content/uploads/2012/03/filled-300x300.png" alt="" width="300" height="300" /></a></p>
<p><a href="http://inventwithpython.com/blog/2011/08/11/recursion-explained-with-the-flood-fill-algorithm-and-zombies-and-cats/">And here is a link to some great information on recursive floodfilling</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/03/07/html5-canvas-flood-fill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML5 Canvas Particle engine</title>
		<link>http://www.somethinghitme.com/2012/02/23/html5-canvas-particle-engine/</link>
		<comments>http://www.somethinghitme.com/2012/02/23/html5-canvas-particle-engine/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 03:50:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=431</guid>
		<description><![CDATA[In my attempt to make a post weekly figured I would post some progress on my current project, which is a side project for the shmup Im working on. Just a basic particle engine using canvas (of course). Its tied &#8230; <a href="http://www.somethinghitme.com/2012/02/23/html5-canvas-particle-engine/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In my attempt to make a post weekly figured I would post some progress on my current project, which is a side project for the shmup Im working on.</p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/02/particles.png"><img class="size-medium wp-image-432 alignleft" title="particles" src="http://www.somethinghitme.com/wp-content/uploads/2012/02/particles-300x265.png" alt="" width="300" height="265" /></a>Just a basic particle engine using canvas (of course). Its tied in directly with my home grown game framework, so implementing it into my projects should be a breeze. Going to attempt to make an editor for it over the weekend.. heh mostly for me to just mess around, but of course it has the other benefit of allowing me to make effects visually, which is easier. <a href="http://www.somethinghitme.com/projects/particle%20test/">Check it out</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/02/23/html5-canvas-particle-engine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Procedural Canvas Shmup now has a boss and sounds!</title>
		<link>http://www.somethinghitme.com/2012/02/13/procedural-canvas-shmup-now-has-a-boss-and-sounds/</link>
		<comments>http://www.somethinghitme.com/2012/02/13/procedural-canvas-shmup-now-has-a-boss-and-sounds/#comments</comments>
		<pubDate>Tue, 14 Feb 2012 01:46:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[shmup]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=428</guid>
		<description><![CDATA[Its crazy how much of a difference music and sounds make. Been working on my shmup when not busy and got a boss in today. So much work still left to be done though, I want upgrades for the player &#8230; <a href="http://www.somethinghitme.com/2012/02/13/procedural-canvas-shmup-now-has-a-boss-and-sounds/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/02/shmupboss.png"><img class="alignnone size-medium wp-image-429" title="shmupboss" src="http://www.somethinghitme.com/wp-content/uploads/2012/02/shmupboss-250x300.png" alt="" width="250" height="300" /></a></p>
<p>Its crazy how much of a difference music and sounds make. Been working on my shmup when not busy and got a boss in today. So much work still left to be done though, I want upgrades for the player ship still, and possibly a more consistent look for the enemies depending on the seed (like a shared color scheme).</p>
<p><a href="http://www.somethinghitme.com/pprojects/shump/">You can check out my progress here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/02/13/procedural-canvas-shmup-now-has-a-boss-and-sounds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glow Roids</title>
		<link>http://www.somethinghitme.com/2012/02/07/glow-roids/</link>
		<comments>http://www.somethinghitme.com/2012/02/07/glow-roids/#comments</comments>
		<pubDate>Tue, 07 Feb 2012 15:20:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[game development]]></category>
		<category><![CDATA[glow roids]]></category>
		<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=420</guid>
		<description><![CDATA[Posting this for archival purposes. Its a game I made a few years back, was really my first foray into C# and OpenGL. I used Tao which to my knowledge isn&#8217;t updated or used anymore. With that being said the &#8230; <a href="http://www.somethinghitme.com/2012/02/07/glow-roids/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Posting this for archival purposes. Its a game I made a few years back, was really my first foray into C# and OpenGL. I used Tao which to my knowledge isn&#8217;t updated or used anymore. With that being said the game can be a bit finicky on different machines.</p>
<p><a href="http://www.blitzbasic.com/Community/posts.php?topic=76998">Original Post</a></p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/02/as2.jpg"><img class="alignnone size-medium wp-image-422" title="as2" src="http://www.somethinghitme.com/wp-content/uploads/2012/02/as2-300x213.jpg" alt="" width="300" height="213" /></a></p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/02/as1.jpg"><img class="alignnone size-medium wp-image-421" title="as1" src="http://www.somethinghitme.com/wp-content/uploads/2012/02/as1-300x214.jpg" alt="" width="300" height="214" /></a></p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/02/as3.jpg"><img class="alignnone size-medium wp-image-423" title="as3" src="http://www.somethinghitme.com/wp-content/uploads/2012/02/as3-300x214.jpg" alt="" width="300" height="214" /></a></p>
<p><a href="http://www.worldofrot.com/roids/glowroids.zip">Download</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/02/07/glow-roids/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Current Project Canvas Shmup</title>
		<link>http://www.somethinghitme.com/2012/01/25/current-project-canvas-shmup/</link>
		<comments>http://www.somethinghitme.com/2012/01/25/current-project-canvas-shmup/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 03:31:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[canvas shmup]]></category>
		<category><![CDATA[javascript game]]></category>
		<category><![CDATA[shmupity]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=415</guid>
		<description><![CDATA[Posting my most current project (well my most current that happens to be cool anyway). Its a canvas shootemup, not really sure what Ill settle on for a title, but heres a screeny What I think is pretty cool about &#8230; <a href="http://www.somethinghitme.com/2012/01/25/current-project-canvas-shmup/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Posting my most current project (well my most current that happens to be cool anyway). Its a canvas shootemup, not really sure what Ill settle on for a title, but heres a screeny</p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/01/shmup.png"><img class="alignnone size-full wp-image-414" title="shmup" src="http://www.somethinghitme.com/wp-content/uploads/2012/01/shmup.png" alt="" width="515" height="604" /></a></p>
<p>What I think is pretty cool about it so far is all the graphics (except the bg) are procedural and generated based off of whatever seed you give it. Not only are the graphics based on a seed but so is the level. For example if you play game?testing, you will have the same level/graphics as someone else who plays using that seed. This could provide some interesting challenges. Anyway <a href="http://www.somethinghitme.com/pprojects/shump/?shmupity">heres the work in progress</a> using the seed shmupity.</p>
<p>Also of course this is being done using js/canvas so you need a modern browser to test it.. but I don&#8217;t think there&#8217;s many who&#8217;d come here without one of those <img src='http://www.somethinghitme.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/01/25/current-project-canvas-shmup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My SOPA/PIPA Ludum Dare entry</title>
		<link>http://www.somethinghitme.com/2012/01/18/my-sopapipa-ludum-dare-entry/</link>
		<comments>http://www.somethinghitme.com/2012/01/18/my-sopapipa-ludum-dare-entry/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 01:50:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Game Development]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[canvas]]></category>
		<category><![CDATA[canvas games]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[pipa]]></category>
		<category><![CDATA[sopa]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=406</guid>
		<description><![CDATA[Was pretty stressful trying to make this in a day (especially since I did a full workday at my day job as well!). This ended up being my entry. I borrowed some game concepts (ok all of them) from the &#8230; <a href="http://www.somethinghitme.com/2012/01/18/my-sopapipa-ludum-dare-entry/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/01/screen1.png"><img title="screen1" src="http://www.somethinghitme.com/wp-content/uploads/2012/01/screen1.png" alt="" width="640" height="480" /></a></p>
<p>Was pretty stressful trying to make this in a day (especially since I did a full workday at my day job as well!). <a href="http://www.ludumdare.com/compo/sopajam/?action=preview&amp;uid=10305">This ended up being my entry</a>. I borrowed some game concepts (ok all of them) from the awesome game World Infectonator. Basically what you do is you get one chance to convert a 1%&#8217;er or &#8220;the unaware&#8221; in hopes they will spread their new found awareness enough to beat the level. Game was done using JS and Canvas of course, and using my homegrown game engine thats been evolving over the last year or so. You can check out the game in all its glory <a href="http://www.somethinghitme.com/projects/sopa/">from the direct link</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/01/18/my-sopapipa-ludum-dare-entry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Alpha Centauri Alien Crossfire on Windows 7</title>
		<link>http://www.somethinghitme.com/2012/01/01/alpha-centauri-alien-crossfire-on-windows-7/</link>
		<comments>http://www.somethinghitme.com/2012/01/01/alpha-centauri-alien-crossfire-on-windows-7/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 22:59:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[PC]]></category>
		<category><![CDATA[Alien Crossfire]]></category>
		<category><![CDATA[Alpha Centauri]]></category>
		<category><![CDATA[Install Alpha Centuari WIndows 7]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=398</guid>
		<description><![CDATA[This is kind of a random post, but its something I ran into this week on vacation after getting a copy of Soldout Softwares Alpha Centauri with the Alien Crossfire expansion pack. If you&#8217;re like me and tried installing the &#8230; <a href="http://www.somethinghitme.com/2012/01/01/alpha-centauri-alien-crossfire-on-windows-7/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/01/images.jpg"><img class="alignleft size-full wp-image-399" title="Alpha Centauri Alien Crossfire" src="http://www.somethinghitme.com/wp-content/uploads/2012/01/images.jpg" alt="" width="224" height="224" /></a>This is kind of a random post, but its something I ran into this week on vacation after getting a copy of Soldout Softwares Alpha Centauri with the Alien Crossfire expansion pack. If you&#8217;re like me and tried installing the game from the cd, the setup.exe just hangs. But never fear there is a way to get it working!</p>
<p><strong>Step 1</strong> &#8211; Make a directory somewhere on your machine, but not in program files, or program files(x86). Otherwise in order to save you will have to run the game as an administrator. What I did was create a directory structure on the root of my drive &#8220;DRIVE:\Firaxis\Sid Meier&#8217;s Alpha Centauri\&#8221;.</p>
<p><strong>Step 2 </strong>- Copy the contents of the &#8220;programs&#8221; directory from Disc 1 to the directory we created above. Now copy the Directories FX, MOVIES, and VOICES into the directory. Now your structure should look something like the following,</p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2012/01/dir1.png"><img class="aligncenter size-full wp-image-401" title="dir" src="http://www.somethinghitme.com/wp-content/uploads/2012/01/dir1.png" alt="" width="392" height="411" /></a></p>
<p>Now do the same with CD2, copy the contents of programs to the root of the same directory and then copy FX/MOVIES/VOICES, and just acknowledge the file overwrites. At this point you now have a &#8220;working&#8221; copy of the game, you just run Terran.exe, or Terranx.exe in order to play, but you will probably have a few odd issues with windows not appearing, and low resolution. So I recommend you follow the rest of the directions posted at <a href=" http://forums.2kgames.com/showthread.php?112816-SMAC-on-Win-7-64-bit">this forum</a> (2nd post).</p>
<p>In case the above forum post is deleted or something I wanted to have the info here as well, but I encourage trying the link above first.</p>
<blockquote><p>I run Alpha Centauri and it&#8217;s expansion Alien Crossfire on Windows 7 64-bit with no problems. However the following are a few of the things I&#8217;ve had to do to make them work the best they can:</p>
<p>Once you apply the Windows XP Compatibility patch then you are almost good to go for Windows 7 64-bit. If you are getting an error message then try to re-download that patch or run the patch itself in a compatibility mode perhaps with the &#8220;run as administrator&#8221; option.</p>
<p>You are <em>almost</em> ready to go. Before you even install <strong>any</strong> patches first make sure the installation folder is not within either the &#8220;Program Files&#8221; or &#8220;Program Files (x86)&#8221; folders. This is because Alpha Centauri (and Alien Crossfire) put their save games within their folders. Starting with Vista and newer this will not work because of User Access Control. So, choose an installation folder outside of &#8220;Program Files..&#8221;</p>
<p>Alpha Centauri&#8217;s native resolution is 800&#215;600. You can change this however: in the installation folder, find a file named &#8220;Alpha Centauri.ini&#8221; and open it with NotePad. In that file, Under &#8220;[Alpha Centauri]&#8221; add two lines:</p>
<p>Video Mode=1024<br />
DirectDraw=0</p>
<p>The first line will tell the game to run at 1024&#215;768 which is the maximum resolution using DirectDraw that the game can run with. The second line tells the game to not use DirectDraw and it will instead run at your desktop resolution.</p>
<p>Not done yet! <img title="Wink" src="http://forums.2kgames.com/images/dark/smilies/wink.gif" alt="" border="0" /> Alpha Centauri itself (not Alien Crossfire) has a bug when running at your desktop resolution. In the main menu the menu&#8217;s are not visible. This makes getting into a game practically blind luck. There is a fix however:</p>
<p>If you have Alien Crossfire, get this patch: <a href="http://www.civgaming.net/forums/showthread.php?t=7511" target="_blank">Here</a>. Also get this patch: <a href="http://www.rpgcodex.net/phpBB/viewtopic.php?t=56203" target="_blank">Here</a>. Rename terran.exe and terranx.exe (if you have Alien Crossfire) so you have backup&#8217;s of them. Then unarchive the first patch into your SMAC folder then unarchive the second into it as well overwriting any files (but keep backups of any overwritten files). You can skip the first archive if you don&#8217;t have Alien Crossfire. Either of these patches will fix the menu not being visible when using the DirectDraw=0 option. So, you&#8217;ll be at your desktop resolution and everything will work with these unofficial patches. Both unofficial patches also come with something extra: AI improvements! That is just bonus on top of getting them to work at desktop-resolution!</p>
<p>Almost done! Go back to the &#8220;Alpha Centauri.ini&#8221; file. Under that put in:</p>
<p>ForceOldVoxelAlgorithm=0</p>
<p>This line if it doesn&#8217;t already exist. With the unofficial patches you can use &#8220;=0&#8243; but if you don&#8217;t use those patches then you will need to set it to &#8220;=1&#8243; or they will crash.</p>
<p>All of these instructions assume you can get Alpha Centauri to it&#8217;s last patch: the Windows XP/2000 patch. If you can do that then these instructions just &#8220;fix it up&#8221; to be the best it can be on a modern system.</p>
<p>If anything is unclear or I can help further just post back. Post back regardless whether you get it working or not!</p>
<p>Also, Alpha Centauri itself is now available on Good Old Games.com here: <a href="http://www.gog.com/en/gamecard/sid_meiers_alpha_centauri" target="_blank">Link</a>. I don&#8217;t know how well the unofficial patches will work with that version but that version is &#8220;turn-key&#8221;: it&#8217;s super simple to install and get going!</p></blockquote>
<p>And enjoy <img src='http://www.somethinghitme.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2012/01/01/alpha-centauri-alien-crossfire-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Fake 2d Lighting with javascript</title>
		<link>http://www.somethinghitme.com/2011/11/16/fake-2d-lighting-with-javascript/</link>
		<comments>http://www.somethinghitme.com/2011/11/16/fake-2d-lighting-with-javascript/#comments</comments>
		<pubDate>Wed, 16 Nov 2011 20:51:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Canvas]]></category>
		<category><![CDATA[Gaming]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2d lighting]]></category>
		<category><![CDATA[ai vision cone]]></category>

		<guid isPermaLink="false">http://www.somethinghitme.com/?p=389</guid>
		<description><![CDATA[Just started messing with realtime 2d raycasting for lighting today, used a pretty good code example from facepunch.com/threads/1011659. Heres my version in JS, and a fiddle to play with. If you look at the code youll notice I added a &#8230; <a href="http://www.somethinghitme.com/2011/11/16/fake-2d-lighting-with-javascript/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Just started messing with realtime 2d raycasting for lighting today, used a pretty good code example from <a href="http://www.facepunch.com/threads/1011659">facepunch.com/threads/1011659</a>. <a href="http://www.somethinghitme.com/projects/2d%20lighting/fakelight.html">Heres my version in JS</a>, and<a href="http://jsfiddle.net/loktar/VY75L/16/"> a fiddle to play with</a>. If you look at the code youll notice I added a portion to keep track of the closest block per ray so you can light up only that block and not the others. However doing this got me to thinking, this method can be used to make a vision cone for AI. Ive seen this raycasting method used before I just never implemented it myself.. besides my *really* slow implementation for lighting on my <a href="http://www.somethinghitme.com/projects/canvasterrain/">canvas terrian.</a></p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2011/11/2dlighting.png"><img title="2dlighting" src="http://www.somethinghitme.com/wp-content/uploads/2011/11/2dlighting.png" alt="" width="512" height="512" /></a></p>
<p>I might mess with this some more, got a few ideas for a small game or two, but who knows if Ill actually get around to it before finding something else that&#8217;s shiny. Feel free to do whatever with the code. Theres a lot of room for optimization.</p>
<p>Figured I might as well post this thing I was messing around with. <a href="http://jsfiddle.net/loktar/PyW5d/19/">Same concept but much slower </a>.</p>
<p><a href="http://www.somethinghitme.com/wp-content/uploads/2011/11/pyramid.png"><img class="aligncenter size-full wp-image-395" title="pyramid" src="http://www.somethinghitme.com/wp-content/uploads/2011/11/pyramid.png" alt="" width="252" height="256" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.somethinghitme.com/2011/11/16/fake-2d-lighting-with-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.somethinghitme.com/feed/ ) in 0.26454 seconds, on May 11th, 2012 at 11:12 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 18th, 2012 at 11:12 am UTC -->
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
<!-- Quick Cache Is Fully Functional :-) ... A Quick Cache file was just served for (  www.somethinghitme.com/feed/ ) in 0.00062 seconds, on May 18th, 2012 at 11:07 am UTC. -->
