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

Function initialize

common/camera_test.go:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14var cam *CameraSystem
15
16func initialize() {
17 engo.Mailbox = &engo.MessageManager{}
18 CameraBounds = engo.AABB{Min: engo.Point{X: 0, Y: 0}, Max: engo.Point{X: 300, Y: 300}}
19 engo.SetGlobalScale(engo.Point{X: 1, Y: 1})
20 w := &ecs.World{}
21
22 cam = &CameraSystem{}
23 cam.New(w)
24}
25
26type CameraTestScene struct{}
27

Callers 6

TestCameraMoveXFunction · 0.85
TestCameraMoveYFunction · 0.85
TestCameraZoomFunction · 0.85
TestCameraMoveToXFunction · 0.85
TestCameraMoveToYFunction · 0.85
TestCameraZoomToFunction · 0.85

Calls 2

SetGlobalScaleFunction · 0.92
NewMethod · 0.45

Tested by

no test coverage detected