Layers and furniture

Some important additions to the procedural building generator this week:

  • The generator now uses layers. I was hoping to avoid having separate layers for stuff, but having all of those symbols on the same map was getting cluttered. Having layers also makes the thing more modular. There’s a structural layer for the walls and floor, and then an arbitrary number of extra layers that can place furniture or clutter. Layers also represent the groundwork of a multi-storey generator.
  • Furniture is here!
  • More tilemask options. I reshuffled stuff a bit in the background to give myself more options and reduce maintenance. Some tilemask lists are now compiled automatically from specialised lists (for example, lists of furniture characters from each room type compile into an allFurniture list).
Layer 0: Structural blueprint
I place the ceiling lights on this layer (L) because it gets them out of the way of the furniture in future layers.

###########W####W####DD#######
W........#...#...............#
W...L....#.L.#..L............#
#........#...#...........L...#
D........##D##..#####........#
#######.........#...#........#
#.....D.........D.L.#..####D##
W.....#....##########..#.D...#
W..L..#.L..#...L....D..###.L.#
#.....#....#........##D#.#...#
########WW###########..#.D...#
                    D..###WW##
                    ##W#

Layer 1: Furniture blueprint
I've had to place some floor tiles (.) down to help the furniture align properly. There was simply no tilemask I could make to properly align some kinds of furniture in particular orientations.

There are also (+) characters beside beds. This is because beds are two-piece objects with a head and a foot, and the + symbol marks the foot of such furniture.

Also! Notice the context-sensitive nature of some of the characters (t giving dining tables or desks, and h giving chairs or sofas or single seaters).

###########W####W####DD#######
W clhhl  #B.w#KKsKK     hhhh #
W .h..h d#+ t#S....     h..h #
#       d#c.w#K.  f     h.   #
D        ##D##  #####    .   #
#######         # s #    v   #
#cd+  D         D . #  ####D##
W.h   # hh ##########  #cD  t#
W... +# tt #Btww  ..D  ### +B#
#cwctB# hh #+ ..  cc##D#s# +B#
########WW########### .#.D .w#
                    D s###WW##
                    ##W#

These screenshots are darker than they have been in the past because I’ve turned the ambient light off to make the effect of the lights easier to see. There are no shadows because I don’t have $1500 for Unity Pro. :/

Cowface

Tags:  

    

Nike Air Max classic Nike Free Run sale Nike Air Max kopen Nike Air Max shop Nike Air Max classic goedkoop Nike Air Max 90 goedkoop Nike Air Max 1 kopen Nike Air Max sale Nike Air Max 90 sale Nike Air Max kopen online