diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 13:24:35 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-06 13:24:35 -0500 |
commit | 6d6e03b95b197d3a16b629131d463263b46c1e42 (patch) | |
tree | 6e730293c3bbeadb3fe3ebfc3f64016a7e885bff /src/sprite.h | |
parent | 1abc8894c2378596542e5772cd7594492eeecb27 (diff) | |
download | tanetane-6d6e03b95b197d3a16b629131d463263b46c1e42.tar.gz tanetane-6d6e03b95b197d3a16b629131d463263b46c1e42.tar.bz2 tanetane-6d6e03b95b197d3a16b629131d463263b46c1e42.zip |
Added sprite interaction
Diffstat (limited to 'src/sprite.h')
-rw-r--r-- | src/sprite.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sprite.h b/src/sprite.h index e9c6fd0..b2cca87 100644 --- a/src/sprite.h +++ b/src/sprite.h | |||
@@ -36,12 +36,13 @@ public: | |||
36 | bool collidable = false; | 36 | bool collidable = false; |
37 | vec2i collisionOffset; | 37 | vec2i collisionOffset; |
38 | vec2i collisionSize; | 38 | vec2i collisionSize; |
39 | std::string interactionScript; | ||
39 | 40 | ||
40 | // Animation | 41 | // Animation |
41 | bool isAnimated = false; | 42 | bool isAnimated = false; |
42 | int textureId; | 43 | int textureId; |
43 | Direction dir = Direction::down; | 44 | Direction dir = Direction::down; |
44 | std::string animationName; | 45 | std::string animationName = "still"; |
45 | int animationId = 0; | 46 | int animationId = 0; |
46 | int animationFrame = 0; | 47 | int animationFrame = 0; |
47 | std::vector<SpriteFrame> frames; | 48 | std::vector<SpriteFrame> frames; |