ocadotechnology / rapid-router

A Blockly and python based educational game aimed at students age 5-14.
https://www.codeforlife.education
Other
57 stars 81 forks source link

bug: random levels default to grass scenery instead of user's choice #1724

Open evemartin opened 2 months ago

evemartin commented 2 months ago

Describe the bug In the Level Editor, whenever the user generates a random level, it always defaults to grass scenery even when the user has chosen a different scenery theme beforehand.

To Reproduce Steps to reproduce the behaviour:

  1. Go to the Level Editor
  2. Go to the Scenery tab and change the scenery to a different theme (i.e. snow)
  3. Go to the Random tab and click Generate. Notice that the scenery automatically changes back to grass when the level is generated

Expected behaviour Instead of defaulting back to grass, the scenery of a randomly generated level should always match the current theme.

Screenshots

https://github.com/user-attachments/assets/4c20cff3-0fbc-4999-9a9a-30fd2d4d8a1d