polish some things
This commit is contained in:
+2
-2
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user