<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8884003367331677306</id><updated>2011-08-02T17:34:56.764-07:00</updated><title type='text'>Playing with Pygame</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>22</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-8606442250210742848</id><published>2010-01-13T14:56:00.000-08:00</published><updated>2010-01-13T15:00:26.104-08:00</updated><title type='text'>Time-Based Animation</title><content type='html'>The game now uses time-based animation, making it independent of the speed of the processor. Frame-based animation is highly dependent on processor speed so the game would not have been playable on very fast or very slow computers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-8606442250210742848?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/8606442250210742848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/time-based-animation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/8606442250210742848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/8606442250210742848'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/time-based-animation.html' title='Time-Based Animation'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-3859706108894587137</id><published>2010-01-12T16:22:00.001-08:00</published><updated>2010-01-12T16:24:23.456-08:00</updated><title type='text'>Invincibility Mode</title><content type='html'>&lt;div&gt;Finished implementing the invincibility mode. The ghosts turn to the same pale color and pacman is able to eat them for 50 points. Eaten ghosts will reemerge at their spawning position.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YsqncWUjO9c/S00SSM772KI/AAAAAAAAAD0/JfUGR7jzALc/s1600-h/Picture+2.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 294px;" src="http://3.bp.blogspot.com/_YsqncWUjO9c/S00SSM772KI/AAAAAAAAAD0/JfUGR7jzALc/s400/Picture+2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5426013229970872482" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-3859706108894587137?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/3859706108894587137/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/invincibility-mode.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/3859706108894587137'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/3859706108894587137'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/invincibility-mode.html' title='Invincibility Mode'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_YsqncWUjO9c/S00SSM772KI/AAAAAAAAAD0/JfUGR7jzALc/s72-c/Picture+2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-7239884322836329474</id><published>2010-01-11T19:28:00.001-08:00</published><updated>2010-01-11T19:30:53.025-08:00</updated><title type='text'>Intelligent Ghosts</title><content type='html'>Finished implementing ghost algorithm. Ghosts proceed in the direction that brings them closer to pacman in an absolute sense, with a few random decisions thrown in. Higher levels have a lower degree of randomness. Decisions are made at intersections or dead-ends.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-7239884322836329474?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/7239884322836329474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/intelligent-ghosts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/7239884322836329474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/7239884322836329474'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/intelligent-ghosts.html' title='Intelligent Ghosts'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-2948688281844455971</id><published>2010-01-10T19:49:00.000-08:00</published><updated>2010-01-10T19:52:25.927-08:00</updated><title type='text'>Fruit</title><content type='html'>&lt;div&gt;Fruits have been added - they pop up at random positions at random times during the game and last for 5 seconds. Eating them gives the player 10 points. Also added sound effects for them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YsqncWUjO9c/S0qf-0BDd2I/AAAAAAAAADs/1YqPVG4jw5k/s1600-h/Picture+1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 383px; height: 400px;" src="http://3.bp.blogspot.com/_YsqncWUjO9c/S0qf-0BDd2I/AAAAAAAAADs/1YqPVG4jw5k/s400/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5425324602584954722" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-2948688281844455971?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/2948688281844455971/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/fruit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2948688281844455971'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2948688281844455971'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/fruit.html' title='Fruit'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_YsqncWUjO9c/S0qf-0BDd2I/AAAAAAAAADs/1YqPVG4jw5k/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-7075569290648617257</id><published>2010-01-10T18:50:00.001-08:00</published><updated>2010-01-10T18:53:38.074-08:00</updated><title type='text'>Score</title><content type='html'>&lt;div&gt;The game now keeps track of the score. It seems the Pygame requires conversion of text to an image, which can then be 'pasted' on to the screen.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YsqncWUjO9c/S0qSBMFu9kI/AAAAAAAAADk/23WWx1xHYUY/s1600-h/Picture+1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 315px; height: 400px;" src="http://3.bp.blogspot.com/_YsqncWUjO9c/S0qSBMFu9kI/AAAAAAAAADk/23WWx1xHYUY/s400/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5425309250243982914" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-7075569290648617257?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/7075569290648617257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/score.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/7075569290648617257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/7075569290648617257'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/score.html' title='Score'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_YsqncWUjO9c/S0qSBMFu9kI/AAAAAAAAADk/23WWx1xHYUY/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-7204569590894231324</id><published>2010-01-10T14:42:00.000-08:00</published><updated>2010-01-10T14:56:13.218-08:00</updated><title type='text'>Enhanced Animation</title><content type='html'>&lt;div&gt;Pacman now faces the direction of motion and 'chews' as he goes along:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Down:&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YsqncWUjO9c/S0pZbiMDxAI/AAAAAAAAADU/vjjxXdoQGDQ/s1600-h/Picture+5.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 317px; height: 400px;" src="http://2.bp.blogspot.com/_YsqncWUjO9c/S0pZbiMDxAI/AAAAAAAAADU/vjjxXdoQGDQ/s400/Picture+5.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5425247030689907714" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;Up:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YsqncWUjO9c/S0pZbnzaIZI/AAAAAAAAADM/xD0F5rA6jLk/s1600-h/Picture+4.png"&gt;&lt;/a&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YsqncWUjO9c/S0pZbnzaIZI/AAAAAAAAADM/xD0F5rA6jLk/s1600-h/Picture+4.png" style="text-decoration: none;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 322px; height: 400px;" src="http://1.bp.blogspot.com/_YsqncWUjO9c/S0pZbnzaIZI/AAAAAAAAADM/xD0F5rA6jLk/s400/Picture+4.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5425247032197128594" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Left:&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YsqncWUjO9c/S0pZbF5hTcI/AAAAAAAAADE/1zVewRhAeW8/s1600-h/Picture+2.png"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YsqncWUjO9c/S0pZbF5hTcI/AAAAAAAAADE/1zVewRhAeW8/s1600-h/Picture+2.png" style="text-decoration: none;"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 317px; height: 400px;" src="http://2.bp.blogspot.com/_YsqncWUjO9c/S0pZbF5hTcI/AAAAAAAAADE/1zVewRhAeW8/s400/Picture+2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5425247023095958978" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Right:&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YsqncWUjO9c/S0pZbGkW93I/AAAAAAAAAC8/uUZlI9vj2dU/s1600-h/Picture+1.png"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_YsqncWUjO9c/S0pa8lXkheI/AAAAAAAAADc/-nF8WLaqjUo/s1600-h/Picture+3+17-53-20.png"&gt;&lt;img src="http://3.bp.blogspot.com/_YsqncWUjO9c/S0pa8lXkheI/AAAAAAAAADc/-nF8WLaqjUo/s400/Picture+3+17-53-20.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5425248697990809058" style="cursor: pointer; width: 315px; height: 400px; " /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-7204569590894231324?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/7204569590894231324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/enhanced-animation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/7204569590894231324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/7204569590894231324'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/enhanced-animation.html' title='Enhanced Animation'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_YsqncWUjO9c/S0pZbiMDxAI/AAAAAAAAADU/vjjxXdoQGDQ/s72-c/Picture+5.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-492494401672076244</id><published>2010-01-10T13:58:00.000-08:00</published><updated>2010-01-10T13:59:50.734-08:00</updated><title type='text'>Sound</title><content type='html'>Added sounds! At the moment, there are two distinct sounds that play alternately when pellets are eaten.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-492494401672076244?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/492494401672076244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/sound.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/492494401672076244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/492494401672076244'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/sound.html' title='Sound'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-8609576046453485516</id><published>2010-01-10T13:56:00.000-08:00</published><updated>2010-01-10T13:58:29.290-08:00</updated><title type='text'>Lives</title><content type='html'>Game is now restricted to three lives per level. The game ends thereafter. Also working on implementing +1 health eatables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-8609576046453485516?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/8609576046453485516/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/lives.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/8609576046453485516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/8609576046453485516'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2010/01/lives.html' title='Lives'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-2250276947733641047</id><published>2009-11-15T11:59:00.000-08:00</published><updated>2009-11-15T12:01:48.197-08:00</updated><title type='text'>Levels</title><content type='html'>&lt;div&gt;13 levels have been implemented and the game moves to the next level once all pellets have been eaten.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YsqncWUjO9c/SwBeF3nfkYI/AAAAAAAAACw/nr5pjxdYluY/s1600-h/Picture+2.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 319px; height: 400px;" src="http://1.bp.blogspot.com/_YsqncWUjO9c/SwBeF3nfkYI/AAAAAAAAACw/nr5pjxdYluY/s400/Picture+2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5404423007766548866" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-2250276947733641047?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/2250276947733641047/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/levels.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2250276947733641047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2250276947733641047'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/levels.html' title='Levels'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YsqncWUjO9c/SwBeF3nfkYI/AAAAAAAAACw/nr5pjxdYluY/s72-c/Picture+2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-5061754099456590815</id><published>2009-11-15T09:03:00.000-08:00</published><updated>2009-11-15T09:08:05.427-08:00</updated><title type='text'>Pellets</title><content type='html'>&lt;div&gt;Added pellets on the map. Pacman 'eats' them as he passes over them. Pygame rects have proved to be very useful so far.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YsqncWUjO9c/SwA1RU24GQI/AAAAAAAAACo/rQ-c1fiCkoU/s1600-h/Picture+1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 321px; height: 400px;" src="http://4.bp.blogspot.com/_YsqncWUjO9c/SwA1RU24GQI/AAAAAAAAACo/rQ-c1fiCkoU/s400/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5404378124617521410" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-5061754099456590815?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/5061754099456590815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/pellets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5061754099456590815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5061754099456590815'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/pellets.html' title='Pellets'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_YsqncWUjO9c/SwA1RU24GQI/AAAAAAAAACo/rQ-c1fiCkoU/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-5878035019580395684</id><published>2009-11-14T18:28:00.001-08:00</published><updated>2009-11-14T18:31:41.708-08:00</updated><title type='text'>Refining Walls</title><content type='html'>&lt;div&gt;Using a variety of tiles to represent walls apparently gives a much better appearance:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YsqncWUjO9c/Sv9nlhSMdII/AAAAAAAAACY/pPOw45GbDXQ/s1600-h/Picture+3.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 312px; height: 400px;" src="http://4.bp.blogspot.com/_YsqncWUjO9c/Sv9nlhSMdII/AAAAAAAAACY/pPOw45GbDXQ/s400/Picture+3.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5404151972155389058" /&gt;&lt;/a&gt; &lt;div&gt; vs&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YsqncWUjO9c/Sv9nqSQVq0I/AAAAAAAAACg/KmlbpaAGMLQ/s1600-h/Picture+2.png"&gt;&lt;img src="http://4.bp.blogspot.com/_YsqncWUjO9c/Sv9nqSQVq0I/AAAAAAAAACg/KmlbpaAGMLQ/s400/Picture+2.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5404152054020418370" style="cursor: pointer; width: 318px; height: 400px; " /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-5878035019580395684?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/5878035019580395684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/refining-walls.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5878035019580395684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5878035019580395684'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/refining-walls.html' title='Refining Walls'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_YsqncWUjO9c/Sv9nlhSMdII/AAAAAAAAACY/pPOw45GbDXQ/s72-c/Picture+3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-5068689987657357553</id><published>2009-11-14T16:59:00.000-08:00</published><updated>2009-11-14T17:04:02.913-08:00</updated><title type='text'>Improving Maneuverability</title><content type='html'>I realized that making pacman change direction into a new tunnel was very hard since the key had to be pressed at the exact pixel to avoid collision. This would have led to frustrating gameplay. The solution was to keep track of the arrow key that was pressed last - the game knows where the player would like to go and checks at each step if the move can be made. Making turns is now much easier.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-5068689987657357553?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/5068689987657357553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/improving-maneuverability.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5068689987657357553'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5068689987657357553'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/improving-maneuverability.html' title='Improving Maneuverability'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-5603434750962233010</id><published>2009-11-14T16:42:00.000-08:00</published><updated>2009-11-14T16:46:41.025-08:00</updated><title type='text'>Resize Screen/Apply Background</title><content type='html'>&lt;div&gt;Alright, I have resized the screen and removed the world map as background and now it actually looks like pacman:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_YsqncWUjO9c/Sv9POm322bI/AAAAAAAAACQ/uYcUA7UgsEE/s1600-h/Picture+1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 390px; height: 349px;" src="http://2.bp.blogspot.com/_YsqncWUjO9c/Sv9POm322bI/AAAAAAAAACQ/uYcUA7UgsEE/s400/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5404125190239476146" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-5603434750962233010?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/5603434750962233010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/resize-screenapply-background.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5603434750962233010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5603434750962233010'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/resize-screenapply-background.html' title='Resize Screen/Apply Background'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_YsqncWUjO9c/Sv9POm322bI/AAAAAAAAACQ/uYcUA7UgsEE/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-8345070247292617927</id><published>2009-11-14T13:25:00.000-08:00</published><updated>2009-11-14T13:33:49.842-08:00</updated><title type='text'>Legal Ghosts</title><content type='html'>&lt;div&gt;The ghosts now check for collisions and make a random decision for the new direction. Pacman follows keyboard input but the icon does not represent the correct direction yet. However, everything stays within the map and makes legal moves.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YsqncWUjO9c/Sv8iD0ncJ7I/AAAAAAAAACI/YIUhVsvymeM/s1600-h/Picture+3.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 270px;" src="http://1.bp.blogspot.com/_YsqncWUjO9c/Sv8iD0ncJ7I/AAAAAAAAACI/YIUhVsvymeM/s400/Picture+3.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5404075526926903218" /&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-8345070247292617927?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/8345070247292617927/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/legal-ghosts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/8345070247292617927'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/8345070247292617927'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/legal-ghosts.html' title='Legal Ghosts'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YsqncWUjO9c/Sv8iD0ncJ7I/AAAAAAAAACI/YIUhVsvymeM/s72-c/Picture+3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-3029982350461691433</id><published>2009-11-14T13:23:00.000-08:00</published><updated>2009-11-14T13:25:41.125-08:00</updated><title type='text'>Continuous Motion</title><content type='html'>After adding the ghosts, I worked on implementing continuous motion - not step by step. The ghosts and pacman all move smoothly now, but only pacman checks for collisions - the ghosts can still go through walls and through each other.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-3029982350461691433?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/3029982350461691433/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/continuous-motion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/3029982350461691433'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/3029982350461691433'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/continuous-motion.html' title='Continuous Motion'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-1416128622009514236</id><published>2009-11-14T13:20:00.000-08:00</published><updated>2009-11-14T13:23:23.973-08:00</updated><title type='text'>Added Ghosts</title><content type='html'>Added ghosts today. At the moment they do not move - I am yet to implement continuous motion.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-1416128622009514236?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/1416128622009514236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/added-ghosts.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/1416128622009514236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/1416128622009514236'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/11/added-ghosts.html' title='Added Ghosts'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-5577385986770536018</id><published>2009-10-25T17:50:00.000-07:00</published><updated>2009-10-25T17:53:49.659-07:00</updated><title type='text'>Moving Within Maps</title><content type='html'>&lt;div&gt;Ok enough with the monkey, I'll now use actual Pacman icons. I figured out how to move a 'ghost' within the map such that it is confined within the walls. For now, I'm still using turn by turn movement - as in pressing left once moves the ghost left by one step.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YsqncWUjO9c/SuTy_5XHY_I/AAAAAAAAAB4/Cd7z-dHQzkE/s1600-h/Picture+4.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 268px;" src="http://1.bp.blogspot.com/_YsqncWUjO9c/SuTy_5XHY_I/AAAAAAAAAB4/Cd7z-dHQzkE/s400/Picture+4.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5396705433040151538" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-5577385986770536018?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/5577385986770536018/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/moving-within-maps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5577385986770536018'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/5577385986770536018'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/moving-within-maps.html' title='Moving Within Maps'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YsqncWUjO9c/SuTy_5XHY_I/AAAAAAAAAB4/Cd7z-dHQzkE/s72-c/Picture+4.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-2473554907334380871</id><published>2009-10-25T17:46:00.001-07:00</published><updated>2009-11-14T17:16:31.533-08:00</updated><title type='text'>Drawing Maps</title><content type='html'>&lt;div&gt;I learnt about how to read from a text file and paste 'tiles' at the correct positions on the screen so that I can represent maps. For now, I am not going to worry about legal movements or collisions - the walls only appear on screen; the monkey can still go over them.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_YsqncWUjO9c/SuTyElwLjzI/AAAAAAAAABw/MOhUqQVlHgU/s1600-h/Picture+3.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 272px;" src="http://4.bp.blogspot.com/_YsqncWUjO9c/SuTyElwLjzI/AAAAAAAAABw/MOhUqQVlHgU/s400/Picture+3.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5396704414164291378" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-2473554907334380871?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/2473554907334380871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/representing-levels.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2473554907334380871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2473554907334380871'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/representing-levels.html' title='Drawing Maps'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_YsqncWUjO9c/SuTyElwLjzI/AAAAAAAAABw/MOhUqQVlHgU/s72-c/Picture+3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-4909228856634309705</id><published>2009-10-25T17:37:00.001-07:00</published><updated>2009-10-25T17:45:59.219-07:00</updated><title type='text'>Basic Pygame</title><content type='html'>I've been reading Python and Pygame code over the last few days and now feel comfortable experimenting.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;I made a simple game where you can move a monkey across the screen by using the arrow keys on your keyboard. I used the world map as a background and added wrap-around functionality. Very basic stuff.&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_YsqncWUjO9c/SuTxKCcOxnI/AAAAAAAAABo/-3qT8kHeDhM/s1600-h/Picture+1.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 267px;" src="http://1.bp.blogspot.com/_YsqncWUjO9c/SuTxKCcOxnI/AAAAAAAAABo/-3qT8kHeDhM/s400/Picture+1.png" border="0" alt="" id="BLOGGER_PHOTO_ID_5396703408252962418" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-4909228856634309705?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/4909228856634309705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/basic-pygame.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/4909228856634309705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/4909228856634309705'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/basic-pygame.html' title='Basic Pygame'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_YsqncWUjO9c/SuTxKCcOxnI/AAAAAAAAABo/-3qT8kHeDhM/s72-c/Picture+1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-2891361027417729573</id><published>2009-10-10T21:28:00.000-07:00</published><updated>2009-10-10T21:33:26.611-07:00</updated><title type='text'>Representing Maps</title><content type='html'>I'm considering how best to represent and store maps. At the moment, a simple text file with distinct rows and columns seems to be the obvious choice. Each 'element' in the text file will be an integer that represents a 'tile' in the game. Every tile must either be 'wall' or 'tunnel', where the latter can hold pacman, ghost, fruit etc.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To be updated.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-2891361027417729573?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/2891361027417729573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/representing-maps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2891361027417729573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/2891361027417729573'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/representing-maps.html' title='Representing Maps'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-4285603537127724848</id><published>2009-10-10T21:22:00.000-07:00</published><updated>2009-10-10T21:27:26.692-07:00</updated><title type='text'>Ghost Algorithm</title><content type='html'>The original pacman seems to have had a fairly simple algorithm for ghost movements - at each intersection, they simply choose the direction that takes them closer to pacman in an absolute sense. Some modern games seem to use more sophisticated algorithms like the A* etc.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To begin with, I think I'm going to stick to tradition and use the simple logic, mixed with randomness. Lower difficulty levels will have a higher proportion of random decisions. I may work on a more sophisticated algorithm later on.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-4285603537127724848?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/4285603537127724848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/ghost-algorithm.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/4285603537127724848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/4285603537127724848'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/ghost-algorithm.html' title='Ghost Algorithm'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8884003367331677306.post-4215647961435434779</id><published>2009-10-04T07:13:00.000-07:00</published><updated>2010-01-18T20:52:27.714-08:00</updated><title type='text'>Installing Python and Pygame</title><content type='html'>&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;It seems there isn't much support for Snow Leopard yet so installing the packages hasn't been easy. I'm currently trying to do it with fink, lets see how it goes.&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;Update: Nope, nothing worked on OSX 10.6. I had to switch down to Leopard and install the following:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span"   style="  ;font-family:Helvetica;font-size:medium;"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;Python 2.6.3 for Mac from &lt;/span&gt;&lt;/span&gt;&lt;a href="http://python.org/download/"&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;http://python.org/download/&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;br /&gt;Pygame-1.9.1 from &lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span"  style="font-family:georgia;"&gt;&lt;span class="Apple-style-span"  style="font-size:small;"&gt;&lt;a href="http://www.pygame.org/download.shtml"&gt;http://www.pygame.org/download.shtml&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Update: I just upgraded to Snow Leopard once again (the installer moved everything automatically) and both Python and Pygame still work. I guess compatibility is no longer an issue.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8884003367331677306-4215647961435434779?l=mycode-sohel.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mycode-sohel.blogspot.com/feeds/4215647961435434779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/installing-python-and-pygame.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/4215647961435434779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8884003367331677306/posts/default/4215647961435434779'/><link rel='alternate' type='text/html' href='http://mycode-sohel.blogspot.com/2009/10/installing-python-and-pygame.html' title='Installing Python and Pygame'/><author><name>Sohel</name><uri>http://www.blogger.com/profile/02435363493487966468</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://2.bp.blogspot.com/_YsqncWUjO9c/STw9K_pEx6I/AAAAAAAAAAM/_Y7gQ8nYlHc/S220/n596714622_9012.jpg'/></author><thr:total>0</thr:total></entry></feed>
