truthstorian
This commit is contained in:
@@ -18,16 +18,25 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#viewport,
|
||||
#minimap {
|
||||
#viewport {
|
||||
font-size: 10px;
|
||||
line-height: 10px;
|
||||
line-height: 8px;
|
||||
white-space: pre;
|
||||
border: 2px solid #0f0;
|
||||
display: inline-block;
|
||||
background-color: #000;
|
||||
padding: 10px;
|
||||
overflor: ignore;
|
||||
padding: 2px;
|
||||
border: 5px solid #666;
|
||||
font-weight: bold;
|
||||
}
|
||||
#minimap {
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
white-space: pre;
|
||||
display: inline-block;
|
||||
padding: 2px;
|
||||
border: 5px solid #666;
|
||||
color: #666;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#controls {
|
||||
@@ -39,60 +48,6 @@
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#minimap .player {
|
||||
position: relative; /* anchor */
|
||||
color: #000; /* text blends into background */
|
||||
/* background-color: red; */
|
||||
}
|
||||
#minimap .player.north::before {
|
||||
content: "↑";
|
||||
/* content: "★"; */
|
||||
position: absolute;
|
||||
inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
|
||||
display: flex; /* center it */
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: none; /* don’t block clicks */
|
||||
font-size: 1.5em; /* bigger if you want */
|
||||
color: red;
|
||||
}
|
||||
#minimap .player.south::before {
|
||||
content: "↓";
|
||||
/* content: "★"; */
|
||||
position: absolute;
|
||||
inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
|
||||
display: flex; /* center it */
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: none; /* don’t block clicks */
|
||||
font-size: 1.5em; /* bigger if you want */
|
||||
color: red;
|
||||
}
|
||||
#minimap .player.east::before {
|
||||
content: "→";
|
||||
/* content: "★"; */
|
||||
position: absolute;
|
||||
inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
|
||||
display: flex; /* center it */
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: none; /* don’t block clicks */
|
||||
font-size: 1.5em; /* bigger if you want */
|
||||
color: red;
|
||||
}
|
||||
#minimap .player.west::before {
|
||||
content: "←";
|
||||
/* content: "★"; */
|
||||
position: absolute;
|
||||
inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
|
||||
display: flex; /* center it */
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: none; /* don’t block clicks */
|
||||
font-size: 1.5em; /* bigger if you want */
|
||||
color: red;
|
||||
}
|
||||
|
||||
textarea {
|
||||
background-color: #001100;
|
||||
color: #ccc;
|
||||
@@ -124,7 +79,7 @@
|
||||
<div id="compass">orientation</div>
|
||||
|
||||
<div id="mapInput">
|
||||
<div>Load your map (# = walls, space = floor):</div>
|
||||
←→↑↓
|
||||
<br />
|
||||
<textarea id="mapText" rows="10" cols="50">
|
||||
############################################################
|
||||
@@ -133,7 +88,7 @@
|
||||
## ################# ########################
|
||||
## # # ################# # ## ########################
|
||||
## # ################# # ## ################
|
||||
## # # ################# # ## #### ####
|
||||
## # # S ################# # ## #### ####
|
||||
## # # ## # #### # # ####
|
||||
###### #################### ## #### # ####
|
||||
###### #################### # ## # # #### ####
|
||||
|
||||
Reference in New Issue
Block a user