Hi I have a annoying problem,
Rendering my tmx map in my desktop project is working fine, but when I try to run my project on my Android device the map seems to not get rendered (black background). My player texture and on screen virtual controller buttons do get rendered though…
I can’t figure out what’s going wrong.
Anyone maybe any experience with this and knows what it is?
I’ve posted of my main game’s class here: Pastebin
If you want to have a look.
I’ve set my viewports variables to:
VIEWPORT_WIDTH = 312;
VIEWPORT_HEIGHT = 192;
and V_WIDTH, V_HEIGHT are the device’s with and height.
edit: okay so I’ve got some more info & it gets more confusing for me:
My map actually has 2 layers:
a collisionLayer (1 tileblock that i draw on everypart of the map where there should be background collision)
and a tileLayer (the actual background map)
The collisionLayer actually DOES get drawn when i comment out collisionLayer.setVisible(false); in my createMap method (see pastebin)
My tileLayer is not getting drawn
Also if i remove my collisionLayer, rename my map file and test it on desktop it works fine… on Android Device map doesnt get rendered