aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api')
-rw-r--r--src/crepe/api/Animator.h2
-rw-r--r--src/crepe/api/Sprite.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/Animator.h b/src/crepe/api/Animator.h
index 188f193..511d6ef 100644
--- a/src/crepe/api/Animator.h
+++ b/src/crepe/api/Animator.h
@@ -89,7 +89,7 @@ public:
~Animator(); // dbg_trace
-private:
+public:
//! A reference to the Sprite sheet containing.
Sprite & spritesheet;
diff --git a/src/crepe/api/Sprite.h b/src/crepe/api/Sprite.h
index 96b57e1..354f663 100644
--- a/src/crepe/api/Sprite.h
+++ b/src/crepe/api/Sprite.h
@@ -74,10 +74,10 @@ public:
vec2 size;
//! independent sprite angle. rotating clockwise direction in degrees
- double angle_offset;
+ double angle_offset = 0;
//! independent sprite scale multiplier
- double scale;
+ double scale = 1;
/**
* \aspect_ratio ratio of the img so that scaling will not become weird