Skip to content

Commit

Permalink
refactor(app): update favicon, webmanifest + change folder hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuher committed Jan 20, 2024
1 parent fce46f6 commit 25f4016
Show file tree
Hide file tree
Showing 31 changed files with 40 additions and 35 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode
node_modules
.DS_Store
dist
Expand Down
15 changes: 0 additions & 15 deletions favicon.svg

This file was deleted.

5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./src/scss/game.scss">
<link rel="icon" type="image/x-icon" href="./src/images/icons/favicon.ico" />
<link rel="manifest" href="./webmanifest" />
<script src="https://kit.fontawesome.com/202f92be3c.js" crossorigin="anonymous"></script>
<title>Retro Ski</title>
</head>

<body>
<div class="ui-container">
<div class="header">
<img src="./src/images/logo.png">
<img id="header-logo" src="./src/images/logos/small_logo.png">
</div>
<div class="hud-container">
<div class="actions-toolbar">
Expand Down
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ https://mathieuher.github.io/RetroSki
* <b>Arrow left</b> -> Left carving
* <b>Arrow right</b> -> Right carving
* <b>Space bar</b> -> Braking/Side sliding

* <b>R</b> -> Go back to event menu (allow to restart the race)
* <b>D</b> -> Toggle debug mode

### Anytime
* <b>Escape</b> -> Quit and go back to event setup
* <b>D</b> -> Toggle debug mode

## 📘 Gamer guide
### Event setup
Expand Down
8 changes: 3 additions & 5 deletions src/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,14 @@ export class Game extends Engine {

onPreUpdate(_engine: Engine, _delta: number): void {
if (_engine.input.keyboard.wasPressed(Config.DEBUG_KEY)) {
_engine.showDebug(!_engine.isDebug);
if (_engine.scenes['race']?.isCurrentScene()) {
_engine.showDebug(!_engine.isDebug);
}
}

if (_engine.input.keyboard.wasPressed(Config.EXIT_KEY)) {
this.restartGame();
}

if (_engine.input.keyboard.wasPressed(Config.SOUND_KEY)) {
// this.soundPlayer.toggleSound();
}
}

private getLoader(): Loader {
Expand Down
Binary file added src/images/icons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icons/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icons/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/images/icons/favicon.ico
Binary file not shown.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
24 changes: 12 additions & 12 deletions src/resources.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import { ImageSource, Sound } from "excalibur";
import skier from "./images/skier.png";
import skierCarving from "./images/skier_carving.png";
import skierSliding from "./images/skier_sliding.png";
import skierBraking from "./images/skier_braking.png";
import skierJumping from "./images/skier_jumping.png";
import poleRed from "./images/pole_red.png";
import poleBlue from "./images/pole_blue.png";
import poleTouchedRed from "./images/pole_touched_red.png";
import poleTouchedBlue from "./images/pole_touched_blue.png";
import polePassedRed from "./images/pole_passed_red.png";
import polePassedBlue from "./images/pole_passed_blue.png";
import finalPole from "./images/final_pole.png";
import skier from "./images/sprites/skier.png";
import skierCarving from "./images/sprites/skier_carving.png";
import skierSliding from "./images/sprites/skier_sliding.png";
import skierBraking from "./images/sprites/skier_braking.png";
import skierJumping from "./images/sprites/skier_jumping.png";
import poleRed from "./images/sprites/pole_red.png";
import poleBlue from "./images/sprites/pole_blue.png";
import poleTouchedRed from "./images/sprites/pole_touched_red.png";
import poleTouchedBlue from "./images/sprites/pole_touched_blue.png";
import polePassedRed from "./images/sprites/pole_passed_red.png";
import polePassedBlue from "./images/sprites/pole_passed_blue.png";
import finalPole from "./images/sprites/final_pole.png";
import winterSound from "./sounds/winter.mp3";
import startRaceSound from "./sounds/start_race.mp3";
import finishRaceSound from "./sounds/finish_race.mp3";
Expand Down
19 changes: 19 additions & 0 deletions webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "RetroSki",
"short_name": "RetroSki",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#4a8291",
"background_color": "#b0d4dd",
"display": "standalone"
}

0 comments on commit 25f4016

Please sign in to comment.