diff options
| author | iamcheeseman <[hidden email]> | 2026-01-15 20:23:41 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-15 20:23:41 -0500 |
| commit | c353e0b095fb724ee50d6e09fb00cc82b51da250 (patch) | |
| tree | 060f11a1e09352e3191b0fc1ad7970abc8b7e3a0 /src/resources.odin | |
| parent | 012a78995d9e360de1d931943b34f21d4f4a85af (diff) | |
unlockable abilities
Diffstat (limited to 'src/resources.odin')
| -rw-r--r-- | src/resources.odin | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/resources.odin b/src/resources.odin index 537c265..7051fcf 100644 --- a/src/resources.odin +++ b/src/resources.odin @@ -4,6 +4,13 @@ import "core:log" import rl "vendor:raylib" +Tiled_Property :: union { + string, + i32, + f32, + bool, +} + Image_Resource :: struct { texture: rl.Texture2D, anim: Animation_Id, @@ -26,7 +33,7 @@ Object_Resource :: struct { pos: Vec2, size: Vec2, parallax: Vec2, - properties: map[string]any, + properties: map[string]Tiled_Property, } Room_Resource :: struct { |
