Add WebAssembly support for assets and chunks, implement gameover screen rendering, and enhance server gameplay logic with dynamic speeds, team naming, and score components.
This commit is contained in:
16
cmd/client/gameover_wasm.go
Normal file
16
cmd/client/gameover_wasm.go
Normal file
@@ -0,0 +1,16 @@
|
||||
//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})
|
||||
}
|
||||
Reference in New Issue
Block a user