Giter Club home page Giter Club logo

grumpy-cat's Introduction

Project - Grumpy Cat

Description

Grumpy Cat is a game where the player has to move the cat positioned horizontally at the bottom and try to react to the items that come from the top. Catch treats increment the score, catch chocolates decrement the score, and catch cups also increment the score. However, if the cat does not manage to push the cups, the cat loses one of its seven lives.

MVP (DOM - CANVAS)

  • the game has a cat at the bottom that moves horizontally
  • as soon he moves, things come from top to bottom
  • these things are: treats, chocolates, and cups
  • catch treats increment the score by 1
  • catch chocolates decrement the score by -1
  • push cups increment the score by 10
  • hitting 100 points, leads to next level (to be developed)
  • the game over when the cat loses its seven lives

Backlog

  • add multiple images to simulate the cat walking
  • when pushing, make the cup change the direction not just disappear

Data Structure

index.js

class ElementFromTop { move(), draw(), collision() } drawCat() {} gameOverMessage() {} winMessage() {} animate() {} startGame() {} restartGame() {}

States y States Transitions

isMovingRight = false; isMovingLeft = false; isPushingCup = false; gameOver = false; nextLevel = false; elemFromTop = []; score = 0; lives = 7;

Links

Project repo: https://github.com/Francieli-S/grumpy-cat

Deploy link: https://francieli-s.github.io/grumpy-cat/

Trello: https://trello.com/b/oSK23WFq/grumpy-cat

Slides: https://docs.google.com/presentation/d/1H1sRYyafvq2Ly1ANw8DhLmKCVDznX6OdbB3dUVCvgn4/edit?usp=sharing

grumpy-cat's People

Contributors

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