- Refactor dirt and stone generation to optimize visible depth and adjust randomization.
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 8m32s
All checks were successful
Dynamic Branch Deploy / build-and-deploy (push) Successful in 8m32s
- Remove unused `StartWebSocketGateway` function from `websocket_gateway.go`. - Add security checks to track player-room mapping, enforce valid input, and prevent ID spoofing in `gateway.go`. - Refactor touch control logic to dynamically position joystick and buttons above gameplay floor. - Introduce dynamic floor Y-coordinate calculation (`GetFloorYFromHeight`) for better scaling across different screen sizes. - Adjust rendering logic to align assets, particles, and debug visuals with dynamic screen height transformations. - Update canvas CSS to support fullscreen scaling without center alignment.
This commit is contained in:
@@ -248,15 +248,3 @@ func (c *WebSocketClient) handleMessage(msg WebSocketMessage) {
|
||||
log.Printf("⚠️ Unbekannter Nachrichtentyp: %s", msg.Type)
|
||||
}
|
||||
}
|
||||
|
||||
// StartWebSocketGateway startet den WebSocket-Server
|
||||
func StartWebSocketGateway(port string, ec *nats.EncodedConn) {
|
||||
http.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) {
|
||||
handleWebSocket(w, r, ec)
|
||||
})
|
||||
|
||||
log.Printf("🌐 WebSocket-Gateway läuft auf http://localhost:%s/ws", port)
|
||||
if err := http.ListenAndServe(":"+port, nil); err != nil {
|
||||
log.Fatal("❌ WebSocket-Server Fehler: ", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user