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

Fix Debug UI size on small letterbox resolution #616

Open
wants to merge 2 commits into
base: v3001
Choose a base branch
from

Conversation

Andrek25
Copy link

@Andrek25 Andrek25 commented Feb 22, 2025

Description

When you set a letterbox config with small resolution (ie: { width: 320, height: 240, letterbox: true }) the debug text size is so small you can't see anything,

image

Video: https://youtu.be/QuNo67Vp0pU

To deal with this I just remove all drawUnscaled.

I would like to mention that we can add a property to control the debug size so devs can have more control, example:

  • debug.scale = 3;
  • debug.textSize = 24 // in pixels.

I prefer the scale way 😄

Copy link

pkg-pr-new bot commented Feb 22, 2025

Open in Stackblitz

npm i https://pkg.pr.new/kaplayjs/kaplay@616

commit: 027abba

@lajbel lajbel self-requested a review March 3, 2025 01:53
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.

1 participant