RELEASE lol

This commit is contained in:
cubernetes 2023-08-11 02:26:25 +02:00
parent 265ffffbf5
commit 14ef055eaa
2 changed files with 8 additions and 5 deletions

View File

@ -195,7 +195,7 @@ def main() -> NoReturn:
collected_42 = True collected_42 = True
i = 0 i = 0
collect_sfx() collect_sfx()
show_frame(frame, to_stdout=True) show_frame(frame, to_stdout=(not sys.stdout.isatty()))
i += 1 i += 1
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -3,12 +3,15 @@
# st -f 'SauceCodePro Nerd Font Mono:size=10' -e sh -c '{ ./game.py | 2>/dev/null ffmpeg -y -f rawvideo -s 640x480 -pix_fmt bgr24 -i - -map 0:V:0 -filter:v "format=gray,hflip" -c:v libx265 -preset ultrafast -tune zerolatency -crf 30 -f nut - | TERM=xterm-mono CACA_DRIVER=ncurses DISPLAY= mpv --really-quiet --no-cache --no-config --vo=caca --untimed --profile=low-latency - || { echo Error 1>&2; read X; }; }' # st -f 'SauceCodePro Nerd Font Mono:size=10' -e sh -c '{ ./game.py | 2>/dev/null ffmpeg -y -f rawvideo -s 640x480 -pix_fmt bgr24 -i - -map 0:V:0 -filter:v "format=gray,hflip" -c:v libx265 -preset ultrafast -tune zerolatency -crf 30 -f nut - | TERM=xterm-mono CACA_DRIVER=ncurses DISPLAY= mpv --really-quiet --no-cache --no-config --vo=caca --untimed --profile=low-latency - || { echo Error 1>&2; read X; }; }'
# st -f 'SauceCodePro Nerd Font Mono:size=10' -e sh -c '{ ./game.py | 2>/dev/null ffmpeg -y -f rawvideo -s 640x480 -pix_fmt bgr24 -i - -map 0:V:0 -filter:v "format=gray,hflip" -c:v libx264 -preset ultrafast -tune zerolatency -crf 30 -f nut - | TERM=xterm-mono CACA_DRIVER=ncurses DISPLAY= mpv --really-quiet --no-cache --no-config --vo=tct --untimed --profile=low-latency - || { echo Error 1>&2; read X; }; }' # st -f 'SauceCodePro Nerd Font Mono:size=10' -e sh -c '{ ./game.py | 2>/dev/null ffmpeg -y -f rawvideo -s 640x480 -pix_fmt bgr24 -i - -map 0:V:0 -filter:v "format=gray,hflip" -c:v libx264 -preset ultrafast -tune zerolatency -crf 30 -f nut - | TERM=xterm-mono CACA_DRIVER=ncurses DISPLAY= mpv --really-quiet --no-cache --no-config --vo=tct --untimed --profile=low-latency - || { echo Error 1>&2; read X; }; }'
export TERM_FONT='SauceCodePro Nerd Font Mono'
export TERM_FONT_SIZE='10'
export OUT_TERM='xterm-mono'
xterm \ xterm \
-bg black \ -bg black \
-fg white \ -fg white \
-s -fullscreen \ -s -fullscreen \
-fa 'SauceCodePro Nerd Font Mono' \ -fa "${TERM_FONT}" \
-fs 8 \ -fs "${TERM_FONT_SIZE}" \
-e '{ -e '{
./game.py | ./game.py |
2>/dev/null ffmpeg -y \ 2>/dev/null ffmpeg -y \
@ -24,7 +27,7 @@ xterm \
-crf 30 \ -crf 30 \
-f nut \ -f nut \
- | - |
TERM=xterm-mono CACA_DRIVER=ncurses DISPLAY= mpv \ TERM='"'${OUT_TERM}'"' CACA_DRIVER=ncurses DISPLAY= mpv \
--really-quiet \ --really-quiet \
--no-cache \ --no-cache \
--no-config \ --no-config \
@ -32,5 +35,5 @@ xterm \
--untimed \ --untimed \
--profile=low-latency \ --profile=low-latency \
- \ - \
|| { echo Error 1>&2; read X; }; || { echo "There was an error" 1>&2; read X; };
}' }'