Skip to content

Commit 503f9f2

Browse files
committed
Add game stats displays
1 parent 5f808f8 commit 503f9f2

File tree

6 files changed

+356
-3
lines changed

6 files changed

+356
-3
lines changed

css/main.css

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,33 @@
44
* June 4, 2021
55
*/
66

7+
/*----- Font -----------------------------------------------------------------*/
8+
@font-face {
9+
font-family: "Una Script";
10+
src: url("/assets/fonts/UnaScript-Regular.eot");
11+
src: url("/assets/fonts/UnaScript-Regular.eot?#iefix")
12+
format("embedded-opentype"),
13+
url("/assets/fonts/UnaScript-Regular.woff2") format("woff2"),
14+
url("/assets/fonts/UnaScript-Regular.woff") format("woff"),
15+
url("/assets/fonts/UnaScript-Regular.svg#Una Script Regular") format("svg");
16+
font-weight: 400;
17+
font-style: normal;
18+
font-stretch: normal;
19+
unicode-range: U+0020-0457;
20+
}
21+
722
/*---- Override Agent Style --------------------------------------------------*/
23+
a {
24+
color: #333 !important;
25+
}
826
body {
927
margin: 0;
1028
}
29+
html {
30+
color: #333;
31+
font-family: 'Una Script', sans-serif;
32+
font-size: 20pt;
33+
}
1134

1235
/*----- Game View ------------------------------------------------------------*/
1336
gravity {
@@ -17,14 +40,42 @@ gravity {
1740
position: absolute;
1841
top: 0;
1942
width: 100%;
43+
z-index: 100;
2044
}
2145
gravity > viewarea {
22-
background-color: #999;
23-
border-radius: 10px;
46+
border-radius: 5px;
47+
border-style: solid;
48+
border-width: 3px;
2449
position: absolute;
2550
}
2651
gravity > celestial {
2752
background-color: #333;
2853
border-radius: 50%;
2954
position: absolute;
3055
}
56+
57+
/*----- Game Stats -----------------------------------------------------------*/
58+
div#lives, div#message {
59+
position: absolute;
60+
user-select: none;
61+
-webkit-user-select: none;
62+
-moz-user-select: none;
63+
z-index: 200;
64+
}
65+
div#lives {
66+
bottom: 20px;
67+
left: 50px;
68+
}
69+
div#message {
70+
bottom: 15vh;
71+
left: 0;
72+
text-align: center;
73+
width: 100%;
74+
}
75+
div#repo {
76+
bottom: 20px;
77+
position: absolute;
78+
right: 50px;
79+
text-align: right;
80+
z-index: 200;
81+
}

fonts/UnaScript-Regular.eot

18.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)