Giter Site home page Giter Site logo

ksherm45 / hpgame-project Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mariorui97/hpgame-project

0.0 0.0 0.0 15.02 MB

A 2d game based on the Harry Potter movie saga - designed to module 0 of Ironhack Bootcamp

HTML 11.43% JavaScript 77.29% CSS 11.28%

hpgame-project's Introduction

Harry Potter - the boy who coded

A 2d game based on the Harry Potter movie saga - designed to module 1 of Ironhack Bootcamp, where Harry Potter faces his enemies (well, initially only the one whose name shall not be pronounced) in a duel to the death - dodging avada kedavras as long as possible. If Harry gots hit by a spell he will die. Time's increasing also increase your points.

Screenshots

MVP (DOM - CANVAS)

  • game has a character
  • the character has 7 lives
  • the character needs to dodge the spells
  • if the character gets hit by a spell he lost 1 live
  • if he lost all the 7 spells, he dies
  • the character's duration will set his score
  • duration will increase the spells speed

Backlog

  • get all the assets
  • draw the assets in the canvas
  • make the spells go in the left direction
  • add a timer and make them faster with the timer
  • add a score and make the hitbox subtract -1 to the lives
  • add a game over
  • add multiple scenes

Data Structure

index.js

  • gameIntro() {}
  • gameBattle() {}
  • gameOver() {}

game.js

  • draw () {}
  • collision () {}
  • clearCanvas() {}
  • damage() {}
  • harry () {this.x; this.y}
  • spell () {this.x; this.y; this.speed}
  • move() {}
  • gameOver() {}

Stages

  • gameIntro
  • gameBattle
  • gameOver

Task - functions

  • game - draw
  • game - harry
  • game - spell
  • game - move
  • game - collision
  • game - damage
  • game - clearCanvas
  • game - gameOver
  • index - gameBattle
  • index - gameIntro
  • index - gameOver

Useful links

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.