Skapat grundprojekt: Huvudmeny och Spel-scen as med hoppmakanik och AABB kollisions-grund

This commit is contained in:
2026-04-25 22:46:10 +02:00
parent 680a6f5f9e
commit 56934135ab
5 changed files with 226 additions and 0 deletions

26
internal/scenes/menu.go Normal file
View File

@@ -0,0 +1,26 @@
package scenes
import (
"image/color"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
)
type MenuScene struct {
}
func NewMenuScene() *MenuScene {
return &MenuScene{}
}
func (m *MenuScene) Update() error {
return nil
}
func (m *MenuScene) Draw(screen *ebiten.Image) {
screen.Fill(color.RGBA{0x20, 0x20, 0x20, 0xff})
ebitenutil.DebugPrintAt(screen, "REGIN : MOUNTAIN OF TREASURES", 300, 250)
ebitenutil.DebugPrintAt(screen, "Tryck ENTER for att starta", 310, 300)
}