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. |