-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimplementation.js
More file actions
186 lines (168 loc) · 3.96 KB
/
Copy pathimplementation.js
File metadata and controls
186 lines (168 loc) · 3.96 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
* 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: 'Mabe Village',
artist: 'Tori Roberts',
audio: 'audio/mabe_village_v2.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", // name of folder containing screens for a layer
canvasSize: {width: 2655, height: 3400},
areas: areaData
}
];
//#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(90 180 100)',
},
{
name: "Underground",
ident: "underground",
iconId: "fireplace",
color: 'rgb(113 104 127)',
},
{
name: "Castle",
ident: "castle",
iconId: "fort",
color: 'rgb(114 79 52)',
},
{
name: "Town",
ident: "town",
iconId: "house",
color: 'rgb(150 90 45)',
},
{
name: "Dungeon",
ident: "dungeon",
iconId: "music_note",
color: 'rgb(180 60 90)',
},
{
name: "Boss",
ident: "boss",
iconId: "dark_mode",
color: 'rgb(110 25 40)',
},
{
name: "Other",
ident: "other",
iconId: "dataset",
color: 'rgb(94 94 94)',
},
{
name: "Mountain",
ident: "mountain",
iconId: "landscape",
color: 'rgb(120 94 94)',
},
{
name: "Forest",
ident: "forest",
iconId: "forest",
color: 'rgb(30 120 80)',
},
{
name: "Desert",
ident: "desert",
iconId: "sunny",
color: 'rgb(240 170 30)',
},
{
name: "Beach",
ident: "beach",
iconId: "beach_access",
color: 'rgb(255 200 60)',
},
{
name: "Surfing",
ident: "surfing",
iconId: "surfing",
color: 'rgb(20 80 160)',
},
];
/**
* 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