summary refs log tree commit diff stats
path: root/src/sprite.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-09 11:51:34 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-03-09 11:51:34 -0500
commit89fc2da3f08fcd751ca069fde0987d193e59b007 (patch)
tree09d9f8c7fc44a72f3fa7677048a127286ac850a5 /src/sprite.h
parentdd052d68e95f5b2128da272127e165c4a70f3f94 (diff)
downloadtanetane-89fc2da3f08fcd751ca069fde0987d193e59b007.tar.gz
tanetane-89fc2da3f08fcd751ca069fde0987d193e59b007.tar.bz2
tanetane-89fc2da3f08fcd751ca069fde0987d193e59b007.zip
Added "let's switch places!" Claus sprite
He will wander randomly until you get close, and will then run at you. Talking to him or bumping into him does nothing currently. If you move out of his range of interest he will go back to wandering at a walking pace.

#10
Diffstat (limited to 'src/sprite.h')
-rw-r--r--src/sprite.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sprite.h b/src/sprite.h index 2ab306d..10dd3a8 100644 --- a/src/sprite.h +++ b/src/sprite.h
@@ -45,7 +45,8 @@ enum class CharacterMedium {
45enum class BehaviourType { 45enum class BehaviourType {
46 None, 46 None,
47 Wander, 47 Wander,
48 Path 48 Path,
49 Follow
49}; 50};
50 51
51enum class MirrorType { 52enum class MirrorType {
@@ -128,6 +129,7 @@ public:
128 vec2i pathfindingDestination; 129 vec2i pathfindingDestination;
129 bool cardinalDirectionsOnly = false; 130 bool cardinalDirectionsOnly = false;
130 std::deque<PathfindingInstruction> path; 131 std::deque<PathfindingInstruction> path;
132 int followSpriteId = -1;
131 133
132 // Mirror 134 // Mirror
133 MirrorType mirrorType = MirrorType::None; 135 MirrorType mirrorType = MirrorType::None;