This commit is contained in:
Josh Deprez 2021-09-27 20:00:28 +10:00
parent d477bec7ea
commit 12bec39c07
2 changed files with 14 additions and 3 deletions

View file

@ -34,13 +34,12 @@ func init() {
} }
// Game implements the ebiten methods using a collection of components. One // Game implements the ebiten methods using a collection of components. One
// component must be the designated root component - usually a scene of some // component must be the designated root component.
// kind.
type Game struct { type Game struct {
Disables Disables
Hides Hides
ScreenSize image.Point ScreenSize image.Point
Root Drawer // usually a DrawManager Root Drawer
Projection geom.Projector Projection geom.Projector
VoxelScale geom.Float3 VoxelScale geom.Float3

12
engine/loading.go Normal file
View file

@ -0,0 +1,12 @@
package engine
import (
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
)
type LoadingScreen struct{}
func (LoadingScreen) Draw(screen *ebiten.Image, _ *ebiten.DrawImageOptions) {
ebitenutil.DebugPrint(screen, "Loading...")
}