Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/manuel-mauky/snakefx
- Owner: manuel-mauky
- License: other
- Created: 2012-09-30T21:02:46.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-06-07T15:10:43.000Z (over 9 years ago)
- Last Synced: 2024-10-12T18:23:29.993Z (about 1 month ago)
- Topics: game, java, javafx, javafx-application, snake
- Language: Java
- Homepage:
- Size: 601 KB
- Stars: 52
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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`