From b06b259c54e09f1a4026191d6eec9684599bd370 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 23 Feb 2021 22:22:49 -0500 Subject: 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?? --- src/map.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map.h') 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 @@ #include #include "vector.h" #include "step_type.h" +#include "sprite.h" struct Tile { unsigned int id = 0; @@ -14,6 +15,7 @@ struct Tile { bool flipVertical = false; bool blocked = false; StepType step = StepType::none; + CharacterMedium medium = CharacterMedium::Normal; }; struct Prototype { @@ -64,6 +66,8 @@ public: StepType getStepType(int x, int y) const; + CharacterMedium getMedium(int x, int y) const; + const std::vector& getPrototypes() const { return prototypes_; } const vec2i& getWarpPoint(const std::string& name) const { return warpPoints_.at(name); } -- cgit 1.4.1