snakeGame using java
- util
- Color
- Font
- Graphics
- Point
- keyEvent
- KeyListener
- BufferStrategy
- LinkedList
- Random
This repository contains following files-
- Direction.java- This is for direction of snake.
- Display.java- This is for creating window to play snake game.
- Level2.java- This is for 2nd level of snake game.
- mainGame.java- This is main file to start snake game.
- snakeCals.java- This contain whole logic for game.
- Clone the repository-
git clone https://github.com/Rtannu/snakeGame.git
cd snakeGame
- next step to compile mainGame.java and run mainGame class-
javac <path of mainGame.java>
java <path of mainGame class>
ex-
javac mainGame.java
java mainGame