<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
		<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel</link>
		<description>Posts in the discussion thread &quot;PiscesMike&#039;s official competition entries: Pacman and bejeweled clones&quot; - My entries for this round of the competition.</description>
				<copyright></copyright>
		<lastBuildDate>Sun, 14 Jun 2026 00:25:43 +0000</lastBuildDate>
		
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2077107</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2077107</link>
				<description></description>
				<pubDate>Mon, 28 Jul 2014 16:17:51 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thought I'd throw up a little update on Mr. Pac McClone here since I'm still plodding along on this project, albeit slowly.</p> <p>As you know, this particular game has been kicking my ass. It seemed like it was going to be rather simple, with me spending most of the time on AI/enhanced graphics, but just getting his movement down has proved a huge challenge. (*Note: when I say enhanced graphics, I mean only slightly better than the original - I'm no artist!). At any rate, a major problem for me has been keeping little Mr. Pac aligned on even boundaries so he stays within legal moving space and doesn't overlap onto the blue border pieces. I tried everything I could think of, tripled checked my math, and no matter what, as he moved, he began to drift a little bit. It wasn't bad at first, a pixel here, and a pixel there. The problem reared its ugly head in a major fashion though as you continued to move around because the drift was cumulative. In other words, the more you moved around, the further he drifted, and the more into the border pieces he got. It seemed really strange to me because I couldn't find a problem in the math, or the collision detection, which does work.</p> <p>Then, last night, after working on the project again for a little bit, and having laid down to go to sleep, while reading a book, the answer hit me all at once. I've been looking for the problem in the wrong place all along. The problem isn't in how he moves, or the math (at least I think, we'll find out for sure a little later as I do more work), the problem is created because of <em>when</em> he is allowed to move.</p> <p>One of the big play factors for the original game is that Mr. Pac McClone can turn <em>before</em> he actually hits the corner - the ghosts on the other hand, can not, they must travel all the way to the center of 'valid' space before they are allowed to make their cornering move. For a detailed explanation of this behavior, see: <a href="http://home.comcast.net/~jpittman2/pacman/pacmandossier.html">http://home.comcast.net/~jpittman2/pacman/pacmandossier.html</a></p> <p>I've relied heavily on that particular game outline to keep things as close to the original as possible, and as you can see, Mr. Pac is allowed to make his cornering move anywhere within a 4 pixel range as he approaches, enters, and passes through the grid boundaries. My code mimics this behavior almost exactly, but I failed to take into account that he may not be grid aligned when he makes that cornering move. So if he corners 1 pixel early, it throws off the entire coordinate system and creates the cumulative effect so prominent in my versions so far.</p> <p>Long story summarized.. my entire project has been off because I was looking in the wrong place for the problem. Anywho's I'm going to try and get some more work done today, and maybe I'll have an actual <em>correctly</em> working version up here soon!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2049998</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2049998</link>
				<description></description>
				<pubDate>Wed, 11 Jun 2014 17:43:56 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Thanks Marcus! The C# is reversed from a menu theme I picked out actually. Pac McClone is shown in his true colors. 8-).</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2049992</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2049992</link>
				<description></description>
				<pubDate>Wed, 11 Jun 2014 17:28:10 +0000</pubDate>
				<wikidot:authorName>Marcus42</wikidot:authorName>				<wikidot:authorUserId>1823111</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>That looks really good, PiscesMike, although I do notice that your C# window appears to have reversed color. Does Pac McClone have reversed color too, or is that what it will really look like?</p> <p>And no, I haven't been getting much done recently. I'm trying to get some basic pathfinding or general AI intelligence working in my game, and when I stop procrastinating and actually try to program it, it chews me up and spits me out, haha!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2049591</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2049591</link>
				<description></description>
				<pubDate>Wed, 11 Jun 2014 06:05:09 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, my whole weekend was pretty much a bust. I got sick from something (still don't know what) and just could not find it in myself to be able to focus no matter how much I tried&#8230;. and I did try. Several times actually, but every time things were just out of whack enough that I couldn't put the pieces together in my foggy little cranium. Thankfully, I'm actually starting to feel better today so I hope to get some work done this coming week.</p> <p>At any rate, before the sickness hit I was able to get the new pac board up and rendered, and even some basic collision detection, so here's a screen shot from the latest version. I was able to use the slightly higher resolution graphics that I liked, so it doesn't look too horrible.</p> <img src="http://i300.photobucket.com/albums/nn3/piscesmike/NewPac_zps2c845f12.png" alt="NewPac_zps2c845f12.png" class="image" /> <p>I'm not sure I'll be able to do the Bejeweled clone as I had planned to, but as RB said, it's better to have one completed project than two half working pieces. If my cognitive functions continue to work over the next couple days, I might be able to catch up and pull out a quickie Bejeweled in the last 7 days but for right now I'm going to focus on Pac.</p> <p>It was real quite around the forum and chat this week/weekend, so I'm hoping you all made some decent progress on your respective projects. Anyways, hope to talk to you all soon, and have a great day!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2044783</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2044783</link>
				<description></description>
				<pubDate>Tue, 03 Jun 2014 14:28:33 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Well, continued playing around with the pixel stuff. I wanted to be able to take whatever random image you might be using as a background and create a 'collision map' out of it that consists of an array you can use for collision detection. Still in the early phases, but I was able to strip out the position of any non transparent pixels, save this to a file, load this file back in, and generate the above image. It doesn't really look very impressive, but the cool part is you have this as an array already in your game. Using this technique, you can reasonably draw your background as you normally would, run the conversion process, save your output file, and load it right in for collision without having to manually enter stuff into an array like I've been doing. Anyways, food for thought!</p> <img src="http://i300.photobucket.com/albums/nn3/piscesmike/levelpixels_zps3b1518f1.png" alt="levelpixels_zps3b1518f1.png" class="image" />
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2044671</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2044671</link>
				<description></description>
				<pubDate>Tue, 03 Jun 2014 11:46:37 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Hello again everyone!</p> <p>After running into a couple little issues with the current collision detection, I was playing around and decided to try some pixel testing. Using pixel collision detection, you can get very fine results between objects, at the cost of speed. A lot of things can be done without it, but I wanted to take a shot any ways and see what could be done.</p> <p>So, the first step in pixel CD is to determine the color of a pixel on the screen at a given coordinate. The idea is to check the screen in the direction of travel, and if you detect anything other than the transparent color (in Pacmans case, Black) then you know there's a collision, and you take the appropriate action.</p> <p>This isn't a full implementation actually, just the first step, and the location that is examined is under the mouse cursor. In other words, this version checks the screen to see what color the pixel under the mouse cursor is. It's very simple, but like I said, it's the first step and implementing the rest wouldn't be too hard. If I'll actually do that, or just stick with the arrays I have now is yet to be seen, but I thought I'd throw up this version so you could play around and see how it detects the 'walls'. Note, that it only checks the texture used as the 'background' so it doesn't see the pellets or Mr. McClone. Anywho's, heres a new version which has a couple other added features - a score, and the board will actually reset if you clear all the pellets.</p> <p>As always, with Googles funky drive stuff, to download the entire zip file in one shot, you can select 'File' at the top of the screen, then 'Download'. Enjoy, and let me know what you think!</p> <p><a href="https://drive.google.com/file/d/0B5moEgyck5X5SjNWUmNnTG83Z3M/edit?usp=sharing">https://drive.google.com/file/d/0B5moEgyck5X5SjNWUmNnTG83Z3M/edit?usp=sharing</a></p> <p>-PiscesMike</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2044430</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2044430</link>
				<description></description>
				<pubDate>Tue, 03 Jun 2014 03:12:09 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Greetings all!</p> <p>Finally got to a point where I think it's time for a playable demo&#8230; mostly so you all can let me know if you run into any problems with the collision detection.</p> <p>First off, here's the link:</p> <p><a href="https://drive.google.com/file/d/0B5moEgyck5X5VmdCdW9jbHVDeTA/edit?usp=sharing">https://drive.google.com/file/d/0B5moEgyck5X5VmdCdW9jbHVDeTA/edit?usp=sharing</a></p> <p>There are a couple bugs/issues that I am aware of. Like, Mr. Pac doesn't change the direction he is facing when he moves up and down, or to the right. I'll get that added in at some point. The 'teleporters' on the edge of the screen don't work yet either. No ghosts, and no power ups. It's basic board, pellets, and pac at the moment. Still, there are some issues with him catching on corners, and, at least on my machine, he is waaaaay too fast.</p> <p>Anywho's let me know if you see any major errors on the collision detection and I'll be working on the rest!</p> <p>PS Google drive is a little funky with zip downloads, it always defaults to showing the contents of the zip file. To download the entire zip in one shot, select 'File' at the top, then 'Download'</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2042101</guid>
				<title>Re: PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2042101</link>
				<description></description>
				<pubDate>Fri, 30 May 2014 11:05:25 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Wow! There's been a heck of a lot of progress on many fronts in essentially what's been our first week!</p> <p>There's still over 22 days left on the official clock and I feel like I'm already behind. That being said, I at least wanted to get up a video of what I've accomplished during the hectic week I've had.</p> <p>The first of the games I'm tackling is a Pacman clone, and in doing so, I decided I wanted to keep it as original as possible. I wasn't able to find this font for XNA use, and I was too lazy to make my own, so I had to pull off some 'ugly' code to get this working.</p> <p><iframe width="420" height="315" src="http://rbwhitaker.wikidot.com//www.youtube.com/embed/f8q1LvxWB4A" frameborder="0" allowfullscreen="allowfullscreen"></iframe></p> <p>Good job everyone, and happy coding!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://rbwhitaker.wikidot.com/forum/t-864139#post-2037310</guid>
				<title>PiscesMike&#039;s official competition entries: Pacman and bejeweled clones</title>
				<link>http://rbwhitaker.wikidot.com/forum/t-864139/piscesmike-s-official-competition-entries:pacman-and-bejewel#post-2037310</link>
				<description></description>
				<pubDate>Fri, 23 May 2014 02:41:44 +0000</pubDate>
				<wikidot:authorName>PiscesMike</wikidot:authorName>				<wikidot:authorUserId>1721619</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>Greetings all!</p> <p>Just thought I'd pop up my competition entry ideas. I had been putting off the final decision until today, and after talking with Swat and Marcus for a little bit decided I'm veering away from the tropes and suggested theme of Thrust. (Kind of similar to Asteroids, and that was such a pain I'm just not ready to face that task again! &#8212; even though it would be much much eaiser now, at least I think).</p> <p>Anyways, I'm going to do a 'split' competition where I spent 2 weeks each on 2 different games. The first will be a classic Pacman ripoff, with the twist that you can play as one of the ghosts. The second is going to be a basic Bejeweled rip off.</p> <p>I think I can pull those off in the time permitted, and if they come out cool they might even fit nicely on a windows phone screen, which I hadn't been paying attention to before. Be interesting to see how it turns out.</p> <p>Ok, well those are my submissions, and since the clock has started ticking, I should get to work! Have a great day/evening, and happy coding!</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>