From 0681a9bc9541446c4d7324f31377a2933fa3fbc4 Mon Sep 17 00:00:00 2001 From: Ben Burlingham Date: Fri, 22 May 2020 23:35:29 -0700 Subject: [PATCH] Dragging robots. --- ricochet.css | 64 +++++++++++--------- ricochet.html | 163 +++++++++++++++++++++++++++++++------------------- server.js | 4 +- 3 files changed, 141 insertions(+), 90 deletions(-) diff --git a/ricochet.css b/ricochet.css index 70f7cf7..423caaa 100644 --- a/ricochet.css +++ b/ricochet.css @@ -43,6 +43,24 @@ } +#controls-guesses { + background: salmon; +} + +.controls-guess { + background: yellow; + float: left; + font-size: 12px; + height: 30px; + line-height: 30px; + text-align: center; + width: 30px; +} + +.controls-guess:hover { + background: orange; +} + .board-container { background: conic-gradient(lime 0 25%, yellow 25% 50%, red 50% 75%, blue 75% 100%); bottom: 0; @@ -52,14 +70,23 @@ top: 0; } -#board { +#board-squares { border-color: #aaa; border-style: solid; border-width: 1px 0 0 1px; - margin: 0 auto; position: relative; } +.board-square{ + background: #ddd; + border-style: solid; + border-color: #aaa; + border-width: 0 1px 1px 0; + float: left; + height: 40px; + width: 40px; +} + .board-wall-x { background: #222; height: 8px; @@ -77,35 +104,18 @@ } .board-robot { - border-radius: 18px; + /*border-radius: 20px;*/ + border: 2px solid transparent; height: 36px; margin: 2px; position: absolute; width: 36px; } -.square{ - background: #ddd; - border-style: solid; - border-color: #aaa; - border-width: 0 1px 1px 0; - float: left; - height: 40px; - width: 40px; -} - -.moves { - background: salmon; -} - -.move-count { - background: yellow; - border-radius: 8px; - float: left; - font-size: 12px; - height: 16px; - line-height: 16px; - margin: 4px; - text-align: center; - width: 16px; +.board-robot-shadow { + background: red; + height: 36px; + opacity: 0.75; + position: absolute; + width: 36px; } \ No newline at end of file diff --git a/ricochet.html b/ricochet.html index cd0e90a..fcbbacf 100644 --- a/ricochet.html +++ b/ricochet.html @@ -27,44 +27,13 @@ -
-
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
+
+
Guess
-
+