summary refs log tree commit diff stats
path: root/src/map.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-23 22:22:49 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2021-02-24 16:00:53 -0500
commitb06b259c54e09f1a4026191d6eec9684599bd370 (patch)
treef31b241c3da5559d388d97bf9e65c2104f4652e8 /src/map.h
parentae654356f843bb42a3c72d57b528d87aa63cf66d (diff)
downloadtanetane-b06b259c54e09f1a4026191d6eec9684599bd370.tar.gz
tanetane-b06b259c54e09f1a4026191d6eec9684599bd370.tar.bz2
tanetane-b06b259c54e09f1a4026191d6eec9684599bd370.zip
Started working on ladders
TODO:
* all the animations are weird. we will need to have an adjustable framerate bc the climbing animation does not look right at the current rate. (also remove the manual animation stuff ig)
* does the medium stuff seem good and right? i am kinda not satisfied with it.
* running onto a ladder causes the characters to bunch up bc the movement speed is slowed down but the trails are not doubled
* no ladder running sound
* shadows should vanish while on a ladder
* uhh if you end a cutscene while on a ladder it resets the animation to "still" which is wrong. will this ever happen? idk
* adding a sprite to your party while you are on a ladder??
Diffstat (limited to 'src/map.h')
-rw-r--r--src/map.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map.h b/src/map.h index 9467d75..1a88cc8 100644 --- a/src/map.h +++ b/src/map.h
@@ -7,6 +7,7 @@
7#include <vector> 7#include <vector>
8#include "vector.h" 8#include "vector.h"
9#include "step_type.h" 9#include "step_type.h"
10#include "sprite.h"
10 11
11struct Tile { 12struct Tile {
12 unsigned int id = 0; 13 unsigned int id = 0;
@@ -14,6 +15,7 @@ struct Tile {
14 bool flipVertical = false; 15 bool flipVertical = false;
15 bool blocked = false; 16 bool blocked = false;
16 StepType step = StepType::none; 17 StepType step = StepType::none;
18 CharacterMedium medium = CharacterMedium::Normal;
17}; 19};
18 20
19struct Prototype { 21struct Prototype {
@@ -64,6 +66,8 @@ public:
64 66
65 StepType getStepType(int x, int y) const; 67 StepType getStepType(int x, int y) const;
66 68
69 CharacterMedium getMedium(int x, int y) const;
70
67 const std::vector<Prototype>& getPrototypes() const { return prototypes_; } 71 const std::vector<Prototype>& getPrototypes() const { return prototypes_; }
68 72
69 const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } 73 const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); }