Bunnymark benchmark for the gohan ECS framework
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.

21 lines
440 B

package main
import (
"log"
"math/rand"
"time"
"code.rocketnine.space/tslocum/gohan-bunnymark/scene"
"github.com/hajimehoshi/ebiten/v2"
)
func main() {
ebiten.SetWindowSize(800, 600)
ebiten.SetWindowSizeLimits(300, 200, -1, -1)
ebiten.SetFPSMode(ebiten.FPSModeVsyncOffMaximum)
ebiten.SetWindowResizable(true)
rand.Seed(time.Now().UTC().UnixNano())
if err := ebiten.RunGame(scene.NewGame()); err != nil {
log.Fatal(err)
}
}