-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConstants.js
106 lines (87 loc) · 4.22 KB
/
Constants.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
Adventurous.Constants =
{
GAME_NAME: "The Secret of Gargoyle Manor",
LOCALSTORAGE_KEY: "Adventurous_The Secret of Gargoyle Manor_localStorage",
HAS_VOICE: false,
MAIN_MENU_MUSIC: "goblinking",
MENU_BUTTON_SOUND: "button",
TILE_SIZE : 16,
INVERSE_TILE_SIZE : 1/16,
WALKABLE_TILES : [2], //1-indexed
SCALE_STEP : 0.1,
DEFAULT_MOVE_SPEED : 125,
LABEL_STYLE : { font: "17px AdventurousFont", fill: "#ffffee", align: "center" },
LABEL_SHADOW_STYLE : { font: "17px AdventurousFont", fill: "#000011", align: "center" },
LABEL_SHADOW_OFFSET_X : 1,
LABEL_SHADOW_OFFSET_Y : 1,
DIALOGUE_LABEL_STYLE : { font: "17px AdventurousFont", fill: "#ffffee", align: "left", wordWrapWidth: 600, wordWrap: true },
SELECTED_DIALOGUE_LABEL_STYLE : { font: "17px AdventurousFont", fill: "#ffff77", align: "left", wordWrapWidth: 600, wordWrap: true },
DISABLED_LABEL_STYLE : { font: "17px AdventurousFont", fill: "#dddddd", align: "left", wordWrapWidth: 600, wordWrap: true },
MAIN_MENU_LABEL_STYLE : { font: "17px AdventurousFont", fill: "#000000", align: "left", wordWrapWidth: 600, wordWrap: true },
SELECTED_MAIN_MENU_LABEL_STYLE : { font: "17px AdventurousFont", fill: "#F6F699", align: "left", wordWrapWidth: 600, wordWrap: true },
LINE_HEIGHT: 25,
LMB : 0,
MMB : 1,
RMB : 2,
PLAYER_NAME: "player",
DIALOGUE_BACKGROUND_IMAGE_NAME: "dialogue_background",
INVENTORY_BACKGROUND_IMAGE_NAME: "inventory_background",
INVENTORY_PADDING: 65, //space between edge of inventory background image and start of item grid
INVENTORY_MARGIN: 30, //how close to edge of inventory background image you must drag an item before the inventory closes
//(useful if your inventory background image has a partially transparent "dimmer" strip around the edge)
TITLE_IMAGE_NAME: "title_background",
DIALOGUE_BACKGROUND_OPACITY: 0.9,
ACTION_TALK : "Talk",
ACTION_REMARK : "Remark",
ACTION_PICK_UP : "Pickup",
ACTION_STOP : "Stop",
ACTION_SOUND : "Sound",
ACTION_MUSIC : "Music",
ACTION_SET_ALIAS : "Alias",
ACTION_DROP : "Drop",
ACTION_HIDE : "Hide",
ACTION_SHOW : "Show",
ACTION_ANIMATE: "Animate",
ACTION_WAIT: "Wait",
ACTION_SCENE: "Scene",
ACTION_WALK: "Walk",
ACTION_MOVE: "Move",
ACTION_FACE: "Face",
ACTION_RELOCATE: "Relocate",
ACTION_STOP_ROUTINE: "StopRoutine",
ACTION_START_ROUTINE: "StartRoutine",
ACTION_SET_FLAG: "setFlag",
ACTION_FADEOUT : "Fade Out",
ACTION_FADEIN : "Fade In",
ACTION_MAIN_MENU : "MainMenu",
ACTION_CONV_HIDE_CHOICE: "conv_hideChoice",
ACTION_CONV_RESET_CHOICES: "conv_resetChoices",
ACTION_CONV_QUIT: "conv_quit",
ACTION_CONV_NODE: "conv_node",
//TODO -- an action to relocate an item to a new location and/or new scene
OFFSTAGE_SCENE: "<offstage>",
ON_ENTER: "Enter",
ON_EXIT: "Exit",
ANIM_IDLE: "idle",
INVENTORY_ITEM_SIZE : 75,
DIALOGUE_DEFAULT_WPM : 120,
DIALOGUE_MIN_TIME : 2000,
PAUSE_MENU_FIRST_ITEM_Y_POS: 60,
PAUSE_MENU_LINE_HEIGHT: 60,
MAIN_MENU_FIRST_ITEM_Y_POS: 175,
MAIN_MENU_LINE_HEIGHT: 50,
PAUSE_MENU_WIDTH: 256,
BROWSER_LABEL_Y_OFFSET: 0,
HELP_TEXT: "This game is very simple\nto play!\n\nLEFT CLICK to use things.\n\nRIGHT CLICK to look at\nthings.\n\nTo open your Inventory,\npress the \"i\" key.\n\nTo Save or Load, open\nthe menu with ESCAPE.\n\nHave fun!",
CREDITS_TEXT: "THE SECRET OF GARGOYLE MANOR\n"+
"an entertainment software from Skyfort Games\n\n"+
"Music:\n"+
" \"The Path of the Goblin King\", \"Life of Riley\", \"Industrial Music Box\"\n by Kevin MacLeod (incompetech.com)\n"+
" Licensed under Creative Commons: By Attribution 3.0\n"+
" http://creativecommons.org/licenses/by/3.0/\n\n"+
"Sound effects:\n"+
" #GameAudioGDC bundle from sonniss.com\n"+
" Wind sound effect by medialint at freesound.org\n\n"+
"Fonts from dafont.com:\n"+
" Alte Haas Grotesk Bold by yann le coroller\n\n"
}