tetris game writed with c++ and SDL2
rm -f resources.h
cd resources
for file in `ls`; do
echo "Converting file" $file
xxd -i $file >> resources.h
done
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cd build
msbuild tetris.sln /property:Configuration=Release
cp _deps\sdl2-build\Release\SDL2.dll Release
cp _deps\sdl2_image-build\Release\SDL2_image.dll Release
cp _deps\sdl2_mixer-build\Release\SDL2_mixer.dll Release
cd build\Release
.\tetris.exe
space
for startleft/right arrows
for move to sidesdown arrow
for drops/up arrow
for rotate clockwisea
for rotate counterclockwiseesc
for pause/play game