Code Monkey home page Code Monkey logo

hexagonal-2048's Introduction

Hexagonal 2048

Yet another hexagonal variant of Gabriele Cirulli's 2048. This project was started in summer 2017, inspired by a love for the original and an introductory course to using p5.js for game design, and has become a project for learning the secrets of JavaScript and practising good design.

Hexagonal 2048 can be played on my website.

Gameplay

Tiles slide in the direction the player chooses, and identical tiles combine by summing their values. New tiles spawn randomly, so the player must plan strategically to avoid losing by filling up the board and running out of moves.

The original game is won upon constructing the 2048 tile, but with the added degrees of freedom in Hexagonal 2048, getting there is barely a challenge. It has not yet been decided which tile presents the equivalent challenge in Hexagonal 2048, so there is presently no win condition.

Controls

Swiping and click-dragging work on all devices. Alternatively, use the following keyboard commands to move in the respective directions:

    W
Q       E

A       D
    S

By using p5.js, the entire game exists within a canvas for the easiest image capture. Simply right click the canvas and Copy Image or Save Image to capture the board.

Credit

The colour scheme, scoring algorithm, and gameplay are all modelled after Gabriele Cirulli's 2048.

By no means is this a novel variant of 2048, nor does it carry a unique name. This was developed independently of similar games (some better, some worse) which may be easily found by Googling "Hexagonal 2048".

Screens

Colour Scheme

The colour scheme for Hexagonal 2048.

2048 Achieved

A board with a newly merged 2048 tile.

Game Over

Game over: there are no moves left for the player.

hexagonal-2048's People

Contributors

xujustinj avatar

Stargazers

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