Private
Public Access
1
0

fix Credits

This commit is contained in:
Sebastian Unterschütz
2025-11-30 20:48:21 +01:00
parent 0c8f741bc5
commit fd2497a342
2 changed files with 3 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ This project was made possible by:
* **Development & Code:** Sebastian Unterschütz * **Development & Code:** Sebastian Unterschütz
* **Music Design:** Max E. * **Music Design:** Max E.
* **Sound Effects:** Generated via [bfxr.net](https://www.bfxr.net/) * **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) * **Fonts:** "Press Start 2P" (Google Fonts / Local)
--- ---

View File

@@ -105,7 +105,7 @@ func handleWebSocket(w http.ResponseWriter, r *http.Request) {
for { for {
select { select {
case <-closeChan: case <-closeChan:
return // Client weg return
case <-ticker.C: case <-ticker.C:
InputLoop: InputLoop:
@@ -251,7 +251,7 @@ func generateFutureObjects(s *SimState, tick int, speed float64) ([]ActiveObstac
for _, def := range defaultConfig.Obstacles { for _, def := range defaultConfig.Obstacles {
if def.ID == o.ID { if def.ID == o.ID {
if def.CanTalk && len(def.SpeechLines) > 0 { 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)))) sIdx := int(s.RNG.NextRange(0, float64(len(def.SpeechLines))))
speech = def.SpeechLines[sIdx] speech = def.SpeechLines[sIdx]
} }