You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
309 B
20 lines
309 B
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"tetris/internal/game"
|
|
"tetris/pkg/config"
|
|
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
)
|
|
|
|
func main() {
|
|
ebiten.SetWindowSize(config.ScreenWidth, config.ScreenHeight)
|
|
ebiten.SetWindowTitle("Tetris")
|
|
|
|
g := game.New()
|
|
if err := ebiten.RunGame(g); err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|
|
|