This repository has been archived on 2024-01-17. You can view files and clone it, but cannot push or open issues or pull requests.
messeji/examples/messeji/main.go

25 lines
456 B
Go
Raw Normal View History

2022-03-10 05:19:04 +00:00
//go:build example
// +build example
package main
import (
"log"
"code.rocketnine.space/tslocum/messeji/examples/messeji/game"
"github.com/hajimehoshi/ebiten/v2"
)
func main() {
ebiten.SetWindowTitle("メッセージ")
ebiten.SetWindowResizable(true)
ebiten.SetWindowSize(640, 480)
ebiten.SetMaxTPS(144)
ebiten.SetFPSMode(ebiten.FPSModeVsyncOffMinimum)
g := game.NewDemoGame()
if err := ebiten.RunGame(g); err != nil {
log.Fatal(err)
}
}