Underground 2 Revived
Play Need for Speed: Underground 2 (2004) in Chrome and Firefox with WebGPU graphics, Web Audio, up to 120 fps widescreen, controller support, free roam and Online races with friends. Fan project, not
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Classic Snake in Python and Pygame, with pause, restart and WASD or arrow controls.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Classic Snake in Python and Pygame, with a neon arcade look - and the same code runs in your browser, compiled to WebAssembly.
Play it in your browser - arrows, WASD, or swipe on a phone.README 전문 보기 ↗Classic Snake in Python and Pygame, with a neon arcade look - and the same code runs in your browser, compiled to WebAssembly.
Play it in your browser - arrows, WASD, or swipe on a phone.
localStorage in the browser. A corrupt save just starts from zeroasync and yields to the browser every frame, which is what lets pygbag run it as WebAssemblypython -m pip install -r requirements.txt
python src/main.py
(With MSYS2 Python, install Pygame with pacman -S mingw-w64-x86_64-python-pygame instead.)
python scripts/build_web.py # pygbag compiles src/ and copies it into site/game/
python -m http.server 8000 --directory site # then open http://localhost:8000
site/index.html is the arcade-cabinet page that frames the game.
python -m pytest -q # 17 tests on the game logic, run headless
python scripts/record_demo.py # re-records assets/demo.gif
The GIF is recorded by an autopilot that plays the real game headlessly: a breadth-first search finds the shortest safe path to the food each move.
| Action | Keyboard | Touch |
|---|---|---|
| Move | Arrows or WASD | Swipe |
| Start / restart | Space or Enter | Tap |
| Switch mode (between games) | M | Swipe sideways |
| Pause / resume | P | - |
| Quit (desktop only) | Esc | - |
update() moves the snake and decides the outcome; draw() only reads state. That is what lets the tests drive whole games without a window, and the GIF recorder play headlessly.async main loop and the save location; pygbag's platform.window gives Python direct access to the browser's localStorage.