# HexGL — source and licensing notices

Upstream: https://github.com/BKcore/HexGL

Pinned revision: `6addc95a2fce3bf05f4d751823cc054c61a16d68`.

Original game and playable version: https://hexgl.bkcore.com/ and https://hexgl.bkcore.com/play/.

This is an adaptation of the actual upstream HexGL game with its original Cityscape track, ship, textures, collision maps and three-lap race. HexGL is copyright protected. Download availability does not make it public domain.

## Mixed licenses — noncommercial use required

The upstream README says: “Unless specified in the file, HexGL's code and resources are now licensed under the MIT License.” The original runtime files under `bkcore/hexgl/`, including the Cityscape track script, specify **Creative Commons Attribution-NonCommercial 3.0 Unported**. Those notices are preserved. The complete license text is included in `licenses/CC-BY-NC-3.0.html` and its official URI is https://creativecommons.org/licenses/by-nc/3.0/.

Do not label the complete game as MIT-only. The game may be copied and adapted with attribution for noncommercial purposes under those original conditions. Ads, paid access, purchases or other monetization require a new rights review and any necessary permissions. The present GAME//REWIND use is a free hobby arcade with no ads, purchases or revenue.

Other upstream code and resource files with no per-file exception use the upstream MIT license in `LICENSE`: copyright (c) 2015 Thibaut Despoulain. This covers the bundled upstream geometries, textures and original title/background images according to the README's express default. No ROMs, Internet Archive commercial game files or separately copyrighted game assets have been added.

## Authors and artwork

- Concept and development: Thibaut Despoulain (BKcore).
- Contributors named in the original game: townxelliot, mahesh.kk.
- HexMKI base mesh: Charnel.
- Track texture: Nobiax.
- Three.js: Mr.doob, AlteredQualia and the Three.js contributors. Three.js MIT text is in `licenses/THREE-MIT.txt`.
- Touch controller: Thibaut Despoulain; based on Seb Lee-Delisle's touch demo.
- Gamepad controller: Mahesh Kulkarni.
- ShaderExtras film grain/static shader: original implementation by Pat “Hawthorne” Shearon, optimized scanlines/noise by Georg “Leviathan” Steinrohder, CC BY 3.0. Original shader credits are retained; license text is in `licenses/CC-BY-3.0.html`. Other library source headers retain their original author notices.

## Audio

The exact upstream audio notice is preserved at `audio/LICENSE`:

- `boost.ogg`: IFartInUrGeneralDirection, CC BY 3.0.
- `crash.ogg`: qubodup, public domain.
- `wind.ogg`: kangaroovindaloo, CC BY 3.0; cut and adjusted by Licson.
- `bg.ogg`: mu6k, public domain; adjusted by Licson.
- `destroyed.ogg`: beman87, CC BY 3.0; adjusted by Licson.
- All files converted to OGG Vorbis by baleboy using VLC Media Player.

CC BY 3.0 official URI: https://creativecommons.org/licenses/by/3.0/.

## Adaptation — 12 October 2026

GAME//REWIND added a Dutch local shell, local loading/results, iframe status and command messages, native pause/resume/restart controls, viewport resizing, clean falling/lap state on restart, a system font and non-passive touch handling. The original game identity, physics, track, checkpoint progression, models and author/license notices are preserved. The external analytics, social sharing, unused ladder, old editor, Leap Motion networking and bundled webfonts were removed. The README and source revision are retained for provenance.

License-page HTML was copied from the official Creative Commons legal-code pages; site navigation scripts, analytics and styles were removed for an offline-readable copy. The license text was not changed.

## Portal integration

Entry: `games/hexgl/index.html`. A 16:9 viewport, at least 480px tall on desktop, is recommended. The race fills its iframe and resizes for fullscreen.

The first start loads local game assets. Native controls are always available. Audio may require the native “Geluid aan” button after a start command from the parent, depending on browser activation rules.

The same-origin bridge emits `{type: 'rewind-game-status', game: 'hexgl', status: 'ready' | 'running' | 'paused' | 'gameover'}`. A completed race also includes `result: 'finished'`, `elapsedMs`, and `score` equal to elapsed milliseconds (lower is better); a destroyed ship includes `result: 'destroyed'` without a score.

It accepts same-origin parent messages `{type: 'rewind-game-command', command: 'start' | 'restart' | 'pause' | 'resume'}`. No remote services, accounts, CDNs or server game logic are needed.
