<?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>KHAN Games</title>
	<atom:link href="http://www.khangames.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.khangames.com</link>
	<description>A NES dev blog.</description>
	<lastBuildDate>Fri, 20 Aug 2010 01:13:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>More stuff done!</title>
		<link>http://www.khangames.com/?p=207</link>
		<comments>http://www.khangames.com/?p=207#comments</comments>
		<pubDate>Fri, 20 Aug 2010 01:13:09 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[nesdev]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[sneak]]></category>
		<category><![CDATA[Sneak n Peek]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=207</guid>
		<description><![CDATA[After I opened up my game for beta testing, I had no idea what I was in store for. Those guys found a bunch of bugs that I somehow missed. Every time I added something apparently I introduced more bugs. That&#8217;s how it goes I guess! I&#8217;ve had two days off so I got a [...]]]></description>
			<content:encoded><![CDATA[<p>After I opened up my game for beta testing, I had no idea what I was in store for.  Those guys found a bunch of bugs that I somehow missed.  Every time I added something apparently I introduced more bugs. <img src='http://www.khangames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   That&#8217;s how it goes I guess!</p>
<p>I&#8217;ve had two days off so I got a lot accomplished.  Got some gameplay music added (one song for sneak and one song for peek) and touched up the menus a bit.  Also I fixed some of the animation that looked wonky.  I&#8217;m still not sold on the walking speed, but we&#8217;ll see how things turn out.</p>
<p>Single player and two player mode are completely finished.  I think all that&#8217;s left is doing an options screen and adding powerups/powerdowns.</p>
<p>We&#8217;re almost there!</p>
<p>$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=207</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sneak n Peek: Almost Complete</title>
		<link>http://www.khangames.com/?p=204</link>
		<comments>http://www.khangames.com/?p=204#comments</comments>
		<pubDate>Fri, 13 Aug 2010 16:07:37 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[nesdev]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Sneak n Peek]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=204</guid>
		<description><![CDATA[I doubt anyone comes to this website anymore, but &#8230; I finally got the graphics to start on this game about two weeks ago and I really buckled down and finished the two player mode completely a couple days ago, in time for the campout. They&#8217;re supposedly going to play it there at some point, [...]]]></description>
			<content:encoded><![CDATA[<p>I doubt anyone comes to this website anymore, but &#8230;</p>
<p>I finally got the graphics to start on this game about two weeks ago and I really buckled down and finished the two player mode completely a couple days ago, in time for the campout.  They&#8217;re supposedly going to play it there at some point, but every time I talk to someone at the campout, it seems like they&#8217;re too busy.  Who knows if it will even get put on a Powerpak there.</p>
<p>Anyway, for the rest of yous, I am try to get some gameplay music together for the game.  I ripped an old song I did for the Hellraiser project that went into obscurity and used it as title screen music for this game.  I think it fits.</p>
<p>I&#8217;m going to add a single player mode to the game (which will be super easy) and then I plan to somehow incorporate zombies into the game, to make it a little more fun.  We&#8217;ll see what happens.</p>
<p>Thanks for checking back here.</p>
<p>I&#8217;ll have some pictures up soon.  And you should be able to purchase this game (cart only) before the month is out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=204</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sneak n Peek: Preamble</title>
		<link>http://www.khangames.com/?p=202</link>
		<comments>http://www.khangames.com/?p=202#comments</comments>
		<pubDate>Sun, 13 Jun 2010 01:40:45 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[nesdev]]></category>
		<category><![CDATA[Sneak n Peek]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=202</guid>
		<description><![CDATA[So I have taken a stand against being completely useless for at least a short while and have decided (with Rob&#8217;s insistence) to start my next game this Tuesday. I took the better part of today to set up my new programming environment on my Desktop machine which runs Ubuntu Linux. Having it all set [...]]]></description>
			<content:encoded><![CDATA[<p>So I have taken a stand against being completely useless for at least a short while and have decided (with Rob&#8217;s insistence) to start my next game this Tuesday.  I took the better part of today to set up my new programming environment on my Desktop machine which runs Ubuntu Linux.  Having it all set up on this computer will (I hope) help me to be more productive when I sit here with nothing to do.</p>
<p>My goal is to have this game done by the campout in mid-August so that I can present the game to all of my drunken friends and we can all suffer in the game&#8217;s badness.</p>
<p>It&#8217;s going to be a port of the Atari 2600 game, Sneak &#8216;n Peek.  It&#8217;s a basic game of hide and seek, with the added benefit of forcing the second player to ACTUALLY close their eyes while you go and hide your character in one of ~20 available hiding locations around a house.</p>
<p>I&#8217;m going to probably change the setting of the game from the boring house used in the 2600 version.  Hiding in the floor?  Give me a break.  I&#8217;m going to try to at LEAST make it a little more realistic, with actual items to hide behind, all while updating the graphics to NES standards, so it doesn&#8217;t look like the sprites are walking around with huge erections the entire time.</p>
<p>Some things I have in mind to spruce things up a little are:</p>
<p>Character select screen<br />
Possible 4-player action<br />
Music that doesn&#8217;t sound like ass<br />
Graphics that don&#8217;t look like ass</p>
<p>Anyway.  If you have any ideas, post them this way.  And if you&#8217;re reading this, thanks for stopping by.  I apologize that there hasn&#8217;t been much going on here.  I couldn&#8217;t tackle the room compression for Leisure Suit, so it&#8217;s now officially on the back burner.</p>
<p>This is the era of SNEAK N PEEK!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=202</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Happy anniversary UFC</title>
		<link>http://www.khangames.com/?p=201</link>
		<comments>http://www.khangames.com/?p=201#comments</comments>
		<pubDate>Thu, 27 May 2010 22:07:25 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[party time]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ufc]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=201</guid>
		<description><![CDATA[As most of you saw on Nintendoage and my facebook page, today is the one year anniversary of my first game, ultimate frogger champion! All of you that own it, give it a whirl. As for leisure suit, the project is probably on hiatus until I code some other things and develop my skills a [...]]]></description>
			<content:encoded><![CDATA[<p>As most of you saw on Nintendoage and my facebook page, today is the one year anniversary of my first game, ultimate frogger champion!  <img src='http://www.khangames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>All of you that own it, give it a whirl.</p>
<p>As for leisure suit, the project is probably on hiatus until I code some other things and develop my skills a little more.  Room compression is a little too complex for my little brain.  I have a couple other smaller projects lined up to get my feet wet a little more and then I&#8217;ll come back to LSL.</p>
<p>Try not to be too mad at me.  <img src='http://www.khangames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=201</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Late April update</title>
		<link>http://www.khangames.com/?p=199</link>
		<comments>http://www.khangames.com/?p=199#comments</comments>
		<pubDate>Tue, 20 Apr 2010 16:04:28 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[leisure suit]]></category>
		<category><![CDATA[NES Dev]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=199</guid>
		<description><![CDATA[So I got some information from Michael Swanson about the background compression that I am trying to find time to look over. Hockey playoffs are sort of interfering with my focus though. Hopefully I&#8217;ll be able to get back on track soon! Love, Kevin.]]></description>
			<content:encoded><![CDATA[<p>So I got some information from Michael Swanson about the background compression that I am trying to find time to look over.</p>
<p>Hockey playoffs are sort of interfering with my focus though.  <img src='http://www.khangames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hopefully I&#8217;ll be able to get back on track soon!</p>
<p>Love, Kevin.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=199</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>April update</title>
		<link>http://www.khangames.com/?p=198</link>
		<comments>http://www.khangames.com/?p=198#comments</comments>
		<pubDate>Mon, 05 Apr 2010 20:36:12 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Leisure Suit Larry]]></category>
		<category><![CDATA[nesdev]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=198</guid>
		<description><![CDATA[The reason I&#8217;m not updating this is because I&#8217;m trying to figure out room compression and it&#8217;s completely foreign to me. Until I get this figured out, Larry is at a standstill. Doh!]]></description>
			<content:encoded><![CDATA[<p>The reason I&#8217;m not updating this is because I&#8217;m trying to figure out room compression and it&#8217;s completely foreign to me.</p>
<p>Until I get this figured out, Larry is at a standstill.  Doh!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=198</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lots of progress, little man.</title>
		<link>http://www.khangames.com/?p=190</link>
		<comments>http://www.khangames.com/?p=190#comments</comments>
		<pubDate>Mon, 22 Mar 2010 04:07:35 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Leisure Suit Larry]]></category>
		<category><![CDATA[NES Dev]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=190</guid>
		<description><![CDATA[So I got a bunch more done since the last time you and I hung out.  Thanks for stopping by again! First of all, I added a global little text field that shows you on every screen and all the time what item you have selected in your inventory at any moment.  The modified play [...]]]></description>
			<content:encoded><![CDATA[<p>So I got a bunch more done since the last time you and I hung out.  Thanks for stopping by again!</p>
<p>First of all, I added a global little text field that shows you on every screen and all the time what item you have selected in your inventory at any moment.  The modified play screen looks a little like this:</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/playfield.jpg"><img class="aligncenter size-full wp-image-191" title="playfield" src="http://www.khangames.com/wp-content/uploads/2010/03/playfield.jpg" alt="" width="300" /></a></p>
<p>As you can see, you&#8217;re currently holding the wrist watch, which does nothing except tell you that you need to get laid by midnight. Hopefully users won&#8217;t get too confused as to which button does what. A tries to perform an action with whatever is in front of you at any given moment and B tries to use whatever item you&#8217;re currently holding. Not too confusing with a controller, but just using the keyboard in an emulator is kind of tripping me up.</p>
<p>I got a lot more work done in the bathroom. I got it so you can get the password and retrieve the ring from the sink. Here&#8217;s a little sneak peak:</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/bathroom.jpg"><img class="aligncenter size-full wp-image-191" title="bathroom" src="http://www.khangames.com/wp-content/uploads/2010/03/bathroom.jpg" alt="" width="300" /></a></p>
<p>Nothing special, but I think it looks okay. I don&#8217;t have him taking a poop just yet, but I have the important items functioning, so that was enough to motivate me to move on to the next room. I&#8217;ll have to go back and tweak things. One thing I&#8217;ll definitely need to tweak is the fact that Larry is standing in front of the text box in tight spaces like the bathroom when the text box is triggered. That makes me sad because I REALLY like having him stay on the screen. I don&#8217;t really see any other way around it though, besides moving the placement of the text box, and at this point I don&#8217;t think that&#8217;s something I&#8217;d even consider. I like the way it looks in the center.</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/bathroomboo.jpg"><img class="aligncenter size-full wp-image-193" title="bathroomboo" src="http://www.khangames.com/wp-content/uploads/2010/03/bathroomboo.jpg" alt="" width="300" /></a></p>
<p>So the room I got to work on after the bathroom was the bouncer room, that you can only enter after you&#8217;ve learned the password.  I drew the bouncer and got him into his position and got his text working if you get close enough to him and try going up the stairs.</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/bouncer.jpg"><img class="aligncenter size-full wp-image-194" title="bouncer" src="http://www.khangames.com/wp-content/uploads/2010/03/bouncer.jpg" alt="" width="300" /></a></p>
<p>I also got the TV text in there for when you try to turn it on.  Uh oh, the knob is broken!  How will you turn it on without the knob??</p>
<p>Other than that I got some basic tweaks here and there that I don&#8217;t even remember, but I also got the generic text box working in every room that I have coded into the game so far.  I&#8217;m a little pissed because one of my banks that has nothing but 8 nametable data maps is almost full.  I can&#8217;t believe 8 maps would take up that much space.  So frustrating.  How am I supposed to fit the other 20 maps in there?</p>
<p>Who knows.  Never a dull moment when programming for the NES.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=190</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Inventory Screen (Let&#8217;s try this again)</title>
		<link>http://www.khangames.com/?p=181</link>
		<comments>http://www.khangames.com/?p=181#comments</comments>
		<pubDate>Mon, 15 Mar 2010 05:23:40 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Leisure Suit Larry]]></category>
		<category><![CDATA[nesdev]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=181</guid>
		<description><![CDATA[So last night I stayed up for like an hour and a half crafting this amazingly long and detailed blog post about all that I added to my game yesterday, but it all went poof.  I have no idea what happened.  I am computer literate, I promise!  WordPress&#8217;s backup system didn&#8217;t save me either.  Oh [...]]]></description>
			<content:encoded><![CDATA[<p>So last night I stayed up for like an hour and a half crafting this amazingly long and detailed blog post about all that I added to my game yesterday, but it all went poof.  I have no idea what happened.  I am computer literate, I promise!  WordPress&#8217;s backup system didn&#8217;t save me either.  Oh well, time to start over! <img src='http://www.khangames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, where to begin.  I added an inventory screen.  Let&#8217;s skip the nonsense and take a look at it!</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/inventory.jpg"><img class="aligncenter size-full wp-image-182" title="inventory" src="http://www.khangames.com/wp-content/uploads/2010/03/inventory.jpg" alt="" width="300" /></a></p>
<p>Nothing fancy.  Just two rows of 10 slots (that equals 20!) for all the items that are in the game.  I originally had the box taking up the entire screen, but after I figuerd out there were only 20 times, I just fit the box to that size.  This gives me some room to do some potentially fancy stuff (or just leave black.  We&#8217;ll see!)</p>
<p>I ran into a couple problems that I didn&#8217;t anticipate putting this together.  I think this is mainly because I never think ahead when I want to do something (which probably shows in my end product.  Kind of like the house I live in.  Whoever built that just picked up a hammer one day and started hitting nails).</p>
<p>Problem #1: When you switch from the room you&#8217;re in to the inventory screen and back to the room you were in, it moves Larry back to the loading position of that room.  Doh!  Easily fixed.  Just save the X and Y coordinates of Larry&#8217;s first sprite ($0360).  From there we can get the coordinates of all 8 of Larry&#8217;s Sprite.</p>
<p>Sprite 1, Sprite 2<br />
Sprite 3, Sprite 4<br />
Sprite 5, Sprite 6<br />
Sprite 7, Sprite 8</p>
<p>Sprite 1, 3, 5 and 7 all have the same X coordinate.  Same as Sprite 2, 4, 6, and 8.  And to get the X coordinate for the right column of his body, you just add 8 to the original value (since each sprite is 8 pixels).</p>
<p>To get the Y coordinates, that&#8217;s easy too.  Sprites 1 and 2 have the same, 3 and 4 just need to add 8, 5 and 6 need to add 16, and 7 and 8 need to add 32.   Did I get that right?  I&#8217;m not double checking here.  I&#8217;m in a hurry!</p>
<p>The second problem (actually the first problem, but I didn&#8217;t think of this earlier).  When going from the inventory screen back to the previous screen, it isn&#8217;t quite as easy as you think.  Each screen that you actually see in the game actually has a loading routine that needs to be run first.  ie:</p>
<p>LoadOutsideBar = $21<br />
Bar = $22<br />
LoadInsideBar = $23<br />
Bar = $24<br />
LoadDrunkRoom = $25<br />
DrunkRoom = $26</p>
<p>As you can see, each variable has an assigned value. I had to create a temporary variable to store which screen I am leaving when traveling to the inventory screen. Then when I go back to the original screen, I pull from that temporary variable and then subtract 1 to get the value for that screen&#8217;s respective loading routine. It&#8217;s confusing to explain I guess.</p>
<p>LDA gamestate<br />
CMP #STATEINVENTORY<br />
BNE .Cont<br />
LDA statetemp<br />
STA gamestate<br />
RTS<br />
.Cont:<br />
LDA gamestate<br />
CMP #STATETITLE<br />
BEQ ReadStartDone<br />
LDA gamestate<br />
SEC<br />
SBC #$01<br />
STA statetemp<br />
LDA #STATELOADINVENTORY<br />
STA gamestate<br />
RTS</p>
<p>So that&#8217;s that.</p>
<p>Another problem to add to the first problem I wrote about is that even after you position the sprites in the correct position after switching back to the first screen, you have to tell Larry which direction he was facing before you looked at the inventory screen. But that just took me storing some more temporary variables. Easy I guess.</p>
<p>One more problem that I had to tackle was when you&#8217;re looking at the actual inventory screen, I wanted it to remember which object the cursor was on if you leave the inventory screen and come back. That was an easy fix too, just creating yet another temporary variable.</p>
<p>This blog post was a lot better written and better explained last night. Sorry that you guys are getting a crap post!</p>
<p>Other than getting the inventory screen working, I did a couple more things. I had to move a lot of stuff around from the bank that I alluded to last post. It was getting really full, and eventually caused a bank overflow. It&#8217;s a pain in the ass moving stuff around when you, like me, are using an mmc1 mapper. It&#8217;s so picky about which PRG it&#8217;s supposed to be looking at. Takes 15 minutes just to move one subroutine. But I made a little more space to afford me a couple more days of painless coding.</p>
<p>Also, I did a pretty good job of doing away with a lot of the flickering that occurs between screens. Bunnyboy has always told me that you&#8217;re supposed to wait for vblank, then enable the NMI and enable sprite/backgrounds, but that always flickers for me, no matter what I do.</p>
<p>Last night I was experimenting and moved the vblankwait underneath the NMI enable but before the screen turns on. That really helped a lot of the problem (it actually looks perfect in FCEU) but it doesn&#8217;t look perfect in Nestopia, so I&#8217;m not sure what I&#8217;m going to do. Does anyone have a suggestion?</p>
<p>This is what I have toward the end of every loading state:</p>
<p>;; load all the nametables, sprites, attributes, palettes here and then do this stuff<br />
LDA #STATEBAR ;;change to screen you just loaded stuff for<br />
STA gamestate<br />
LDA #%10001000 ; enable NMI, sprites from Pattern Table 0, background from Pattern Table 1<br />
STA $2000<br />
JSR vblankwait1<br />
LDA #%00011110 ; enable sprites, enable background, no clipping on left side<br />
STA $2001<br />
JMP GameEngineDone</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/drunkshoes.jpg"><img title="drunkshoes" src="http://www.khangames.com/wp-content/uploads/2010/03/drunkshoes.jpg" alt="" width="300" /></a></p>
<p>I think that&#8217;s everything. I got a lot accomplished and feel pretty good about myself!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=181</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Minor Update: Combining CHR files</title>
		<link>http://www.khangames.com/?p=170</link>
		<comments>http://www.khangames.com/?p=170#comments</comments>
		<pubDate>Sun, 14 Mar 2010 15:56:08 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Leisure Suit Larry]]></category>
		<category><![CDATA[NES Dev]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=170</guid>
		<description><![CDATA[The CHR files that I was using for the drunk room and the bathroom were both very small and I was only using about 25% of each one.  I decided some time ago that I needed to combine these CHR files into one, but I was not looking forward to the tedious task of manually [...]]]></description>
			<content:encoded><![CDATA[<p>The CHR files that I was using for the drunk room and the bathroom were both very small and I was only using about 25% of each one.  I decided some time ago that I needed to combine these CHR files into one, but I was not looking forward to the tedious task of manually changing all the values for the bathroom nametable to reflect the new combined CHR.</p>
<p>I finally took the plunge to do it this morning while Tracy was sleeping, while my brain wasn&#8217;t quite awake yet.  I was too tired to realize the monotony and finally got it done.  It actually turned out to be pretty painless.  It took maybe 20 minutes overall, with some minor tweaks I had to make afterwards (updating the tile numbers for the bathroom sprites and also moving some sprites off the screen in both rooms to accommodate for the different CHR information.  But now I have an extra CHR file.  Woohoo!</p>
<p>I will apparently have 6 or so hours to code today, so I am REALLY looking forward to that.  I should be able to make some crazy progress today.  Stay tuned!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=170</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving on</title>
		<link>http://www.khangames.com/?p=162</link>
		<comments>http://www.khangames.com/?p=162#comments</comments>
		<pubDate>Sat, 13 Mar 2010 15:28:36 +0000</pubDate>
		<dc:creator>khan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Leisure Suit Larry]]></category>
		<category><![CDATA[NES Dev]]></category>

		<guid isPermaLink="false">http://www.khangames.com/?p=162</guid>
		<description><![CDATA[Welcome to the first blog post written from my phone! Screenshots will be added after I&#8217;m out of work. (blah) So I pretty much finished the inside of the bar yesterday. My girlfriend happened to find a bug in my drunk routine which was kind of funny because she wasn&#8217;t even looking for bugs. I [...]]]></description>
			<content:encoded><![CDATA[<p>Welcome to the first blog post written from my phone! Screenshots will be added after I&#8217;m out of work. (blah)</p>
<p>So I pretty much finished the inside of the bar yesterday. My girlfriend happened to find a bug in my drunk routine which was kind of funny because she wasn&#8217;t even looking for bugs. I was just showing off my progress and then she took the controller for 15 seconds and found a bug. Kind of humbling after thinking I was this badass programmer who made all this progress.</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/toodrunk.jpg"><img class="aligncenter size-full wp-image-164" title="toodrunk" src="http://www.khangames.com/wp-content/uploads/2010/03/toodrunk.jpg" alt="" width="300" /></a></p>
<p>Despite the bug, I moved on into coding the dialogue boxes in the drunkard room. Got the normal &#8220;what are you trying to do&#8221; routine working, and also got it to where after you pick up the rose it tells you that you picked it up (just in case you didn&#8217;t know it was a rose to begin with) and moves it off the screen. I&#8217;ve also been creating flags in my code this whole time for things like when you get the whiskey, when you learn the password, and when you pick up the rose, as sort of planning ahead to when I implement the inventory screen (which isn&#8217;t far off at this point.)</p>
<p><a href="http://www.khangames.com/wp-content/uploads/2010/03/drunkshoes.jpg"><img class="aligncenter size-full wp-image-165" title="drunkshoes" src="http://www.khangames.com/wp-content/uploads/2010/03/drunkshoes.jpg" alt="" width="300" /></a></p>
<p>I still need to code in the conversation with the drunk dude and then program in the flag for when you receive the item from him, but at this point I have the whole thing down pat. It&#8217;s a walk in the park!</p>
<p>I did notice a couple days ago that my bank 1 is almost full so I&#8217;m going to have to move some subroutines to another bank. Annoying. <img src='http://www.khangames.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>After the drunk room it&#8217;s on to the bathroom! Woohoo for taking a crap!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khangames.com/?feed=rss2&amp;p=162</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
