-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgame.html
More file actions
91 lines (83 loc) · 2.68 KB
/
game.html
File metadata and controls
91 lines (83 loc) · 2.68 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="icon" href="favicon.png" type="image/png" />
<title>DragonRuby</title>
<style>
body {
font-family: arial;
margin: 0;
padding: none;
background: #000000;
}
.emscripten { padding-right: 0; margin-left: auto; margin-right: auto; display: block; }
div.emscripten { text-align: center; }
div.emscripten_border { border: 1px solid black; }
/* the canvas *must not* have any border or padding, or mouse coords will be wrong */
canvas.emscripten { border: 0px none; background-color: black; }
#emscripten_logo {
display: inline-block;
margin: 0;
}
@-webkit-keyframes rotation {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
@-moz-keyframes rotation {
from {-moz-transform: rotate(0deg);}
to {-moz-transform: rotate(360deg);}
}
@-o-keyframes rotation {
from {-o-transform: rotate(0deg);}
to {-o-transform: rotate(360deg);}
}
@keyframes rotation {
from {transform: rotate(0deg);}
to {transform: rotate(360deg);}
}
#status {
display: inline-block;
font-weight: bold;
color: rgb(120, 120, 120);
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#progress {
height: 20px;
width: 30px;
}
#output {
width: 100%;
height: 200px;
margin: 0 auto;
margin-top: 10px;
border-left: 0px;
border-right: 0px;
padding-left: 0px;
padding-right: 0px;
display: none;
background-color: black;
color: white;
font-family: 'Lucida Console', Monaco, monospace;
outline: none;
}
</style>
<link rel="stylesheet" href="game.css?version=7fb4a4a9-3d26-4299-9809-6039f6c5b89e" />
<title>DragonRuby Game Toolkit Tutorial</title>
</head>
<body id='toplevel'>
<div class="emscripten_border" id='borderdiv'>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" tabindex=-1></canvas>
</div>
<textarea style="display: none;" id="output" rows="8"></textarea>
<div class="emscripten" id="status"></div>
<div class="emscripten" id='progressdiv'>
<progress value="0" max="100" id="progress"></progress>
</div>
<script type='text/javascript' src='dragonruby-html5-loader.js?version=7fb4a4a9-3d26-4299-9809-6039f6c5b89e'></script>
</body>
</html>