aboutsummaryrefslogtreecommitdiff
path: root/src/sprite.odin
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-06 12:24:33 -0500
committeriamcheeseman <[email protected]>2026-03-06 12:24:33 -0500
commit0e799485ce4d67dc78da5dd41cbebc8b127bfcab (patch)
tree8c80617dbb6b4d1ca4d559e881efd7cd36c14c6e /src/sprite.odin
parent69bfcb3c5fec6957e00264d24990dd2f1263cd50 (diff)
death to the muntik
Diffstat (limited to 'src/sprite.odin')
-rw-r--r--src/sprite.odin4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sprite.odin b/src/sprite.odin
index da236e7..9141724 100644
--- a/src/sprite.odin
+++ b/src/sprite.odin
@@ -17,6 +17,7 @@ Sprite :: struct {
offset: Vec2,
rotation: f32,
scale: Vec2,
+ tint: Color,
just_finished_loop: bool,
}
@@ -40,6 +41,8 @@ init_sprite :: proc(
sprite.height = i32(sprite.image.size.y)
sprite.scale = Vec2{1, 1}
+
+ sprite.tint = fw.WHITE
}
set_sprite_active_tag :: proc(sprite: ^Sprite, tag_name: string) {
@@ -92,5 +95,6 @@ draw_sprite :: proc(sprite: Sprite) {
offset = sprite.offset,
rot = sprite.rotation,
scale = sprite.scale,
+ color = sprite.tint,
)
}