diff options
| author | iamcheeseman <[email protected]> | 2026-03-06 12:24:33 -0500 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-06 12:24:33 -0500 |
| commit | 0e799485ce4d67dc78da5dd41cbebc8b127bfcab (patch) | |
| tree | 8c80617dbb6b4d1ca4d559e881efd7cd36c14c6e /src/sprite.odin | |
| parent | 69bfcb3c5fec6957e00264d24990dd2f1263cd50 (diff) | |
death to the muntik
Diffstat (limited to 'src/sprite.odin')
| -rw-r--r-- | src/sprite.odin | 4 |
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, ) } |
