This is an extremely old tutorial, back when I was a noob at game programming. One of the most destructive parts of this crap code is the multi-threaded key input. Swing puts all KeyEvent firings in a separate thread, so I implore everyone to look at video 9 (final – Artifact game) of this tutorial to check out the Keys class in the source code so as to put all game logic on a single thread.
This is a new tutorial series.
The game is a tile based, side-scrolling…