Skip to main content

Advice needed on tilesets...

I need some advice on which is the best way to handle building the dungeon.
Right now I'm using prefabs for my dungeon, they have a north south east and west section for each "room":


The basic tileset.

This has several advantages, and also several disadvantages. Firstly I can have curved rooms, I can have tunnels and other interesting shapes. The tilesets can look quite nice with a little work. On the other hand I can't easily get the navigation data before building the map and once the map has been built I can't make changes to the layout, like having active pit traps or believable secret doors. Although the rooms are interesting, they are quite repetitive, and it takes a lot of effort to make even a few different variations. Also rooms are constrained to one size.

A newer version of the tileset with a lot of variant parts for making more interesting rooms.

To create a tile set is a real headache too. Planning how to lay out the UVs, trying to cram as much detail in to one set as possible so there can be a lot of variations... it takes days to make a single tile set, and I need dozens. :(

One other approach I've thought about is making the maps completely tile based, just like a traditional roguelike.

A tile based floor.

In this case I'll be able to make the base tilesets very easily, and quickly. We can't have as many different room shapes, so different tile sets are going to be mostly differentiated by they color and textures. It's a bit old fashioned, which is sometimes something that I like, but not always.

A different texture.
 
There is more scope for creating more shapes and room types in the dungeon builder itself. I can have small rooms and big rooms. Size 1 corridors as well as larger sizes. I can make mazes and other interesting constructions, I can make catacombs and caves.

The downside is that the textures can be quite repetitive. A lot of texture real estate is taken up with very similar visual structures.

Other points for and against:
  • Prefabs can have interesting features such as alcoves or shelves built in to the wall.
  • Tiles can make interesting floor structures such as irregular pits and grilles.
  • Prefabs can have more interesting entrance and exit stairs.
  • Prefabs can mix and match tilesets within the same map.
  • Tiles can mix and match tilesets easily within the same room.
  • Tile based dungeons are less predictable.
  • Tile based dungeons can have dynamic features such as working pits or tunnel-able walls.
  • I know how to handle the tilebased graphics because I've already used them in another project.
  • Prefabs are already in the game and working well.
  • With a tile based game I can build the navigation array before placing any objects in the scene.
  • Prefabs require support pillars at the corner of each room.
  • Tile based graphics don't, they can have really large rooms without any visible support.
  • Theoretically I have code for different sized prefabs. Either 10x10 rooms as I have now or any other size, such as 6x6 or 20x20 or 100x100 which would allow large set pieces such as caverns or houses or castles or even boats or airships...

So what do you think?

Should I continue with the more modern prefab idea, or go back to basics with a traditional tile based dungeon?





Comments

  1. Testing! Testing! "Wow this game looks awesome!"

    ReplyDelete
  2. Some people have complained that comments are impossible to post on the blog. Don't worry, I'm sorting it out now. Although, there may be a lot of spam comments... :)

    ReplyDelete
  3. Embedded comments now working (possibly).

    ReplyDelete
  4. Why not use both?
    Have a base map, lets assume that this is a xy tile system.
    You can then use auto generation to create the map. But, drop in prefabricated parts when needed as you will know their tile dimensions, they should just be able to be dropped in ?

    ReplyDelete
    Replies
    1. That is a pretty good idea.
      If I generate my map at the 1x1 scale, rather than at the 10x10 scale, I could treat the prefabs as 10x10 rooms and place them as needed. It's something that would need a lot of rewriting to get it working though.

      The result would probably be worth the effort, so it's something I will keep in mind for the first rewrite of the game, kind of an expansion, once I get the basic parts of the game working.

      Delete
  5. I'd second the mix idea.
    I'd want area's such as "Large spiders nest" etc to be prefab and interesting the same with secret areas, but a corridor is a corridor and will be repetitive whatever you do.

    I'd go about making 20 or so prefab areas that get "added in" to the random room generation, This means you can have the ease of not having to design all the individual room layouts - but the code would add in a secret weapons cache or map puzzle. Boss areas or special areas should also be prefab

    ReplyDelete
    Replies
    1. I'm working on the idea now.
      To make things easier I'm going to make a simple painting program to place tiles to create a prefab area and then save in a dictionary. It might wait a little bit though because with a little more work I could also add in the ability to pre-place furniture items, specific treasures, specific monsters or NPCs and even traps, and puzzles.

      Delete

Post a Comment

Popular posts from this blog

Automating Level imports from Blender to Godot

  Recently I've been making some levels in Blender an importing them into Godot. There are only about 7 or 8 shaders for each level, not counting dynamic objects which will be added later. But to improve rendering performance, it can be a good idea to split the meshes up into sections. At that point you might be faced with a list like this: Or it might be even more chaotic, if you didn't use simple names for the objects in your level. So it can take a long time to sort out all the meshes, make them unique and add textures and so on. Blender imports with simple Blender textures, or with placeholder materials. This is sometimes OK, but if your Godot shaders are very different to those used by Blender, it means applying new materials to every mesh object in the level when you import the scene. I found that during the design process, I was importing and readying a level several times before I was happy with the final layout. So at first I was wasting a lot of time. In Blender, I us

Dynamic terrain in GODOT

Long time no posts. I haven't been keeping up with the projects I started. At first it seems fun and exciting, but I always run in to limitations in the setup, plus the grind of just making stuff without any real challenges... It ends up being something that I don't want to commit to. So right now I'm just messing around with some ideas and see what comes out. No commitment to a bigger project, just some time to try new things. This week I've been working on procedurally generated terrain.  In the past, there were some big limitations on how I approached this, because the game world had to have the whole map, from the micro to the macro. I had to choose a scale somewhere between, which meant I couldn't have really large maps, or really small details. I think I've found a way around that. Below you can see two types of map data coexisting on top of each other. The wireframe is the collision data, used for physics and for clicking on the map, to move characters ar

Make your game models POP with fake rim lighting.

I was watching one of my son's cartoons today and I noticed they models were using serious amounts of simulated rim lighting . Even though it wasn't a dark scene where you'd usually see such an effect, the result was actually quite effective. The white edge highlighting and ambient occluded creases give a kind of high contrast that is similar to, but different from traditional comic book ink work. I'll be honest, I don't know if there's a specific term for this effect in 3d design, since my major at university was in traditional art. I learned it as part of photography. You can find plenty of tutorials on "what is rim lighting" for photography. It basically means putting your main sources of light behind your subject so that they are lit around the edges. It can produce very arresting photographs, either with an obvious effect when used on a dark subject ... ..,or as part of a fully lit scene to add some subtle highlights. See ho