-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules.lua
97 lines (78 loc) · 2.05 KB
/
rules.lua
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
--[[
Squaricles
Copyright (C) 2017 ITR
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
]]--
COLORS = {
["locked"] = {127,127,127},
["outline"] = {255,255,255},
["background"] = {0x54,0x4B,0x3D},
["special"] = {0xFF,0xB9,0x19},
["special-back"] = {0x55,0x4A,0x30},
[-1] = {0,0,0}, --"this should not happen",
[0] = {0xBA,0xAB,0x68},
{0x54,0x66,0x39},
{0x7A,0xDF,0xBB},
{0xFA,0x79,0x21},
{0x28,0x0F,0x15},
{0xE8,0xE8,0xE8},
{0x42,0x3B,0x0B},
}
for k, v in pairs(COLORS) do
COLORS[k] = {v[1]/255,v[2]/255,v[3]/255}
end
DRAW_SYMBOL = true
ENABLE_SPINJUMPING = true
DEFAULT_AMOUNT_OF_COLORS = 3
SIMPLE_CHANCE = 79
DIAGONAL_CHANCE = 5
COURNER_CHANCE = 8
DEFAULT_GRAVITY = 2
REST_TIME = 3.0
IDLE_TIME = 0.25
SQUARE_REMOVAL_TIME = 0.2
HD_COOLDOWN_TIME = 0.4
REMOVE_COLOR_COST = 10.
REMOVE_COLOR_INC = {
0.1,
0.1,
0.5,
2,
3,
}
LOSE_ANIM_SPEED = 8.
LOSE_ANIM_END_WAIT = 0.4
HIGHSCORE_SCROLL_SPEED = 12
MODES = {
"NORMAL",
"TRIPLE",
"MODE-D",
}
--[[ Backgrounds ]]--
GAMEBACKGROUND = love.graphics.newImage("img/Game.png")
MODEIMAGE = {
["NORMAL"] = love.graphics.newImage("img/M-NORMAL.png"),
["TRIPLE"] = love.graphics.newImage("img/M-TRIPLE.png"),
["MODE-D"] = love.graphics.newImage("img/M-D.png"),
}
SPECIALIMAGE = love.graphics.newImage("img/Special.png")
SPECIAL_POS = {622, 12, 326, 193}
PREVIEWS = {
{14,13,166,163},
{193,32,131,128},
{334,32,131,128},
{476,32,131,128},
}
PREVIEW_INDENT = {
{{2,2,8,8},{6,2,8,8}},
{{2,6,8,8},{6,6,8,8}},
}