Private
Public Access
1
0

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:
Sebastian Unterschütz
2026-01-04 14:30:31 +01:00
parent ce51a2ba4f
commit 95d61bf66e
68 changed files with 913 additions and 424 deletions

View 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})
}