# SWIV: unofficial browser rebuild

Version 1.0, built with the AREK kit 1.0.98.

*SWIV* (Random Access, published by The Sales Curve on the Storm label, 1991) running in a web browser, from a static translation
of the game's own 68000 code and a model of the Amiga chipset. It is not an emulator.

**This is an unofficial fan project. It is not affiliated with, endorsed by or licensed by the game's authors, publishers or
current rights holders.**

## What you need

- Your own disk image of the one-disk Amiga version of SWIV: an **ADF** file (901,120 bytes), plain or inside a **.zip**.
- The page checks the game files on the disk, not its boot block, so the releases in circulation that carry the same game
  files are accepted. Any other disk is refused with a message.
- A desktop browser that gives the page shared memory (`SharedArrayBuffer`), and a keyboard, a gamepad or a USB joystick.

No disk image is included. Your file is read only inside your browser and is never uploaded. With *Remember the disk on this
device* on (Project menu) it stays in the browser's storage until you choose *Forget the saved disk* or clear the browser's
data for the site; then you insert it again.

The package does contain the translated game code, encrypted. Only your own disk unlocks it.

## Controls

| Action | Keys |
|---|---|
| Player 1 (helicopter) | arrows, fire = X or Ctrl |
| Player 2 (jeep) | W A S D, fire = Left Shift; the second player's fire joins the game |
| Gamepad / joystick | stick or d-pad, A / B / X / right trigger = fire (press a button first); the first controller is the helicopter, the next one the jeep |
| The game's options screen | F1 |
| The game's own keys | Esc, Space, Enter, P (P pauses the game) |
| Pause / Restart | Pause key or the Game menu / R |
| Original / Enhanced picture | E |
| Fullscreen | F |
| Help | H |

Fire resumes a paused game. In the score table, type your name and press Enter.

## Original and Enhanced

- **Original** is the game's own picture and sound, as the Amiga produced them.
- **Enhanced** draws the same game at your display's refresh rate with smooth scrolling and motion, softer shadows, a rotor
  disc instead of blinking blades, softened white flashes and sounds the original had to drop. By default it also shows 32 more
  lines below the game window, where the player can fly too; *Display, Screen, the game window* gives the original height.

Every display and sound setting is kept per mode.

## Running it yourself

The page must be served over HTTP with `Cross-Origin-Opener-Policy: same-origin` and `Cross-Origin-Embedder-Policy: require-corp`.
Opening `index.html` from disk does not work; without the headers the start window says that shared memory is missing.

Third-party licences are in `CREDITS_AND_LICENSES.md`.
