@safe-engine/cocos 2.5.10 → 2.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"TiledMapContainer.d.ts","sourceRoot":"","sources":["../../src/fasttiled/TiledMapContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGnC,qBAAa,iBAAkB,SAAQ,EAAE,CAAC,IAAI;IAC5C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAY;IAC9C,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAY;IAE1C,QAAQ,CAAC,SAAS,EAAE,MAAM;IAI1B,cAAc,CAAC,SAAS,EAAE,MAAM;CAGjC;AAED,qBAAa,aAAc,SAAQ,EAAE,CAAC,IAAI;IACxC,OAAO,EAAE,GAAG,CAAA;IACZ,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IAOpC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAIjC"}
1
+ {"version":3,"file":"TiledMapContainer.d.ts","sourceRoot":"","sources":["../../src/fasttiled/TiledMapContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAGnC,qBAAa,iBAAkB,SAAQ,EAAE,CAAC,IAAI;IAC5C,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAY;IAC9C,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAY;IAE1C,QAAQ,CAAC,SAAS,EAAE,MAAM;IAI1B,cAAc,CAAC,SAAS,EAAE,MAAM;CAGjC;AAED,qBAAa,aAAc,SAAQ,EAAE,CAAC,IAAI;IACxC,OAAO,EAAE,GAAG,CAAA;IACZ,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;IAMpC,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;CAIjC"}
@@ -15,8 +15,7 @@ export class TiledMapLayer extends cc.Node {
15
15
  getPositionAt(tx, ty) {
16
16
  // Use zero-based tile coordinates (no +1) and convert local tile position to world space
17
17
  const pos = tileToPixel(this.mapData, tx, ty);
18
- const worldPoint = this.convertToWorldSpaceAR(cc.p(pos.x, pos.y));
19
- return Vec2(worldPoint);
18
+ return Vec2(pos.x, pos.y);
20
19
  }
21
20
  getTileAt(tx, ty) {
22
21
  const idx = 0 | (tx + ty * this.mapData.width);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@safe-engine/cocos",
3
- "version": "2.5.10",
3
+ "version": "2.5.11",
4
4
  "description": "safe-engine with cocos renderer support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",