hexadeciman / snake Goto Github PK
View Code? Open in Web Editor NEWA simple snake game in java - Well documented
License: MIT License
A simple snake game in java - Well documented
License: MIT License
Hello!)
I just created snake-game server. If you are not busy, how about create a client for snake game multiplayer? It will be funny!))
https://github.com/ivan1993spb/snake-server
Hello , your game is great! I added a menu frame and some features in your game as part of a university project.I'will enlist the new features below if you are interested i can make a PR :)
Features :
1)Added menu frame when the game starts
2)The game has a global music playing that you can mute from menu frame
3)Sound effects when the snake eats food or when you lose
4)Added 4 difficulties that you can choose from that change the speed (Easy-Medium-Hard and Escalating)[preset speed is easy if none is chosen]
5)When you lose a JOptionPane is displayed that shows you asks you if you want to play again or go to menu
6)At this JOptionPane a highscore is displayed and if you did better your score is set as a highscore
7)At the main frame of the game where you are playing i added a JMenuBar for the score to be displayed
8)At the menu frame you have a button to see the leaderboard all scores without duplicates
9)At the menu frame you also have an option to clear leaderboard or clear highscore
10)At the menu there is an about button on the MenuBar that displays the JDK version
11)Also i added a scoring system depending on difficulty (i tried for it to be as fair as possible to reward those who play at harder mode,escalating mode is using a multiplier depending on what speed you are currently playing)
12)Last but not least i stylized the game on different colors (.ORANGE .BLUE .lightgray)
I don't actually know if it works on other versions of distros but it gives an error says: No X11 DISPLAY variable was set. I'm not familiar with java but i think it can not find the correct stuff for the gui. You may wanna check it if it's important for you. Good job btw.
Hi, I have taken an interest in the project and would like to contribute.
I think a night mode, a way to increase the difficulty of the game and a game over screen would be great to have.
Hi, I really like this project and would like to contribute to it as well.
There is three enhancement that I would like to add to this project which are the size of the window, amount of food in the game, and the direction of the snake will be reversed. Thank you very much!
For example Grid in Window.java and the method ChangeData in Tuple.java?
I'd like to improve the readability of the project and add a restart button
Some examples for the readability part:
ranX= 0 + (int)(Math.random()*19);
-> ranX = (int) (Math.random()*19)
directionSnake = 1
-> snakeDirection = Directions.RIGHT
ArrayList<ArrayList<DataOfSquare>> Squares= new ArrayList<ArrayList<DataOfSquare>>();
-> ... = new ArrayList<>();
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.