35 lines
670 B
Lua
35 lines
670 B
Lua
local amplitude = 128
|
|
local mouse_x = 0
|
|
local mouse_y = 0
|
|
local board_size = 8
|
|
|
|
--
|
|
-- constants
|
|
--
|
|
|
|
local BLUE = 2
|
|
local YELLOW = 1
|
|
|
|
-- 🅾️ Z[C]N ❎ [X]VM
|
|
-- X and C have the same position on QWERTY and AZERTY
|
|
local LEFT, RIGHT, UP, DOWN, BTN_O, BTN_X = 0, 1, 2, 3, 4, 5
|
|
|
|
local patterns = {
|
|
0b0000000000000000,
|
|
0b1000000000000000,
|
|
0b1000000000100000,
|
|
0b1010000000100000,
|
|
0b1010000010100000,
|
|
0b1010010010100000,
|
|
0b1010010010100001,
|
|
0b1010010110100001,
|
|
0b1010010110100101,
|
|
0b1110010110100101,
|
|
0b1110010110110101,
|
|
0b1111010110110101,
|
|
0b1111010111110101,
|
|
0b1111110111110101,
|
|
0b1111110111110111,
|
|
0b1111111111110111,
|
|
0b1111111111111111
|
|
} |