about summary refs log tree commit diff stats
path: root/data/maps/the_revitalized/rooms/Hide Room.txtpb
blob: 92b29bfc03929e2f097542e3a9f3081e5df6d46c (plain) (blame)
1
2
3
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; bac
name: "Hide Room"
panels {
  name: "HIDE"
  path: "Panels/panel_2"
  clue: "hide"
  answer: "hi"
  symbols: SPARKLES
}
class="cpf">"direction.h" #include "timer.h" class Animation { public: explicit Animation(std::string_view path); void setDirection(Direction dir); void setAnimation(std::string_view anim); const SDL_Rect& getRenderRect() const { return frames_.at(animations_.at(animationId_).at(animationFrame_)); } void update(int dt); private: void updateAnim(); std::vector<SDL_Rect> frames_; std::vector<std::vector<int>> animations_; std::map<std::string, std::map<Direction, int>> nameDirToAnim_; Direction dir_ = Direction::down; std::string animationName_ = "still"; int animationId_ = 0; int animationFrame_ = 0; Timer animTimer_ = {1000/5}; }; #endif /* end of include guard: ANIMATION_H_332518EB */