Implement Dash Floor

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

No files matched your search

+4
View File
@@ -825,6 +825,10 @@ const TILE_ENCODING = {
has_next: true,
is_extension: true,
},
0xd8: {
name: 'dash_floor',
is_extension: true,
},
0xe0: {
name: 'gift_bow',
has_next: true,
+5
View File
@@ -1598,6 +1598,7 @@ const EDITOR_PALETTE = [{
'gate_yellow',
'gate_green',
'sand',
'dash_floor',
'spikes',
'cracked_ice',
'hole',
@@ -2247,6 +2248,10 @@ const EDITOR_TILE_DESCRIPTIONS = {
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.",
},
dash_floor: {
name: "Dash Floor",
desc: "Anything walking on it moves at double speed.",
},
};
const SPECIAL_PALETTE_ENTRIES = {
+1
View File
@@ -1072,6 +1072,7 @@ export const LL_TILESET_LAYOUT = Object.assign({}, CC2_TILESET_LAYOUT, {
spikes: [5, 40],
boulder: [8, 40],
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 = {
+4
View File
@@ -710,6 +710,10 @@ const TILE_TYPES = {
layer: LAYERS.terrain,
blocks_collision: COLLISION.block_cc1 | COLLISION.block_cc2,
speed_factor: 0.5,
},
dash_floor: {
layer: LAYERS.terrain,
speed_factor: 2,
},
spikes: {
layer: LAYERS.terrain,