Skip to content

Set Window/View Size Before Game Start #123

Description

@11clock

If your game’s virtual resolution (display width and display height) is different from what you want your initial window size to be, you need to call set_view_size on your game’s init. While this works, this function isn’t called until after the game has booted up, leaving your game at the actual display resolution for a few frames.

See the below game that was designed to be in 1080p, but has the view size being set to 720p on init (since a 1080p sized window is unreasonable on most displays).

https://i.gyazo.com/03a91663b2ce441fe80caebeb869af24.mp4

A means to set a starting window/view size separate from the display width and height would be nice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions