Tons of experimental updates.
This commit is contained in:
23
scenes/menu.go
Normal file
23
scenes/menu.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package scenes
|
||||
|
||||
import "github.com/hajimehoshi/ebiten/v2"
|
||||
|
||||
type Menu struct {
|
||||
}
|
||||
|
||||
func CreateNewMenu() Menu {
|
||||
return Menu{}
|
||||
|
||||
}
|
||||
|
||||
func (m *Menu) Draw(screen *ebiten.Image) {
|
||||
|
||||
}
|
||||
|
||||
func (m *Menu) Update() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Menu) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) {
|
||||
return 800, 600
|
||||
}
|
||||
9
scenes/scene.go
Normal file
9
scenes/scene.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package scenes
|
||||
|
||||
import "github.com/hajimehoshi/ebiten/v2"
|
||||
|
||||
type Scene interface {
|
||||
Update() error
|
||||
Draw(screen *ebiten.Image)
|
||||
Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int)
|
||||
}
|
||||
1
scenes/splash.go
Normal file
1
scenes/splash.go
Normal file
@@ -0,0 +1 @@
|
||||
package scenes
|
||||
Reference in New Issue
Block a user