This is an extended version of the classic Snake game implemented in Java Swing, based on the basic implementation from ZetCode's Java Games tutorial.
In addition to the basic features of the Snake game, this modified version includes the following enhancements:
- Bonus Apples: Special bonus apples that grant extra points when eaten.
- Danger Elements: Dangerous elements that, if collided with, end the game.
- Graphics Enhancements:
- Improved graphics for better visual appeal.
- Added special icons for bonus apples and danger elements.
- Score System:
- Increased score based on the number of apples and bonus apples eaten.
- Difficulty scaling: The game gets progressively faster as the score increases.
- Pause and Resume:
- Ability to pause the game using the spacebar.
- Resuming the game by pressing the 'X' key.
- Restart Option:
- Restart the game after game over by pressing Enter.
- Control Improvements:
- Support for both arrow keys and WASD keys for controlling the snake's movement.
- Randomized Element Placement:
- Randomized positions for apples, bonus apples, and danger elements within the game board.