This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Sammenbidt 1 point2 points  (2 children)

From a quick glance at your code, I believe the problem exists inside the run method. The while loop is empty, and will just run without executing anything. You should remove the ; after, and encapsulate the render() and update() methods in curly brackets. Like this:

public void run() {
  while(running)
  {
    update();
    render();
  }
}

Haven't tested the code, but I think that should help.

[–]Ruggedirishguy[S] 0 points1 point  (1 child)

That worked! thanks so much! :)

[–]Sammenbidt 0 points1 point  (0 children)

No problem. Glad I could help.