I get that message when i try to play my game. I have searched the web and found
-
increase the memory allocated (by using the -Xms and/or -Xmx options to the “java” command)
-
rewrite your application such that it uses less memory
It is my map image which when i make it to big i get the error. I can play with small maps. I’m programming a 2d game and i make the maps in photoshop. But i dont know what format i should use and bit depth. I want to use big maps but not increase the memory allocated to the java command. Can somone help me find the optimal images i should use, please ?