Skip to content
Snippets Groups Projects
Commit 78d8aa71 authored by Sanjula's avatar Sanjula
Browse files

Start thread

parent 7253bac1
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,7 @@ class GameDisplay extends JPanel {
// Set the initial snake position and start the snake thread
Tuple position = new Tuple(3, 10);
ThreadsController c = new ThreadsController(position);
c.start();
// Links the window to the keyboard listener.
this.addKeyListener((KeyListener) new KeyboardListener());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment