mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
parent
6ed5293132
commit
8e5ae88738
@ -139,11 +139,13 @@ func (m *mascot) Draw(screen *ebiten.Image) {
|
||||
}
|
||||
|
||||
func main() {
|
||||
ebiten.SetScreenTransparent(true)
|
||||
ebiten.SetWindowDecorated(false)
|
||||
ebiten.SetWindowFloating(true)
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user