Skip to content

Commit 4074570

Browse files
committed
feat(mm2026): update main repo
1 parent 9c53372 commit 4074570

66 files changed

Lines changed: 15419 additions & 746 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Loading

public/madness/2026/close.svg

Lines changed: 1 addition & 0 deletions
Loading

public/madness/2026/discord.svg

Lines changed: 1 addition & 1 deletion
Loading

public/madness/2026/doom.html

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Play DOOM</title>
7+
<link rel="stylesheet" href="index.css" />
8+
<link rel="icon" type="image/svg+xml" href="favicon-96x96.png" />
9+
<style>
10+
:root {
11+
--canvas-width: 1200px;
12+
}
13+
14+
* {
15+
margin: 0;
16+
padding: 0;
17+
box-sizing: border-box;
18+
}
19+
20+
body {
21+
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
22+
font-family: 'Courier New', monospace;
23+
color: #fff;
24+
display: flex;
25+
flex-direction: column;
26+
justify-content: center;
27+
align-items: center;
28+
min-height: 100vh;
29+
}
30+
31+
#dosbox {
32+
width: 90%;
33+
max-width: var(--canvas-width);
34+
aspect-ratio: 1.6/1;
35+
border: 4px solid #333;
36+
border-radius: 8px;
37+
overflow: hidden;
38+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
39+
z-index: 10;
40+
}
41+
42+
#dosbox .play-button {
43+
max-width: var(--canvas-width);
44+
aspect-ratio: 1.6/1;
45+
}
46+
47+
.controls {
48+
margin-top: 20px;
49+
text-align: center;
50+
font-size: 0.9em;
51+
color: #888;
52+
max-width: var(--canvas-width);
53+
z-index: 20;
54+
}
55+
.controls h3 {
56+
color: var(--red);
57+
margin-bottom: 10px;
58+
}
59+
.controls-grid {
60+
display: grid;
61+
grid-template-columns: 1fr 1fr;
62+
gap: 10px;
63+
text-align: left;
64+
margin-top: 10px;
65+
}
66+
.control-item {
67+
background: rgba(0, 0, 0, 0.9);
68+
padding: 8px;
69+
border-radius: 4px;
70+
}
71+
72+
.key {
73+
color: var(--lightred);
74+
font-weight: bold;
75+
}
76+
77+
.sidebar {
78+
display: none !important;
79+
}
80+
81+
.header {
82+
position: static;
83+
width: 100%;
84+
z-index: 20;
85+
padding-top: 0;
86+
display: flex;
87+
justify-content: center;
88+
align-items: center;
89+
padding-bottom: 1rem;
90+
}
91+
92+
.header a {
93+
min-width: 40rem;
94+
}
95+
</style>
96+
</head>
97+
<body>
98+
<div class="header">
99+
<a href="/"><img class="logo" src="mm-logotext.svg" alt="mountain madness" /></a>
100+
</div>
101+
<div id="sky"></div>
102+
<div id="stars"></div>
103+
<div id="peak">
104+
<picture class="mountain-svg">
105+
<source srcset="mountain_sm.svg" media="(width < 1280px)" />
106+
<img src="mountain.svg" alt="mountain" />
107+
</picture>
108+
</div>
109+
<div id="dosbox"></div>
110+
<div class="controls">
111+
<h3>Controls</h3>
112+
<div class="controls-grid">
113+
<div class="control-item"><span class="key">Arrow Keys</span> - Move/Turn</div>
114+
<div class="control-item"><span class="key">S</span> - Shoot</div>
115+
<div class="control-item"><span class="key">A</span> - Strafe Left</div>
116+
<div class="control-item"><span class="key">D</span> - Strafe Right</div>
117+
<div class="control-item"><span class="key">W</span> - Use/Open Doors</div>
118+
<div class="control-item"><span class="key">1-7</span> - Select Weapon</div>
119+
<div class="control-item"><span class="key">Tab</span> - Map</div>
120+
<div class="control-item"><span class="key">ESC</span> - Menu</div>
121+
<div class="control-item"><span class="key">Enter</span> - Select Menu Item</div>
122+
</div>
123+
</div>
124+
125+
<script src="doom/js-dos.js"></script>
126+
<script>
127+
Dos(document.getElementById('dosbox'), {
128+
url: 'doom/doom.jsdos'
129+
});
130+
</script>
131+
</body>
132+
</html>
5.71 MB
Binary file not shown.

public/madness/2026/doom/emulators/emulators.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/madness/2026/doom/emulators/emulators.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
export declare const Build: {
2+
version: string;
3+
buildSeed: number;
4+
"wdosbox-x.wasm": {
5+
size: number;
6+
gzSize: number;
7+
};
8+
"wdosbox-x.js": {
9+
size: number;
10+
gzSize: number;
11+
};
12+
"wdosbox.wasm": {
13+
size: number;
14+
gzSize: number;
15+
};
16+
"wdosbox.js": {
17+
size: number;
18+
gzSize: number;
19+
};
20+
"wlibzip.wasm": {
21+
size: number;
22+
gzSize: number;
23+
};
24+
"wlibzip.js": {
25+
size: number;
26+
gzSize: number;
27+
};
28+
};
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { WasmModule } from "../../impl/modules";
2+
export interface DosArchiveSource {
3+
url: string;
4+
path: string;
5+
type?: "zip";
6+
}
7+
export default class DosBundle {
8+
dosboxConf: string;
9+
jsdosConf: {
10+
version: string;
11+
};
12+
sources: DosArchiveSource[];
13+
private libzipWasm;
14+
constructor(libzipWasm: WasmModule);
15+
autoexec(...lines: string[]): DosBundle;
16+
extract(url: string, path?: string, type?: "zip"): DosBundle;
17+
extractAll(sources: DosArchiveSource[]): DosBundle;
18+
toUint8Array(overwriteConfig?: boolean): Promise<Uint8Array>;
19+
}
20+
export declare const defaultConfig: string;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { WasmModule } from "../../../impl/modules";
2+
import { TransportLayer } from "../../../protocol/protocol";
3+
export declare function dosDirect(wasmModule: WasmModule, sessionId: string): Promise<TransportLayer>;

0 commit comments

Comments
 (0)