Skip to content

Commit d760e7d

Browse files
Organize the project structure.
1 parent a31f779 commit d760e7d

File tree

8 files changed

+7
-17
lines changed

8 files changed

+7
-17
lines changed

assets/asset-pack.json

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
11
{
22
"section1": {
33
"files": [
4-
{
5-
"url": [
6-
"assets/components/UserComponent.js",
7-
"assets/components/PushOnClick.js"
8-
],
9-
"type": "scripts",
10-
"key": "components"
11-
},
124
{
135
"url": "assets/dino.png",
14-
"type": "image",
15-
"key": "dino"
16-
},
17-
{
18-
"url": "assets/scenes/Level.js",
19-
"type": "sceneFile",
20-
"key": "Level"
6+
"key": "dino",
7+
"type": "image"
218
}
229
]
2310
},

index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
<title>My Game</title>
99

1010
<script src="lib/phaser.js"></script>
11-
<script src="main.js"></script>
11+
<script src="src/components/UserComponent.js"></script>
12+
<script src="src/components/PushOnClick.js"></script>
13+
<script src="src/scenes/Level.js"></script>
14+
<script src="src/main.js"></script>
1215

1316
<style>
1417
body {
File renamed without changes.
File renamed without changes.

main.js renamed to src/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ window.addEventListener('load', function () {
1313
});
1414

1515
game.scene.add("Boot", Boot, true);
16-
16+
game.scene.add("Level", Level);
1717
});
1818

1919
class Boot extends Phaser.Scene {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)