6 reputation
3
bio website
location
age
visits member for 2 years, 4 months
seen Sep 18 '12 at 13:19

Aug
11
awarded  Popular Question
Aug
21
comment Creating maps and tileset for a 2d java game
I've accidently written this snippet into my draw() method and the tiles were created every frame. Now they're only created once when the map is loading. The frame rate is now way higher.
Aug
21
awarded  Editor
Aug
21
revised Creating maps and tileset for a 2d java game
added 461 characters in body
Aug
21
comment Creating maps and tileset for a 2d java game
Thanks for your code snippet, but I've already found a solution without using switch. It's very dynamic though, you can add as many tiles as you want, 100 tiles per tileset and 16 tilesets per map. The map size is also editable. It's working very well, but the fps drops from around 200 to 20. The reason why I didn't use Tiled is my idea to create random worlds and I don't know how to do so using Tiled.
Aug
21
awarded  Student
Aug
21
asked Creating maps and tileset for a 2d java game