diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-30 21:02:27 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-11-30 21:02:27 +0100 |
commit | 6ae0b9038e432869b506cbdfe2779e97d3732d87 (patch) | |
tree | 7fadff8dd2125c48422ab10c6faa532650f8327a /src/crepe/api/Sprite.cpp | |
parent | 1520cb55ad714583c3903f2988b0fdc38ede9c18 (diff) |
improved animator
Diffstat (limited to 'src/crepe/api/Sprite.cpp')
-rw-r--r-- | src/crepe/api/Sprite.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/Sprite.cpp b/src/crepe/api/Sprite.cpp index 1d57b53..29e415f 100644 --- a/src/crepe/api/Sprite.cpp +++ b/src/crepe/api/Sprite.cpp @@ -6,19 +6,20 @@ #include "Component.h" #include "Sprite.h" #include "Texture.h" +#include "types.h" using namespace std; using namespace crepe; Sprite::Sprite(game_object_id_t id, Texture & image, const Color & color, - const FlipSettings & flip, int sort_layer, int order_layer, float height) + const FlipSettings & flip, int sort_layer, int order_layer, const vec2 & size) : Component(id), color(color), flip(flip), sprite_image(std::move(image)), sorting_in_layer(sort_layer), order_in_layer(order_layer), - height(height) { + size(size) { dbg_trace(); |