tinytetris
tinytetris copied to clipboard
80x23 terminal tetris!
``` linux:~/code/other/tinytetris$ make g++ -lcurses tinytetris.cpp -o tinytetris /tmp/ccNKijAL.o: In function `F()': tinytetris.cpp:(.text+0xf7): undefined reference to `move' tinytetris.cpp:(.text+0x161): undefined reference to `stdscr' tinytetris.cpp:(.text+0x171): undefined reference to `wattr_on' tinytetris.cpp:(.text+0x184): undefined reference...
增加中文注释
[tinytetris-commented-zh.txt](https://github.com/taylorconor/tinytetris/files/7919829/tinytetris-commented-zh.txt)
I read the code in "frame()" function and find that " attron(262176 | board[i][j]
## Proof ## Libs What should I provide? I don't know anything about C++, so tell me which libs versions I should add to this Issue.
I wanted to play with either wasd or the arrow keys. Hope this isn't against the original idea.
They are int ,why can they more than 2^15? (I am a beginner)
add xmake.lua for xmake support
It's good if there's a CMakeLists.txt。I write one that works for me. In this case, you need to create build and src folder, and put the code that needs compilation...
[tinytetris.cpp](https://github.com/taylorconor/tinytetris/blob/master/tinytetris.cpp)
Libraries (-lfoo) should be added to the LDLIBS variable instead. Fix #9