/webfx-demo-fx2048-clone

A web port of the game 2048 written in JavaFX. Also cross-platform & native.

Primary LanguageJavaApache License 2.0Apache-2.0

Live demo

The demo is published on this page.

This is the game 2048. You can use the arrow keys to play (or the touch screen on tablets and mobiles). Tiles with the same number can merge into one that sums these 2 numbers. The goal of the play is to sum 2048 on a single tile.

Highlighted features

Reusability

This demo demonstrates how you can port existing JavaFX applications. There was indeed already a JavaFX version of the game, and this demo is just a port of it in WebFX so the game could be transpiled into a Web Application.

HTML/CSS mapping

This demo also shows that you can write applications such as games using the scene graph and CSS (this game is not canvas based).