mobile

package
v0.0.0-...-36d073b Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScreenWidth  = flappyPlane.screenWidth
	ScreenHeight = flappyPlane.screenHeight
)

Variables

This section is empty.

Functions

func IsRunning

func IsRunning() bool

IsRunning returns a boolean value indicating whether the game is running.

func Start

func Start(scale float64) error

Start starts the game.

func Update

func Update() error

Update proceeds the game.

func UpdateTouchesOnAndroid

func UpdateTouchesOnAndroid(action int, id int, x, y int)

UpdateTouchesOnAndroid dispatches touch events on Android.

func UpdateTouchesOnIOS

func UpdateTouchesOnIOS(phase int, ptr int64, x, y int)

UpdateTouchesOnIOS dispatches touch events on iOS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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