No description
  • PHP 68.1%
  • HTML 31.2%
  • Python 0.4%
  • Shell 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-01 08:25:04 +01:00
config Site and description in 14 languages (site/<code>/, hreflang, language menu) 2026-11-01 08:25:04 +01:00
site Site and description in 14 languages (site/<code>/, hreflang, language menu) 2026-11-01 08:25:04 +01:00
src SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
tools A home page for the game (site/, in French), with a link to the complete version 2026-10-29 08:32:36 +01:00
var SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
.gitignore SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
AGENTS.md A home page for the game (site/, in French), with a link to the complete version 2026-10-29 08:32:36 +01:00
app.php SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
composer.json SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
composer.lock SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
phpstan.neon SONIC PHP on JumPHP 2026-10-29 05:17:56 +01:00
README.md A home page for the game (site/, in French), with a link to the complete version 2026-10-29 08:32:36 +01:00

SONIC PHP

A fan remake of the Master System hedgehog platformer (1991), written in PHP, running on JumPHP: on the desktop and in the browser (PHP compiled to WebAssembly). Ported from Sonic PHP.

Play it: jumphp.net/sonic · the complete version, with online multiplayer (up to 6 players, rooms, chat, replays): sonic.mimichat.fr

  • the six zones and their bosses, the special stages, the ending;
  • best times and a ghost of your fastest run (OPTIONS > GHOST);
  • local matches against computer runners: race, flag, rings, deathmatch;
  • CRT filter, PAL / NTSC speed, English / French, touch controls on phones.

Controls

← → run
↑ / ↓ look up / roll
Space jump
Enter menus, pause
Esc back to the title

Run it

The graphics, levels, music and sounds are not in this repository: import them from a checkout of Sonic PHP, then use JumPHP's commands from the root of the repository:

games/sonic/tools/import-assets.sh ~/Projets/sonicGamePhp
bin/jumphp install sonic
bin/jumphp run sonic       # desktop
bin/jumphp test sonic      # checks + headless smoke test
bin/jumphp build sonic && bin/jumphp serve sonic    # browser, http://localhost:8080

Credits and disclaimer

Game code: Sonic PHP by David Nurdin. Font: NiseSegaSonic (fan font, by its author). Graphics, levels, music and sound effects decoded from the original ROM by the Sonic PHP tools.

This is a free, non-commercial fan project. Sonic the Hedgehog, its characters, graphics and music are the property of SEGA. This project is not affiliated with or endorsed by SEGA.