Implement Dash Floor

Anything walking on it moves at double speed.
This commit is contained in:
Timothy Stiles 2021-02-16 15:10:05 +11:00
parent 3d21277593
commit e0004fb840
5 changed files with 14 additions and 0 deletions

View File

@ -825,6 +825,10 @@ const TILE_ENCODING = {
has_next: true, has_next: true,
is_extension: true, is_extension: true,
}, },
0xd8: {
name: 'dash_floor',
is_extension: true,
},
0xe0: { 0xe0: {
name: 'gift_bow', name: 'gift_bow',
has_next: true, has_next: true,

View File

@ -1598,6 +1598,7 @@ const EDITOR_PALETTE = [{
'gate_yellow', 'gate_yellow',
'gate_green', 'gate_green',
'sand', 'sand',
'dash_floor',
'spikes', 'spikes',
'cracked_ice', 'cracked_ice',
'hole', 'hole',
@ -2247,6 +2248,10 @@ const EDITOR_TILE_DESCRIPTIONS = {
name: "Item Lock", name: "Item Lock",
desc: "When placed atop an item, you must have that item to enter the tile. When you do, pay the item and destroy the item lock. Also can be placed on top of a bonus, and you must pay that amount of bonus to enter.", desc: "When placed atop an item, you must have that item to enter the tile. When you do, pay the item and destroy the item lock. Also can be placed on top of a bonus, and you must pay that amount of bonus to enter.",
}, },
dash_floor: {
name: "Dash Floor",
desc: "Anything walking on it moves at double speed.",
},
}; };
const SPECIAL_PALETTE_ENTRIES = { const SPECIAL_PALETTE_ENTRIES = {

View File

@ -1072,6 +1072,7 @@ export const LL_TILESET_LAYOUT = Object.assign({}, CC2_TILESET_LAYOUT, {
spikes: [5, 40], spikes: [5, 40],
boulder: [8, 40], boulder: [8, 40],
item_lock: [12, 43], item_lock: [12, 43],
dash_floor: [[0, 44], [1, 44], [2, 44], [3, 44], [4, 44], [5, 44], [6, 44], [7, 44]],
}); });
export const TILESET_LAYOUTS = { export const TILESET_LAYOUTS = {

View File

@ -710,6 +710,10 @@ const TILE_TYPES = {
layer: LAYERS.terrain, layer: LAYERS.terrain,
blocks_collision: COLLISION.block_cc1 | COLLISION.block_cc2, blocks_collision: COLLISION.block_cc1 | COLLISION.block_cc2,
speed_factor: 0.5, speed_factor: 0.5,
},
dash_floor: {
layer: LAYERS.terrain,
speed_factor: 2,
}, },
spikes: { spikes: {
layer: LAYERS.terrain, layer: LAYERS.terrain,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

After

Width:  |  Height:  |  Size: 176 KiB