Fixed minor issues in star chaser

Signed-off-by: Marius David Wieschollek's avatarMarius David Wieschollek <passwords.public@mdns.eu>
parent 18357168
......@@ -435,7 +435,12 @@ export default class StarChaser {
}
_startShield() {
if(this.shieldTimeout) this._stopShield();
if(this.shieldTimeout) {
this._stopShield();
let ship = document.getElementById('ship');
ship.classList.remove('shield');
this.shieldTimeout = setTimeout(() => { ship.classList.add('shield') }, 10);
}
this._addPoints(this._game.status.shieldPoints);
this._game.ship.shield = true;
this.shieldTimeout = setTimeout(() => { this._stopShield(); }, 10000);
......
......@@ -26,7 +26,7 @@ $desktop-width : $width-large;
:root {
--pw-icon-font-face : FontAwesome, sans-serif;
--pw-game-font-face : "Comic Sans MS", sans-serif;
--pw-game-font-face : "Ani", "Purisa", "TSCu_Comic", "Comic Sans MS", sans-serif;
--pw-mono-font-face : 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'DejaVu Sans Mono', 'source-code-pro', monospace;
--pw-image-login-background : var(--image-login-background)
}
\ No newline at end of file
......@@ -362,7 +362,7 @@
display : inline-block;
margin-right : 0.25rem;
animation : life .9s linear infinite;
color : var(--color-primary-text);
color : #f5f6fa;
font-size : 42px;
font-family : var(--pw-game-font-face);
line-height : 36px;
......@@ -437,7 +437,7 @@
}
.text {
color : var(--color-primary-text);
color : #f5f6fa;
font-size : 24px;
font-family : var(--pw-game-font-face);
line-height : 28px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment