Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Scene ¶
type Scene[T any] interface { ebiten.Game Load(T, *SceneManager[T]) Unload() T }
type SceneManager ¶
type SceneManager[T any] struct { // contains filtered or unexported fields }
func NewSceneManager ¶
func NewSceneManager[T any](scene Scene[T], state T) *SceneManager[T]
func (*SceneManager[T]) Draw ¶
func (s *SceneManager[T]) Draw(screen *ebiten.Image)
func (*SceneManager[T]) Load ¶
func (s *SceneManager[T]) Load(scene Scene[T])
func (*SceneManager[T]) Update ¶
func (s *SceneManager[T]) Update() error
Click to show internal directories.
Click to hide internal directories.