diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..a8b1e93 Binary files /dev/null and b/icon.png differ diff --git a/main.go b/main.go new file mode 100644 index 0000000..9d1b18b --- /dev/null +++ b/main.go @@ -0,0 +1,51 @@ +package main + +import ( + "image" + _ "image/png" + "log" + "os" + + "github.com/hajimehoshi/ebiten" + "github.com/lxn/win" +) + +var ( + windowWidth = int(win.GetSystemMetrics(win.SM_CXSCREEN)) + windowHeight = int(win.GetSystemMetrics(win.SM_CYSCREEN)) +) + +func window() { + file, _ := os.Open("icon.png") + icon, _, _ := image.Decode(file) + iconImage := []image.Image{icon} + ebiten.SetWindowSize(windowWidth, windowHeight) + ebiten.SetWindowTitle("Blackscreen") + ebiten.SetWindowDecorated(false) + ebiten.SetMaxTPS(0) + ebiten.SetWindowIcon(iconImage) +} + +//Game : +type Game struct{} + +//Update : +func (g *Game) Update() error { + return nil +} + +//Draw : +func (g *Game) Draw(screen *ebiten.Image) { +} + +//Layout : +func (g *Game) Layout(outsideWidth, outsideHeight int) (screenWidth, screenHeight int) { + return 1, 1 +} + +func main() { + window() + if err := ebiten.RunGame(&Game{}); err != nil { + log.Fatal(err) + } +}