Skip to content

Conversation

@Geokureli
Copy link
Member

@Geokureli Geokureli commented Jan 10, 2025

  • FlxBaseTilemap
    • Implements getColumnAt, getRowAt, getColumnPos, getRowPos and ray methods
    • Adds abstract getTileWidth, getTileHeight and orientTile methods
    • Adds getColumnPosAt, getRowPosAt, rayAdvanced, forEachInRay, findInRay, findIndexInRay, forEachInColumn, findInColumn, findIndexInColumn, forEachInRow, findInRow and findIndexInRow
    • Adds optional orient arg to getTileData
  • FlxTilemap: implement getTileWidth, getTileHeight and orientTile methods

TODO:

  • List all new functions above
  • Visually test that it actually works
  • Create unit tests
  • Test starting a ray inside a block
  • add forEachInRow cuz why not
  • move all of these to FlxBaseTilemap, except findIndexInColumnI and maybe findIndexInRayI - did all of 'em

@Geokureli Geokureli changed the title Add various forEachInRay helpers FlxBaseTilemap - Add various forEachInRay helpers Jan 10, 2025
@Geokureli Geokureli added this to the 6.2.0 milestone Apr 28, 2025
@Geokureli
Copy link
Member Author

Screen.Recording.2025-12-19.at.6.46.57.PM.mov

@Geokureli Geokureli marked this pull request as ready for review December 24, 2025 02:16
@Geokureli Geokureli merged commit c86e36f into HaxeFlixel:dev Dec 24, 2025
10 checks passed
@Geokureli Geokureli deleted the foreach-ray branch December 24, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant