Skip to content

Commit

Permalink
fixing parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Nov 4, 2024
1 parent 53608db commit c2f3d26
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions utils/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,10 @@ export class LdtkReader {
},
textureOffset: { x: xOffset, y: yOffset },
textureRepeat: {
x:
1 /
(spritesPerRow /
((entity?.tileRect.w ?? 0) / tileset?.tileGridSize ?? 1)),
x: 1 / (spritesPerRow / (entity?.tileRect.w / tileset?.tileGridSize)),
y:
1 /
(spritesPerColumn /
((entity?.tileRect.h ?? 0) / tileset?.tileGridSize ?? 1)),
(spritesPerColumn / (entity?.tileRect.h / tileset?.tileGridSize)),
},
z: 0.23,
});
Expand Down

0 comments on commit c2f3d26

Please sign in to comment.