Files
fluids/main.go

35 lines
462 B
Go
Raw Normal View History

2025-11-27 22:50:36 -05:00
package main
import (
"fluids/game"
2025-12-06 15:26:25 -05:00
"fluids/resources"
2025-11-27 22:50:36 -05:00
"fmt"
"log"
"github.com/hajimehoshi/ebiten/v2"
)
const (
ScreenWidth = 640
ScreenHeight = 360
)
func main() {
fmt.Println("fluid experiments")
2025-12-06 15:26:25 -05:00
//preload assets
resources.LoadImages()
//initialize new game instance
2025-11-27 22:50:36 -05:00
g := game.NewGame()
ebiten.SetWindowTitle("fluids")
ebiten.SetWindowSize(ScreenWidth*2, ScreenHeight*2)
err := ebiten.RunGame(g)
if err != nil {
log.Fatal(err)
}
}