-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix positioning bug with negative coordinates
- Loading branch information
Showing
8 changed files
with
147 additions
and
44 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
data/scenarios/Testing/1780-structure-merge-expansion/00-ORDER.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
nonoverlapping-structure-merge.yaml | ||
root-map-expansion.yaml | ||
structure-composition.yaml | ||
structure-composition.yaml | ||
sequential-placement.yaml |
77 changes: 77 additions & 0 deletions
77
data/scenarios/Testing/1780-structure-merge-expansion/sequential-placement.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
version: 1 | ||
name: Flipped structure placement | ||
author: Karl Ostmo | ||
description: | | ||
Sequentially place structures that are larger than the map | ||
with flipped orientation. | ||
robots: | ||
- name: base | ||
dir: north | ||
known: [boulder, log, pixel (R), pixel (G), pixel (B), gold] | ||
world: | ||
structures: | ||
- name: reddish | ||
structure: | ||
mask: '.' | ||
palette: | ||
'x': [stone, pixel (R)] | ||
map: | | ||
xx | ||
x. | ||
- name: greenish | ||
structure: | ||
mask: '.' | ||
palette: | ||
'x': [stone, pixel (G)] | ||
map: | | ||
xx | ||
x. | ||
- name: bluish | ||
structure: | ||
mask: '.' | ||
palette: | ||
'x': [stone, pixel (B)] | ||
map: | | ||
xx | ||
x. | ||
- name: goldish | ||
structure: | ||
mask: '.' | ||
palette: | ||
'x': [stone, gold] | ||
map: | | ||
xx | ||
x. | ||
- name: block | ||
structure: | ||
mask: '.' | ||
palette: | ||
'x': [ice, log] | ||
placements: | ||
- src: greenish | ||
orient: | ||
flip: true | ||
offset: [-3, 2] | ||
- src: reddish | ||
offset: [-6, -1] | ||
- src: goldish | ||
orient: | ||
flip: true | ||
offset: [3, 0] | ||
- src: bluish | ||
offset: [0, 1] | ||
map: | | ||
xxx | ||
xx. | ||
x.. | ||
palette: | ||
'Ω': [grass, erase, base] | ||
mask: '.' | ||
placements: | ||
- src: block | ||
offset: [0, -1] | ||
upperleft: [0, 0] | ||
dsl: | | ||
{grass} | ||
map: | | ||
Ω |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters