Technology Utilised:
- React + React Hooks + React Routing
- Database with SQL and Knex.js
- RESTful APIs/ Backend Routes with SuperAgent.js and Express.js
- CSS with Styled Components
** Added TypeScript to project for learning and practice
To spin up the app:
- Clone the repo into your drive
- npm i via chosen command line to install dependencies
- npm run dev to spin up server
- Visit https://localhost:3000 to view app.
Screen Shots:
Instructions . . .
Game . . .
High Scores . . .
Scaffold tetris game components
Create Stage and Tetrominos logic
Add Styled Components - CSS structure to Tetris stage and display
Create usePlayer and useStage Hooks
Add tetromino movement logic
Add Tetrominos collision detection logic
Add Tetrominos Rotation Logic
Add Row Clear logic when row is completed
Add Drop Timer Logic + Level Increase wiht useInterval Hooks
Add Scoring and Game Over logic
Create Highscore SQL Database
Create getHighscores routes/ dbHelpers and APIs
Reformat GameOver component and create AddHighscore routes/ dbHelpers and APIs
- Pause Game functionality
- Reformat Game Presentation
- Add further CSS to unstyled components and touch ups
- Transform into mobile app with React Native