# bubbls/subwaysurfersmerge architecture

> Architecture diagram of the GitHub repository bubbls/subwaysurfersmerge, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bubbls/subwaysurfersmerge
- Repository: https://github.com/bubbls/subwaysurfersmerge

## Overview

This repository is a collection of Subway Surfers browser-game builds: Unity WebAssembly city variants and HTML5 builds for Edinburgh and New York, alongside shared loading and advertising SDK code. The intended player workflow is to open a game page, load its runtime and assets, and play; the available excerpts do not show the page-to-loader wiring or gameplay implementation, so those connections are not asserted. The graph preserves the sampled runtimes, SDKs, and asset bundles. Evidence is limited to the README and sampled source excerpts; many game files are bundled or unsampled.

Main entry points: [`html5/easter-edinburgh/js/boot.js`](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/js/boot.js) (Edinburgh startup), [`html5/easter-edinburgh/poki-sdk.js`](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/poki-sdk.js) (Edinburgh SDK shim), [`poki-sdk.js`](https://github.com/bubbls/subwaysurfersmerge/blob/main/poki-sdk.js) (Shared SDK shim), [`html5/easter-edinburgh/js/workers/worker.49ddd6f37f468c0b9357.js`](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/js/workers/worker.49ddd6f37f468c0b9357.js) (Edinburgh game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Game loading"]
  node_master["Game loader<br/>[master-loader.js]"]
  node_unityloader["Unity loader"]
  node_unityengine["Unity runtime<br/>[unity.js]"]
end

subgraph group_unity["Unity builds"]
  node_unitycity["City game builds"]
  node_unityassets["City data bundles<br/>[Barcelona.json]"]
end

subgraph group_html5["HTML5 builds"]
  node_edinburghboot["Edinburgh startup<br/>[boot.js]"]
  node_edinburghgame["Edinburgh game"]
  node_edinburghassets["Edinburgh assets"]
  node_newyorkboot["New York startup<br/>[boot.js]"]
  node_newyorkgame["New York game"]
  node_newyorkassets["New York assets"]
end

subgraph group_platform["Platform services"]
  node_edinburghsdkshim["Edinburgh SDK shim<br/>[poki-sdk.js]"]
  node_edinburghsdk["Edinburgh SDK core"]
  node_rootshim["Shared SDK shim<br/>[poki-sdk.js]"]
  node_rootsdk["Shared SDK core"]
  node_ludi["New York ad adapter<br/>[ludiAdapter.js]"]
end

node_player(("Browser player"))

node_edinburghboot -->|"initializes SDK"| node_edinburghsdkshim
node_edinburghboot -->|"loads game script"| node_edinburghgame
node_edinburghsdkshim -->|"loads core script"| node_edinburghsdk
node_rootshim -->|"loads core script"| node_rootsdk

click node_master "https://github.com/bubbls/subwaysurfersmerge/blob/main/master-loader.js"
click node_unityloader "https://github.com/bubbls/subwaysurfersmerge/blob/main/UnityLoader.2019.2.js"
click node_unityengine "https://github.com/bubbls/subwaysurfersmerge/blob/main/unity.js"
click node_unitycity "https://github.com/bubbls/subwaysurfersmerge/tree/main/berlin"
click node_unityassets "https://github.com/bubbls/subwaysurfersmerge/blob/main/Barcelona.json"
click node_edinburghboot "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/js/boot.js"
click node_edinburghgame "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/js/workers/worker.49ddd6f37f468c0b9357.js"
click node_edinburghassets "https://github.com/bubbls/subwaysurfersmerge/tree/main/html5/easter-edinburgh/assets"
click node_newyorkboot "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/new-york/js/boot.js"
click node_newyorkgame "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/new-york/js/workers/worker.21cc18ec46e616e4eed8.js"
click node_newyorkassets "https://github.com/bubbls/subwaysurfersmerge/tree/main/html5/new-york/assets"
click node_edinburghsdkshim "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/poki-sdk.js"
click node_edinburghsdk "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/poki-sdk-core-v2.234.2.js"
click node_rootshim "https://github.com/bubbls/subwaysurfersmerge/blob/main/poki-sdk.js"
click node_rootsdk "https://github.com/bubbls/subwaysurfersmerge/blob/main/poki-sdk-core-v2.234.2.js"
click node_ludi "https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/new-york/js/games_lib/ludiAdapter.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_master,node_unityloader,node_unityengine,node_player toneBlue
class node_unitycity,node_unityassets toneAmber
class node_edinburghboot,node_edinburghgame,node_edinburghassets,node_newyorkboot,node_newyorkgame,node_newyorkassets toneMint
class node_edinburghsdkshim,node_edinburghsdk,node_rootshim,node_rootsdk,node_ludi toneRose
```

## Components

### Game loading

- [Game loader](https://github.com/bubbls/subwaysurfersmerge/blob/main/master-loader.js): `master-loader.js`
- [Unity loader](https://github.com/bubbls/subwaysurfersmerge/blob/main/UnityLoader.2019.2.js): `UnityLoader.2019.2.js`
- [Unity runtime](https://github.com/bubbls/subwaysurfersmerge/blob/main/unity.js): `unity.js`

### Unity builds

- [City game builds](https://github.com/bubbls/subwaysurfersmerge/tree/main/berlin): `berlin`
- [City data bundles](https://github.com/bubbls/subwaysurfersmerge/blob/main/Barcelona.json): `Barcelona.json`

### HTML5 builds

- [Edinburgh startup](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/js/boot.js): `html5/easter-edinburgh/js/boot.js`
- [Edinburgh game](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/js/workers/worker.49ddd6f37f468c0b9357.js): `html5/easter-edinburgh/js/workers/worker.49ddd6f37f468c0b9357.js`
- [Edinburgh assets](https://github.com/bubbls/subwaysurfersmerge/tree/main/html5/easter-edinburgh/assets): `html5/easter-edinburgh/assets`
- [New York startup](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/new-york/js/boot.js): `html5/new-york/js/boot.js`
- [New York game](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/new-york/js/workers/worker.21cc18ec46e616e4eed8.js): `html5/new-york/js/workers/worker.21cc18ec46e616e4eed8.js`
- [New York assets](https://github.com/bubbls/subwaysurfersmerge/tree/main/html5/new-york/assets): `html5/new-york/assets`

### Platform services

- [Edinburgh SDK shim](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/poki-sdk.js): `html5/easter-edinburgh/poki-sdk.js`
- [Edinburgh SDK core](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/easter-edinburgh/poki-sdk-core-v2.234.2.js): `html5/easter-edinburgh/poki-sdk-core-v2.234.2.js`
- [Shared SDK shim](https://github.com/bubbls/subwaysurfersmerge/blob/main/poki-sdk.js): `poki-sdk.js`
- [Shared SDK core](https://github.com/bubbls/subwaysurfersmerge/blob/main/poki-sdk-core-v2.234.2.js): `poki-sdk-core-v2.234.2.js`
- [New York ad adapter](https://github.com/bubbls/subwaysurfersmerge/blob/main/html5/new-york/js/games_lib/ludiAdapter.js): `html5/new-york/js/games_lib/ludiAdapter.js`

### Other components

- **Browser player**

## Connections

- Edinburgh startup → Edinburgh SDK shim: initializes SDK (evidence: `html5/easter-edinburgh/js/boot.js`)
- Edinburgh startup → Edinburgh game: loads game script (evidence: `html5/easter-edinburgh/js/boot.js`)
- Edinburgh SDK shim → Edinburgh SDK core: loads core script (evidence: `html5/easter-edinburgh/poki-sdk.js`)
- Shared SDK shim → Shared SDK core: loads core script (evidence: `poki-sdk.js`)
