Search code examples
javawindowsgame-engineslick2dkryonet

Slick2D game launches then immediately closes


I've been working with Slick2D and Kryonet to create a pretty basic multi-player RPG. While the server portion and database have been literally just plug and play it seems I'm having trouble with the graphics. Essentially when launch the client I connect to the server just fine, upon a successful connection the actual Game launches. There is no error in particular but it launches to a black screen very briefly before terminating the client.

I was having trouble getting the code to format properly so below is a link to pastebin that contains the code. There are no errors thrown or anything along those lines so I'm not 100% sure what to look for.

Link to source


Solution

  • Error with my TiledMap file. Needed to edit the image sources for the tile sets.
    Thanks to JNYRanger for suggesting debugging, took a couple tries but was eventually able to catch what was going on.