-
Notifications
You must be signed in to change notification settings - Fork 0
/
Configuration.js
386 lines (292 loc) · 5.54 KB
/
Configuration.js
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
//~ Debug Mod
let debugMod;
//~ Moteur de jeu
let engineOne;
let fpsLevel;
//& Le bloc qui tue (littéralement)
let killingBlocks;
//~ Admins
let username;
let password;
let logged;
//& Checkpoint start
let checkpointActivated = false
//~ Camera
let cameraShakeEnabled;
let shakeDuration;
let shakeForce;
//^ ========= Mode SMOOTH =========
let smoothCamera;
let smoothCameraSpeed;
let cameraSpeedR;
let newCharacterMovesSpeedR;
let cameraSpeedL;
let newCharacterMovesSpeedL;
let backgroundSpeed;
let backgroundSmoothSpeed;
//~ Background
let backgroundX;
//~ Character
//? Textures / Outils du Personnage
let characterTextureList;
let characterAnimationIndex;
let characterAnimationFramePassed;
let characterDirection;
let characterLastDirection;
let characterMovement;
let characterLastMovement;
let characterSpriteWidth;
let characterSpriteHeight;
//~ caractéristiques du perso
//? Positions
let characterInsidePosX;
let characterInsidePosY;
let characterPositionX;
let characterPositionY;
let previousPlayerX;
let previousPlayerY;
let characterWidth;
let characterHeight;
let characterBoundingBoxWidth;
let characterBoundingBoxHeight;
let characterBoundingBoxWidthInside;
let characterBoundingBoxHeightInside;
let characterMovesSpeed;
let characterHitting;
let characterComboHitting;
let characterComboHittingDouble;
let lastHit;
//? Saut
let characterMass;
let characterJumpHeight;
let characterVelocityY;
let characterVelocityYMin;
let characterVelocityYMax;
let characterIsGrounded;
let characterJumpCount;
let characterMaxJumps;
let characterDoubleJumping;
let characterIsJumping;
let haveToJump;
//? Dash
let dashSystem;
let characterIsDashing;
let lastDashTime;
let dashCooldown;
let dashTime;
let dashForce;
//? Animations
let animationSpeed;
let textDialogSpeed;
let annimationBeginY = 4 * 32;
let annimationEndY = 5 * 32;
//~ Grille
let rectWidth;
let rectHeight;
let xStartWorld;
let yStartWorld;
let arrayMap;
let currentMap;
let lastMap;
//~ Maisons
let xStartHouse;
let yStartHouse;
//^ Interfaces
//~ Font
let classicFont;
let pixelFont;
//~ Interfaces
let canShowMessage;
let interactionWidth;
let interactionHeight;
let viewportDisplayWidth;
let viewportDisplayHeight;
let buttonWidthClassic;
let buttonHeightClassic;
let buttonWidthBIG;
let buttonHeightBIG;
let toggleButtonColor;
let arrowTroc;
let longButton
let longButtonHover
let popUpButton
let popUpButtonHover
let checkedLongButtonHover
let checkedLongButton
let homeButton
//? Buttons UI
let buttonZ
let buttonQ
let buttonS
let buttonD
let buttonE
let buttonF
let buttonSpace
let site = "https://readymag.com/u2730643025/4237179/"
let logo;
//? Jeu
let inGame;
let gameIsPaused;
let gameIsPlaying;
//? Parametres
let settingsPause;
//? Statistiques
let statsMenu;
//? Barre de vie
let lifeBarSize;
let healthPlayer;
let maxHealth;
let heartSize;
let pressingKey;
let gettingHurt;
let gettingHeal;
let addHeart;
let removeHeart;
let GameHeartBlack;
let GameHeart
//? Inventaire
let Inventory = [];
let widthSlot;
let heightSlot;
let slotX;
let hideInventory;
let waitingButton;
//? Jauge quand on mange
let characterIsEating;
let gaugeSize;
let gaugeSpeed;
let topGaugeLevel;
let rightGaugeLevel;
let bottomGaugeLevel;
let leftGaugeLevel;
//^ Audio
//? Musique
let musicEnabled;
let canPlayMusic;
//? Sons
let soundEnabled = true;
let canPlaySong;
let VoicesSongMarjo;
let VoicesDieSong;
let firstDieSound;
let dieSoundPlay;
let VoiceStartSong;
let startGame;
let startSoundPlay;
let soundWalk;
let soundJump;
let soundHit;
let soundDie;
let soundSwordHit1;
let soundSwordHit2;
let soundSwordHit3;
let soundClick;
let soundPNJ;
let buttonClickSound = false
//^ Evenements
//? Touches
let Pressing;
let spaceKeyIsPressed;
let rightArrowPressed;
let leftArrowPressed;
let highArrowPressed;
let downArrowPressed;
let dashKeyIsPressed;
let leftClickPressed;
let leftClickWasPressed;
let canEnterInHouse;
let canGoOutTheHouse;
//? PNJ
let canInteractWithPNJ;
let PressInteractPNJ;
let canTalkWithPNJ;
let PressTalkPNJ;
let currentTextSpeaking;
let currentIndexTextSpeaking;
let skipTalk = true
//? Portes
let behindThisDoor;
let behindThisDoorHouse;
let engine1WidthDoors;
let engine1HeightDoors;
let engine2WidthDoors;
let engine2HeightDoors;
//? Mort
let playerDead;
//? Popups
let popUpShown;
let playerAnswersYes;
//~ Credits
let endTheGameCredits;
let PositionCredits;
let speedCredits;
let creditsInHome;
//~ Fin du jeu
let gameIsEnd;
//~ Statistiques
let numberOfSteps;
//~ Items
let itemList;
let currentItemPointing;
//~ Troc
let waitingAnswer;
let haveToTrade;
let slotSize;
let itemSize;
let stackSize;
//~ FPS
let fpsEnabled;
let FPSButtonColor;
//~ Physique
let gravityForce;
//~ Cinématiques
let startCinematicPlaying = true;
let musicCinematic;
//~ Textures
let sky;
let tileSet;
let tileSetForTaverne;
let tileSetTaverne;
let tileSetForLabo;
let tileSetLabo;
let characterTexture_Dash;
let backgroundImage;
let backgroundImageDistant;
let backgroundImageClose;
let backgroundImageUI;
let GUITroc;
let GUIButton;
let GUIStart;
let marjoTexture;
let charleTexture;
let crazyTexture;
let innkeeperTexture;
let wizardTexture;
let malade1Sprite;
let malade2Sprite;
let pointEnnemis;
let tilesetItems;
let backgroundImageTroc;
let slot;
let smallPopUp;
let requiredSlotSword;
let requiredSlotFoods;
//~ JSONS
let adminJSON;
let allDoors;
let ennemiesJSON;
let Houses;
let itemsJSON;
let Maps;
let pnjJSON;
let World;
let creditsJSON;
//~ Variables vides
let getTrade;
let fps;
let StartCinematic;
let statistiques;
let tilesList;
let gameIntroductionVideo;
let gameEndVideo;
let hideUI = false;