Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer interface {
// Draw is called every frame to render the game to screen.
Draw(screen *ebiten.Image)
}
Layer represents a visually distinct layer of the UI that can be rendered independently of the rest.
type Scene ¶
type Scene interface { // Update is called every frame to update the state of the game. Update() (Scene, error) // Draw is called every frame to render the game to screen. Draw(screen *ebiten.Image) }
Scene describes a single "scene" or screen in the game, such as a particular menu or level.
type SceneGame ¶
type SceneGame struct {
Scene Scene
}
SceneGame is an Ebiten Game implementation that defers all drawing and updating logic to a "Scene".
The Scene's Update() method returns the next Scene to be rendered, allowing the game to transition between different views based on the current state.
Click to show internal directories.
Click to hide internal directories.