-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimplementation.js
More file actions
143 lines (126 loc) · 3.09 KB
/
implementation.js
File metadata and controls
143 lines (126 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/*
* Retro Redrawn
* -- Implementation Script
*
* Frontend data container of the Redrawn Viewer.
* Contains implementation data specific to a Redrawn project.
*
* Author: Tyson Moll (vvvvvvv)
*
* Created in 2023
*/
//#region Audio
/**
* Information about audio tracks used by the audio player.
* Please set 'player-data-num' in the index.html to the track number you want to play for each player.
* @type {Array<{title: string, artist: string, audio: string, audio_intro: string}>}
*/
const AUDIO_TRACKS = [
{
title: 'Castlevania Medley',
artist: 'Tori Roberts',
audio: 'audio/castlevania_redrawn_medley_toribobs.mp3',
audio_intro: ''
}
];
//#endregion
//#region Background Images
/**
* File path to tiled background image for the canvas (use empty string if none)
* @type {string}
*/
const CANVAS_BACKGROUND_IMAGE = 'img/website/grid_test.png';
/**
* Hex Color for the window background.
* @type {int}
*/
const WINDOW_BACKGROUND_COLOR = 0x000000;
/**
* File path to tiled background image for the window (blank if none)
* @type {string}
*/
const WINDOW_BACKGROUND_IMAGE = '';
/**
* Whether to apply motion blur to the full viewport or just the map canvas.
* @type {boolean}
*/
const MOTIONBLUR_VIEWPORT = false;
//#endregion
//#region Art File Naming
/**
* Optional suffix added to new map file names (e.g. '_new' for 'map_name_new.png')
* @type {string}
*/
const NEW_SLICE_SUFFIX = '';
/**
* Optional suffix added to old map file names (e.g. '_old' for 'map_name_old.png')
* @type {string}
*/
const OLD_SLICE_SUFFIX = '';
// Layers
/**
* Currently active layer index (and initial index)
* @type {int}
*/
var activeLayerIndex = 0;
//#endregion
//#region Content
/**
* Content layers in the Redrawn
* @type {Array<{name: string, canvasSize:{width: int, height: int}, areas: string}>}
*/
const redrawnLayers = [
{
name: "game",
canvasSize: {width: 10000, height: 2096},
areas: areas
}
];
//#endregion
//#region Biomes
/**
* Biome Data (Screen icons).
* @type {Array<{name: string, ident: string, iconId: string, color: string}>}
*/
const biomes = [
{
name: "Terrace",
ident: "terrace",
iconId: "grass",
color: 'rgb(74 139 89)',
},
{
name: "Underground",
ident: "underground",
iconId: "fireplace",
color: 'rgb(113 104 127)',
},
{
name: "Castle",
ident: "castle",
iconId: "fort",
color: 'rgb(114 79 52)',
},
{
name: "Boss",
ident: "boss",
iconId: "dark_mode",
color: 'rgb(129 28 56)',
},
{
name: "Other",
ident: "other",
iconId: "dataset",
color: 'rgb(94 94 94)',
},
];
/**
* Directory of image files tied to defined iconIds.
* If not defined here, the icon is looked up in the Material Icon library.
* See icon list here >> https://fonts.google.com/icons
* Ideally use 1:1 ratio svg files; image will automatically be resized.
* @type {Array<{iconId: string, path: string}>}
*/
const iconFiles = [
];
//#endregion