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분 만에 확인하기A Rust and WebAssembly port of the coffee_maker_ada parser game
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A Rust port of
coffee_maker_ada,
a tiny 2-word parser game, keeping the original's table-based design.
For a more idiomatic port with separate Room, Thing and Verb types,
see coffee_maker_rs.
Play it in your browser: https://rread.github.io/coffee_maker_rust/
Or in a terminal:
cargo run --release
As in the Ada version, one Thing enum covers everything: the avatar,
rooms, objects, verbs, and the sentinels NoSuchThing, NoSuchVerb and
Unsupplied. Game state is a set of tables indexed by it, using
enum-map:
| Ada | Rust |
|---|---|
type Flags_Type is array(Thing_Id) of Boolean | type Flags = EnumMap<Thing, bool> |
type Strings_Type is array(Thing_Id) of Unbounded_String | type Strings = EnumMap<Thing, &'static str> |
type Thing_To_Thing_Type is array(Thing_Id) of Thing_Id | type ThingToThing = EnumMap<Thing, Thing> |
(KITCHEN_ROOM => True, others => False) | enum_map! { KitchenRoom => true, _ => false } |
Actions : array(Thing_Id) of access procedure | EnumMap<Thing, fn(&mut Game, &Command) -> io::Result<()>> |
Words array, linear search | Vec<(&str, Thing)>, linear search |
Location works the same way: a Thing located at Avatar is carried, and
one at NoSuchThing is nowhere. src/tables.rs holds every table's
initial contents; src/game.rs holds the actions, each following the Ada
procedure of the same name.
The terminal version's game logic, messages (typos included), wrapping and
pacing match the Ada original. The only differences are that whole lines
are read (no 100-character buffer), a \r before the newline is ignored,
and end of input quits cleanly. Golden transcripts in tests/transcripts/,
derived from the Ada source, check this byte for byte.
The browser version drops the opening banner (Begin, the dictionary
size, ***), numbers the prompt ([1] ? ), and on screens too narrow for
80 columns (phones) wraps paragraphs to fit, using the same rule. The game
itself is the same.
web/ is a WebAssembly front end that prints the game onto green-bar
printer paper, keeping the original pacing. It drives the same library
through Game::start and Game::handle_line; the game's pauses become
browser timers.
It needs the wasm32-unknown-unknown target and
trunk:
cd web
trunk serve --open # play locally
trunk build --release --public-url ./ # static site in web/dist/
web/dist/ is a self-contained static site (HTML, JS, and a ~80 KB
.wasm) that can be hosted anywhere, including GitHub Pages. The relative
--public-url makes it work under any repository path.
GPL-3.0, the same as the Ada original this is ported from. See LICENSE.