Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Tilemaps and autotiles

  1. #11

    Source code of a sample program generating a pseudo-random map and drawing it using the descibed method: http://svgames.pl/trash/autotiles.zip
    Uses SDL, SDL_image, OpenGL and Sour (included).

  2. #12
    Seems you can save some memory with that technique, but there is a downside. That is performance, for drawing 4 times as many tile-patterns, than you would with full tiles.

    In this thread http://www.pascalgamedevelopment.com...ll=1#post88337
    i ended up with 32 unique tile-fades. It should be enough for most games. But i moved on to shader-based fading...

  3. #13
    Thanks, SV. It's too bad you don't use RM anymore . Anyway I've decided that I'll just write autotile breaker which would break tiles into all 47 possible graphics. It'll make then tileset made from static tiles. Will give much more flexibility when designing maps at the cost of automatic placement . Thing of placing autotiles in RM with shift key.

  4. #14
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    I had tried to make a RPG Maker clone for a project of my own many years ago. (using Delphi 5 or 7) I had even made a near exact clone of Dragon Quest 1 (with a reenactment cutscene of the battle taking place at "destroyed the town of Hawkness") with semi-accurate battle stats too. So I got to work with and get a feel for the autotile system. Actually I took at a lot of inspiration from that engine.

    Super Vegeta's system is a pretty good one. Covers all cases and is compressed to the point of no overhead of assets. Fading from one tile pattern to the next is a challenge and makes graphics content a bit heavier the number of terrain or pattern combinations.

    If you are looking to reduce the number of pre-drawn tiles that you need, you could try using a transparency mask that is designed to fade one tile pattern over another. Essentially you'd be drawing in alpha. Not an easy task, but I'm sure there are tutorials out there. The trick is to make an alpha fade pattern that isn't a linear gradient, but a bit nosier and at the same time seamless with each other alpha fade tile.
    Jason McMillen
    Pascal Game Development
    Co-Founder





Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •