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.
31 lines
603 B
31 lines
603 B
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
"code.rocketnine.space/tslocum/gas-station-sim/game"
|
|
"code.rocketnine.space/tslocum/gas-station-sim/world"
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
)
|
|
|
|
func main() {
|
|
ebiten.SetTPS(world.TPS)
|
|
ebiten.SetWindowTitle("Gas Station Simulator 2023")
|
|
ebiten.SetWindowSize(world.ScreenWidth, world.ScreenHeight)
|
|
ebiten.SetWindowResizingMode(ebiten.WindowResizingModeEnabled)
|
|
ebiten.SetCursorMode(ebiten.CursorModeHidden)
|
|
|
|
parseFlags()
|
|
|
|
if world.Fullscreen {
|
|
ebiten.SetFullscreen(true)
|
|
}
|
|
|
|
g := game.NewGame()
|
|
|
|
err := ebiten.RunGame(g)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
}
|