separating tilesets from the game

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tumbleweed
    Adept
    • May 2015
    • 112

    separating tilesets from the game

    Nick, how would you feel about detaching graphics from the whole xtra/graph/graphics.txt shebang?

    Here's one approach I thought could be neater:

    For each tileset, there would be a subdirectory under lib/pref, let's say there's e.g. lib/pref/dvg/

    It'd contain a graphics.cfg containing the part of the basic setup that's now clustered in graphics.txt:
    Code:
    N:David Gervais' tiles
    I:32:32:32x32.png
    P:graf-dvg.prf
    X:0:0:0
    and from there the usual prf structure takes over.

    I guess the catch is that among other things I naively want to remove the reliance on the serial number, and I have a hunch that this might interfere with saving/loading user preferences?

    Anyway, on the other hand this would separate tilesets nicely from the rest of the game, and make the addition and removal of tilesets trivial for the so inclined.

    Thoughts?

    Why doesn't vBulletin have a "can of worms" thread icon?
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9638

    #2
    I'm actually in the process of redoing the directory structures now. One of the options was to have a lib/graphics - or lib/tiles - directory, with subdirectories for each tileset in it. I haven't finished thinking it through yet, we'll see what happens
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎