Sitelet https://github.com/StringerJavaObfuscator/SnakeFX
Skip to content
StringerJavaObfuscatorPublic

About

Snake game in JavaFX

Resources

Stars

2 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

82 Commits

Folders and files

Repository files navigation

Java FX App Protection

This is a fork of a simple Java FX game to demonstrate Stringer Obfuscator using for similar apps.

Description

Requirements

  • Stringer Standard or Enterpise with a valid license
  • Gradle (optional)

Configuring

  • Install Stinger and Stringer Gradle plugin to local Maven repository::
mvn install:install-file -Dfile=`pwd`/stringer.jar -DpomFile=`pwd`/stringer.pom
mvn install:install-file -Dfile=`pwd`/stringer-annotations.jar -DpomFile=`pwd`/stringer-annotations.pom
mvn install:install-file -Dfile=`pwd`/stringer-gradle-plugin.jar -DpomFile=`pwd`/stringer-gradle-plugin.pom

Build the game

The game is created with Java version 8 so you will need to have Java 8 installed to be able to build the project. The project is based on the build system gradle.

To build the project type gradle build.

Create Executables

A runnable JAR can be created with gradle shadowJar. The JAR file is then located under build/libs/SnakeFX-all.jar

Stringer Protection Examples

This game uses the MvvmFX framework. If you want to encrypt resources (css, fxml files) by Stringer, you should add classes of this framework to the project's jar file and exclude the library from the /libs folder of project distribution archive. Examples below show Stringer protection for classes and resources.

A class without protection

Not Protected Class

The class protected by Stringer

Protected Class

A resource (fxml file) without protection

Not Protected Resource

The resource protected by Stringer

Protected Resource

A resource (fxml file) without protection

Not Protected Resource

The resource protected by Stringer

Protected Resource

A service class created by Stringer for the resources above

Service Class

SnakeFX

This is a clone of the old mobile phone game "Snake". It was created as an example project to learn JavaFX.

screenshot

The object of the game is simple: You are controlling a snake that likes to eat food. Every time the snake eats some food it grows a little bit. You may not bite yourself in the tail or you are game over. There are no walls in this game so when you move outside of one side of the screen you appear again on the other side of the screen.

Play the Game

You can download a runnable JAR from the release-secton of github. To run the game you need Oracles Java version 8 installed.

About

Snake game in JavaFX

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages