polish some things

This commit is contained in:
2026-09-07 14:49:25 +02:00
parent a106a26277
commit 96db9ec1f9
5 changed files with 110 additions and 62 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ func (m *Menu) Click(game *Game) {
func (m *Menu) executeAction(game *Game, action buttons.MenuAction) {
switch action {
case buttons.StartGame:
game.snake = InitSnake(WINDOW_WIDTH, WINDOW_HEIGHT)
game.snake = InitSnake(WindowWidth, WindowHeight)
game.state = Playing
case buttons.ExitGame:
@@ -80,7 +80,7 @@ func (m *Menu) Render(screen *ebiten.Image, font *text.GoTextFaceSource) {
}
imgOp := &ebiten.DrawImageOptions{}
imgOp.GeoM.Translate(150, 200)
imgOp.GeoM.Translate(50, 100)
screen.DrawImage(m.img, imgOp)
}