aboutsummaryrefslogtreecommitdiff
path: root/src/draw/sprite.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/draw/sprite.odin')
-rw-r--r--src/draw/sprite.odin7
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
}