Coder Social home page Coder Social logo

jonas8 / rolling-ball Goto Github PK

View Code? Open in Web Editor NEW

This project forked from voronomari/rolling-ball

0.0 2.0 0.0 229 KB

Simple game to show how to use the Device Orientation API.

Home Page: http://franciov.github.io/rolling-ball/

ApacheConf 0.14% HTML 2.99% JavaScript 96.74% CSS 0.13%

rolling-ball's Introduction

Rolling ball

Rolling Ball is a simple game in which you move a ball through a labyrinth in order to make it fall into a hole and get access to the next level.

Screenshot

Try it live:

  • keyboard control: use arrows to make the ball roll, and space to make it jump
  • device motion control: change the orientation of your mobile device to make the ball roll, and move it up to make the ball jump

This demo is part of the following article on Mozilla Developer Network:

Notes

The web app makes use of canvas to draw graphics and the Device Orientation API to move the ball. More info inside the MDN article.

Contributing

  • open github issues
  • add tests
  • levels
  • better look&feel
  • better playability
  • lock screen to landscape
  • make the ball roll via deviceorientation event
  • DOM-based version, instead of canvas-based

rolling-ball's People

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.