fun: update homestead
This commit is contained in:
parent
85b0e59907
commit
6526989db6
|
@ -1,4 +1,4 @@
|
|||
import data from './homestead.json';
|
||||
import layers from './homestead.json';
|
||||
|
||||
function animal() {
|
||||
return {
|
||||
|
@ -23,25 +23,17 @@ function animal() {
|
|||
}
|
||||
|
||||
function createMaster() {
|
||||
const area = {x: 100, y: 60};
|
||||
const area = {x: 25, y: 25};
|
||||
return {
|
||||
AreaSize: {x: area.x * 16, y: area.y * 16},
|
||||
Ticking: {},
|
||||
TileLayers: {
|
||||
layers: [
|
||||
{
|
||||
layers: layers.map((data) => ({
|
||||
area,
|
||||
data,
|
||||
source: '/resources/tileset.sprite.json',
|
||||
source: '/resources/tileset/homestead.sprite.json',
|
||||
tileSize: {x: 16, y: 16},
|
||||
},
|
||||
{
|
||||
area,
|
||||
data: Array(area.x * area.y).fill(0),
|
||||
source: '/resources/tileset.sprite.json',
|
||||
tileSize: {x: 16, y: 16},
|
||||
},
|
||||
],
|
||||
})),
|
||||
},
|
||||
Time: {},
|
||||
Water: {water: {}},
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@ export default function*({ecs, projected}) {
|
|||
const filtered = [];
|
||||
for (const position of projected) {
|
||||
if (
|
||||
[1, 2, 3, 4, 6].includes(layer0.tile(position))
|
||||
[224, 225, 226, 227, 242, 243, 244, 245].includes(layer0.tile(position))
|
||||
&& ![7].includes(layer1.tile(position))
|
||||
) {
|
||||
filtered.push(position);
|
||||
|
|
BIN
resources/tileset/homestead.normals.png
Normal file
BIN
resources/tileset/homestead.normals.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
resources/tileset/homestead.png
Executable file
BIN
resources/tileset/homestead.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
14269
resources/tileset/homestead.sprite.json
Normal file
14269
resources/tileset/homestead.sprite.json
Normal file
File diff suppressed because it is too large
Load Diff
14269
resources/tileset/homestead.sprite.normals.json
Normal file
14269
resources/tileset/homestead.sprite.normals.json
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user