Initial commit.
This commit is contained in:
29
main.go
Normal file
29
main.go
Normal file
@@ -0,0 +1,29 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fluids/game"
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
const (
|
||||
ScreenWidth = 640
|
||||
ScreenHeight = 360
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("fluid experiments")
|
||||
|
||||
g := game.NewGame()
|
||||
|
||||
ebiten.SetWindowTitle("fluids")
|
||||
ebiten.SetWindowSize(ScreenWidth*2, ScreenHeight*2)
|
||||
|
||||
err := ebiten.RunGame(g)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user