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

Object's scale and/or positioning is off #755

Closed
RaycatWhoDat opened this issue Jan 26, 2020 · 3 comments
Closed

Object's scale and/or positioning is off #755

RaycatWhoDat opened this issue Jan 26, 2020 · 3 comments

Comments

@RaycatWhoDat
Copy link

I just started a new project with Heaps on MacOS 10.15.1 and I've run into some unexpected behavior.

This is all of the code I've written for the project:

package;

class SCCGame extends hxd.App {
  override function init() {
    var defaultFont = hxd.res.DefaultFont.get();
    var textField = new h2d.Text(defaultFont);
    textField.text = "Here we go again.";
    textField.x = 0;
    textField.y = 0;

    s2d.addChild(textField);
  }

  override function update(dt: Float) {
    if (hxd.Key.isDown(hxd.Key.Q)) hxd.System.exit();
  }

  public static function main() {
    hxd.Res.initEmbed();
    new SCCGame();
  }
}

When first starting the game, I end up with a screen like this.
After moving or resizing the window, I end up with a screen I expect.

Would you happen to know the cause of this issue? Did I just miss a setting somewhere?

Thanks in advance.

@RaycatWhoDat
Copy link
Author

Possibly related to #739.

@McPepper
Copy link

Same issue here

@AustinEast
Copy link

Check out this comment, it may help!

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

No branches or pull requests

4 participants