Giter Club home page Giter Club logo

flappybird's Introduction

HTML5 CSS-based Game

This game project has the following:

  • 1024x768 pixel game canvas.
  • All positions and sizes defined using a 10px em. This means that the game could be scaled up and down by changing the base font-size. This is one way to make the graphics responsive.
  • A simple game loop which calculates delta and can be started and stopped.
  • A player entity which can be moved around the canvas using the arrow keys.
  • A "Game Over" screen when player is moved outside bounds, where the game can be restarted.

Setup

npm install
bower install
grunt server

In this assignment, your task is to write a video game, using JavaScript and HTML5. It should use transformed DOM elements, and use object-oriented design for the JavaScript code.

The game should play mostly the same as Flappy Bird, although you may use different graphics (and this is actually encouraged). Try it to see how it should work. Some implementation details that you should emulate:

(20%) The player character always stays in the same x position. Clicking space bar, clicking or tapping the screen makes the character jump up by a small amount, otherwise it falls down.
(10%) Pipes and the ground slowly move to the left.
(10%) If the player collides with the ground or a pipe, he loses instantly.
(5%) Gets one point for every gap that the player successfully passes.
(10%) If a player loses he should see his score and a button which starts the game again.

Additional requirements.

(10%) All moving elements should be hardware accelerated.
(10%) There should be a background element moving in paralax to the foreground, f.ex. a repeating cloud image. Note: it is not enough that the ground moves at different speed than the rest of the scene!
(10%) The character rotates into his direction. The player should either have a sprite animation or some element (like a wing) which animates when flapping. 
(15% )Background music and sound effects for flapping and colliding. Mute support.

Bonus points.

(10%) The game is responsive, scales down and playable on mobile and tablets.
Other gameplay innovations are rated by the complexity of implementation.

Authors: Kjartan Valur Kjartansson Óttar Helgi Einarsson Þorvarður Bergmann Kjartansson

flappybird's People

Contributors

kjartank13 avatar

Watchers

James Cloos avatar  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.