Giter VIP home page Giter VIP logo

square-tetris's Introduction

SQUARE-TETRIS

Description

Tetris is a game where the player have to stack blocks of different sizes to realize one full line. After this, the line disappears and the game continues. There is no end. The game is over when one one the piece get stuck to the top. This version is only with squares of different sizes.

MVP (DOM - CANVAS)

CANVAS, This is a game where the player can move and stack block.

Backlog

  • Score
  • Speed Level
  • display the next square
  • Bonus / Malus

Data structure

main.js


buildSplashScreen(){
}

buildGameScreen(){
}

buildGameOverScreen(){
}

game.js

Game(){
  this.canvas;
}

Game.prototype.startLoop(){
}

Game.prototype.checkCollisions{
}

Game.prototype.CheckIfFullLine{
}

Game.prototype.updateLevel{
}

Game.prototype.checkOverFlow = function(){
}

Game.prototype.displayNextSquare{
}

Game.prototype.clearCanvas = function(){
}

Game.prototype.updateCanvas = function(){
}

Game.prototype.drawCanvas = function(){ 
}

Game.prototype.setGameOver = function(){
}

movingSquare.js

MovingSquare(){
  this.camvas;
  this.x;
  this.y;
  this.size;
  this.direction;
  this.speed; 
  this.color;
}

MovingSquare.prototype.draw{
}

Character.prototype.setDirection(){
}

Character.prototype.goDown(){
}

Character.prototype.rush(){
}

staticSquare.js

StaticSquare(){
  this.camvas;
  this.x;
  this.y;
  this.size;
  this.color;
}

StaticSquare.prototype.draw{
}

States y States Transitions

- splashScreen()
  - buildSplash()
  - addEventListener(startGame)
  
  
- starGame()
  - create new Game()
  - game.start()
  
  
- gameOver()
  - buildGameOver()
  - addEventListener(startGame) 

Task

  • Main - buildDom
  • Main - buildSplashScreen
  • Main - addEventListener
  • Main - buildGameScreen
  • Main - buildGameOverScreen
  • Game - buildCanvas
  • Game - clearCanvas
  • Game - updateCanvas
  • Game - drawCanvas
  • Game - setGameOver
  • Game - collision
  • Game - addEventListener
  • movingSquare - create
  • movingSquare - goDown
  • staticSquare - store
  • staticSquare - remove if full line
  • Game - checkOverFlow
  • movingSquare - setDirection
  • movingSquare - Rush
  • movingSquare - SelectRandomSize

Links

Trello

Link url

Git

URls for the project repo and deploy Link Repo Link Deploy

Slides

URls for the project presentation (slides) Link Slides.com

square-tetris's People

Contributors

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