-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMinigame.js
More file actions
34 lines (31 loc) · 1.11 KB
/
Minigame.js
File metadata and controls
34 lines (31 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Phaser from "Phaser";
import styles from "./Styles/phaser-styles.css";
import init from "./init.js";
import Sprite from "./Sprite";
import GameObject from "./GameObject";
import Overworld from "./Overworld.js";
import OverworldMap from "./OverworldMap";
const Minigame = () => {
return (
<div>
<title>Star Sailors</title>
<link href='./Styles/phaser-styles.css' type='text/css' rel='stylesheet' />
<div className='game-container'>
<canvas className='game-canvas' width='352' height='198' />
</div>
{/* Second compontent of the game -> copy data between each container */}
<div id="crafting-game-container">
<script type="module" src="./crafting/game.js"></script>
</div>
<script src="/utils.js"></script>
<script src="/DirectionInput.js"></script>
<script src="/Overworld.js"></script>
<script src="/GameObject.js"></script>
<script src="/Person.js"></script>
<script src="/Sprite.js"></script>
<script src="/OverworldMap.js"></script>
<script src="/init.js"></script>
</div>
)
}
export default Minigame;