Skip to content

Commit fccf212

Browse files
author
Orwa Diraneyya
committed
Added max-size and linked native executable
1 parent 2c14942 commit fccf212

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

index.html

+13-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,26 @@
99
#canvas {
1010
image-rendering: pixelated;
1111
width: 100%;
12+
max-width: 512px;
1213
aspect-ratio: 1 / 1;
1314
}
1415
</style>
1516
</head>
1617
<body>
17-
<h1>SDL2 WASM Game Loader</h1>
18+
<h1>SDL2 Game Starter</h1>
19+
20+
21+
<h2>Web version</h2>
1822
<canvas id="canvas"></canvas>
19-
<script type="module">
20-
import initModule from './index.mjs';
2123

24+
<h2>Native versions</h2>
25+
<ul>
26+
<li>Mac OS X (Apple Silicone): <a href="./index.app" target="_blank">click here</a></li>
27+
</ul>
28+
29+
<script type="module">
30+
import initModule from './index.mjs';
31+
2232
var Module = await initModule({
2333
canvas: document.getElementById('canvas')
2434
});

0 commit comments

Comments
 (0)