Add some more buildings
This commit is contained in:
@@ -348,26 +348,41 @@ let mapsheet20 = {
|
||||
id: 'mapsheet2',
|
||||
grid: new Map(mapsheetHexCoords),
|
||||
buildings: [
|
||||
{
|
||||
type: 'building1',
|
||||
grid: new Map(buildingHexes.bld1),
|
||||
position: ({ q, r, s }) => ({ q: q, r: r + 7, s: s - 7 })
|
||||
},
|
||||
{
|
||||
type: 'building2',
|
||||
grid: new Map(buildingHexes.bld2),
|
||||
position: ({ q, r, s }) => ({ q: q + 7, r: r + 7, s: s - 14 })
|
||||
},
|
||||
{
|
||||
type: 'building3',
|
||||
grid: new Map(buildingHexes.bld3),
|
||||
position: ({ q, r, s }) => ({ q: q - 14, r: r + 5, s: s + 9 })
|
||||
},
|
||||
{
|
||||
type: 'building4',
|
||||
grid: new Map(buildingHexes.bld4),
|
||||
position: ({ q, r, s }) => ({ q: q - 8, r: r + 6, s: s + 2 })
|
||||
},
|
||||
{
|
||||
type: 'building5',
|
||||
grid: new Map(buildingHexes.bld5),
|
||||
position: ({ q, r, s }) => ({ q: q + 13, r: r - 6, s: s - 7 })
|
||||
},
|
||||
{
|
||||
type: 'building6',
|
||||
grid: new Map(buildingHexes.bld6),
|
||||
position: ({ q, r, s }) => ({ q: q + 7, r: r - 6, s: s - 1 })
|
||||
},
|
||||
{
|
||||
type: 'building1',
|
||||
grid: new Map(buildingHexes.bld1),
|
||||
position: ({ q, r, s }) => ({ q: q, r: r + 7, s: s - 7 })
|
||||
type: 'building7',
|
||||
grid: new Map(buildingHexes.bld7),
|
||||
position: ({ q, r, s }) => ({ q: q - 6, r: r - 5, s: s + 11 }),
|
||||
},
|
||||
{
|
||||
type: 'building3',
|
||||
grid: new Map(buildingHexes.bld3),
|
||||
position: ({ q, r, s }) => ({ q: q - 14, r: r + 5, s: s + 9 })
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
@@ -375,26 +390,41 @@ let mapsheet30 = {
|
||||
id: 'mapsheet3',
|
||||
grid: new Map(mapsheetHexCoords),
|
||||
buildings: [
|
||||
{
|
||||
type: 'building1',
|
||||
grid: new Map(buildingHexes.bld1),
|
||||
position: ({ q, r, s }) => ({ q: q - 2, r: r - 5, s: s + 7 })
|
||||
},
|
||||
{
|
||||
type: 'building2',
|
||||
grid: new Map(buildingHexes.bld2),
|
||||
position: reflectR({ q: 9, r: -6, s: -3 })
|
||||
},
|
||||
{
|
||||
type: 'building3',
|
||||
grid: new Map(buildingHexes.bld3),
|
||||
position: reflectR({ q: 17, r: -7, s: -10 })
|
||||
},
|
||||
{
|
||||
type: 'building4',
|
||||
grid: new Map(buildingHexes.bld4),
|
||||
position: ({ q, r, s }) => ({ q: q - 9, r: r - 6, s: s + 15 })
|
||||
},
|
||||
{
|
||||
type: 'building5',
|
||||
grid: new Map(buildingHexes.bld5),
|
||||
position: ({ q, r, s }) => ({ q: q + 6, r: r + 8, s: s - 14 })
|
||||
},
|
||||
{
|
||||
type: 'building6',
|
||||
grid: new Map(buildingHexes.bld6),
|
||||
position: reflectR({ q: 1, r: 6, s: -7 })
|
||||
},
|
||||
{
|
||||
type: 'building1',
|
||||
grid: new Map(buildingHexes.bld1),
|
||||
position: ({ q, r, s }) => ({ q: q - 2, r: r - 5, s: s + 7 })
|
||||
type: 'building7',
|
||||
grid: new Map(buildingHexes.bld7),
|
||||
position: ({ q, r, s }) => ({ q: q - 12, r: r + 8, s: s + 4 })
|
||||
},
|
||||
{
|
||||
type: 'building3',
|
||||
grid: new Map(buildingHexes.bld3),
|
||||
position: reflectR({ q: 17, r: -7, s: -10 })
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
@@ -404,7 +434,7 @@ function reflectR(coords) {
|
||||
q: -s + coords.q,
|
||||
r: -r + coords.r,
|
||||
s: -q + coords.s,
|
||||
transform: "scale(-1)"
|
||||
transform: "scale(1 -1)"
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -540,7 +570,7 @@ function findScalar(arr) {
|
||||
|
||||
// const sheets = [[mapsheet10]];
|
||||
|
||||
// drawHexes(gameboard, buildingHexes.bld2, true);
|
||||
// drawHexes(gameboard, buildingHexes.bld7, true);
|
||||
|
||||
// drawHexes(addGroup(gameboard, 'part-1'), bld8, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user