Skip to content

Commit

Permalink
Restore the "classic world" background for friend challenge (#1566)
Browse files Browse the repository at this point in the history
This was broken by #1376.  Any challenge which did *not* specify a `default` field would have had the classic world as an implicit background, but in this case I failed to add the proper `dsl` field to specify it.  I don't *think* there are any other such challenge scenarios, although to be really sure we would have to identify all the scenarios did not specify a `default` field before #1376 was merged and ensure that each of them now has an appropriate `dsl` field.

Before:

![before](https://github.com/swarm-game/swarm/assets/533859/4756e889-5455-4a88-b114-ae00df79555c)


After:

![after](https://github.com/swarm-game/swarm/assets/533859/9004e108-5c39-4de9-a2fe-c60e38b63ca0)
  • Loading branch information
byorgey authored Oct 7, 2023
1 parent 346f960 commit 11053c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions data/scenarios/Challenges/friend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ world:
'*': [grass, flower]
'@': [stone, boulder]
upperleft: [-20, 2]
dsl: |
"classic"
map: |-
c,..,,,,,,..,,,,...,.
,..,,,,,,,...........
Expand Down
10 changes: 6 additions & 4 deletions data/scenarios/Challenges/gopher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,14 @@ solution: |
run "scenarios/Challenges/_gopher/solution.sw"
known: []
world:
dsl: |
"classic"
upperleft: [-1, 1]
offset: false
palette:
'x': [dirt]
'.': [grass]
'g': [dirt, null, gopher]
'x': [dirt, erase]
'.': [grass, erase]
'g': [dirt, erase, gopher]
map: |
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x............................x
Expand All @@ -155,4 +157,4 @@ world:
x............................x
x............................x
x............................x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxg
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxg

0 comments on commit 11053c4

Please sign in to comment.