cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

Unindent 1 pixel for tile maps with spriteframe

Open qiuguohua opened this issue 1 year ago • 2 comments

Re: #

Changelog


Continuous Integration

This pull request:

  • [ ] needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • [ ] does not change any runtime related code or build configuration

    If any reviewer thinks the CI checks are needed, please uncheck this option, then close and reopen the issue.


Compatibility Check

This pull request:

  • [ ] changes public API, and have ensured backward compatibility with deprecated features.
  • [ ] affects platform compatibility, e.g. system version, browser version, platform sdk version, platform toolchain, language version, hardware compatibility etc.
  • [ ] affects file structure of the build package or build configuration which requires user project upgrade.
  • [ ] introduces breaking changes, please list all changes, affected features and the scope of violation.

Greptile Summary

This change modifies the texture coordinate calculation for tile maps in the Cocos Engine, removing a 0.5 pixel offset.

  • Modified cocos/tiledmap/tiled-utils.ts to eliminate the 0.5 pixel offset in texture coordinate calculations
  • This adjustment aims to improve pixel-perfect alignment for tile maps using sprite frames
  • The change may affect the visual appearance of existing tiled maps in projects using this engine version
  • Developers should review their tiled map implementations to ensure compatibility with this update

qiuguohua avatar Aug 21 '24 02:08 qiuguohua

Interface Check Report

This pull request does not change any public interfaces !

github-actions[bot] avatar Aug 21 '24 02:08 github-actions[bot]

Please send to v3.8.5.

minggo avatar Aug 28 '24 01:08 minggo