View Project
A web-based Tetris game.
moving player curent tetromino in downward direction
moving player curent tetromino in right direction
moving player curent tetromino in left direction
rotating player curent tetromino by 90 deg
managing player game board state of each cell which stores presence of block and visuals
destroying blocks when the row becomes full
shifting blocks after destroying the blocks
updating player board state
updating score
managing player current tetromino state like its coordinates and visual
calculating stats like score,single shots,double shots,triple shots count and displaying them
savging stats to database
managing user authentication
displaying user stats on stats page
starting game on clicking play button
checking if a player game is finished or not
managing state of each tetromino (l shape,t shape,z shape,line shape,square shape) like their coordinates , visuals
html
javscript
css
ejs
express
express-session
passport
passport-local
passport-local-mongoose
mongoose
mongodDb
vercel
Built with