aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-01-14 15:05:20 -0500
committeriamcheeseman <[hidden email]>2026-01-14 15:05:20 -0500
commit8d824c95f1b64bec6d7e298c7c7d925c4ba3422a (patch)
treea3ce2a994fe4007390ad6d8c9603b6f87b2febb6 /tools
parent9774795b85710c018dca4219ba5c8a71775caadd (diff)
formatting and other cool changes
Diffstat (limited to 'tools')
-rw-r--r--tools/compile_assets/tiled.odin4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/compile_assets/tiled.odin b/tools/compile_assets/tiled.odin
index 5311fa5..9305acc 100644
--- a/tools/compile_assets/tiled.odin
+++ b/tools/compile_assets/tiled.odin
@@ -455,6 +455,7 @@ load_json_room :: proc(path: string, file: ^os.File) {
object_type_names[type_name] = {}
pos := [2]f32{f32(obj.x), f32(obj.y)}
+ size := [2]f32{f32(obj.width), f32(obj.height)}
properties: map[string]union{
bool,
@@ -470,9 +471,10 @@ load_json_room :: proc(path: string, file: ^os.File) {
}
line := fmt.tprintf(
- "{{type = .%v, pos = %w, parallax = %w, properties = %w}}",
+ "{{type = .%v, pos = %w, size = %w, parallax = %w, properties = %w}}",
type_name,
pos,
+ size,
parallax,
properties,
)