-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
99 lines (99 loc) · 2.88 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
<!doctype html>
<html>
<head>
<title>Delayed Casualty</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<script>~function(){var d=document,b=d.body,c=b.appendChild(d.createElement("canvas")),p,i,k
canvas=c;ctx=c.getContext("2d")
b.style.overflow="hidden";b.style.margin=0;(onresize=function(){c.width=innerWidth,c.height=innerHeight})()
animate=function a(f){f(),requestAnimationFrame(function(){a(f)})}
for(p=Object.getOwnPropertyNames(Math),i=0;k=p[i];i++){self[k]=Math[k]}TAU=PI*2}()
rand = function(a, b){
if(b == null){ b = 0; }
if(a == null){ a = 1; }
return random() * (a - b) + b;
}
choose = function(arr){
if(arguments.length > 1){
arr = arguments;
}
return arr[~~rand(arr.length)];
}
</script>
<script src="lib/coffee-script.js"></script>
<script src="animation-data.js"></script>
<script src="src/asset-loading.coffee" type="text/coffeescript"></script>
<script src="src/World.coffee" type="text/coffeescript"></script>
<script src="src/Animator.coffee" type="text/coffeescript"></script>
<script src="src/entities/Entity.coffee" type="text/coffeescript"></script>
<script src="src/entities/Ground.coffee" type="text/coffeescript"></script>
<script src="src/entities/MobileEntity.coffee" type="text/coffeescript"></script>
<script src="src/entities/Player.coffee" type="text/coffeescript"></script>
<script src="src/input/Controller.coffee" type="text/coffeescript"></script>
<script src="src/input/KeyboardController.coffee" type="text/coffeescript"></script>
<script src="src/input/GamepadController.coffee" type="text/coffeescript"></script>
<script src="src/input/CoupledController.coffee" type="text/coffeescript"></script>
<script src="src/input/AIController.coffee" type="text/coffeescript"></script>
<script src="src/main.coffee" type="text/coffeescript"></script>
<style>
.paused canvas {
filter: blur(5px);
-webkit-filter: blur(5px);
}
.paused {
display: table-block;
}
.paused::after {
content: "PAUSED";
font-family: sans-serif;
font-size: 3.5em;
text-align: center;
line-height: 100%;
pointer-events: none;
position: absolute;
left: 0;
right: 0;
top: 50%;
transform: translate(0, -50%);
color: white;
text-shadow: .09em .09em 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
opacity: 0.5;
}
.countdown,
.round-end {
position: absolute;
top: 0;
left: 0;
right: 0;
text-align: center;
font-size: 150px;
font-family: serif;
color: white;
/*-webkit-text-stroke-width: 10px;
-webkit-text-stroke-color: black;*/
text-shadow:
2px 2px 0 #000,
3px 3px 0 #000,
4px 4px 0 #000,
5px 5px 0 #000,
6px 6px 0 #000,
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
}
.countdown.now-fight {
animation: fade-out 0.3s;
opacity: 0;
}
@keyframes fade-out {
0% { opacity: 1; }
100% { opacity: 0; }
}
body {
background: #222;
}
</style>
</body>