Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
G
- gameMode - Static variable in class com.project.snakeGame.GamePanel
-
Current game mode (default: EASY).
- gameOver(Graphics) - Method in class com.project.snakeGame.GamePanel
-
Displays the "Game Over" message.
- gamePanel - Static variable in class com.project.snakeGame.SnakeGame
-
The game panel displaying the snake game.
- GamePanel - Class in com.project.snakeGame
-
The
GamePanel
class handles the gameplay logic and rendering for the Snake Game. - GamePanel() - Constructor for class com.project.snakeGame.GamePanel
-
Constructs the
GamePanel
, initializes the game settings, and starts the game. - GamePanel.Mode - Enum Class in com.project.snakeGame
-
Enum for game difficulty modes.
- GamePanel.MyKeyAdapter - Class in com.project.snakeGame
-
The
MyKeyAdapter
class handles keyboard inputs to control the snake's direction.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form