summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-22 22:46:44 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-22 22:46:44 -0500
commit3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5 (patch)
tree3cb83a80a1f315fb8bc3a918782be2f02d2799ce /src/map.h
parent5e8522258412d05994cc5efa678a1d713cdae718 (diff)
downloadtanetane-3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5.tar.gz
tanetane-3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5.tar.bz2
tanetane-3ecf5bbc1c81908bfd3355999a37e8e96e15b8b5.zip
Generalized upper/lower layer map rendering
Map layers can have a flag on them that specifies that they should be rendered as part of the upper set (rendered above the normal sprite layer but below the above sprite layer).

Also added map connections between hallucination_interior and hallucination_cliff. And named the layers in the map files bc why not.
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/map.h b/src/map.h index a311be1..9467d75 100644 --- a/src/map.h +++ b/src/map.h
@@ -52,7 +52,9 @@ public:
52 52
53 const vec2i& getTileSize() const { return tileSize_; } 53 const vec2i& getTileSize() const { return tileSize_; }
54 54
55 const std::vector<std::vector<Tile>>& getLayers() const { return layers_; } 55 const std::vector<std::vector<Tile>>& getUpperLayers() const { return upperLayers_; }
56
57 const std::vector<std::vector<Tile>>& getLowerLayers() const { return lowerLayers_; }
56 58
57 const std::string& getTilesetFilename() const { return tilesetFilename_; } 59 const std::string& getTilesetFilename() const { return tilesetFilename_; }
58 60
@@ -75,7 +77,8 @@ private:
75 std::string name_; 77 std::string name_;
76 vec2i mapSize_; 78 vec2i mapSize_;
77 vec2i tileSize_; 79 vec2i tileSize_;
78 std::vector<std::vector<Tile>> layers_; 80 std::vector<std::vector<Tile>> upperLayers_;
81 std::vector<std::vector<Tile>> lowerLayers_;
79 std::string tilesetFilename_; 82 std::string tilesetFilename_;
80 int tilesetColumns_; 83 int tilesetColumns_;
81 std::vector<Prototype> prototypes_; 84 std::vector<Prototype> prototypes_;