Giter Club home page Giter Club logo

pakkone-milestoneproject2_aprresub's Introduction

Re(flex) - Flex your reflexes

Re(flex) is a game that will test the users reflexes, but not in the conventional way. We are used to waiting for red light to turn green to press a button to measure our reflexes, but this game will measure your reflexes to let go of a key at a specified time. There is something psychologically different to pressing a key at a specified time versus letting go of a key at a specified time.

This game will be for adults and children alike, and it will provide a fun game that helps sharpen your reflexes (and possibly flex them) to your family, friends and colleagues.

Features


Existing Features

  • Header

    • The header will be placed up top of the page and aligned to center. Re(flex) will be displayed with a fun font.
    • The name of the game reveals that it has to do with reflexes, and your chance to flexing them to others.
  • Game Area

    • This section will have a different colored background and contain the game itself.
    • It will provide a random number that is the goal of the game.
    • The counter will start as the user presses down a key and will stop once the user releases the key.
    • Once the user has released the key, the result is logged and a new randomly generated goal will be shown.
    • Dependant of the result (a margin of 0,2 seconds) will display the counter with a green background if user succeeds or a red background if the user doesn't succeed.
  • Reset game button

    • At the bottom of the game area there will be a button to click on if the user would like to reset the game.
  • Footer

    • A footer will be fixed on the bottom displaying the rules of the game in short sentences.

Future Features

  • In the future I would like to add sound effects to the game to make it more fun.

UX


User Stories

  • As as user, I would like to play a game.
  • As a user, I would like to test my reflexes.
  • As a user, I would like to reset the game.
  • As a user, I would like to contact the developer when something is not working.

Design


Fonts

Colour schema

  • I used ColorSpace for finding a good looking colour palette to #FFFFFF.

Icons

  • I used Font Awesome to get a nice Facebook icon to the footer.

Testing


Credits


function runTimer

  • var i = 0; // a counter which is displayed every 100ms
    
     // create interval which fires the callback every 100ms.
     // `interval` holds the interval ID, which is later used to clear the
     // interval (stop calling the callback)
    var interval = setInterval(function() { 
    
      text.innerHTML = i++; // write `i` and increment
      
      // if `i` is grater than 100 then clear the interval (stop calling the callback)
      if (i > 100) clearInterval(interval);
    }, 100);
    
    
    
  • Borrowed from user @ Stack Overflow Sebastian Kaczmarek

pakkone-milestoneproject2_aprresub's People

Contributors

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