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

Add camera to fit default project size #76

Merged
merged 1 commit into from
Jun 25, 2024
Merged

Conversation

manuq
Copy link
Contributor

@manuq manuq commented Jun 24, 2024

The Godot project size defaults to 1152x648 which is 60% of the viewport in Pong. So adding a camera with 0.6 zoom makes the game fit in the default viewport. And makes it look odd in other sizes.

Also now the HUD layer follows the viewport size.

https://phabricator.endlessm.com/T35515

The Godot project size defaults to 1152x648 which is 60% of the viewport
in Pong. So adding a camera with 0.6 zoom makes the game fit in the
default viewport. And makes it look odd in other sizes.

Also now the HUD layer follows the viewport size.
@wnbaum
Copy link
Contributor

wnbaum commented Jun 24, 2024

Tested on new project and looks good to me!

@dylanmccall dylanmccall merged commit d78eba2 into main Jun 25, 2024
2 checks passed
@dylanmccall dylanmccall deleted the fix-viewport-example branch June 25, 2024 01:32
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.

3 participants