Coder Social home page Coder Social logo

blockdrop's Introduction

BlockDrop

Demo here: blockdrop.benbooth.dev

BlockDrop is a shameless Tetris® clone using pure JavaScript, HTML and CSS.

I started writing it while teaching myself how to use JavaScript as a proper language and wean myself off jQuery. I'm also using it as a testing platform for various JavaScript, HTML5 and CSS3 features. I've tested in Chrome, Firefox, IE 9/10 and Chrome for Android so it should work on most modern platforms.

Controls

  • a h or swipe ← moves the piece left
  • d l or swipe → moves the piece right
  • w k swipe ↑, or single tap rotates the piece 90° clock-wise
  • s j or swipe ↓ soft drops the piece (drop line by line)
  • spacebar or enter hard drops the piece (drop all the way to the bottom)

blockdrop's People

Contributors

bkbooth avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

blockdrop's Issues

Add testing

Research JavaScript testing methods and implement as much as possible. Setup to be run by Travis CI.

Handle endgame nicer

Add endgame animation (screen filling with blocks?) and play game over sound.

Loading spinner on first load

Add a loading spinner while the game is loading for the first time. While downloading manifest.appcache, anything else to wait for?

Improve touch controls

Touch controls are not working properly on iOS Safari (and possibly other mobile browser's). Need to fix issues here and investigate ways to improve the touch controls across the board.

Not loading on iOS

Reported that the game does not load at all from iOS Safari.

  • Version(s)?
  • Test with iPhone 3GS (borrow newer model off anyone?)
  • How to debug?

Add animations

Animate when rows of blocks are cleared. Other animations?

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.