Coder Social home page Coder Social logo

bananacatch's Introduction

Dot Game

The goal of this exercise is to create a game. In the game, dots move from the top to the bottom of the screen. A player tries to click on the dots, and receives points when they are successful.

mockup

Guidelines for Completing the Exercise

  • Your application should work in current Chrome.
  • You can edit any file in the project, and add any assets you require (see below).
  • You may look up anything you'd like.
  • You may use any libraries you'd like.
  • You must write at least the CSS necessary to achieve the basic layout of the game; you may also write additional CSS to improve the design of the game.
  • The project is set up to use Sass, but you may also author plain CSS, or add a different CSS preprocessor.
  • Your finished code should be of a quality that you would submit to your peers for a code review.

Building the Game

  • The game starts when a player touches or clicks the Start button; at that point, the Start button changes to a Pause button, which should pause the game until the button is touched or clicked again.
  • Dots fall at a constant rate. A player should be able to use a slider to control the rate at which dots fall, with a range of 10-100 pixels per second.
  • A new dot appears at a random horizontal position at the top of the box every second. A dot should not "hang" off the left or right edge of the screen.
  • Dots should vary randomly in size from 10px in diameter to 100px in diameter.
  • A dot's value is inversely proportional to its size, with the smallest dots worth 10 points, and the largest dots worth 1 point.
  • When a player touches or clicks a dot, the dot should disappear from the box, and the score should be increased based on the dot's value.

You can view your running application by clicking the "Show" link in the upper left-hand corner of the page.

Creating and Using Assets

To create a new asset, click on the "assets" directory in the front-end section; drag the file from you computer to the browser window.

To use an asset, click on the "assets" directory in the front-end section; then, click the "Copy URL" button to get the asset's URL.

bananacatch's People

Contributors

hellobrian avatar

Watchers

 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.