Comments (2)
traced this back to openFL's Stage.__mouseY
so I think it's probably safe to assume this isn't a flixel issue?
from flixel.
What is going on here? is this a way to resize the game?
width: 640px;
Here are my results:
getScreenPosition
andgetPositionInCameraView
:(cam.viewMarginLeft, cam.viewMarginTop)
is at the top-left of the camera and(cam.viewMarginRight, cam.viewMarginBottom)
is the bottom-right of the cameragetWorldPosition
: self explanatory- _globalScreenX/Y:
(0, 0)
is at the top-left of the FlxGame,(FlxG.width, FlxG.height)
is at the bottom-right of the FlxGame
What I'm working on (or thinking about doing):
getGamePosition
: Same a_globalScreen
, I believe this is what you're aftergetWindowPosition
: (0, 0) is the top-left of the window, (stage.StageWidth, stage.StageHeight) is the bottom right of the windowgetViewPosition
,viewX
andviewY
: Replacement for the confusing "screen" fields andgetPositionInCameraView
from flixel.
Related Issues (20)
- [ENHANCEMENT] Make SoundFrontEnd.volumeHandler a FlxSignal
- FlxTween: Unsupported recursive type HOT 10
- Innaccurate fps to FlxG.stage.frameRate HOT 4
- Batch Async utils
- add onAdded/onRemoved?
- Destroy bug I think HOT 12
- Detect changes to clipRect without needing to reset the field in order to take effect HOT 2
- Improve Performance of Debug Drawing HOT 8
- Code Climate, I love you but you're bringing me down HOT 1
- DrawTriangle's rendering broken, not rendering HOT 4
- Graphic getting destroyed when recycling HOT 2
- FlxSprite twitching when a pixel-perfect camera follows a FlxSprite HOT 2
- Xbox One Controller not working on MacOS cpp builds HOT 8
- No publicly accessible functionality to get global screen position in FlxPointer HOT 2
- FlxCamera.fill() uses blend mode of the last drawn item on camera HOT 2
- FlxAnimationController.callback should be an FlxSignal HOT 3
- FlxCamera.color is not functional HOT 1
- FlxAnimationController.finishCallback does not trigger on looped animations HOT 8
- Add FlxMath.fastTan() HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flixel.