Skip to content

Vinay-CN/SnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

SnakeGame

Snake game using a JavaSwing library.

The functionalities of the game are controlling the snake using key buttons, making it eat food, increasing the snake's size and scores, and ending the game when the snake collides with obstacles.

The demo shows the snake game with a moving three-dot snake, a red dot for the head, green dots for the body, and an apple for the food. To make the game, the following features need to be implemented:

Basic UI, which includes the frames, content, content pane, dimensions, and color of the background.

Graphics, which involves loading images and drawing components on the right position.

Mechanics of the snake, which covers its movement and how it eats food.

Control of the snake using arrow keys.

Checking for collisions with the border and the body.

Displaying the score and game over message when the game ends.

The only technology used for making the Snake game is Java Swing library, which provides lightweight components for making window-based applications.

Classes that will be used in the game include J Button, J check boxes, combo box, J File Chooser, and J Frame.

The styling of the project includes a window with a container for the game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages