Created
February 22, 2024 10:04
-
-
Save plutov/46e7307123148c651d889e327f8ae849 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"github.com/hajimehoshi/ebiten/v2" | |
"github.com/plutov/packagemain/drafts/ebiten-snake/snake" | |
) | |
func main() { | |
game := snake.NewGame() | |
ebiten.SetWindowSize(snake.ScreenWidth, snake.ScreenHeight) | |
ebiten.SetWindowTitle("Snake") | |
if err := ebiten.RunGame(game); err != nil { | |
log.Fatal(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment