Pac-Man and Ms. Pac-Man
** will not work in Safari. not for mobile **
CONTROLS:
- move - arrow keys or WASD
- shift - add a credit
- enter - player 1 start
- 2 key - 2 player mode at start screen
- space bar - pause game
- f key - pause and advance one frame of the game
This is an attempt at reverse-engineering Pac-Man and Ms. Pac-Man in javascript, cut scenes and all. I tried to stay true to the original game play as much as possible. While it's not 100%, it's pretty darn close. Feel free to check out the code from my GitHub project and/or just have fun playing this classic.
My code. For you.
GitHub repo: https://github.com/jrhollis/jspacman
Comments
Log in with itch.io to leave a comment.
this is pretty cool
but i cant seem to start the game
Press the "Shift" key to give yourself credits. "Enter" is the start button.
ok thanks
can u download it
Yes, and offline too. Right click -> Save As... should work. Keep in mind I tested this on my computer online and on Airplane Mode (latest version of Google Chrome and Windows 11) The Itch app may also have a Download option, but the last time I used that was a few years ago.
Is there a way to make this compatible with Google Sites in an embed format?
Not sure if it will be allowed on Google Sites, but you can try to insert the iframe code below into your site.
<iframe frameborder="0" src="https://itch.io/embed-upload/5398792?color=57a5eb" allowfullscreen="" width="454" height="602"></iframe>
It works & I gave credit to you. 😄 Link: https://sites.google.com/view/unblock3d/pac-man
How do you select MS.PAC-MAN Because I can't all I can do is PAC-MAN
Are you on mobile? I didn’t write a mobile supported version. If not, the arrow keys at the opening menus will let you navigate. If that doesn’t work, would you mind telling me which browser you’re using?
it DOES look identical to the Arcade though as well as the sound
thanks. that was the goal of the project!
Cant Run Full screen (on Linux) no scanlines option so looks like utter Crap....runs slugish in 2021 ???
Thanks for the feedback. I don't have a Linux machine to test on unfortunately... I did test on Firefox, Chrome, and Edge (mac and windows) and it runs at 60fps just fine. And it does replicate the original arcade game play almost to the pixel. (I actually compared frame by frame with a MAME emulator while writing it...).
This was written from scratch in javascript as an academic exercise, so I didn't have the convenience of any canned shaders (for scanlines) like Unity provides, and I did not have a fullscreen itch.io mode in mind either. Putting it on here was an afterthought. Those things might be an idea for if I ever do a re-write, I guess.