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
// component must be the designated root component - usually a scene of some
// kind.
// component must be the designated root component.
type Game struct {
Disables
Hides
ScreenSize image.Point
Root Drawer // usually a DrawManager
Root Drawer
Projection geom.Projector
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...")
}