Private
Public Access
1
0

add presentation mode enhancements: refine visuals, integrate HTML-based interface for presentation mode, align assets display and player states, and handle real-time JS callbacks
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m36s

This commit is contained in:
Sebastian Unterschütz
2026-04-22 20:28:16 +02:00
parent c1fb3bcef0
commit d5c1e2ec82
11 changed files with 526 additions and 115 deletions

View File

@@ -7,8 +7,23 @@ import (
"log"
"github.com/hajimehoshi/ebiten/v2"
"github.com/skip2/go-qrcode"
)
func (g *Game) notifyPresentationStarted_Platform(roomID string) {
// Im WASM: QR Code aus dem Game-Struct nehmen
var qrData []byte
// Wir generieren den QR Code hier nochmal als PNG Bytes oder wir speichern die Bytes im Game Struct
// Der Einfachheit halber generieren wir ihn in Go und übergeben ihn.
joinURL := "https://escape-from-school.de/?room=" + roomID
pngData, _ := qrcode.Encode(joinURL, qrcode.Medium, 256)
g.notifyPresentationStarted(roomID, pngData)
}
func (g *Game) updatePresentationState_Platform() {
g.updatePresentationState()
}
func main() {
log.Println("🚀 WASM Version startet...")