From c353e0b095fb724ee50d6e09fb00cc82b51da250 Mon Sep 17 00:00:00 2001 From: iamcheeseman <[hidden email]> Date: Thu, 15 Jan 2026 20:23:41 -0500 Subject: unlockable abilities --- src/resources.odin | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/resources.odin') 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 { -- cgit v1.3-2-g0d8e