Problem is in here, in that algo in Engine.java/drawmap.
//For each tile in row
tx = 0;
if((ty-=1) < 0)
ty = 31;
}//for each tile in row
if((i & 1) == 1)
if((mx+=1) > 31)
mx = 32;
if((my+=1) > 31)
my = 32;
I''m compeletely out of answers and questions, too(?). So if you know way to make em'' draw just like they are presented in array OR way to change the drawing algo so that It draws them right, reply, please.
Time comes, time goes and I only am.
GoDEngine intialized Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(URLImageSource.java:106) at sun.awt.image.URLImageSource.getDecoder(URLImageSource.java:115) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.j ava:255) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:221) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:189)
I did ">java rpg", is that right? Why are you getting images with URLs? I tried running a web server on my comp to see if "localhost" was hardcoded in there somewhere, but nope. Okay, got it, i had to put the images under an images dir
Winzip was supposed to do that, I mean put images under images dir. It seems to be that getClass().getResource(); does it automatically? Well, anyhow, then how should I do it? With quick review I couldn''t find better way to do, but it''s not the most important thing in this case. Still, why is it drawing it wrong?
If you look up in loadMap, you set map.num for the various cell types, but you only ever assign one tile to be drawn. For example, in loadMap for a tile of type 5, you set map[_i][j].num to 2, but you only define map[_i][j].tile, so I'm surprised you're not getting errors in the for k loop in drawMap.
That while thing handles layers in real version, but it is useless in here. That transform map doesn''t make any sense, so far. I am surprised by myself, I was almost sure that I knew every single line when I started to transform it from iso view...