Chomper 5 - Version 2.0 of my Pac-Man in HTML5 project
November 29, 2011 11:29 AM   Subscribe

Chomper 5 - Version 2.0 of my Pac-Man in HTML5 project
Several months ago I linked to my first crack at writing a Pac-Man clone in HTML5. Based on mefite suggestions and my own revision plan, I've completely reworked my original code. Play as Pac-Man, Ms., or Jr., and select from several mazes. Original sound and graphics "borrowed" from MAME emulation. Works best in Chrome and Firefox.

Thanks to everyone who helped out with my first version. I've renamed the project and moved it to a new home. Among the more significant changes are the following:

- The Javascript code has been completely revamped. The code is much cleaner, procedural, and object-oriented (as OO as Javascript gets, anyway)

- The website is scaled down considerably, so that it is much easier to get to the game.

- Graphics are sharper. Previously I used anti-aliased graphics from MAME emulations. This time I went with the crisper sprites.

- Ghost behaviour more accurately reflects Pac-Man's original settings. This means that the game does not necessarily get progressively more difficult in a linear fashion.

Still no tablet/mobile version yet, though iOS Safari is getting close to workable HTML5 compatibility.

Again, any feedback is much appreciated. Thanks!
Role: programmer, designer
posted by hiteleven (6 comments total) 1 user marked this as a favorite

Very cool.
posted by toomuchpete at 12:04 PM on November 29, 2011


Yeah, good job man. Played for a little while, the only thing I noticed was a hiccup in the audio when I was devouring several Ghosts in quick succession (oh, this is on Chrome/Win 7).

But that's just a data point for you. I was really impressed. Great job making use of the original art (audio & graphical). Controlled very well, and brought a smile to my face.
posted by MustardTent at 7:15 AM on November 30, 2011


Cheers, MustardTent, I appreciate the feedback. Yeah, the audio problems are actually on the browser side. For some reason nobody can make HTML5 audio work right yet. Firefox used to be the best, but things have actually become worse since they unveiled the 4.0 architecture. Chrome is much better than it used to be, but still not quite there yet. Anyway, thanks again.
posted by hiteleven at 8:30 AM on November 30, 2011


Is it just me (Safari 5 OS X Lion), or does this play much much faster than the original? Also some v slight occasional graphics glitches where ghosts momentarily appear to turn a corner, and then don't.
posted by roofus at 8:39 AM on November 30, 2011


The original game had dip switches to control the speed of the game. The machine you remember probably really was slower.
posted by LogicalDash at 6:29 AM on December 1, 2011


Wow, I chomped on all the ghosts in a row--first time I've ever done that--and the game got super-fast.
posted by infinitewindow at 9:28 PM on December 8, 2011


« Older Oregon is Awesome! Your calendar of wonderful Oreg...   |   Jotunheim - A capture-once, po... Newer »


You are not currently logged in. Log in or create a new account to post comments.