aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 20:03:14 +0100
commit3d2428af8e8d9d49b4ade52d4806a7dae4cf1ab8 (patch)
tree30d908c427ff9b4ee53402fbf52cb15704e58623 /src/crepe/api/Sprite.h
parentfde229c24dcbd1ed844880a35eabddb88279802b (diff)
merge #25 + nitpicking
Diffstat (limited to 'src/crepe/api/Sprite.h')
-rw-r--r--src/crepe/api/Sprite.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index 28078cd..00dcb27 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -12,14 +12,15 @@
namespace crepe {
struct FlipSettings {
- bool flip_x = 1;
- bool flip_y = 1;
+ bool flip_x = true;
+ bool flip_y = true;
};
class Sprite : public Component {
public:
- Sprite(game_object_id_t id, std::shared_ptr<Texture> image, const Color & color, const FlipSettings & flip);
+ Sprite(game_object_id_t id, std::shared_ptr<Texture> image,
+ const Color & color, const FlipSettings & flip);
~Sprite();
std::shared_ptr<Texture> sprite_image;
Color color;