I’m really loving the tools that come out of the box of Slick2D! I’m building a platformer game in which I control the transitions from area to area.
I’m only slightly concerned with loading’s effects on the background music playing. When transitioning from one level to another, there is a slight hiccup in the background music that is playing. I’ve narrowed the problem down to the TiledMap that is used in each level. I use a resource manager to dynamically cache and access resources.
Is there a way when creating a new TiledMap to re-use the resources used in previous TiledMaps? If that’s not possible, is there a way to prevent the TiledMap’s loading from interfering with music playing in the background? I also have considered preloading a TiledMap into the resource manager so that it may be used later without reading from a .tmx file. I’d just like to know all of my options.
Thanks a bunch!