2021-05-11 02:21:23 +00:00
|
|
|
import { LayeredTileFactory } from './layered_tile_factory.js';
|
2021-05-12 04:48:16 +00:00
|
|
|
import { SequenceTileFactory } from './sequence_tile_factory.js';
|
2021-05-11 02:57:17 +00:00
|
|
|
import { SimpleTileFactory } from './simple_tile_factory.js';
|
|
|
|
|
// Straig
|
2021-05-13 02:03:41 +00:00
|
|
|
export const ROAD_LR = new SimpleTileFactory('road', 6, 4, '{tileset}/road-lr');
|
|
|
|
|
export const ROAD_TB = new SimpleTileFactory('road', 4, 6, '{tileset}/road-tb');
|
2021-05-09 04:58:29 +00:00
|
|
|
// Elbow
|
2021-05-13 02:03:41 +00:00
|
|
|
export const ROAD_BL = new SimpleTileFactory('road', 6, 6, '{tileset}/road-bl');
|
|
|
|
|
export const ROAD_BR = new SimpleTileFactory('road', 6, 6, '{tileset}/road-br');
|
|
|
|
|
export const ROAD_TL = new SimpleTileFactory('road', 6, 6, '{tileset}/road-tl');
|
|
|
|
|
export const ROAD_TR = new SimpleTileFactory('road', 6, 6, '{tileset}/road-tr');
|
2021-05-09 04:58:29 +00:00
|
|
|
// T
|
2021-05-13 02:03:41 +00:00
|
|
|
export const ROAD_BLR = new SimpleTileFactory('road', 8, 6, '{tileset}/road-blr');
|
|
|
|
|
export const ROAD_TLR = new SimpleTileFactory('road', 8, 6, '{tileset}/road-tlr');
|
|
|
|
|
export const ROAD_LTB = new SimpleTileFactory('road', 6, 8, '{tileset}/road-ltb');
|
|
|
|
|
export const ROAD_RTB = new SimpleTileFactory('road', 6, 8, '{tileset}/road-rtb');
|
2021-05-09 04:58:29 +00:00
|
|
|
// +
|
2021-05-13 02:03:41 +00:00
|
|
|
export const ROAD_TBLR = new SimpleTileFactory('road', 8, 8, '{tileset}/road-tblr');
|
2021-05-09 04:58:29 +00:00
|
|
|
// Tower base
|
2021-05-13 02:03:41 +00:00
|
|
|
export const EMPTY = new SimpleTileFactory('road', 4, 2, '{tileset}/empty');
|
2021-05-09 05:10:30 +00:00
|
|
|
// Straight
|
2021-05-13 02:03:41 +00:00
|
|
|
export const RIVER_LR = new SimpleTileFactory('water', 6, 4, '{tileset}/river-lr');
|
|
|
|
|
export const RIVER_TB = new SimpleTileFactory('water', 4, 6, '{tileset}/river-tb');
|
2021-05-09 05:10:30 +00:00
|
|
|
// Elbow
|
2021-05-13 02:03:41 +00:00
|
|
|
export const RIVER_BR = new SimpleTileFactory('water', 6, 6, '{tileset}/river-br');
|
|
|
|
|
export const RIVER_BL = new SimpleTileFactory('water', 6, 6, '{tileset}/river-bl');
|
|
|
|
|
export const RIVER_TR = new SimpleTileFactory('water', 6, 6, '{tileset}/river-tr');
|
|
|
|
|
export const RIVER_TL = new SimpleTileFactory('water', 6, 6, '{tileset}/river-tl');
|
|
|
|
|
export const BRIDGE_LR = new SimpleTileFactory('bridge', 6, 4, '{tileset}/bridge-lr');
|
|
|
|
|
const tower_fireball1_back = new SimpleTileFactory('surface', 4, 4, 'tower/fireball1-back');
|
|
|
|
|
const tower_fireball1 = new SimpleTileFactory('surface', 4, 4, 'tower/fireball1');
|
|
|
|
|
const tower_fireball1_front = new SimpleTileFactory('surface', 4, 4, 'tower/fireball1-front');
|
2021-05-11 02:57:17 +00:00
|
|
|
for (const tile_factory of [tower_fireball1_back, tower_fireball1_front]) {
|
|
|
|
|
tile_factory.add_animation('fire', [
|
2021-05-10 05:20:29 +00:00
|
|
|
{
|
|
|
|
|
'offset': 0.0,
|
|
|
|
|
'easing': 'cubic-bezier(0.02, 1.07, 0.73, 0.99)',
|
|
|
|
|
'top': '0',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'offset': 0.3,
|
|
|
|
|
'easing': 'linear',
|
|
|
|
|
'top': '20%',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'offset': 1.0,
|
|
|
|
|
'top': '0',
|
|
|
|
|
},
|
|
|
|
|
], {
|
|
|
|
|
'duration': 3000,
|
|
|
|
|
'iterations': 1,
|
|
|
|
|
});
|
2021-05-10 03:36:12 +00:00
|
|
|
}
|
2021-05-11 02:21:23 +00:00
|
|
|
export const TOWER_FIREBALL1 = new LayeredTileFactory([
|
2021-05-10 05:20:29 +00:00
|
|
|
tower_fireball1_back,
|
|
|
|
|
tower_fireball1,
|
|
|
|
|
tower_fireball1_front,
|
|
|
|
|
]);
|
2021-05-13 02:03:41 +00:00
|
|
|
export const FIREBALL = new SimpleTileFactory('projectile', 2, 2, 'tower/fireball');
|
2021-05-12 04:48:16 +00:00
|
|
|
export const FIREBALL_IMPACT = new SequenceTileFactory([
|
2021-05-13 02:03:41 +00:00
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact1'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact2'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact3'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact4'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact5'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact6'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact7'),
|
|
|
|
|
new SimpleTileFactory('surface', 2, 2, 'tower/fireball-impact8'),
|
2021-05-12 05:03:57 +00:00
|
|
|
], 50, false);
|
2021-05-09 04:58:29 +00:00
|
|
|
//# sourceMappingURL=tiles.js.map
|