Giter Club home page Giter Club logo

jspacman's Introduction

jspacman

This is a faithful recreation of the Pac-Man and Ms. Pac-Man arcade games reverse engineered in javascript.

In order to play, the files must be placed on a web server and loaded in Chrome, Firefox, or Edge. Safari does not work

My goal in this project was to get as close to pixel perfect as possible. And I think it's fairly close, but there are some inconsistencies still. The game includes all credit/title scenes and cut scenes for both Pac-Man and Ms Pac-Man.

I've also coded in a gameboard observing algorithm for potential use in an A.I. implementation.

Controls are:

Shift: Insert Credit

Enter: 1 Player Start

2: 2 Players Start

Move: Arrow Keys or WASD

Space: Pause Game

F: Advance Game One Frame

Play here: https://jrhollis.github.io/jspacman/

I'm doing some explainer videos on youtube: https://www.youtube.com/playlist?list=PLYcVWsOwv3wiCBwBko-ygKS6KZqs6UbeH

jspacman's People

Contributors

jrhollis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jspacman's Issues

Support higher refresh rates

I just tried the game through itch, and I must say, it plays great, better than other clones! Except for the fact that the game's speed seems to be tied to the refresh rate of the display.

For example, it runs normally at 60hz, but when I first started it I played at 144hz and died almost instantly. I'd recommend either locking the framerate to the arcade original (which I believe was something like 60.61hz) or allowing the user to choose the framerate.

As a lefty, WASD as an option would also be appreciated. I may use this as a chance to learn JS and make a pull request at some point.

Turn preference of actors

In Actor.js, you specify the turn preferences in the order LEFT, UP, RIGHT, DOWN. According to the Pac-Man dossier, this should be UP, LEFT, DOWN, RIGHT. Who is right?

(P.S. I am very impressed by your work)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.