diff --git a/web/css/main.css b/web/css/main.css index bac2873f..42a9237d 100644 --- a/web/css/main.css +++ b/web/css/main.css @@ -8,18 +8,29 @@ body { display: block; width: 556px; height: 278px; - background-color: #edf1f0; - -moz-border-radius: 30px; - -webkit-border-radius: 30px; - border-radius: 30px; top: 50%; left: 50%; position: fixed; transform: translate(-50%, -50%); - -webkit-box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1); - -moz-box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1); - box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1); + /*-webkit-box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1);*/ + /*-moz-box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1);*/ + /*box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1);*/ + + background-image: url('/static/img/ui/bg.png'); + background-repeat: no-repeat; + background-size: 100% 100%; +} + +#ui-emulator-bg { + width: 100%; + height: 100%; + display: block; + position: absolute; + + background-image: url('/static/img/ui/bg.png'); + background-repeat: no-repeat; + background-size: 100% 100%; } #help-overlay { @@ -56,36 +67,31 @@ body { height: 100px; position: absolute; top: 155px; - left: 30px; - background-color: #eaebeb; - -moz-border-radius: 50%; - -webkit-border-radius: 50%; - border-radius: 50%; - -webkit-box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1); - -moz-box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1); - box-shadow: inset 0px 0px 2px 2px rgba(219, 222, 222, 1); + left: 22px; + background-size: contain; + background-image: url('/static/img/ui/bt MOVE.png'); } +#guide-txt { + color: #bababa; + font-size: 8px; + top: 263px; + left: 30px; + width: 1000px; + position: absolute; +} #circle-pad { display: block; width: 70px; height: 70px; position: absolute; - /* transform: translate(-50%, -50%); - -moz-transform: translate(-50%, -50%); - -webkit-transform: translate(-50%, -50%); */ + background-size: contain; top: 15px; left: 15px; - background-color: #00f; - -moz-border-radius: 50%; - -webkit-border-radius: 50%; - border-radius: 50%; - -webkit-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - -moz-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); opacity: 0.5; + background-image: url('/static/img/ui/bong.png'); } @@ -94,15 +100,21 @@ body { height: 20px; display: block; position: absolute; - background-color: #e4e5e5; - border: 2px solid rgba(219, 222, 222, 1); } +#player-index { + border-bottom: 0px; + + background-repeat: no-repeat; + background-size: contain; + background-image: url('/static/img/ui/bt PlayerIndex.png'); +} #btn-up { top: 18px; left: 50%; border-bottom: 0px; + border-radius: 3px; transform: translateX(-50%); -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); @@ -112,6 +124,7 @@ body { bottom: 18px; left: 50%; border-top: 0px; + border-radius: 3px; transform: translateX(-50%); -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); @@ -122,6 +135,7 @@ body { left: 18px; top: 50%; border-right: 0px; + border-radius: 3px; transform: translateY(-50%); -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); @@ -131,6 +145,7 @@ body { right: 18px; top: 50%; border-left: 0px; + border-radius: 3px; transform: translateY(-50%); -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); @@ -150,10 +165,10 @@ body { -moz-border-radius: 5px 5px 5px 5px; -webkit-border-radius: 5px 5px 5px 5px; border-radius: 5px 5px 5px 5px; - + -webkit-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); -moz-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); + box-shadow: 0px 0px 2px 2px rgba(25, 25, 25, 1); } #color-button-holder { @@ -171,13 +186,9 @@ body { text-align: center; width: 40px; height: 30px; + background-size: contain; position: absolute; - -moz-border-radius: 50%; - -webkit-border-radius: 50%; - border-radius: 50%; - -webkit-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - -moz-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); + background-repeat: no-repeat; } @@ -188,68 +199,63 @@ body { width: 100px; height: 25px; position: absolute; - -moz-border-radius: 25px; - -webkit-border-radius: 25px; - border-radius: 25px; - -webkit-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - -moz-box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); - box-shadow: 0px 0px 2px 2px rgba(219, 222, 222, 1); } #btn-help { padding-top: 0px; - width: 40px; - height: 20px; - font-size: 15px; + width: 28px; + height: 28px; top: 10px; - left: 15px; + left: 23px; - background-color: lightskyblue; + background-image: url('/static/img/ui/Help.png'); } #btn-load { top: 20px; left: 435px; - background-color: #f5a54b; + + background-image: url('/static/img/ui/bt LOAD.png'); } #btn-save { top: 60px; left: 435px; - background-color: #b844ee; + + background-image: url('/static/img/ui/bt SAVE.png'); } #btn-join { - background-color: #52f367; top: 70px; - left: 20px; - border-radius: 25px 0 0 25px; - width: 55px; + left: 22px; + height: 25px; + + background-image: url('/static/img/ui/bt SHARE.png'); } #btn-quit { - background-color: #5947f5; top: 70px; left: 75px; - border-radius: 0px 25px 25px 0px; - width: 55px; + height: 25px; + + background-image: url('/static/img/ui/bt QUIT.png'); } #btn-select { - background-color: #F7EDE3; top: 100px; - left: 425px; - border-radius: 25px 0 0 25px; - width: 55px; + left: 435px; + height: 25px; + + background-image: url('/static/img/ui/bt SELECT.png'); } #btn-start { - background-color: #F7EDE3; top: 100px; - left: 490px; - border-radius: 0px 25px 25px 0px; - width: 55px; + left: 489px; + width: 60px; + + background-image: url('/static/img/ui/bt START.png'); } #btn-a { @@ -258,7 +264,8 @@ body { transform: translateX(-50%); -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); - background-color: #ea6e4a; + + background-image: url('/static/img/ui/bt A.png'); } @@ -268,7 +275,8 @@ body { transform: translateY(-50%); -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); - background-color: #d4b95e; + + background-image: url('/static/img/ui/bt B.png'); } #btn-x { @@ -277,7 +285,8 @@ body { transform: translateX(-50%); -webkit-transform: translateX(-50%); -moz-transform: translateX(-50%); - background-color: #6fa8eb; + + background-image: url('/static/img/ui/bt X.png'); } @@ -287,7 +296,8 @@ body { transform: translateY(-50%); -webkit-transform: translateY(-50%); -moz-transform: translateY(-50%); - background-color: #43be85; + + background-image: url('/static/img/ui/bt Y.png'); } @@ -300,40 +310,6 @@ body { left: 460px; } -#light-1 { - display: block; - width: 5px; - height: 10px; - background-color: #009BEB; - position: absolute; - top: 0; - left: 0; -} - -#light-2 { - display: block; - width: 5px; - height: 10px; - background-color: #7a7e7d; - position: absolute; - top: 0; - left: 20px; -} - -#light-3 { - display: block; - width: 5px; - height: 10px; - background-color: #7a7e7d; - position: absolute; - top: 0; - left: 40px; - animation: blink 1.5s cubic-bezier(1.0, 0, 0, 1.0) infinite; - -webkit-animation: blink 1.5s cubic-bezier(1.0, 0, 0, 1.0) infinite; - -moz-animation: blink 1.5s cubic-bezier(1.0, 0, 0, 1.0) infinite; -} - - @-webkit-keyframes blink { 0% { background: #7a7e7d; @@ -375,18 +351,33 @@ body { #room-txt { position: absolute; - width: 110px; - top: 40px; - left: 25px; - padding-left: 2px; - -moz-border-radius: 8px; - -webkit-border-radius: 8px; - border-radius: 8px; + width: 98px; + top: 45px; + left: 23px; + color: #bababa; + padding-left: 0px; + -moz-border-radius: 6px; + -webkit-border-radius: 6px; + border-radius: 6px; + + outline: none; + border-top-style: hidden; + border-right-style: hidden; + border-left-style: hidden; + border-bottom-style: hidden; + + background-image: url('/static/img/ui/FrameTEXT.png'); + background-size: cover; } .pressed { - background-color: #333 !important; + filter: brightness(50%); +} + +.dpad-pressed { + background-color: #333 !important; + opacity: 0.75; } #bottom-screen { @@ -540,6 +531,7 @@ body { padding-top: 10px; text-align: center; + color: #bababa; position: absolute; top: 90px; left: 20px; @@ -552,12 +544,15 @@ body { appearance: none; width: 100%; /* Full-width */ height: 25px; /* Specified height */ - background: #d3d3d3; /* Grey background */ outline: none; /* Remove outline */ - opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */ + /*opacity: 0.7; [> Set transparency (for mouse-over effects on hover) <]*/ -webkit-transition: .2s; /* 0.2 seconds transition on hover */ transition: opacity .2s; - border-radius: 8px; + + background-color: transparent; + background-repeat: no-repeat; + background-size: contain; + background-image: url('/static/img/ui/FramePlayerIndex.png'); } /* Mouse-over effects */ @@ -571,17 +566,22 @@ body { appearance: none; width: 25px; /* Set a specific slider handle width */ height: 25px; /* Slider handle height */ - background: #4CAF50; /* Green background */ cursor: pointer; /* Cursor on hover */ - border-radius: 8px; + + background-repeat: no-repeat; + background-size: contain; + background-image: url('/static/img/ui/bt PlayerIndex.png'); } .slider::-moz-range-thumb { width: 25px; /* Set a specific slider handle width */ height: 25px; /* Slider handle height */ - background: #4CAF50; /* Green background */ cursor: pointer; /* Cursor on hover */ border-radius: 8px; + + background-repeat: no-repeat; + background-size: contain; + background-image: url('/static/img/ui/bt PlayerIndex.png'); } * { diff --git a/web/game.html b/web/game.html index 89b2c0d5..85c1cd35 100644 --- a/web/game.html +++ b/web/game.html @@ -7,11 +7,11 @@ - + - + @@ -20,6 +20,8 @@
@@ -92,22 +88,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/web/img/darkui/Help.png b/web/img/darkui/Help.png
new file mode 100644
index 00000000..e35f1ec5
Binary files /dev/null and b/web/img/darkui/Help.png differ
diff --git a/web/img/darkui/PLAYER INDEX.png b/web/img/darkui/PLAYER INDEX.png
new file mode 100644
index 00000000..5eb7c172
Binary files /dev/null and b/web/img/darkui/PLAYER INDEX.png differ
diff --git a/web/img/darkui/Pgsdgddgdsgd.png b/web/img/darkui/Pgsdgddgdsgd.png
new file mode 100644
index 00000000..9b31829a
Binary files /dev/null and b/web/img/darkui/Pgsdgddgdsgd.png differ
diff --git a/web/img/darkui/Ui4.jpg b/web/img/darkui/Ui4.jpg
new file mode 100644
index 00000000..9efa4b56
Binary files /dev/null and b/web/img/darkui/Ui4.jpg differ
diff --git a/web/img/darkui/bg.png b/web/img/darkui/bg.png
new file mode 100644
index 00000000..60cd0b6b
Binary files /dev/null and b/web/img/darkui/bg.png differ
diff --git a/web/img/darkui/bong copy.png b/web/img/darkui/bong copy.png
new file mode 100644
index 00000000..ff6033f7
Binary files /dev/null and b/web/img/darkui/bong copy.png differ
diff --git a/web/img/darkui/bong.png b/web/img/darkui/bong.png
new file mode 100644
index 00000000..2c0ddfd9
Binary files /dev/null and b/web/img/darkui/bong.png differ
diff --git a/web/img/darkui/bt A copy.png b/web/img/darkui/bt A copy.png
new file mode 100644
index 00000000..0ae87f62
Binary files /dev/null and b/web/img/darkui/bt A copy.png differ
diff --git a/web/img/darkui/bt A.png b/web/img/darkui/bt A.png
new file mode 100644
index 00000000..dcbb9654
Binary files /dev/null and b/web/img/darkui/bt A.png differ
diff --git a/web/img/darkui/bt B copy.png b/web/img/darkui/bt B copy.png
new file mode 100644
index 00000000..9fce39ae
Binary files /dev/null and b/web/img/darkui/bt B copy.png differ
diff --git a/web/img/darkui/bt B.png b/web/img/darkui/bt B.png
new file mode 100644
index 00000000..c0e89596
Binary files /dev/null and b/web/img/darkui/bt B.png differ
diff --git a/web/img/darkui/bt LOAD copy.png b/web/img/darkui/bt LOAD copy.png
new file mode 100644
index 00000000..1c53cf3b
Binary files /dev/null and b/web/img/darkui/bt LOAD copy.png differ
diff --git a/web/img/darkui/bt LOAD.png b/web/img/darkui/bt LOAD.png
new file mode 100644
index 00000000..dfcda0dd
Binary files /dev/null and b/web/img/darkui/bt LOAD.png differ
diff --git a/web/img/darkui/bt MOVE copy.png b/web/img/darkui/bt MOVE copy.png
new file mode 100644
index 00000000..6fd19a03
Binary files /dev/null and b/web/img/darkui/bt MOVE copy.png differ
diff --git a/web/img/darkui/bt MOVE.png b/web/img/darkui/bt MOVE.png
new file mode 100644
index 00000000..5fe3976b
Binary files /dev/null and b/web/img/darkui/bt MOVE.png differ
diff --git a/web/img/darkui/bt PlayIndex copy.png b/web/img/darkui/bt PlayIndex copy.png
new file mode 100644
index 00000000..c11c3414
Binary files /dev/null and b/web/img/darkui/bt PlayIndex copy.png differ
diff --git a/web/img/darkui/bt PlayIndex.png b/web/img/darkui/bt PlayIndex.png
new file mode 100644
index 00000000..deb2ce72
Binary files /dev/null and b/web/img/darkui/bt PlayIndex.png differ
diff --git a/web/img/darkui/bt QUIT copy.png b/web/img/darkui/bt QUIT copy.png
new file mode 100644
index 00000000..59814776
Binary files /dev/null and b/web/img/darkui/bt QUIT copy.png differ
diff --git a/web/img/darkui/bt QUIT.png b/web/img/darkui/bt QUIT.png
new file mode 100644
index 00000000..3e9cfbde
Binary files /dev/null and b/web/img/darkui/bt QUIT.png differ
diff --git a/web/img/darkui/bt SAVE copy.png b/web/img/darkui/bt SAVE copy.png
new file mode 100644
index 00000000..79d8f97e
Binary files /dev/null and b/web/img/darkui/bt SAVE copy.png differ
diff --git a/web/img/darkui/bt SAVE.png b/web/img/darkui/bt SAVE.png
new file mode 100644
index 00000000..d33dd024
Binary files /dev/null and b/web/img/darkui/bt SAVE.png differ
diff --git a/web/img/darkui/bt SELECT copy.png b/web/img/darkui/bt SELECT copy.png
new file mode 100644
index 00000000..84156837
Binary files /dev/null and b/web/img/darkui/bt SELECT copy.png differ
diff --git a/web/img/darkui/bt SELECT.png b/web/img/darkui/bt SELECT.png
new file mode 100644
index 00000000..bb7a9eea
Binary files /dev/null and b/web/img/darkui/bt SELECT.png differ
diff --git a/web/img/darkui/bt SHARE copy.png b/web/img/darkui/bt SHARE copy.png
new file mode 100644
index 00000000..2cb9e9db
Binary files /dev/null and b/web/img/darkui/bt SHARE copy.png differ
diff --git a/web/img/darkui/bt SHARE.png b/web/img/darkui/bt SHARE.png
new file mode 100644
index 00000000..6a9039c2
Binary files /dev/null and b/web/img/darkui/bt SHARE.png differ
diff --git a/web/img/darkui/bt START copy.png b/web/img/darkui/bt START copy.png
new file mode 100644
index 00000000..67dfa3f9
Binary files /dev/null and b/web/img/darkui/bt START copy.png differ
diff --git a/web/img/darkui/bt START.png b/web/img/darkui/bt START.png
new file mode 100644
index 00000000..1c275caa
Binary files /dev/null and b/web/img/darkui/bt START.png differ
diff --git a/web/img/darkui/bt X copy.png b/web/img/darkui/bt X copy.png
new file mode 100644
index 00000000..6b72f696
Binary files /dev/null and b/web/img/darkui/bt X copy.png differ
diff --git a/web/img/darkui/bt X.png b/web/img/darkui/bt X.png
new file mode 100644
index 00000000..297d33f8
Binary files /dev/null and b/web/img/darkui/bt X.png differ
diff --git a/web/img/darkui/bt Y copy.png b/web/img/darkui/bt Y copy.png
new file mode 100644
index 00000000..662f69b3
Binary files /dev/null and b/web/img/darkui/bt Y copy.png differ
diff --git a/web/img/darkui/bt Y.png b/web/img/darkui/bt Y.png
new file mode 100644
index 00000000..12b2e6ca
Binary files /dev/null and b/web/img/darkui/bt Y.png differ
diff --git a/web/img/darkui/frame.png b/web/img/darkui/frame.png
new file mode 100644
index 00000000..e246e6d2
Binary files /dev/null and b/web/img/darkui/frame.png differ
diff --git a/web/img/darkui/framePlayIndex.png b/web/img/darkui/framePlayIndex.png
new file mode 100644
index 00000000..6474829f
Binary files /dev/null and b/web/img/darkui/framePlayIndex.png differ
diff --git a/web/img/darkui/frameTEXT.png b/web/img/darkui/frameTEXT.png
new file mode 100644
index 00000000..a7b5adbd
Binary files /dev/null and b/web/img/darkui/frameTEXT.png differ
diff --git a/web/img/darkui/hept copy.png b/web/img/darkui/hept copy.png
new file mode 100644
index 00000000..0a4e99a3
Binary files /dev/null and b/web/img/darkui/hept copy.png differ
diff --git a/web/img/ui/FramePlayerIndex.png b/web/img/ui/FramePlayerIndex.png
new file mode 100644
index 00000000..9b3d7049
Binary files /dev/null and b/web/img/ui/FramePlayerIndex.png differ
diff --git a/web/img/ui/FrameTEXT.png b/web/img/ui/FrameTEXT.png
new file mode 100644
index 00000000..245ce884
Binary files /dev/null and b/web/img/ui/FrameTEXT.png differ
diff --git a/web/img/ui/Help-2.png b/web/img/ui/Help-2.png
new file mode 100644
index 00000000..91bb2e22
Binary files /dev/null and b/web/img/ui/Help-2.png differ
diff --git a/web/img/ui/Help.png b/web/img/ui/Help.png
new file mode 100644
index 00000000..17802d07
Binary files /dev/null and b/web/img/ui/Help.png differ
diff --git a/web/img/ui/PLAYER INDEX.png b/web/img/ui/PLAYER INDEX.png
new file mode 100644
index 00000000..cd1a73e0
Binary files /dev/null and b/web/img/ui/PLAYER INDEX.png differ
diff --git a/web/img/ui/Pgsdgddgdsgd.png b/web/img/ui/Pgsdgddgdsgd.png
new file mode 100644
index 00000000..47f5ef6e
Binary files /dev/null and b/web/img/ui/Pgsdgddgdsgd.png differ
diff --git a/web/img/ui/Ui.jpg b/web/img/ui/Ui.jpg
new file mode 100644
index 00000000..6c8e009f
Binary files /dev/null and b/web/img/ui/Ui.jpg differ
diff --git a/web/img/ui/bg.png b/web/img/ui/bg.png
new file mode 100644
index 00000000..7dd971a1
Binary files /dev/null and b/web/img/ui/bg.png differ
diff --git a/web/img/ui/bong-2.png b/web/img/ui/bong-2.png
new file mode 100644
index 00000000..76e2ca46
Binary files /dev/null and b/web/img/ui/bong-2.png differ
diff --git a/web/img/ui/bong.png b/web/img/ui/bong.png
new file mode 100644
index 00000000..b68482a8
Binary files /dev/null and b/web/img/ui/bong.png differ
diff --git a/web/img/ui/bt A-2.png b/web/img/ui/bt A-2.png
new file mode 100644
index 00000000..abac07a4
Binary files /dev/null and b/web/img/ui/bt A-2.png differ
diff --git a/web/img/ui/bt A.png b/web/img/ui/bt A.png
new file mode 100644
index 00000000..d776e14b
Binary files /dev/null and b/web/img/ui/bt A.png differ
diff --git a/web/img/ui/bt B-2.png b/web/img/ui/bt B-2.png
new file mode 100644
index 00000000..5658f7a3
Binary files /dev/null and b/web/img/ui/bt B-2.png differ
diff --git a/web/img/ui/bt B.png b/web/img/ui/bt B.png
new file mode 100644
index 00000000..83aa4aeb
Binary files /dev/null and b/web/img/ui/bt B.png differ
diff --git a/web/img/ui/bt LOAD-2.png b/web/img/ui/bt LOAD-2.png
new file mode 100644
index 00000000..7df2c792
Binary files /dev/null and b/web/img/ui/bt LOAD-2.png differ
diff --git a/web/img/ui/bt LOAD.png b/web/img/ui/bt LOAD.png
new file mode 100644
index 00000000..01027262
Binary files /dev/null and b/web/img/ui/bt LOAD.png differ
diff --git a/web/img/ui/bt MOVE-2.png b/web/img/ui/bt MOVE-2.png
new file mode 100644
index 00000000..c586312a
Binary files /dev/null and b/web/img/ui/bt MOVE-2.png differ
diff --git a/web/img/ui/bt MOVE.png b/web/img/ui/bt MOVE.png
new file mode 100644
index 00000000..ec98a877
Binary files /dev/null and b/web/img/ui/bt MOVE.png differ
diff --git a/web/img/ui/bt PlayerIndex-2.png b/web/img/ui/bt PlayerIndex-2.png
new file mode 100644
index 00000000..2a008532
Binary files /dev/null and b/web/img/ui/bt PlayerIndex-2.png differ
diff --git a/web/img/ui/bt PlayerIndex.png b/web/img/ui/bt PlayerIndex.png
new file mode 100644
index 00000000..15f3993c
Binary files /dev/null and b/web/img/ui/bt PlayerIndex.png differ
diff --git a/web/img/ui/bt QUIT-2.png b/web/img/ui/bt QUIT-2.png
new file mode 100644
index 00000000..4d259492
Binary files /dev/null and b/web/img/ui/bt QUIT-2.png differ
diff --git a/web/img/ui/bt QUIT.png b/web/img/ui/bt QUIT.png
new file mode 100644
index 00000000..02054fef
Binary files /dev/null and b/web/img/ui/bt QUIT.png differ
diff --git a/web/img/ui/bt SAVE-2.png b/web/img/ui/bt SAVE-2.png
new file mode 100644
index 00000000..29c236aa
Binary files /dev/null and b/web/img/ui/bt SAVE-2.png differ
diff --git a/web/img/ui/bt SAVE.png b/web/img/ui/bt SAVE.png
new file mode 100644
index 00000000..05e8aa9d
Binary files /dev/null and b/web/img/ui/bt SAVE.png differ
diff --git a/web/img/ui/bt SELECT-2.png b/web/img/ui/bt SELECT-2.png
new file mode 100644
index 00000000..dcf2e395
Binary files /dev/null and b/web/img/ui/bt SELECT-2.png differ
diff --git a/web/img/ui/bt SELECT.png b/web/img/ui/bt SELECT.png
new file mode 100644
index 00000000..e355c134
Binary files /dev/null and b/web/img/ui/bt SELECT.png differ
diff --git a/web/img/ui/bt SHARE-2.png b/web/img/ui/bt SHARE-2.png
new file mode 100644
index 00000000..6d2bb8b4
Binary files /dev/null and b/web/img/ui/bt SHARE-2.png differ
diff --git a/web/img/ui/bt SHARE.png b/web/img/ui/bt SHARE.png
new file mode 100644
index 00000000..590267f6
Binary files /dev/null and b/web/img/ui/bt SHARE.png differ
diff --git a/web/img/ui/bt START-2.png b/web/img/ui/bt START-2.png
new file mode 100644
index 00000000..6b1664a0
Binary files /dev/null and b/web/img/ui/bt START-2.png differ
diff --git a/web/img/ui/bt START.png b/web/img/ui/bt START.png
new file mode 100644
index 00000000..f3738a64
Binary files /dev/null and b/web/img/ui/bt START.png differ
diff --git a/web/img/ui/bt X-2.png b/web/img/ui/bt X-2.png
new file mode 100644
index 00000000..1d881264
Binary files /dev/null and b/web/img/ui/bt X-2.png differ
diff --git a/web/img/ui/bt X.png b/web/img/ui/bt X.png
new file mode 100644
index 00000000..9796bdca
Binary files /dev/null and b/web/img/ui/bt X.png differ
diff --git a/web/img/ui/bt Y-2.png b/web/img/ui/bt Y-2.png
new file mode 100644
index 00000000..74557053
Binary files /dev/null and b/web/img/ui/bt Y-2.png differ
diff --git a/web/img/ui/bt Y.png b/web/img/ui/bt Y.png
new file mode 100644
index 00000000..f28c56e7
Binary files /dev/null and b/web/img/ui/bt Y.png differ
diff --git a/web/img/ui/frame.png b/web/img/ui/frame.png
new file mode 100644
index 00000000..c96a145f
Binary files /dev/null and b/web/img/ui/frame.png differ
diff --git a/web/js/controller.js b/web/js/controller.js
index 08067a3d..7e9a5b67 100644
--- a/web/js/controller.js
+++ b/web/js/controller.js
@@ -30,7 +30,7 @@
};
const onGameRoomAvailable = () => {
- keyButtons[KEY.JOIN].html('share');
+ //keyButtons[KEY.JOIN].html('share');
popup('Now you can share you game!');
};
@@ -98,7 +98,7 @@
gameList.hide();
keyButtons[KEY.SAVE].hide();
keyButtons[KEY.LOAD].hide();
- keyButtons[KEY.JOIN].html('play');
+ //keyButtons[KEY.JOIN].html('play');
// show menu scene
gameScreen.show().delay(0).fadeOut(0, () => {
@@ -164,7 +164,11 @@
};
const onKeyPress = (data) => {
- keyButtons[data.key].addClass('pressed');
+ if (data.key == "up" || data.key == "down" || data.key == "left" || data.key == "right") {
+ keyButtons[data.key].addClass('dpad-pressed');
+ } else {
+ keyButtons[data.key].addClass('pressed');
+ }
if (KEY.HELP === data.key) helpScreen.show(true);
@@ -172,7 +176,11 @@
};
const onKeyRelease = (data) => {
- keyButtons[data.key].removeClass('pressed');
+ if (data.key == "up" || data.key == "down" || data.key == "left" || data.key == "right") {
+ keyButtons[data.key].removeClass('dpad-pressed');
+ } else {
+ keyButtons[data.key].removeClass('pressed');
+ }
if (KEY.HELP === data.key) helpScreen.show(false);
@@ -217,7 +225,7 @@
gameScreen.hide();
menuScreen.hide();
gameList.hide();
- keyButtons[KEY.JOIN].html('play');
+ //keyButtons[KEY.JOIN].html('play');
gameList.show();
diff --git a/web/js/input/keys.js b/web/js/input/keys.js
index b818449b..0b10a356 100644
--- a/web/js/input/keys.js
+++ b/web/js/input/keys.js
@@ -6,8 +6,6 @@ const KEY = (() => {
Y: 'y',
L: 'l',
R: 'r',
- L: 'l',
- R: 'r',
START: 'start',
SELECT: 'select',
LOAD: 'load',