Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/manuel-mauky/snakefx

Snake game in JavaFX
https://github.com/manuel-mauky/snakefx

game java javafx javafx-application snake

Last synced: about 1 month ago
JSON representation

Snake game in JavaFX

Awesome Lists containing this project

README

        

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

![screenshot](screenshot.png)

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](https://github.com/lestard/SnakeFX/releases/download/v0.1.0/snakefx.0.1.0.jar) of github. To run the game you need Oracles Java version 8 installed.

### 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](http://http://www.gradle.org/).

To build the project type `gradle build`. To run the application you can type `gradle run`.

### Create Executables

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