fun: update homestead

This commit is contained in:
cha0s 2024-11-09 20:58:10 -06:00
parent 85b0e59907
commit 6526989db6
7 changed files with 28548 additions and 18 deletions

View File

@ -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

View File

@ -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);

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

BIN
resources/tileset/homestead.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff