-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added touchscreen buttons, portrait mode, the abality to see where yo…
…u are on the leadderboard, weekly bests, restart the game without having to realod the page
- Loading branch information
1 parent
3a70851
commit d184a59
Showing
6 changed files
with
389 additions
and
30 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
.touchscreen { | ||
opacity: 0; | ||
pointer-events: none; | ||
} | ||
|
||
.touchscreen * { | ||
user-select: none; | ||
} | ||
|
||
.touchscreen .svg_wrapper { | ||
height: 50px; | ||
width: auto; | ||
aspect-ratio: 1/1; | ||
} | ||
|
||
.touchscreen svg { | ||
fill: grey; | ||
height: 100%; | ||
width: 100%; | ||
transition: filter 1s; | ||
pointer-events: none; | ||
} | ||
|
||
.touchscreen .svg_wrapper:hover svg { | ||
filter: brightness(0%); | ||
} | ||
|
||
.dark .touchscreen .svg_wrapper:hover svg { | ||
filter: brightness(200%); | ||
} | ||
|
||
.touchscreen>#right { | ||
width: fit-content; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-end; | ||
bottom: 0; | ||
position: absolute; | ||
right: 0; | ||
margin: 0 35px 35px 0; | ||
} | ||
|
||
.touchscreen>#left { | ||
width: fit-content; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
bottom: 0; | ||
position: absolute; | ||
left: 0; | ||
margin: 0 0 35px 35px; | ||
} | ||
|
||
#touch_pause { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
margin: 10px 0 0 10px; | ||
} | ||
|
||
#touch_pause.pause { | ||
display: none; | ||
} | ||
|
||
.game_started #touch_pause.pause { | ||
display: block; | ||
} | ||
|
||
.game_started #touch_pause.play { | ||
display: none; | ||
} | ||
|
||
|
||
.touch_enabled .touchscreen * { | ||
pointer-events: all; | ||
} | ||
|
||
.touch_enabled .touchscreen { | ||
opacity: 1; | ||
} | ||
|
||
.touch_enabled .right.column, | ||
.touch_enabled .left.column { | ||
display: none; | ||
} | ||
|
||
.touch_enabled .main_layout { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.touch_enabled h2.startText { | ||
display: none; | ||
} | ||
|
||
.touch_enabled canvas { | ||
width: 100%; | ||
} |
Oops, something went wrong.