Add platform-specific implementations for assets, audio, WebSocket, and rendering on Desktop and WebAssembly platforms. Introduce embedded assets for WebAssembly and native file handling for Desktop. Add platform-specific chunk loading and game state synchronization.
This commit is contained in:
22
cmd/client/draw_native.go
Normal file
22
cmd/client/draw_native.go
Normal file
@@ -0,0 +1,22 @@
|
||||
//go:build !wasm
|
||||
// +build !wasm
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/hajimehoshi/ebiten/v2"
|
||||
)
|
||||
|
||||
// In Native: Nutze die normalen Draw-Funktionen
|
||||
|
||||
func (g *Game) drawMenu(screen *ebiten.Image) {
|
||||
g.DrawMenu(screen)
|
||||
}
|
||||
|
||||
func (g *Game) drawLobby(screen *ebiten.Image) {
|
||||
g.DrawLobby(screen)
|
||||
}
|
||||
|
||||
func (g *Game) drawLeaderboard(screen *ebiten.Image) {
|
||||
g.DrawLeaderboard(screen)
|
||||
}
|
||||
Reference in New Issue
Block a user