Documentation ¶
Index ¶
Constants ¶
View Source
const ScreenHeight = 240
View Source
const ScreenWidth = 320
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct {
// contains filtered or unexported fields
}
func (*Game) Layout ¶
Layout accepts a native outside size in device-independent pixels and returns the game's logical screen size. On desktops, the outside is a window or a monitor (fullscreen mode)
Even though the outside size and the screen size differ, the rendering scale is automatically adjusted to fit with the outside.
You can return a fixed screen size if you don't care, or you can also return a calculated screen size adjusted with the given outside size.
Click to show internal directories.
Click to hide internal directories.