Giter VIP home page Giter VIP logo

sonicsflappyadventure's Introduction

Sonic's Flappy Adventure

A game made entirely with HTML5, CSS3 and JavaScript. Based on Flappy Bird.

Built on a supplied template from our teacher.

Features

  • Spacebar, click or tap to control Sonic
  • Ground moves at the same speed as "pipes"
  • Colliding with the ground and "pipes" results in death
  • Collect rings to get points
    • Beat your own highscore!
  • Start the game again by either clicking/tapping "Restart" or press spacebar
  • Hardware accelerated elements
  • Paralax clouds
  • Sonic rotates based on his trajectory
  • Sprite animations
    • Sonic has an idle animation and a flap animation
    • The rings have a rotation animation
  • 8-bit style music and sound effects
    • Mute button in upper left corner
  • Responsive landscape layout enables full mobile functionality
    • We tested on our phones. Works great
  • Tested in Chrome and Safari
    • Works best in Chrome on mobile
    • Just works best in Chrome in general
  • This swaggin readme

Getting Started

In order to continue developing Sonic's Flappy Adventure on your own machine, you will need node.js in order to use npm to install the dependencies and run the server.

You will also need Compass in order to compile the Sass files to CSS. It requires Ruby to run and install. We will not go into detail on how to do that here.

Note that it is possible to run th game without using Grunt. You will then just have to install the dependencies from from both NPM and Bower and open the index.html file in your web browser. This does result in the favicon being unable to load, but that is not important.

Prerequisites

Grunt

Run the following command in order to install Grunt on your machine.

$ sudo npm install -g grunt

Bower

Run the following command in order to install Bower on your machine.

$ sudo npm install -g bower

Dependencies

Run the following commands in the SonicFlappyAdventure directory (the root directory of the project).

$ npm install
$ bower install

Running Grunt

You simply call the following command in the root directory of the project in order to start up Grunt which will automatically compile the Sass files and JavaScript files on change.

$ grunt serve

Now the game is up and running on port 9000 by default.

Development

We use Grunt as our task runner and build system.

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

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.