pathological-web/README.md
2026-12-04 01:25:15 +01:00

3.1 KiB

Pathological, web port

🕹️ PLAY NOW ! 🎮

A browser port of Pathological, the marble puzzle game by John-Paul Gignac and Joe Wreschnig. You fill every wheel on a board with four marbles of the same color before the launch timer and the board timer run out.

This port runs the original game logic from the pygame source, taken from the SourceForge CVS snapshot. The original project site is http://pathological.sourceforge.net/. All 50 original levels, the graphics, the sound effects and the two XM soundtracks are included.

The Pathological main menu

Running it

The game uses ES modules and an audio worklet, so it must be served over HTTP. Opening index.html from the file system does not work.

Pick any of these, all on port 8000:

PORT=8000 bunx tiny-server
PORT=8000 npx tiny-server
python3 -m http.server 8000
php -S localhost:8000
ruby -run -e httpd . -p 8000
busybox httpd -f -p 8000
caddy file-server --listen :8000

Then open http://localhost:8000/. Any static file host works as long as it serves .js files with a JavaScript content type. There is no build step and no dependencies to install.

Controls

  • Left click a marble in a wheel to release it.
  • Right click a wheel to rotate it. Shift + right click rotates it backwards. Ctrl + click and middle click also rotate. On a touch screen, press and hold.
  • Space or P pauses. Escape aborts the level. N and B skip to the next and previous level.
  • F2 toggles fullscreen, F3 music, F4 sound effects and F5 colorblind marbles. The toolbar under the game has the same buttons.
  • Menu: arrow keys and Enter, or the mouse. Left and right on "Start Game" choose the start level, up to the highest level reached in a high score.

URL parameters: ?cb=1 starts with colorblind marbles, ?q=1 starts with sound and music off.

Layout

  • main.js holds the whole game. It follows pathological.py closely: the same constants, the same integer pixel physics at 100 steps per second, and the same scoring and level loading rules.
  • circuits/all-boards is the original level file, read at startup.
  • graphics/, sounds/ and music/ are the original assets.
  • vendor/ holds chiptune3 (MIT) and libopenmpt (BSD), which play the .xm modules.

Differences from the pygame version

  • High scores live in localStorage instead of a scores file.
  • Hidden tabs stop animating, and the frame step is capped at 250 ms, so a hidden tab does not burn game time.
  • "Quit Game" tries to close the window and otherwise shows a goodbye message, since a page can only close windows a script opened.
  • The command line options map to the toolbar and URL parameters above.

Credits

Original game and code by John-Paul Gignac (2003) and Joe Wreschnig (2004). Soundtrack by Matthias Le Bidan. Logo by Carrie Bloomfield. In-game graphics partly based on artwork by Mike Brenneman. Board designs by Mike Brenneman and Kim Gignac. The full list is in the original README file, which is kept unchanged.

License

GNU GPL v2 or later, as the original. See LICENSE.