https://github.com/coder-acjhp/modern-snake
Snake game for desktop
https://github.com/coder-acjhp/modern-snake
desktop-application game java modern-snake snake snake-game
Last synced: about 2 months ago
JSON representation
Snake game for desktop
- Host: GitHub
- URL: https://github.com/coder-acjhp/modern-snake
- Owner: Coder-ACJHP
- License: gpl-3.0
- Created: 2018-03-25T19:46:05.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-11T00:22:22.000Z (almost 8 years ago)
- Last Synced: 2024-12-30T03:32:50.369Z (about 1 year ago)
- Topics: desktop-application, game, java, modern-snake, snake, snake-game
- Language: Java
- Size: 4.11 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Modern Snake
Simple snake game that include core functionality for classic snake but overrided some properties like : user can change background color or can play from control panel and change settings etc.The game builded on Java SE(Swing & AWT) libraries and packaged with Maven.
There is just two external library used in this project :
- AppleJavaExtentions library (used for adding application icon in dock)
- JZoom library (used for playing mp3 files)
Modern Snake screen shot
The game designed on mvc pattern
- Model : including Snake, Food, Directions and SoundPlayer classes
- View : including GamePanel(display), ControlPanel(Control pad) classes
- Controller : including MainFrame(Main window *container* ) and InitializeSettings class
How to play ?
Download the project from here then import it in any IDE (I used Eclipse) then start the /Snake/src/com/coder/snake/start/Snake_Modern.java class and enjoy
You can also control the snake from your keyboard (arrow keys ⬅️ ➡️ ⬆️ ⬇️ )
You can easily export the game as single executable '.jar' with Maven
How to export the game as single executable jar platform independed ?
Just add this maven-assembly-plugin into your POM.XML file then run the following code in your IDE or Terminal :
In new version (1.2.1.RELEASE) above plugin already added
mvn clean compile assembly:singleOr download the game as (.app) for MacOS or (.jar) for all OS from this link: Modern-Snake-1.2.1 releases
That's it 😍🎉 enjoy with your time 👍
For any question 🤔 please 📧 me at : hexa.octabin@gmail.com