aspose file tools*
The moose likes Game Development and the fly likes Tile Map Generator + Scrolling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "Tile Map Generator + Scrolling" Watch "Tile Map Generator + Scrolling" New topic
Author

Tile Map Generator + Scrolling

Keenan Staffieri
Greenhorn

Joined: Jul 22, 2006
Posts: 23
Well, the goal of this map is not to GENERATE a map, but just to scroll it and control visibility, and it works. But I want to make it faster, with some kind help from here.

I would like it if someone would help me make my program better, like faster and I need help with the following:

1) Best way to store map data array positions.
2) Fastest way to render these thingys

Screenies:
http://img431.imageshack.us/img431/7838/1ot5.png
http://img98.imageshack.us/img98/134/2ge8.png
http://img98.imageshack.us/img98/5139/3lg0.png

And also when I use transparent images it is SLOWER, a lot, drops from any high-end fps to like 30-40fps

Also does it seem slighly clucky, or flickery, i have buffering of course, but just SLIGHTLY?

Please someone help me, by running my source code and giving me recommendations, or change it and send it to me. It would be greatly apprecieated, and I'm sorry but im kinda noob at these things, but I promise ill get better if its fixed better. This program is based off Kev glass tuts, yet the actually tile algorithm and visibility controls are mine. I did use his SpriteStore and Sprite class though. But I also wonder if i am using them correctly in TileMap to store the images in only ONE memory location. I think not...

Kee-World-Ala-Tor v1.0

This program generates (stupid) random maps without corner overlay blending tiles. Yet the point of this program is to render a scrollable tile map, with visibility controls and have it be able to scale to any window resolution (works).

Features:
+ Renders a tile map based on 2D array algorithms
+ Scrollable
+ Grid on/off
+ Coord labels on/off
+ Transparent interface
+ 10 Sample Maps
+ Tile visibility controls (only tiles visible on screen are rendered) (works with any window size as well)
+ Edge of map scroll stops
+ Completely scalable interface
+ Works with any window size (within means)
+ Works with any tile texture size
+ Sync´┐Żed scrolling based on fps

Issues:
+ Slow, slow transparency performance.
+ Slow drawRect and drawString performance (Grid/coord)
+ a little flickery?
+ Other things here and there



Download link, look to right and click Download, and then you click the link at the bottom, (sorry if this is a bad way to upload).
http://storeandserve.com/download/639271/WorldGenerator.rar.html
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tile Map Generator + Scrolling
 
Similar Threads
Animated Bacground
Netbeans problem in Mac OS X
Problem JRE up to 6u18 on Java Web Start
Mistake
hundreds of images on a rendering scene