Add a new experimental tile: sand

This commit is contained in:
Eevee (Evelyn Woods) 2020-12-29 17:08:51 -07:00
parent 6b0bb9cb3d
commit 1c5f63b61b
3 changed files with 9 additions and 0 deletions

View File

@ -1261,6 +1261,7 @@ const EDITOR_PALETTE = [{
'gate_blue',
'gate_yellow',
'gate_green',
'sand',
],
}];

View File

@ -893,6 +893,8 @@ export const LL_TILESET_LAYOUT = Object.assign({}, CC2_TILESET_LAYOUT, {
gate_green: [3, 39],
skeleton_key: [4, 39],
sand: [10, 40],
});
export class Tileset {

View File

@ -612,6 +612,11 @@ const TILE_TYPES = {
! other.has_item('hiking_boots'));
},
},
sand: {
draw_layer: DRAW_LAYERS.terrain,
blocks_collision: COLLISION.block_cc1 | COLLISION.block_cc2,
speed_factor: 0.5,
},
// Hazards
fire: {
@ -2189,6 +2194,7 @@ const TILE_TYPES = {
is_item: true,
is_tool: true,
blocks_collision: COLLISION.block_cc1 | (COLLISION.monster_solid & ~COLLISION.rover),
item_ignores: new Set(['sand']),
// FIXME uhh these "ignore" that dirt and gravel block us, but they don't ignore the on_arrive, so, uhhhh
},
// Other tools