-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
101 lines (94 loc) · 2.8 KB
/
index.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
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
92
93
94
95
96
97
98
99
100
101
<!doctype html>
<html>
<head>
<title>AMG</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="An abstracted modular game framework with integrated pixel editor and realtime asset manager and a level editor with dynamic block type definitions and a skeletal character animator and inverse kinematics and a game.">
<meta name="author" content="Isaiah Odhner">
<script async src="/kc.js"></script>
<style>html,body{height:100%;padding:0;margin:0;border:0;overflow:hidden;background:#000}
canvas {
-ms-interpolation-mode: nearest-neighbor;
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: -o-crisp-edges;
image-rendering: optimize-contrast;
}
canvas,body,html,#gui-overlay{
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
overflow: hidden;
}
.tool:hover,.color:hover{
box-shadow: 0 0 2px 1px rgba(0,0,0,0.4) inset, 0 0 1px 3px rgba(255,255,255,0.4) inset;
}
.selected{
box-shadow: 0 0 2px 1px black inset, 0 0 1px 3px white inset !important;
}
.asset, .asset *{
cursor: pointer !important;
}
.asset{
color: rgba(255,255,255,0.7) !important;
border: 1px solid rgba(255,255,255,0.00) !important;
padding: 3px;
}
.asset:hover{
color: rgba(255,255,255,0.99) !important;
border: 1px solid rgba(255,255,255,0.99) !important;
}
.asset canvas{
margin-right: 10px;
}
.asset label{
display: block;
}
.modal .content {
background: rgba(0,0,0,0.1) !important;
}
.onerror {
position: absolute;
left: 0; right: 0;
top: 0; bottom: 0;
padding: 5px;
background: rgba(255,0,0,0.5);
color: white;
}
a { /* most <a>s will probably be on a dark bg */
cursor: pointer !important;
color: #CCC;
} a:hover {
color: #DDD;
} a:active {
color: #AAA;
}
</style>
<link rel="stylesheet" type="text/css" href="gui.css">
</head>
<body>
<script>
var _$errs=document.createElement("div");
_$errs.className = "onerror";
onerror=function(err,url,line){
_$errs.innerHTML+="<a href='"+url+"'>"+url+"</a>, line "+line+"<br><p>"+err+"</p><hr>";
document.body.appendChild(_$errs);
}
</script>
<canvas id="main"/>
<script src="aa.js"></script>
<script src="am.js"></script>
<script src="pe.js"></script>
<script src="be.js"></script>
<script src="room.js"></script>
<script src="u.js"></script>
<script src="game.js"></script>
<script src="le.js"></script>
<script src="tileselector.js"></script>
<script src="gui.js"></script>
<script src="main.js"></script>
</body>
</html>