Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
M
- main(String[]) - Static method in class com.project.snakeGame.SnakeGame
-
The main method that launches the Snake game using Swing's event-dispatch thread.
- mainMenu - Variable in class com.project.snakeGame.HomePanel
-
The main menu panel that holds the buttons and title.
- maxUnits - Static variable in class com.project.snakeGame.GamePanel
-
Maximum number of units (board area divided by unit size).
- Mode() - Constructor for enum class com.project.snakeGame.GamePanel.Mode
- move() - Method in class com.project.snakeGame.GamePanel
-
Moves the snake in the current direction.
- MyKeyAdapter() - Constructor for class com.project.snakeGame.GamePanel.MyKeyAdapter
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form