Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major TileMap improvements #2177

Merged
merged 21 commits into from
Mar 7, 2024

Conversation

korge-game-engine
Copy link
Member

@korge-game-engine korge-game-engine commented Mar 7, 2024

  • New Tile replacing TileInfo available con korlibs-image. This one uses Longs for backing up the map. It should give good performance in all targets including WASM except on plain JS
  • Supports for using orientation for defining Tile (include rotations and horizontal/vertical flips)
  • New TileMapData that internally wraps a LongArray2 and uses Tile inline class publicly, replacing the old TileMapData that wrapped an IntArray and was used in ImageFrameLayer and ASE.
  • Variants for reinterpreting IStackedInt/LongArray2 as Long or Int for compatibility with existing maps
  • Automatic detection of changes of the map on TileMap view without explicitly having to lock/unlock the map view
  • Now Tile supports offseting of up to -32000 +32000 units
  • Support fractional scaling offsets per map with different precisions

@korge-game-engine korge-game-engine changed the title Adds Tile, TileMapInfo with Orientation support and update TileMap to support this Major TileMap improvements Mar 7, 2024
@korge-game-engine korge-game-engine enabled auto-merge (squash) March 7, 2024 19:56
@korge-game-engine korge-game-engine merged commit a1dcef3 into main Mar 7, 2024
9 checks passed
@korge-game-engine korge-game-engine deleted the feature/tilemapinfo.tile.and.tile.orientation branch March 7, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants