Giter VIP home page Giter VIP logo

custom-tetris's Introduction

Custom Tetris

Play the classic Tetris game the way you like it! Adjust the rules, change the sides! Playable version at http://ondras.github.io/custom-tetris/.

Screenshot

Instructions

Configure the game by choosing an attacker (the one who picks pieces) and a defender (the one who positions pieces). The attacker is given a stash of pieces to pick from; once they are depleted, the stash completely refreshes.

When playing human attacker, either click the pieces or hit number keys to pick them.

When playing human defender, use four arrow keys to position, rotate and drop the current piece.

Technologies

  • Written in vanilla JS, no libraries used
  • Polyfill for classList
  • Uses CSS transforms and transitions
  • Uses Firebase as a networking backend
  • Works in FF, Chrome, Opera, Safari, IE10

DevLog

  • Day 1: forked
  • Days 2 to 3: looking for ideas
  • Day 4: got an idea, started first API draft
  • Day 5: experiments with the main Engine object, still no visuals
  • Day 6: working engine, visuals, human defender, ai defender
  • Day 7: bugfixing async issues, basic set of pieces, readonly gallery
  • Day 8: human (working) and ai (unusable) attackers, bonus pieces
  • Day 9: refactored attacker rules, UI tuning, Game.App draft
  • Day 10: setup texts and UI
  • Day 11: finalizing setup UI, basic network experiments
  • Days 12 to 13: tuning network synchronization
  • Days 14 to 17: idle, frustrated by poor networking experience
  • Day 18: refactoring networking code
  • Day 19: rejoicing at the fixed networking experience, tuning, testing
  • Day 20: release
  • Day 28: final fixes and testing

License

This game is distributed under the terms of the New BSD license.

custom-tetris's People

Contributors

ondras avatar leereilly avatar

Watchers

James Cloos 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.