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

Overhaul pointer #3210

Merged
merged 9 commits into from
Jul 10, 2024
Merged

Overhaul pointer #3210

merged 9 commits into from
Jul 10, 2024

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Jul 9, 2024

adds:

  • getGamePosition: The position relative to the game's position in the window, where (0, 0) is the top-left edge of the game and (FlxG.width, FlxG.height) is the bottom-right
  • gameX / gameY: The result of getGamePosition()
  • getViewPosition: Fetch the world position of the pointer relative to given camera's scroll position
  • viewX / viewY: The result of getViewPosition(FlxG.camera)
    deprecates:
  • setGlobalScreenPositionUnsafe, getScreenPosition, screenX, screenY, getPoisitonInCameraView, _globalScreenX and _globalScreenY

@Geokureli Geokureli merged commit ad012fa into HaxeFlixel:dev Jul 10, 2024
6 of 8 checks passed
@Geokureli Geokureli changed the title Pointer Overhaul pointer Jul 10, 2024
@Geokureli Geokureli mentioned this pull request Jul 10, 2024
@Geokureli Geokureli added this to the 5.9.0 milestone Jul 15, 2024
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