engine

package
v0.0.0-...-abd3492 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scene

type Scene interface {
	UpdateScene(ctx *SceneContext, timeDelta uint32) SceneCreator
	RenderScene(ctx *SceneContext, surface *sdl.Surface)
	HandleEvent(event sdl.Event)
}

type SceneContext

type SceneContext struct {
	ScreenWidth  float64
	ScreenHeight float64
}

type SceneCreator

type SceneCreator func(ctx *SceneContext) Scene

Jump to

Keyboard shortcuts

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