diff options
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 } |
