https://github.com/bobbylight/pacmanjs
A Pacman clone.
https://github.com/bobbylight/pacmanjs
Last synced: about 1 year ago
JSON representation
A Pacman clone.
- Host: GitHub
- URL: https://github.com/bobbylight/pacmanjs
- Owner: bobbylight
- License: mit
- Created: 2015-11-20T04:07:34.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2025-01-22T03:56:52.000Z (over 1 year ago)
- Last Synced: 2025-03-27T07:47:59.333Z (over 1 year ago)
- Language: TypeScript
- Homepage: http://bobbylight.github.io/PacmanJS/
- Size: 1.55 MB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# PacmanJS - A Pacman clone in TypeScript


[](https://codecov.io/gh/bobbylight/PacmanJS)
Like it says on the tin. This reproduction will try to be as authentic as
possible. Feel free to [try it out in its current state](http://bobbylight.github.io/PacmanJS/).
Licensed under [an MIT license](LICENSE.txt).
## Hacking
To install, compile, and run locally:
```bash
git clone https://github.com/bobbylight/PacmanJS.git
cd PacmanJS
npm install
npm run dev # Start dev server at localhost:5173, hot deploy changes
npm run build # Production build into dist/
```
## Electron Support
*Note: Currently broken since we've moved off of webpack!*
Besides browser support, a native version of the game can be built using
electron. See the `build:electron`, `dist:electron` and other related tasks below.
## npm scripts
* `clean`: Deletes prior build artifacts
* `dev`: Runs a dev server on http://localhost:5173 and hot-deploys changes
* `build`: Builds production artifact into `dist/`
* `serve`: Runs the built app on http://localhost:4173
* `lint`: Lints the project
* `test`: Runs unit tests and generates coverage report in `coverage/`
* `build:electron`: Builds all electron artifacts into `build/electron/`
* `start:electron`: Starts the election app built via `build:electron`
* `pack:electron`: Generates a native application into `dist/` that wraps the app built by `build:electron`
* `dist:electron`: Generates a native application and installer in `dist/`
## What's unimplemented/buggy
Relatively in the order in which I want to fix things:
* The electron app doesn't resize the game's canvas to fit the window as it is resized
* Sound effects don't always stop/restart properly when the game is paused
* Intermissions are not yet implemented
* Ghost AI is approximate to, but not exactly, the actual algorithms
* Blinky does not turn into Cruise Elroy, or increase in speed, as a level
goes on