• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Tile Map Generator + Scrolling

Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


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).

+ 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

+ 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).
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic