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,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Two games for the Raspberry Pi Sense HAT's 8x8 RGB LED
matrix and joystick, written in Python with its sense_hat library.
Play them in your browser: the same Python files,
run unchanged.
With the Sense HAT fitted, run a game from the top of this repository:
simulator/ holds a stand-in for the sense_hat library and a window to show it in, so the games run on a
Mac, Windows or Linux machine without a Pi. The games' code is not changed: the simulator puts its own
sense_hat first on the path, and the games import it as usual.
You can also click the joystick in the window.檢視完整 README ↗Two games for the Raspberry Pi Sense HAT's 8x8 RGB LED
matrix and joystick, written in Python with its sense_hat library.
Play them in your browser: the same Python files, run unchanged.
| Game | |
|---|---|
| Space Invaders | Move the laser cannon left and right, press the joystick in to fire, and clear all six invaders. |
| The Legend of Zelda | Walk Link through Tail Cave from Link's Awakening, picking up keys and opening doors. |
With the Sense HAT fitted, run a game from the top of this repository:
python3 spaceInvaders/space_invaders.py
python3 legendOfZelda/legend_of_zelda.py
simulator/ holds a stand-in for the sense_hat library and a window to show it in, so the games run on a
Mac, Windows or Linux machine without a Pi. The games' code is not changed: the simulator puts its own
sense_hat first on the path, and the games import it as usual.
python3 simulator/run.py # pick a game
python3 simulator/run.py spaceInvaders # or name its folder
python3 simulator/run.py legendOfZelda
| Key | Joystick |
|---|---|
| Arrow keys | up, down, left, right (hold to repeat) |
| Enter or Space | press in |
You can also click the joystick in the window.
brew install python-tk.get_pixel() matches the hardware. Zelda relies on that to find doors and keys.The stand-in's tests:
python3 -m unittest discover tests
web/ is the page. It runs the games with Pyodide, which is Python compiled to
WebAssembly, in a background worker, against the same stand-in sense_hat.
threading.Timer becomes a browser timer.time.sleep() pauses only the worker, so the LEDs stay on screen while a game waits.master
(.github/workflows/web.yml).To try it locally:
python3 web/build.py site
python3 -m http.server -d site # then open http://localhost:8000
| Path | Holds |
|---|---|
spaceInvaders/, legendOfZelda/ | The games, their pixel art and the images they load. |
simulator/sense_hat/ | The stand-in sense_hat library, shared by the desktop and web versions. |
simulator/run.py | The desktop simulator's window. |
web/ | The web page, its Pyodide worker and the script that gathers the site. |
tests/ | Tests for the stand-in. |