12 ms·
A game when games were new
- lalos 14y agoAlso interesting and related to pacman: patterns to get a rather easy victory http://www.math.montana.edu/~hyde/pacman/ http://www.math.montana.edu/~hyde/pacman/ and also the hidden spot in pacman http://www.youtube.com/watch?v=aFGoiQAzG-I http://www.youtube.com/watch?v=aFGoiQAzG-I
- codeulike 14y agoThe ghost AI from pacman is a masterpiece in itself
- lucaspiller 14y agoI had never really been a fan of PacMan before, but for last month's 1GAM [0] I decided to build a clone. Once I started reading into it, I was pretty fascinated by the amount of depth the game has. As said in the article, pretty amazing for something running on a 3 MHz Z80. [0] http://www.onegameamonth.com/ http://www.onegameamonth.com/
- Spittie 14y agoFor anyone interested in PacMan, The PacMan Dossier is a must-read: http://home.comcast.net/~jpittman2/pacman/pacmandossier.html http://home.comcast.net/~jpittman2/pacman/pacmandossier.html
- devindotcom 14y agoSeconding this - was going to post it as well. Fun reading.
- speeder 14y agoI cannot.scroll or.zoom the site on my android :(
- eford1 14y agowhat version/browser?
- speeder 14y agoDolphin Lite but also happens on default android browser (Android 2.3) It happens in a lot of sites, I wonder what it is that people do that cause that.
- lbotos 14y agoThis is the line that does it: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" user-scalable="no">
- barbs 14y agoIs this fixed in later versions of Android?
- DCoder 14y agoWhat's there to fix? The tag says "you cannot zoom this site to levels less than 1.0 or more than 1.0", the browser complies. I'm not proud of it, but I've used this very approach to fix a stupid bug in iOS Safari - rotating the device without this zoom lock changed the zoom in ridiculous ways.
- barbs 14y agoWhy should that stop you from scrolling the screen?
- DCoder 14y agoThat tag can stop you from scrolling sideways because it also says "the width of this document should be the same as the width of the device", killing all horizontal scrolling. It shouldn't affect vertical scroll though, unless height is constrained through some other styling rules.
- greesil 14y agoOkay hack-a-thon man, go program this in z80 assembly, and post THAT to git hub.
- akent 14y agoDid you even read the post, his point was that modern tools and frameworks make it easy today to do what once had to be done at a lower level.
- robertskmiles 14y agoBy the way, Ernest Cline’s Ready Player One is great fun, and you should read it.
- alanfalcon 14y agoSeconded! Or have Wil Wheaton read the book to you, including his own surprise cameo appearance. It's a fun story and excellently narrated. http://www.audible.com/pd?asin=B005FRGT44 http://www.audible.com/pd?asin=B005FRGT44
- teach 14y agoWell, it would have been a surprise, anyway. (Currently on "page 31" ("location 623 of 7372"). I actually didn't read the article above once I saw the mention of the book to avoid spoilers. Guess I should have boycotted the comments as well....
- facorreia 14y agoThat's fascinating. Congratulations to Tyler for not only sharing this story but also sharing this as a project on GitHub. It's quite a bit of code and a nice peek into the world of Lua game programming for me, since I've had very little contact with this language.
- tylerneylon 14y agoThank you! Lua is great fun - very similar to javascript. The only weird part for me is that it's 1-indexed, but I see that as a feature for kids learning to program for the first time. Also, the code for PacPac is not very clean. Just like javascript, globals in Lua are the default, easy to use, and require discipline to avoid :)
- elisee 14y agoYou might want to look into strict.lua for avoiding unwanted globals: http://metalua.luaforge.net/src/lib/strict.lua.html http://metalua.luaforge.net/src/lib/strict.lua.html It's a little script that you can add to your Lua project and will check for usage of globals in functions without prior assignation in the global scope. Quite nifty.
- gingerlime 14y agoGreat post. The only thing I was missing is finding out whether you managed to do it in one day after all (including all the research?)
- tylerneylon 14y agoEssentially yes. Day one had all the ghost AI's and power pellets and lives and death. No sound and no score, though. It was completely made possible by the game engine (Löve) and the excellent Pac-Man analysis by other authors like Chad Birch. You can see the exact state of the game at day one: git clone git@github.com:tylerneylon/pacpac.git git checkout 4abf17ca62dffd2ac3245f6ab06cc28fb9021791 You can return to the latest commit later via: git checkout master You can get the game engine (required to play) from http://love2d.org http://love2d.org .
- zonkey 14y agoOh, one byte is fine for the level. No one will ever come close to reaching anything higher!
- ghayes 14y agoWell, two bytes is quite the challenge then, isn't it?
- doomlaser 14y agoIf anyone wants to read how Pac-Man works on a very deep level, check out: http://home.comcast.net/~jpittman2/pacman/pacmandossier.html http://home.comcast.net/~jpittman2/pacman/pacmandossier.html It's super interesting.
- cyphunk 14y agowhat he said. that link is the original source with absolutely expansive depth into the topic. everyone else seems to be grabbing parts and republishing.
- parasight 14y agoCool! Thanks for sharing!
- MatthewPhillips 14y agoLooks like I'm not getting anything done today.
- fabriceleal 14y ago... and the deep meaning of Pac-Man: http://www.smbc-comics.com/?id=2736 http://www.smbc-comics.com/?id=2736
- joezydeco 14y ago"Along the way, I jumped into the rabbit hole of Pac-Man minutiae and came out impressed with some of the clever firsts the game pulled off. When Halo came out in 2001, it was praised for its dynamic soundtrack, which was more reactive to players’ actions than many previous games. Ahead of its time, Pac-Man had a crude version of a dynamic soundtrack in 1980." Close. The Flash pinball machine from Williams Electronics (released January 1979) had a background sound that changed dynamically as game play progressed and is considered the first. Pac-Man came slightly later (May 1980 in Japan, October 1980 in the USA).
- phillmv 14y agoWhen I saw that quote I was instantly reminded of: "During the Old Stone Age, between thirty-seven thousand and eleven thousand years ago, some of the most remarkable art ever conceived was etched or painted on the walls of caves in southern France and northern Spain. After a visit to Lascaux, in the Dordogne, which was discovered in 1940, Picasso reportedly said to his guide, “They’ve invented everything.” What those first artists invented was a language of signs for which there will never be a Rosetta stone; perspective, a technique that was not rediscovered until the Athenian Golden Age; and a bestiary of such vitality and finesse that, by the flicker of torchlight, the animals seem to surge from the walls, and move across them like figures in a magiclantern show (in that sense, the artists invented animation). They also thought up the grease lamp—a lump of fat, with a plant wick, placed in a hollow stone—to light their workplace; scaffolds to reach high places; the principles of stencilling and Pointillism; powdered colors, brushes, and stumping cloths; and, more to the point of Picasso’s insight, the very concept of an image. A true artist reimagines that concept with every blank canvas—but not from a void" http://www.newyorker.com/reporting/2008/06/23/080623fa_fact_thurman http://www.newyorker.com/reporting/2008/06/23/080623fa_fact_... Nothing is new, etc.
- JonnieCache 14y agoEven better, it's recently been found that in many of these ancient sites, the paintings cluster at the points in the cave where the human voice resonates best. Apparently it's possible to walk through the caves in darkness, shouting and clapping, and when one hits a peak of resonance, to turn on ones torch and be suddenly surrounded by art. http://www.insidescience.org/content/caves-stonehenge-ancient-peoples-painted-sound/571 http://www.insidescience.org/content/caves-stonehenge-ancien...
- rschmitty 14y agoThis makes me want to read Ready Player One all over again and make a retro game, fun post, thanks!
- sixothree 14y agoIf one of his intentions was to inspire tinkering, then it worked. I tweaked the game to include an extra 6 ghosts and speed up pacman. More fun, but still hard. Had to randomize their leave box time to make them not appear as one.
- undershirt 14y agoNamco shut down my Pac-Man project [0] last year on github after it was posted to Hacker News. Good luck :/ In short, it works on mobile devices, uses HTML5 Canvas, has ghost visualizations, and Braid-like rewind. Read about it and play it here: [0] http://pacman.shaunew.com/ http://pacman.shaunew.com/
- tylerneylon 14y agoWow, this is awesome. Features I love: practice mode; cookie-man mode (brilliant); and the learning section that visually explains the AI's.
- undershirt 14y agoThanks a lot!
- nitrogen 14y agoWhat grounds did they give for removing the project? Trademark? Copyright?
- undershirt 14y agoInfringed on intellectual property rights: [1] https://github.com/github/dmca/blob/master/2012-09-25-namco.markdown https://github.com/github/dmca/blob/master/2012-09-25-namco....
- panacea 14y agoHighlights the absurdity of 'intellectual property rights' law. Like being sued for playing Bach or Chopin to an audience in terms of the digital era.
- fmax30 14y agoThis almost reminds me of the time that i wrote a fully customizable pacman game back in '09 , The AI was not state of the art (because i was new to Computer science). But the Level were completely custom , you just had to edit a text file in which you set the collision color [1], and provide two new images ( one for food locations and the other for the map) and you had a new level. The code was a mess [2] ( i didn't even know about OOP back then )but i keep it for historical purposes ( like it was the first game i ever wrote). [1] https://github.com/fahadm/Historical/blob/master/PACMAN/Settings.ini https://github.com/fahadm/Historical/blob/master/PACMAN/Sett... [2] https://github.com/fahadm/Historical/blob/master/PACMAN/page%20flipping.cpp https://github.com/fahadm/Historical/blob/master/PACMAN/page...
- aerique 14y agoCool. I recall designing levels for a Pac-Man clone my friends made on the Atari ST back in 1992: https://www.giantbomb.com/crapman/3030-24791/images/?tag=All%20Images https://www.giantbomb.com/crapman/3030-24791/images/?tag=All... Unfortunately none of the downloadable images seem to be available anymore: - Synergy Megademo: http://www.pouet.scene.org/prod.php?which=752 http://www.pouet.scene.org/prod.php?which=752 - Crapman standalone: http://www.pouet.scene.org/prod.php?which=29339 http://www.pouet.scene.org/prod.php?which=29339 Fun fact: the musician went on the make music and sound effects for games like Z and Killzone and win an Ivor Novello award: http://www.screenedmusic.com/news/joris-de-man-wins-ivor-novello-award http://www.screenedmusic.com/news/joris-de-man-wins-ivor-nov...
- tylerneylon 14y agoGames like these are relatively easy to make with modern game engines like Löve. There are many original indie games in early development worth checking out: http://love2d.org/forums/viewforum.php?f=5 http://love2d.org/forums/viewforum.php?f=5
- mbetter 14y agoTrying to figure out how to scroll was a great game. Page down? Nope. Down arrow? Nope.
- elisee 14y agoLÖVE has a Web player (using WebGL and Lua.js) in the works, would be cool to see if Pac-Pac runs on it: https://github.com/ghoulsblade/love-webplayer https://github.com/ghoulsblade/love-webplayer
- elisee 14y agoWell I just spent a while on it but there are quite a few filesystem functions missing in either Lua.js or love web player to make it work out of the box. It's probably doable but I gave up for now.
- DanBC 14y agoHas anyone tried to transfer this AI model to FPS?
- deleted 14y ago[deleted]
- mseebach 14y agoSo what happened to the dare? It seems there are more rabbit holes than would allow one to push out a full PacMan clone in a single day.
- emackn 14y agowow! I find this so interesting. What a great opportunity to get into game programming. Now I just need some time to check this out.
- LarrySDonald 14y agoThis was an actual challenge at a hack-a-thon I was at way way back (I'm guessing around '92). The total instructions were pretty much "(best game category) build a pac man variant", the restriction to pac man only mostly there to render quite a bit of the prior-to-the-event design less useful when it was announced. It was over 48h though. There were some pretty creative entries. I built one with more ghosts (increasing per level) with generated mazes, but from a predetermined per-level seed so that level 1 was always level 1, but there were still infinite(ish) levels (I was in a kind of Elite phase again after Elite II). Didn't even end up entering, I'd had a HD crash a few days before so I didn't even have my normal go-to bag-o-tricks in terms of stuff to render, time, do controls, etc and did it from scratch. By deadline it worked "almost some" but not enough to really be playable.
- winston57 14y agoIn 1980, four of us - myself and three co-workers, attempted to write a pac-man like game. I really haven't had much interest in game programming, but one guy did and wrote a basic display with keyboard moves. The ghosts were in the form of each of our initials, and the plan was each of us would program our own ghost strategy algorithms. It never got too far along. I should also mention that this was written in Pascal for the Texas Instruments 990 (not the POS 99/4a home computer) business computer on 80x24 monocolor text-only screens. Hey, but it was multitasking and multiuser - each of us could be playing our own copy of the game. My Windows 7 PC still gives regular demonstrations of its non-multitasking DOS heritage. In 1982 I bought an Apple II Plus thinking I might develop some games... coming from a mainframe and minicomputer environment, I was more than a little disappointed. I didn't return to PC programming or even own a PC until 1988 when I found out SCO Xenix would run on a 286... for weeks at a time, with multiple users, without crashing. Gaming has come a long way, but some OS fundamentals still haven't, at least not in the PC world.