33 lines
602 B
Lua
33 lines
602 B
Lua
local amplitude = 128
|
|
local mouse_x = 0
|
|
local mouse_y = 0
|
|
|
|
--
|
|
-- constants
|
|
--
|
|
|
|
local BLUE = 1
|
|
local YELLOW = 2
|
|
|
|
-- 🅾️ 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 = {
|
|
0b1000000000000000,
|
|
0b1000000000100000,
|
|
0b1010000000100000,
|
|
0b1010000010100000,
|
|
0b1010010010100000,
|
|
0b1010010010100001,
|
|
0b1010010110100001,
|
|
0b1010010110100101,
|
|
0b1110010110100101,
|
|
0b1110010110110101,
|
|
0b1111010110110101,
|
|
0b1111010111110101,
|
|
0b1111110111110101,
|
|
0b1111110111110111,
|
|
0b1111111111110111,
|
|
0b1111111111111111,
|
|
} |