summary refs log tree commit diff stats
path: root/src/behaviour_system.cpp
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-03-01 22:19:46 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-03-01 22:19:46 -0500
commit7fa69be4e88f1fcf057871fec7e4503f50578465 (patch)
tree70a01aafe4092c29c112f72895494dbfa2033496 /src/behaviour_system.cpp
parentd8e7d815c197c5477678d835038dc3ff86c2a7e8 (diff)
downloadtanetane-7fa69be4e88f1fcf057871fec7e4503f50578465.tar.gz
tanetane-7fa69be4e88f1fcf057871fec7e4503f50578465.tar.bz2
tanetane-7fa69be4e88f1fcf057871fec7e4503f50578465.zip
Started writing the Mixolydia scene!
Looking pretty good so far.

TODO: direction facing functions have inverted Y coordinate. confusion expression doesn't exist yet. rest of scene.
Diffstat (limited to 'src/behaviour_system.cpp')
-rw-r--r--src/behaviour_system.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/behaviour_system.cpp b/src/behaviour_system.cpp index 4a194f0..a05912c 100644 --- a/src/behaviour_system.cpp +++ b/src/behaviour_system.cpp
@@ -59,6 +59,7 @@ void BehaviourSystem::tick(double dt) {
59 59
60void BehaviourSystem::directSpriteToLocation(int spriteId, vec2i pos, PathfindingOptions options) { 60void BehaviourSystem::directSpriteToLocation(int spriteId, vec2i pos, PathfindingOptions options) {
61 Sprite& sprite = game_.getSprite(spriteId); 61 Sprite& sprite = game_.getSprite(spriteId);
62 sprite.orientable = true;
62 sprite.behaviourType = BehaviourType::Path; 63 sprite.behaviourType = BehaviourType::Path;
63 sprite.pathfindingDestination = pos; 64 sprite.pathfindingDestination = pos;
64 sprite.cardinalDirectionsOnly = pathfindingOptionsContains(options, PathfindingOptions::CardinalDirectionsOnly); 65 sprite.cardinalDirectionsOnly = pathfindingOptionsContains(options, PathfindingOptions::CardinalDirectionsOnly);