aboutsummaryrefslogtreecommitdiff
path: root/src/draw/animation.odin
diff options
context:
space:
mode:
authorXander Swan <email>2025-12-03 09:52:13 -0500
committerXander Swan <email>2025-12-03 09:52:13 -0500
commitbb52b5f9c9def80b1e8704acabde6f8c6a34e1a2 (patch)
tree14cfa59821799112e462ec1d3f8cdce748b2b92c /src/draw/animation.odin
parentb6cf1d104da53ec9c30dc45c35d9de48812f0afc (diff)
remove unused variables
Diffstat (limited to 'src/draw/animation.odin')
-rw-r--r--src/draw/animation.odin6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/draw/animation.odin b/src/draw/animation.odin
index ac947fb..e6b50d1 100644
--- a/src/draw/animation.odin
+++ b/src/draw/animation.odin
@@ -1,7 +1,7 @@
package draw
+import "core:log"
import "core:encoding/json"
-import "core:fmt"
import "core:os"
import "core:path/filepath"
import "core:strings"
@@ -46,7 +46,7 @@ init_anim_data :: proc(anim: ^Animation, path: string) -> bool {
json_err := json.unmarshal(data, anim)
if json_err != nil {
- fmt.println("could not unmarshal data")
+ log.error("could not unmarshal data")
return false
}
@@ -61,6 +61,8 @@ init_anim_data :: proc(anim: ^Animation, path: string) -> bool {
anim.image_path = strings.concatenate({anim_dir, "/", partial_img_path})
+ log.debugf("loaded animation '%v'", path)
+
return true
}