GithubHelp home page GithubHelp logo

pete-angjelevski / tetris Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 2.22 MB

Full Stack Tetris game built to refine React and utilize REST APIs and SQL Database

JavaScript 97.21% HTML 2.51% CSS 0.27%
react sqlite3 react-router react-router-dom restful-api game-development express-js superagent

tetris's Introduction

Full Stack Tetris Game

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 . . .

instructions

Game . . .

game

High Scores . . .

highscores

GOAL 1 (Completed)

Scaffold tetris game components

GOAL 2 (Completed)

Create Stage and Tetrominos logic

GOAL 3 (Completed)

Add Styled Components - CSS structure to Tetris stage and display

GOAL 4 (Completed)

Create usePlayer and useStage Hooks

GOAL 5 (Completed)

Add tetromino movement logic

GOAL 6 (Completed)

Add Tetrominos collision detection logic

GOAL 7 (Completed)

Add Tetrominos Rotation Logic

GOAL 8 (Completed)

Add Row Clear logic when row is completed

GOAL 9 (Completed)

Add Drop Timer Logic + Level Increase wiht useInterval Hooks

GOAL 10 (Completed)

Add Scoring and Game Over logic

GOAL 11 (Completed)

Create Highscore SQL Database

GOAL 12 (Completed)

Create getHighscores routes/ dbHelpers and APIs

GOAL 13 (Completed)

Reformat GameOver component and create AddHighscore routes/ dbHelpers and APIs

STRETCH

  • Pause Game functionality
  • Reformat Game Presentation
  • Add further CSS to unstyled components and touch ups
  • Transform into mobile app with React Native

tetris's People

Contributors

pete-angjelevski avatar

Stargazers

 avatar Hakjun Kim avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.