This repository contains a simple Snake Game implemented using the Java Swing package. The Snake Game is a classic arcade game where the player controls a snake to eat food and grow in length while avoiding collisions with walls or its own body.
- Intuitive controls: Use arrow keys to navigate the snake.
- Dynamic gameplay: The snake grows longer when it eats food.
- Random food placement: Food appears at random positions on the game board.
- Scoring system: Keep track of the player's score based on the number of food items eaten.
- Collision detection: Game over when the snake collides with walls or its own body.
- High score tracking: Record and display the highest score achieved.
- Sound effects: Enjoy audio feedback during gameplay.
To play the Snake Game, follow these steps:
- Clone or download the repository.
- Compile the Java source files.
- Run the compiled Java program.
- Use the arrow keys to control the snake and navigate the game board.
- Control the snake using the arrow keys on the keyboard to move up, down, left, or right.
- Aim to eat as much food as possible and avoid collisions with walls or the snake's body.
- Challenge yourself to achieve the highest score possible and compete with friends.
jignesh khunt ([email protected])
Copyright 2019 jignesh khunt
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.