webfx-demos / webfx-demo-fx2048-clone

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

Home Page:https://fx2048.webfx.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://fx2048.webfx.dev

License:Apache License 2.0


Languages

Language:Java 68.9%Language:CSS 30.7%Language:HTML 0.4%