-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconsts.lua
More file actions
43 lines (34 loc) · 1.03 KB
/
Copy pathconsts.lua
File metadata and controls
43 lines (34 loc) · 1.03 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
-- Shared constants for SokoWorld.
local consts = {}
consts.TILE_SIZE = usagi.SPRITE_SIZE
consts.MOVE_HELD_DELAY = 0.2
-- Rewind (undo) auto-repeat delay. Intentionally slower than
-- MOVE_HELD_DELAY so it's harder to overshoot when holding the button.
consts.REWIND_HELD_DELAY = 0.35
-- Seconds for the player / crates to slide between adjacent tiles.
-- Should stay below MOVE_HELD_DELAY so an auto-repeat never starts a
-- new slide while the previous one is still finishing.
consts.MOVE_ANIM_DURATION = 0.08
-- Sprite indices in sprites.png (1-based, matches gfx.spr).
consts.SPR = {
CRATE = 1,
CRATE_ON_STORAGE = 2,
STORAGE = 3,
PLAYER = 4,
GROUND = 5,
WALL = 6,
}
-- Sound effect names (file stems under usagi/sfx/).
consts.SFX = {
PUSH = "dialogBlip2",
FOOTSTEP = "footstep_4",
LEVEL_COMPLETE = "get_item",
CRATE_ON_STORAGE = "pieceSelect",
CANT_MOVE = "pieceCantPlace",
RESET = "save",
MENU_MOVE = "menuMove",
MENU_SELECT = "menuSelect",
MENU_CANCEL = "menuCancel",
}
consts.VERSION = "0.4"
return consts