-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpilas-canvas.html
48 lines (41 loc) · 1.01 KB
/
pilas-canvas.html
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
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
* {
padding: 0;
margin: 0;
}
html,
body {
height: 100%;
}
body {
overflow: hidden;
}
#game {
width: 100%;
height: 100%;
background-color: #424242;
text-align: center;
}
canvas {
width: auto;
max-height: 100%;
max-width: 100%;
object-fit: contain;
margin-left: 0 !important; /* Se agrega para que phaser no mueva el canvas a la derecha cuando se maximiza */
}
</style>
<script integrity="" src="phaser.js"></script>
<script integrity="" src="nineslice.js"></script>
<script integrity="" src="pilas-engine.js"></script>
</head>
<body>
<div tabindex="0" id="game"></div>
</body>
</html>