Skip to content

roeeyn/svelte-tetris

Repository files navigation

Svelte Tetris

This is a very basic Tetris game made in the Svelte framework.

You can check it out here.

Demo Gif

Get started

Install the dependencies...

git clone https://github.com/roeeyn/SvelteTetris.git
cd SvelteTetris
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see the app running. Press start and start playing around.

Building and running in production mode

To create an optimised version of the app:

npm run build

Deploying to the Web

I've automated this repo to build and deploy automatically to Firebase using GitHub Actions. For achieving that you need to create a project inside Firebase Console and getting Firebase Token by executing:

# optional deploy automation
firebase login:ci

Justification for the project

I advanced to the second stage in the MLH Fellowship application, and I was asked to upload a significant project where I showed my skils. As most of my best projects are private I decided to create this game, and learn a new framework (Svelte) in the way.

I was inspired by this project which gave me a very good foundation of the game basics, but didn't have all the functionality I wanted. Also ddanielcruzz helped me designing the game console and helped me by giving me a general review of my project.

I hope this demostrate that I'm ready for a bigger challenge 🔥.