diff options
| author | iamcheeseman <[hidden email]> | 2026-01-14 15:05:20 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-01-14 15:05:20 -0500 |
| commit | 8d824c95f1b64bec6d7e298c7c7d925c4ba3422a (patch) | |
| tree | a3ce2a994fe4007390ad6d8c9603b6f87b2febb6 /tools/compile_assets | |
| parent | 9774795b85710c018dca4219ba5c8a71775caadd (diff) | |
formatting and other cool changes
Diffstat (limited to 'tools/compile_assets')
| -rw-r--r-- | tools/compile_assets/tiled.odin | 4 |
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, ) |
