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
Some checks failed
Dynamic Branch Deploy / build-and-deploy (push) Failing after 1m36s
This commit is contained in:
@@ -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...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user