diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 18:05:27 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-21 18:05:27 +0100 |
commit | 993dde2e427127e0c1eb20099c1e014228050c90 (patch) | |
tree | 0b9b3e3471d691437d185057f37b27230e053a09 /src/critter.hpp | |
parent | f3dd8b426f5f39bebc64ed1fae39c8b7d73a6aa5 (diff) |
w auto movement
Diffstat (limited to 'src/critter.hpp')
-rw-r--r-- | src/critter.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/critter.hpp b/src/critter.hpp index 1148b82b..d3f39e87 100644 --- a/src/critter.hpp +++ b/src/critter.hpp @@ -33,13 +33,18 @@ struct critter final : object void update_movement(size_t i, Ns dt, rotation r); void update_nonplayable(size_t i, Ns dt); void set_keys(bool L, bool R, bool U, bool D); + void set_keys_auto(); Vector2 ordinal_offset(Vector2b offset) const override; float depth_offset() const override; String name; float speed = 1; Vector2us offset_frac; // todo! switch to Vector2ui due to `allocate_frame_time' - bool b_L : 1 = false, b_R : 1 = false, b_U : 1 = false, b_D : 1 = false; + + struct movement_s { + bool L : 1, R : 1, U : 1, D : 1, AUTO : 1; + } movement = {}; + bool playable : 1 = false; private: |