I
Size: a a a
S
S
S
user32 = ffi.load('user32')
ffi.cdef[[
int GetKeyState(int nVirtKey);
]]
-- copypaste
local codes = {
left = 0x25,
up = 0x26,
right = 0x27,
down = 0x28,
}
function keyIsDown(code)
return user32.GetKeyState(code) < 0
end
Код змейки: https://pastebin.com/X3ynm99tS
I
S
S
#ifdef _WIN32_
#include "pdcurses.h"M
S
p