-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (32 loc) · 1.18 KB
/
index.html
File metadata and controls
36 lines (32 loc) · 1.18 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
35
36
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Moteur Iso XML</title>
<style>
body, html { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #111; }
#game-container { position: relative; width: 100%; height: 100%; }
#game-ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
/* Styles pour les éléments générés par le moteur */
.game-btn {
background: #444; color: #fff; padding: 10px 20px; border: 2px solid #fff;
cursor: pointer; pointer-events: auto; font-family: sans-serif;
}
.game-btn:hover { background: #666; }
</style>
<link rel="stylesheet" href="isoquest.css">
</head>
<body>
<div id="game-container">
<div id="game-ui-layer"></div>
</div>
<script src="isoquest.lib.js"></script>
<script>
// Lancement du jeu
window.onload = () => {
// On suppose que le XML s'appelle 'game.xml' et est dans le même dossier
const game = new IsoEngine('game-container', 'game.xml',true);
};
</script>
</body>
</html>