17 lines
375 B
Go
17 lines
375 B
Go
//go:build js && wasm
|
|
// +build js,wasm
|
|
|
|
package main
|
|
|
|
import (
|
|
"image/color"
|
|
|
|
"github.com/hajimehoshi/ebiten/v2"
|
|
)
|
|
|
|
// drawGameOverScreen zeichnet NICHTS in WASM - HTML übernimmt
|
|
func (g *Game) drawGameOverScreen(screen *ebiten.Image, myScore int) {
|
|
// In WASM: HTML Game Over Screen ist aktiv, zeichne nur schwarzen Hintergrund
|
|
screen.Fill(color.RGBA{0, 0, 0, 255})
|
|
}
|