Skip to content

JinhyukKo/javaSnakeGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snake Game (JAVA)

A simple implementation of the classic Snake game using Java's Swing library. This game features basic mechanics such as snake movement, apple consumption, and collision detection.

Project Structure

  • Controller/GameController.java: Manages the game logic, including starting the game, moving the snake, and checking for collisions.
  • UI/GamePanel.java: Renders the game board, handles user input, and updates the display.
  • UI/StartPanel.java: Displays the start screen and transitions to the game panel.
  • Entity/Apple.java: Represents the apple entity in the game.
  • Entity/Snake.java: Represents the snake entity in the game.
  • domain/Configs.java: Contains configuration constants for screen size, unit size, delay, etc.
  • domain/Direction.java: Enum for defining the direction of the snake's movement.
  • domain/Mode.java: Interface for defining panel modes.

Installation

  1. Clone the Repository:

    git clone https://github.com/jinhyukko/javaSnakeGame.git
    cd snake-game
    

Screenshot 2024-08-03 at 12 06 01 PM Screenshot 2024-08-03 at 12 06 34 PM Screenshot 2024-08-03 at 12 06 09 PM

Trouble Shooting

  1. Deployment with JAR file MAVEN ?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages