• Stars
    star
    264
  • Rank 155,103 (Top 4 %)
  • Language
    Java
  • License
    GNU General Publi...
  • Created over 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The game 2048, built using JavaFX and Java 11

2048FX

The game 2048 built using JavaFX 16 and Java 17. This is a Java port based on the Javascript version: https://github.com/gabrielecirulli/2048.

Check down below for a screenshot.

Releases

JavaFX Build

You may find binaries available for download, for Windows, Mac and Linux, with Java bundled in. Check successful builds for stable releases.

Screenshot

Building and running

You will need OpenJDK 17 (or newer) installed to build and run the project:

./gradlew run

Create a distribution to your operating system (Windows, Linux, or Mac OS)

You can create a ZIP file that will bundle a small JRE and the game, or you can create a native OS installer (e.g. MSI, DMG, DEB).

To create a ZIP bundle, run:

./gradlew dist

To create a native OS installer, run:

  1. Run ./gradlew dist jpackage

Running using Docker

You can build container image from source code using the Dockerfile and run the containerized game. You have to share the X11 socket with the container. For that you need to install VcXsrv Windows X Server for windows or Xquartz if you're using macOS. Make sure to allow connections from network during setup. On macOS, you'll need to run xhost +127.0.0.1 every time you re-open Xquartz. The final step is to run the container: docker run -it --rm -e DISPLAY=host.docker.internal:0.0 image_name

Feedback / Contributing / Comments

Submit an issue and share your thoughts.

Running with Java 8

If you want to run with Java 8, you can download the tag java-8. New features in the master branch will not be back-ported.

License

The project is licensed under GPL 3. See LICENSE file for the full license.

More Repositories

1

webfx

WebFX runs FXML and Javascript based JavaFX applications remotely
Java
124
star
2

javafx-jlink-starter-gradle

A JavaFX starter project with Gradle and jlink support
Java
77
star
3

toml-schema

59
star
4

javaee7-jms-websocket-example

Example of a Java EE 7 application that integrates JMS 2.0, WebSockets 1.0, CDI events, and EJB 3
Java
51
star
5

aks-jvm-benchmark

Java Benchmark on AKS
Java
35
star
6

rinha-app

HTML
31
star
7

javaee7-examples

Examples of Java EE 7 applications that demonstrate APIs and integrations
CSS
25
star
8

nashorn

Useful and Samples scripts for Java's Nashorn Javascript engine
JavaScript
19
star
9

gamboa-project

A Maven archetype for rapid web application development
Scala
19
star
10

simple-web-app

Java
17
star
11

camel-twitter

Twitter component for Apache Camel
Java
13
star
12

pcurl

Shell
11
star
13

jvm-ergonomics

Shell
11
star
14

ssh-over-http-proxy

C
11
star
15

wicket-with-quarkus

Java
11
star
16

showmyjvm

Java
10
star
17

maven-javafx-archetype

A Maven Archetype for OpenJFX (JavaFX) Projects
Java
9
star
18

wcjvm

JVM launcher inside Windows Containers in Process Isolation mode
C#
8
star
19

yaml-schema

YAML Schema proposal to solve all of our problems once and for all.
6
star
20

javaee7-archetype

Java EE 7 Archetype with GlassFish configured
6
star
21

twitter-sentiment-analyzer

Java
5
star
22

tdconcamel

CSS
4
star
23

camel-azure-functions-demo

Java
4
star
24

demo-jlink

Shell
3
star
25

futebol

Algoritmo para separação de jogadores de pelada em times equilibrados
Java
3
star
26

justextract

JavaScript
3
star
27

oraclecloud-demo

Sample application to run in Oracle Cloud
HTML
3
star
28

100-prisoners

Java implementation of ideal solution to the 100 Prisoners problem
Java
2
star
29

azure-function-jooq-postgre-sample

Java
2
star
30

glassfish2weblogic

GlassFish to WebLogic Migrations
1
star
31

adventofcode2023

Java
1
star
32

helloworldfarm

Java
1
star
33

nashorn-oracle-cloud

Oracle Cloud REST samples to use with Nasven.js
JavaScript
1
star
34

jakartaee9-java17-azure

Run a Jakarta EE 9 web app with Java 17 on Tomcat 10 on Azure
Java
1
star
35

camel-twitter-coherence

JavaOne 2012 demo using Camel, Twitter and Coherence
JavaScript
1
star
36

java-microsoft-artwork

1
star
37

bench-count-digits

Java
1
star
38

weld-cdi-javafx-bug

Java
1
star
39

code-with-quarkus

Generated by code.quarkus.io
HTML
1
star
40

javaee7-jms-websocket-bug

Bug when connecting a WebSocket with JMS. See GLASSFISH-20371
Java
1
star
41

javaee4fx

Bootstrap Java EE APIs for JavaFX applications
Java
1
star
42

findlibfreetype

Shell
1
star