@wasm-gaming/blastem-wasm 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,122 @@
1
+ # Third-party notices
2
+
3
+ `blastem.wasm` / `blastem.js` are **BlastEm** compiled to WebAssembly. Besides BlastEm itself
4
+ (GPL-3.0-or-later, see [LICENSE](LICENSE)), the binary contains the components below. Their
5
+ licences are reproduced in full.
6
+
7
+ | Component | Version | Licence | Where it comes from |
8
+ | --- | --- | --- | --- |
9
+ | BlastEm | `6d1a7447ee9e` (v1.0.0+22) | GPL-3.0-or-later | https://www.retrodev.com/repos/blastem — fetched and SHA-256-checked by `scripts/build-blastem.sh` |
10
+ | SDL2 | 2.32.0 | zlib | Emscripten's `sdl2` port |
11
+ | zlib | bundled with BlastEm | zlib | `zlib/` in BlastEm's source |
12
+ | Zstandard | bundled with BlastEm | BSD-3-Clause (dual BSD / GPLv2; used under BSD) | `zstd/` in BlastEm's source |
13
+ | Nuklear | bundled with BlastEm | Public domain, or a perpetual permissive grant | `nuklear_ui/nuklear.h` in BlastEm's source |
14
+ | Roboto Regular | v2.138 | Apache-2.0 | https://github.com/googlefonts/roboto — BlastEm's UI font, SHA-256-checked by the build |
15
+
16
+ ## BlastEm
17
+
18
+ Copyright 2013-2016 Michael Pavone and contributors (as stated in the source headers). BlastEm is free software distributed under the terms of the
19
+ GNU General Public License version 3 or greater. See [LICENSE](LICENSE).
20
+
21
+ ## SDL2 (zlib licence)
22
+
23
+ ```
24
+ Copyright (C) 1997-2025 Sam Lantinga <slouken@libsdl.org>
25
+
26
+ This software is provided 'as-is', without any express or implied
27
+ warranty. In no event will the authors be held liable for any damages
28
+ arising from the use of this software.
29
+
30
+ Permission is granted to anyone to use this software for any purpose,
31
+ including commercial applications, and to alter it and redistribute it
32
+ freely, subject to the following restrictions:
33
+
34
+ 1. The origin of this software must not be misrepresented; you must not
35
+ claim that you wrote the original software. If you use this software
36
+ in a product, an acknowledgment in the product documentation would be
37
+ appreciated but is not required.
38
+ 2. Altered source versions must be plainly marked as such, and must not be
39
+ misrepresented as being the original software.
40
+ 3. This notice may not be removed or altered from any source distribution.
41
+
42
+ ```
43
+
44
+ ## zlib (zlib licence)
45
+
46
+ ```
47
+ Copyright notice:
48
+
49
+ (C) 1995-2022 Jean-loup Gailly and Mark Adler
50
+
51
+ This software is provided 'as-is', without any express or implied
52
+ warranty. In no event will the authors be held liable for any damages
53
+ arising from the use of this software.
54
+
55
+ Permission is granted to anyone to use this software for any purpose,
56
+ including commercial applications, and to alter it and redistribute it
57
+ freely, subject to the following restrictions:
58
+
59
+ 1. The origin of this software must not be misrepresented; you must not
60
+ claim that you wrote the original software. If you use this software
61
+ in a product, an acknowledgment in the product documentation would be
62
+ appreciated but is not required.
63
+ 2. Altered source versions must be plainly marked as such, and must not be
64
+ misrepresented as being the original software.
65
+ 3. This notice may not be removed or altered from any source distribution.
66
+
67
+ Jean-loup Gailly Mark Adler
68
+ jloup@gzip.org madler@alumni.caltech.edu
69
+ ```
70
+
71
+ ## Zstandard (BSD-3-Clause)
72
+
73
+ ```
74
+ BSD License
75
+
76
+ For Zstandard software
77
+
78
+ Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
79
+
80
+ Redistribution and use in source and binary forms, with or without modification,
81
+ are permitted provided that the following conditions are met:
82
+
83
+ * Redistributions of source code must retain the above copyright notice, this
84
+ list of conditions and the following disclaimer.
85
+
86
+ * Redistributions in binary form must reproduce the above copyright notice,
87
+ this list of conditions and the following disclaimer in the documentation
88
+ and/or other materials provided with the distribution.
89
+
90
+ * Neither the name Facebook, nor Meta, nor the names of its contributors may
91
+ be used to endorse or promote products derived from this software without
92
+ specific prior written permission.
93
+
94
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
95
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
96
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
97
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
98
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
99
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
100
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
101
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
102
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
103
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104
+ ```
105
+
106
+ ## Nuklear
107
+
108
+ ```
109
+ LICENSE:
110
+ This software is dual-licensed to the public domain and under the following
111
+ license: you are granted a perpetual, irrevocable license to copy, modify,
112
+ publish and distribute this file as you see fit.
113
+ ```
114
+
115
+ ## Roboto (Apache License 2.0)
116
+
117
+ Copyright 2011 Google Inc. All Rights Reserved.
118
+
119
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this font except
120
+ in compliance with the License. You may obtain a copy of the License at
121
+ https://www.apache.org/licenses/LICENSE-2.0 — distributed on an "AS IS" BASIS, WITHOUT
122
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -0,0 +1,128 @@
1
+ /* BlastEm app — suspend points (Classic Mini style) and the pause menu.
2
+ engine-specs `--wg-*` tokens when the host sets them; same values as fallbacks. */
3
+
4
+ .bem-app {
5
+ --ring: var(--wg-focus-ring, 0 0 0 3px #fff);
6
+ --surface: var(--wg-surface, rgb(18 20 28 / 0.78));
7
+ --line: var(--wg-line, rgb(255 255 255 / 0.12));
8
+ --text: var(--wg-text, #f4f6fb);
9
+ --muted: var(--wg-muted, #8e97a9);
10
+ --danger: var(--wg-danger, #f87171);
11
+ --ui: var(--wg-font-ui, 'Inter Variable', 'Inter', system-ui, sans-serif);
12
+ --display: var(--wg-font-display, 'Unbounded Variable', 'Unbounded', system-ui, sans-serif);
13
+ --ease: var(--wg-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
14
+ position: absolute; inset: 0; overflow: hidden; background: #000; color: var(--text);
15
+ font-family: var(--ui); user-select: none; -webkit-tap-highlight-color: transparent;
16
+ }
17
+ .bem-app * { box-sizing: border-box; }
18
+ .bem-stage { position: absolute; inset: 0; display: grid; place-items: center; }
19
+ .bem-stage canvas { outline: none; }
20
+ .bem-overlay { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
21
+ .bem-overlay > * { pointer-events: auto; }
22
+ .bem-app:not([data-screen='game']) .bem-overlay {
23
+ background:
24
+ radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%),
25
+ rgb(4 6 12 / 0.74);
26
+ backdrop-filter: blur(14px) saturate(1.2);
27
+ -webkit-backdrop-filter: blur(14px) saturate(1.2);
28
+ }
29
+ .bem-app[data-screen='boot'] .bem-overlay,
30
+ .bem-app[data-screen='points'] .bem-overlay { background-color: rgb(4 6 12 / 0.9); }
31
+
32
+ .kicker { margin: 0; font: 600 0.72rem var(--ui); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
33
+ .bem-app h2 { margin: 0; font: 700 clamp(1.3rem, 3vw, 2rem) var(--display); letter-spacing: -0.02em; }
34
+
35
+ /* boot */
36
+ .bem-boot { display: grid; justify-items: center; gap: 22px; }
37
+ .bem-boot img { width: min(240px, 46vw); border-radius: 22px; box-shadow: 0 30px 80px -30px #000; animation: bem-breathe 2.4s var(--ease) infinite alternate; }
38
+ .bem-boot p { margin: 0; color: var(--muted); font-weight: 500; }
39
+ @keyframes bem-breathe { from { opacity: 0.55; transform: scale(0.98); } to { opacity: 1; transform: none; } }
40
+
41
+ /* suspend points: a row of frames, like the Classic Mini's */
42
+ .bem-points { width: min(1180px, 100%); padding: 0 clamp(16px, 4vw, 48px); display: grid; gap: clamp(20px, 4vh, 36px); }
43
+ .bem-points header { display: grid; gap: 6px; }
44
+ .points { display: flex; justify-content: center; gap: clamp(10px, 1.4vw, 18px); padding: 12px 4px; }
45
+ .point {
46
+ all: unset; box-sizing: border-box; flex: 0 1 196px; min-width: 0; display: grid; gap: 8px; cursor: pointer;
47
+ transition: transform 0.22s var(--ease), opacity 0.2s;
48
+ }
49
+ .point-frame {
50
+ position: relative; display: grid; place-items: center; aspect-ratio: 320 / 224; border-radius: 10px; overflow: hidden;
51
+ background: rgb(255 255 255 / 0.04); border: 2px solid rgb(255 255 255 / 0.16);
52
+ transition: box-shadow 0.22s var(--ease), border-color 0.2s;
53
+ }
54
+ .point-frame img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
55
+ .point-frame svg { width: 30%; color: var(--muted); }
56
+ .point.is-empty .point-frame { border-style: dashed; background: transparent; }
57
+ .point.is-auto .point-frame { border-color: color-mix(in srgb, var(--accent) 70%, #fff); }
58
+ .point-label { font: 700 0.9rem var(--ui); text-align: center; }
59
+ .point.is-auto .point-label { color: #fda4af; }
60
+ .point-date { font: 500 0.74rem var(--ui); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
61
+ .point-lock {
62
+ position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
63
+ background: rgb(0 0 0 / 0.72); color: #fbbf24;
64
+ }
65
+ .point-lock svg { width: 13px; color: inherit; }
66
+ .point.is-start .point-frame { border-style: solid; }
67
+ .point.is-focused { transform: translateY(-6px) scale(1.04); }
68
+ .point.is-focused .point-frame { box-shadow: var(--ring), 0 26px 60px -24px #000; border-color: transparent; }
69
+ .point.is-dim { opacity: 0.32; }
70
+ .point.is-target.is-focused .point-frame { box-shadow: 0 0 0 3px #fbbf24, 0 26px 60px -24px #000; }
71
+
72
+ /* pause, sheets, confirms */
73
+ .bem-panel {
74
+ width: min(440px, 92vw); display: grid; gap: 10px; padding: 26px; border-radius: 28px;
75
+ background: rgb(20 22 31 / 0.92); border: 1px solid var(--line); box-shadow: 0 40px 100px -30px #000;
76
+ }
77
+ .bem-panel.is-small { width: min(380px, 92vw); }
78
+ .bem-panel h2 { margin-bottom: 8px; }
79
+ .bem-panel .text { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
80
+ .item {
81
+ all: unset; box-sizing: border-box; display: grid; gap: 2px; padding: 13px 16px; border-radius: 14px;
82
+ background: rgb(255 255 255 / 0.05); font-weight: 600; cursor: pointer; transition: background 0.15s, box-shadow 0.15s;
83
+ }
84
+ .item small { font-weight: 500; font-size: 0.78rem; color: var(--muted); }
85
+ .item[disabled] { opacity: 0.45; cursor: default; }
86
+ .item.is-focused { background: #fff; color: #0b0d12; box-shadow: var(--ring); }
87
+ .item.is-focused small { color: #4b5563; }
88
+ .item.is-danger.is-focused { background: var(--danger); color: #1a0505; box-shadow: 0 0 0 3px var(--danger); }
89
+ .item.is-danger.is-focused small { color: #450a0a; }
90
+ .bem-panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
91
+ .bem-panel .row .item { text-align: center; }
92
+ /* A dialog sits on its own layer, above anything the screen under it positions (the
93
+ character art on the slot cards is z-index 1), on a backdrop that hides that screen. */
94
+ .bem-layer {
95
+ position: absolute; inset: 0; z-index: 10; display: grid; place-items: center;
96
+ background: rgb(4 6 12 / 0.78);
97
+ backdrop-filter: blur(10px) saturate(0.8);
98
+ -webkit-backdrop-filter: blur(10px) saturate(0.8);
99
+ }
100
+ .bem-layer h2 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.2; }
101
+ .bem-layer .bem-panel {
102
+ width: min(500px, 92vw);
103
+ background:
104
+ radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
105
+ #151821;
106
+ border-color: rgb(255 255 255 / 0.14);
107
+ box-shadow: 0 40px 120px -20px #000, 0 0 0 1px rgb(0 0 0 / 0.4);
108
+ }
109
+
110
+ .bem-hints { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
111
+ .bem-hints span { display: inline-flex; align-items: center; gap: 7px; }
112
+ .bem-hints kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: rgb(255 255 255 / 0.12); color: var(--text); font: 700 0.68rem var(--ui); }
113
+ .bem-panel .bem-hints { justify-content: flex-start; margin-top: 6px; }
114
+
115
+ .bem-toast {
116
+ position: absolute; left: 50%; bottom: calc(28px + var(--wg-safe-bottom, 0px)); transform: translateX(-50%); margin: 0;
117
+ padding: 10px 18px; border-radius: 999px; background: rgb(20 22 31 / 0.94); border: 1px solid var(--line);
118
+ font-weight: 600; font-size: 0.85rem; white-space: nowrap; animation: bem-toast 0.3s var(--ease);
119
+ }
120
+ @keyframes bem-toast { from { opacity: 0; transform: translate(-50%, 8px); } }
121
+
122
+ @media (max-width: 960px) {
123
+ .points { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 14px 6px 18px; }
124
+ .point { flex: 0 0 min(42vw, 180px); }
125
+ }
126
+ @media (prefers-reduced-motion: reduce) {
127
+ .point, .point-frame, .bem-boot img, .bem-toast { transition: none; animation: none; }
128
+ }