2022-07-07 23:06:28 +02:00
|
|
|
local amplitude = 128
|
2022-07-10 16:39:11 +02:00
|
|
|
local mouse_x = 0
|
2022-07-12 21:47:10 +02:00
|
|
|
local mouse_y = 0
|
2023-02-22 21:06:16 +01:00
|
|
|
local board_size = 8
|
2022-07-12 21:47:10 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- constants
|
|
|
|
--
|
|
|
|
|
2022-09-24 15:22:18 +02:00
|
|
|
local BLUE = 2
|
|
|
|
local YELLOW = 1
|
2022-07-12 21:47:10 +02:00
|
|
|
|
|
|
|
-- 🅾️ Z[C]N ❎ [X]VM
|
|
|
|
-- X and C have the same position on QWERTY and AZERTY
|
2023-10-07 19:12:53 +02:00
|
|
|
local LEFT, RIGHT, UP, DOWN, BTN_O, BTN_X = 0, 1, 2, 3, 4, 5
|
2022-07-12 21:47:10 +02:00
|
|
|
|
|
|
|
local patterns = {
|
2023-10-07 19:12:53 +02:00
|
|
|
0b0000000000000000,
|
|
|
|
0b1000000000000000,
|
|
|
|
0b1000000000100000,
|
|
|
|
0b1010000000100000,
|
|
|
|
0b1010000010100000,
|
|
|
|
0b1010010010100000,
|
|
|
|
0b1010010010100001,
|
|
|
|
0b1010010110100001,
|
|
|
|
0b1010010110100101,
|
|
|
|
0b1110010110100101,
|
|
|
|
0b1110010110110101,
|
|
|
|
0b1111010110110101,
|
|
|
|
0b1111010111110101,
|
|
|
|
0b1111110111110101,
|
|
|
|
0b1111110111110111,
|
|
|
|
0b1111111111110111,
|
|
|
|
0b1111111111111111
|
2022-07-12 21:47:10 +02:00
|
|
|
}
|