Skip to content

Commit

Permalink
fixed atlas parsing (close HeapsIO#1181)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Dec 3, 2023
1 parent 7f993ee commit e50db54
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hxd/res/Atlas.hx
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,21 @@ class Atlas extends Resource {
case "rotate":
if( v == "true" ) throw "Rotation not supported in atlas";
case "xy":
var vals = v.split(", ");
var vals = v.split(",");
tileX = Std.parseInt(vals[0]);
tileY = Std.parseInt(vals[1]);
tileY = Std.parseInt(StringTools.trim(vals[1]));
case "size":
var vals = v.split(", ");
var vals = v.split(",");
tileW = Std.parseInt(vals[0]);
tileH = Std.parseInt(vals[1]);
tileH = Std.parseInt(StringTools.trim(vals[1]));
case "offset":
var vals = v.split(", ");
var vals = v.split(",");
tileDX = Std.parseInt(vals[0]);
tileDY = Std.parseInt(vals[1]);
tileDY = Std.parseInt(StringTools.trim(vals[1]));
case "orig":
var vals = v.split(", ");
var vals = v.split(",");
origW = Std.parseInt(vals[0]);
origH = Std.parseInt(vals[1]);
origH = Std.parseInt(StringTools.trim(vals[1]));
case "index":
index = Std.parseInt(v);
if( index < 0 ) index = 0;
Expand Down

0 comments on commit e50db54

Please sign in to comment.