scene

package
v0.0.0-...-bbf135f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ScreenWidth is screen width
	ScreenWidth = 1080 / 2
	// ScreenHeight is screen height
	ScreenHeight = 1920 / 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Title

type Title struct {
	// contains filtered or unexported fields
}

Title represents a scene object for Title

func (*Title) Drive

func (t *Title) Drive()

Drive is called from simra. This is used to update sprites position. This will be called 60 times per sec.

func (*Title) Initialize

func (t *Title) Initialize(sim simra.Simraer)

Initialize initializes title scene This is called from simra. simra.SetDesiredScreenSize should be called to determine screen size of this scene.

func (*Title) OnTouchBegin

func (t *Title) OnTouchBegin(x, y float32)

OnTouchBegin is called when Title scene is Touched.

func (*Title) OnTouchEnd

func (t *Title) OnTouchEnd(x, y float32)

OnTouchEnd is called when Title scene is Touched and it is released.

func (*Title) OnTouchMove

func (t *Title) OnTouchMove(x, y float32)

OnTouchMove is called when Title scene is Touched and moved.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL