diff options
| author | Xander Swan <email> | 2025-12-03 09:52:13 -0500 |
|---|---|---|
| committer | Xander Swan <email> | 2025-12-03 09:52:13 -0500 |
| commit | bb52b5f9c9def80b1e8704acabde6f8c6a34e1a2 (patch) | |
| tree | 14cfa59821799112e462ec1d3f8cdce748b2b92c /src/draw/animation.odin | |
| parent | b6cf1d104da53ec9c30dc45c35d9de48812f0afc (diff) | |
remove unused variables
Diffstat (limited to 'src/draw/animation.odin')
| -rw-r--r-- | src/draw/animation.odin | 6 |
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 } |
