MCPcopy
hub / github.com/EngoEngine/engo / Scene

Interface Scene

scene.go:12–21  ·  view source on GitHub ↗

Scene represents a screen ingame. i.e.: main menu, settings, but also the game itself

Source from the content-addressed store, hash-verified

10// Scene represents a screen ingame.
11// i.e.: main menu, settings, but also the game itself
12type Scene interface {
13 // Preload is called before loading resources
14 Preload()
15
16 // Setup is called before the main loop
17 Setup(Updater)
18
19 // Type returns a unique string representation of the Scene, used to identify it
20 Type() string
21}
22
23// Shower is an optional interface a Scene can implement, indicating it'll have custom behavior
24// whenever the Scene gets shown again after being hidden (due to switching to other Scenes)

Callers 7

SetSceneFunction · 0.65
SetSceneFunction · 0.65
TestSceneSwitchingFunction · 0.65
CreateWindowFunction · 0.65
rafPolyfillFunction · 0.65
SetSceneFunction · 0.65
RegisterSceneFunction · 0.65

Implementers 15

testSceneengo_test.go
testScene2engo_test.go
testRunSceneengo_test.go
assetTestSceneassets_test.go
tmxTestScenecommon/tmx_test.go
TestInterfaceScenecommon/interfaces_test.go
testScenecommon/render_shaders_test.go
CameraTestScenecommon/camera_test.go
TestAnimationScenecommon/animation_test.go
testAudioScenecommon/audio_test.go
PongGamedemos/pong/pong.go
DefaultScenedemos/adventure/adventure.go

Calls

no outgoing calls

Tested by

no test coverage detected