From fd2497a342c1fcfbc833b9cfe9c413ffa165ae47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Sun, 30 Nov 2025 20:48:21 +0100 Subject: [PATCH] fix Credits --- README.md | 2 +- websocket.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb1c795..d4d6431 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ This project was made possible by: * **Development & Code:** Sebastian Unterschütz * **Music Design:** Max E. * **Sound Effects:** Generated via [bfxr.net](https://www.bfxr.net/) -* **Graphics:** [Kenney.nl](https://kenney.nl) / Sebastian Unterschütz +* **Graphics:** [Gemini AI](https://gemini.google.com/app) / Sebastian Unterschütz * **Fonts:** "Press Start 2P" (Google Fonts / Local) --- diff --git a/websocket.go b/websocket.go index fcf8b2b..9c88714 100644 --- a/websocket.go +++ b/websocket.go @@ -105,7 +105,7 @@ func handleWebSocket(w http.ResponseWriter, r *http.Request) { for { select { case <-closeChan: - return // Client weg + return case <-ticker.C: InputLoop: @@ -251,7 +251,7 @@ func generateFutureObjects(s *SimState, tick int, speed float64) ([]ActiveObstac for _, def := range defaultConfig.Obstacles { if def.ID == o.ID { if def.CanTalk && len(def.SpeechLines) > 0 { - if s.RNG.NextFloat() > 0.7 { // 30% Wahrscheinlichkeit + if s.RNG.NextFloat() > 0.7 { sIdx := int(s.RNG.NextRange(0, float64(len(def.SpeechLines)))) speech = def.SpeechLines[sIdx] }