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.
22 lines
310 B
22 lines
310 B
1 week ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
"math/rand"
|
||
|
"time"
|
||
|
|
||
|
"github.com/hajimehoshi/ebiten/v2"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
rand.Seed(time.Now().UnixNano())
|
||
|
|
||
|
ebiten.SetWindowSize(ScreenWidth, ScreenHeight)
|
||
|
ebiten.SetWindowTitle("Tetris")
|
||
|
|
||
|
game := NewGame()
|
||
|
if err := ebiten.RunGame(game); err != nil {
|
||
|
log.Fatal(err)
|
||
|
}
|
||
|
}
|