Skip to content

Instantly share code, notes, and snippets.

@plutov
Created February 22, 2024 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plutov/46e7307123148c651d889e327f8ae849 to your computer and use it in GitHub Desktop.
Save plutov/46e7307123148c651d889e327f8ae849 to your computer and use it in GitHub Desktop.
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