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/sprite.odin | |
| parent | b6cf1d104da53ec9c30dc45c35d9de48812f0afc (diff) | |
remove unused variables
Diffstat (limited to 'src/draw/sprite.odin')
| -rw-r--r-- | src/draw/sprite.odin | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/draw/sprite.odin b/src/draw/sprite.odin index e62f650..e2f2639 100644 --- a/src/draw/sprite.odin +++ b/src/draw/sprite.odin @@ -1,6 +1,6 @@ package draw -import "core:fmt" +import "core:log" import "core:image" import "core:image/qoi" @@ -19,10 +19,9 @@ init_sprite :: proc( path: string, anim: Animation = {}, ) -> bool { - fmt.println(path) img, img_err := qoi.load_from_file(path) if img_err != nil { - fmt.println("could not load image") + log.error("could not load image") return false } defer image.destroy(img) @@ -38,6 +37,8 @@ init_sprite :: proc( }) sprite.anim = anim + log.debugf("loaded sprite '%v'", path) + return true } |
