# A Dark Room

- Game: A Dark Room
- Author: Michael Townsend (doublespeak games) "and all his friends", as the upstream `index.html` credits it, with the project's GitHub contributors.
- Upstream: https://github.com/doublespeakgames/adarkroom
- Upstream commit: `1fada4620b6c66bd07bf15a3f1eb8223df8bc1d7` (2025-05-23)
- Licence: Mozilla Public License 2.0 (MPL-2.0). The full text is in [LICENSE.md](LICENSE.md).

## Source code of this modified version

The files changed below are Covered Software under the MPL-2.0. Their Source Code Form is the files in this directory, exactly as they are served: plain HTML, CSS and JavaScript, with no build step. Any file can be downloaded from the same URL the game loads it from. The unmodified upstream source is at https://github.com/doublespeakgames/adarkroom (commit above). The translation catalogues (`lang/*/strings.po`) that the `strings.js` files are generated from are not shipped here. They are in the upstream repository at the same commit.

## Third-party components shipped in this directory

- jQuery 1.10.1 (`lib/jquery.min.js`): MIT, (c) jQuery Foundation, see https://jquery.org/license
- jQuery Color 2.1.2 (`lib/jquery.color-2.1.2.min.js`): MIT, see https://jquery.org/license
- jquery.event.move 1.3.1 and jquery.event.swipe 0.5 (`lib/`), by Stephen Band: the files carry no licence statement
- Base64 encode/decode (`lib/base64.js`), from webtoolkit.info: the file carries no licence statement
- `lib/translate.js`: carries no licence statement. It is shipped as part of the upstream repository.

## Changes

Modified by Invisible Network on 2026-10-17:

- Removed files the game does not need to run in a browser: `.gitattributes`, `.gitignore`, `.jshintrc`, `README.md`, `contributing.md`, `dev-server.js`, `package.json`, `yarn.lock`, `doc/`, `tools/` (the `.po` to `.js` converter), the translation catalogues `lang/adarkroom.pot`, `lang/babel.cfg`, `lang/*/strings.po` and `lang/lt_LT/strings.mo` (every language's generated `strings.js` is kept), `lib/icu.js` (not loaded by any page) and `script/dropbox.js` (not loaded by any page; it needs Dropbox's remote API).
- `index.html`: jQuery is loaded from the bundled `lib/jquery.min.js` instead of `ajax.googleapis.com` with a local fallback. Removed the Google Analytics (gtag.js) loader and its inline configuration. The doublespeak games logo link (credit) is kept and now carries `rel="noopener"`.
- `script/engine.js`: removed the "get the app." and "share." menu items and the `getApp` and `share` functions behind them, which opened the App Store, Google Play, Facebook, Google+, Twitter and Reddit. The "github." menu item is kept and now opens the upstream repository with `noopener`.
- `script/space.js`: the end-of-game screen no longer shows the "expanded story … get the app." text or the "iOS." and "android." app-store links. The scores and "restart." are unchanged.
- `script/events/marketing.js`: the only event in this file, a "Penrose" cross-promotion that opened `penrose.doublespeakgames.com`, has been removed. `Events.Marketing` is now an empty list, so the event pool still builds.
- `mobileWarning.html`: removed the "There are native apps, though!" text and the App Store and Google Play links and badges, which were loaded from imgur. Added a "play anyway" link to `index.html?ignorebrowser=true`, the same bypass the upstream `browserWarning.html` already offers.
- `browserWarning.html`: the "update your browser" text and the five browser icons are no longer links to browsehappy.com and the browser vendors' download pages. The "play anyway" link is unchanged.

No other file was changed.
