Show HN: Quake ported to safe Rust, playable in browser

原始链接: https://quake-srp.pages.dev/

相关文章

原文

Move

WASDmove / strafe (id's own: the arrows and ,. — idcontrols on the console) mouselook (click to lock; or click-drag). Too slow or too fast: Options, Mouse Speed — on a Mac a gaming mouse starts slow (macOS passes on only part of its movement) ←→turn Spacejump / swim up Cswim down gamepadLeft stick moves, right stick looks, RT fires, A or LT jumps, bumpers change weapon, Start the menu (D-pad, A and B work it), Back the scores. idcontrols on the console gives id's own joystick (after joystick 1). A browser sees a pad once a button is pressed

Fight

clickfire Ctrlfire (DOS-style — arrows + Ctrl play fine without capturing the mouse) 1–8select weapon (1 axe · 2 shotgun · 4 nailgun, once owned) wheelswitch weapon — up next, down previous (the slop preset's; Classic: id's, unbound)

Interface

any keythe menu, while a demo plays Escmenu / back — with the mouse captured, Esc releases it and opens the menu. In fullscreen on Chrome/Edge Esc just toggles the menu (hold it to leave fullscreen); elsewhere a second Esc leaves fullscreen (browser rule) Tabhold for the scoreboard (monsters, secrets, time) ↑↓menu: navigate · ←→ adjust · Enter select Optionsscreen size, brightness, mouse, always run — Customize controls to rebind keys, Video Options for the picture's size, Slop Options for this port's own settings, and last Reset to Classic (id's WinQuake exactly) and Reset to slop (everything as it starts), each resetting everything — keys, Options, video — after asking; saved games stay. Open the page as ?classic or ?slop to start in that preset -=screen size down / up Alt+Enterfullscreen on and off, whatever has the keyboard: the game, the menu, the console (Option+Return on a Mac). With id's own controls (idcontrols) the chord is id's strafe and jump: use the fullscreen button. F11 is the browser's own, the whole window F6 / F9quicksave / quickload (id's own binds — also F1 help, F2/F3 the Save/Load screen, F4 Options, F10 quit, F12 a screenshot — a .pcx file in this page's storage, not a download yet; F12 only reaches the game in fullscreen, where the browser keeps it for devtools otherwise) ~console (see below) gamewith a mission pack on this page (the server's or your own): Quake, Scourge of Armagon or Dissolution of Eternity — on the start screen, under the view, or GAME in a phone's menu. A choice reloads the page as ?game=hipnotic / ?game=rogue (none for Quake): bookmark one to start there. Saves stay; an unsaved game ends

联系我们 contact @ memedata.com