mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
parent
6ed5293132
commit
8e5ae88738
@ -139,11 +139,13 @@ func (m *mascot) Draw(screen *ebiten.Image) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
ebiten.SetScreenTransparent(true)
|
|
||||||
ebiten.SetWindowDecorated(false)
|
ebiten.SetWindowDecorated(false)
|
||||||
ebiten.SetWindowFloating(true)
|
ebiten.SetWindowFloating(true)
|
||||||
ebiten.SetWindowSize(width, height)
|
ebiten.SetWindowSize(width, height)
|
||||||
if err := ebiten.RunGame(&mascot{}); err != nil {
|
|
||||||
|
op := &ebiten.RunGameOptions{}
|
||||||
|
op.ScreenTransparent = true
|
||||||
|
if err := ebiten.RunGameWithOptions(&mascot{}, op); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user