Private
Public Access
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:
1 parent
ce51a2ba4f
commit
95d61bf66e
68 files changed
+913
-424
No files matched your search
@@ -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