diff options
Diffstat (limited to 'tools/compile_assets/tiled.odin')
| -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, ) |
