Tile maps and scrolling

I know I am late getting in on this thread, but since I am haveing some 3D “issue’s” I though I would take a look.

Win 2k, java 1.4.0
GeForce II nvidia
AMD Athlon 1.1 ghz.

and BOOM very, very nice 69 fps and perfectly smooth.
Can I use it to make an RPG? ;D jk

M

Abuse: Thanks for the math correction, what the hell was I on when I did that? :smiley:

Received this error on older code:
Exc in thread “main” java.lang.NoSuchMethodError
at com.sas.util.gui.FullScreenJFrame.getDisplayModes
at com.sas.util.gui.VideoModeSelector.
at com.sas.planetation.examples.MapDisplayExample. main

I’m coding in (1.3.0-C) do I need 1.4 to run this?

[quote]Okay, that old zip file is out of date so I’ve put up a new jar file that contains all the classes, source, resources and javadocs at:

http://www.scottshaver2000.com/planetation/files/planetation.jar
[/quote]
Also URL above is 404…

Great Forum…

Looks like the Planetation home has moved to:

http://www.scottshaver2000.com/template/template.php?page=planetation_main

Try this for a direct download:

http://www.scottshaver2000.com/sections/libraries/planetation/files/planetation.jar

cfmdobbie: Thanks for showing the new location, I pu up a notice about the site change in the Planetaion thread but forgot to put one here.

demon_coder: You do need 1.4 to run it.

cfmdobbie / zparticle:

Thanks for the update. Upgrade to 1.4. :-/ Well, I’ve been putting this off long enough.

demon_coder

First off, thanks for the great code. I’m new to game programming (but not Java) and it has been very helpful in learning the ropes.

I started playing around with planetation and ran into a couple of issues (athlon 1gz, 512mb, geforce4 ti4200, jdk 1.4.1_01):

  1. When I created a map with a number of tiles (10-20 I believe), while scrolling around, a few places the framerate would plunge down to 5-7. I added a few more and it pretty much stayed that low there no matter where I went. The map was 100x100 using 30 px by 30 px tiles.

  2. The map editor allowed tiles larger than the map tile size. This worked out good because then I could easily add larger images like mountians and castles to the map. However, when scrolling around, once the original tile is out of the viewport, the entire image disappears (the part that was larger than the origin tile’s height or width). It would be nice to be able to lay out tiles as well as larger images in the map editor. Any way to get around this limitation?

Thanks

Don

Forgot to mention, I’m testing at 640x480x16 and the original examples work beautifully.

mrdon: I’m moving so it may take a little bit for me to get to your issues. Bare with me, next month I should be able to look into it.

One thing to remember is that the use of transparent images and images with alpha blending will slow things down a lot. Also I’ve found that starting a game in 16 bit video mode and using 256 color gifs for the tiles will increase the speed. My examples used 32 bit PNG tiles. But in practice GIFs are faster and less memory intensive.

I cant seem to get it to work I get the error:
Registry key ‘Software\JavaSoft\Java Runtime Environment\CurrentVersion’
has value ‘1.3’, but ‘1.2’ is required.

Can anybody please help?

You’ll need 1.4 to run the programs.