Skip to content

Commit d10f978

Browse files
committed
Include dist folder and update index.html for direct serving
- Remove dist/ from .gitignore so built files are committed - Update root index.html to load from dist/assets/ - This allows the game to be served directly from GitHub without needing a build step or GitHub Pages configuration The game can now be played by simply opening index.html or viewing the repository on GitHub.
1 parent 22e607a commit d10f978

6 files changed

Lines changed: 6409 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ node_modules/
1111
# Dependencies
1212
node_modules/
1313

14-
# Build output
15-
dist/
14+
# Local files
1615
*.local
1716

1817
# Editor directories and files

dist/assets/index-DmJ-27C-.js

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

dist/assets/index-DmJ-27C-.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.

dist/assets/phaser-0RJB29YE.js

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

dist/assets/phaser-0RJB29YE.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.

dist/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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>SledHEAD - Sledding Adventure</title>
7+
<style>
8+
* {
9+
margin: 0;
10+
padding: 0;
11+
box-sizing: border-box;
12+
}
13+
14+
body {
15+
background: #1a1a2e;
16+
display: flex;
17+
justify-content: center;
18+
align-items: center;
19+
min-height: 100vh;
20+
font-family: 'Courier New', monospace;
21+
overflow: hidden;
22+
}
23+
24+
#game-container {
25+
border: 3px solid #16213e;
26+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
27+
}
28+
29+
canvas {
30+
display: block;
31+
}
32+
</style>
33+
<script type="module" crossorigin src="./assets/index-DmJ-27C-.js"></script>
34+
<link rel="modulepreload" crossorigin href="./assets/phaser-0RJB29YE.js">
35+
</head>
36+
<body>
37+
<div id="game-container"></div>
38+
</body>
39+
</html>

0 commit comments

Comments
 (0)