amethyst / amethyst/rustrogueliketutorial

[Chapter 40] Stealth fix for chapter 33 is not mentioned in the course

Offen
#232 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
970
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

https://github.com/amethyst/rustrogueliketutorial/blob/33872fe582f226178436847e1f74eafcbf9c0d1a/chapter-40-doors/src/map_builders/waveform_collapse/mod.rs#L40-L41

In chapter 40, there is an update to the code of `WaveformCollapseBuilder` (introduced in chapter 33).
It adds a try limit to the solver loop to avoid an infinite (or at least a very long) loop.
(Not sure, but I think the additional lines to clear `spawn_list`, `rooms`, and `corridors` after making a copy of the map are also part of the fix).

However, this is not mentioned anywhere in the chapter (or in the book), so people will have to power through the following chapters with a level generation that breaks regularly.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.