This repository contains two Svelte-based games:
/routes/+page.svelte: Contains the Keyboard Trainer game./routes/quiz/+page.svelte: Contains the Quiz & Scenario game.To run this project, you'll need to have the following installed on your machine:
Clone the repository:
git clone https://github.com/mattjercino/sveltegames.git
cd sveltegames
Install the dependencies for the project:
npm install
To run the Keyboard Trainer game, follow these steps:
Navigate to the root directory:
cd sveltegames
Run the development server:
npm run dev
To build the apps for production, use the following command:
From the root directory:
npm run build
The built files will be available in the public directory.
In this game, you will be prompted to press specific keys or combinations of keys on your keyboard. A visual representation of a keyboard will highlight the pressed keys, and you'll receive feedback on whether your response was correct. The game includes a countdown timer and a points system to track your progress.
This game has two modes:
The game switches between Quiz Mode and Scenario Mode based on your performance, and your score is tracked throughout.