This update fixes several issues. The frame rate statistics were actually incorrect (due to my brain-fart code), and the frame rate remained at 20 FPS throughout the entire video. The FPS statistics have now been changed to processing delay. (PS: The program automatically adjusts for processing delay.) Some users reported that it did not run properly on 64-bit OS. It was likely an int64 issue. Now it has been changed to longint, and the issue should be resolved. Added a statistics feature (you can turn it off by changing the third line from stat=true to stat=false). Data file download: /usr/uploads/2013/03/badapple.7z Source code: (compile with FPC 2.6 by yourself) uses crt,dos; const stat= true ; inx= 79 ; iny= 24 ; yanchi= 50 ; yanchitj= 800 ; type pic= array [ 1 ..inx, 1 .....
Bad Apple NG: Enhanced Bad Apple Playback System
UPDATE: If encountering issues like failure to open or runtime error 2, please check the instructions at Bad Apple Command Line Art Version regarding data files!!! My previous Bad Apple Command Line Art Version was successfully reposted by classmate WotorDho and enhanced with delay calibration to maintain consistent FPS when system lags. However, he used a custom XCrt unit from his Wenlan Killer project, which contains redundant code and is hard to understand. After studying XCrt, I modified my player to achieve the same effect (theoretically with better performance). Additionally, I optimized the Telnet transmission that previously wasted bandwidth by sending full frames. The new version only updates changed pixels, significantly reducing data transfer....
Porting Bad Apple to Telnet and Successfully Screening It
Today, after tinkering for half a day, I successfully ported Bad Apple to my VPS's Telnet service using the command-line animation version I published earlier. To view it yourself: telnet xuyh0120.tk or telnet 5.175.156.249 Round 1. Porting to SSH Since I originally promised a classmate I'd implement this via SSH, I started there. First, I uploaded Bad Apple to my VPS at /opt/badapple , which contains two files: badapple and badapple.in (the resource file with a modified extension). useradd badapple passwd badapple # 密码我设的badapple su badapple # 切换过去 chsh # 输入/opt/badapple/badapple exit When testing via SSH, I encountered Error 2 (resource file not found). I recompiled locally (the VPS lacks FPC), changed paths from relative to absolute, re-uploaded,...
Bad Apple Command Line Animation Version
Bad Apple is an animation produced by Touhou Project in Japan. The entire animation uses a method similar to shadow play, featuring only black and white colors, yet achieves 3D visuals through entirely hand-drawn frames! The effect is excellent with no frame skipping or dropping. Due to its monochromatic nature, many enthusiasts have ported it to various platforms. I've seen versions running on calculators, Raspberry Pi, and even JavaScript implementations. I also wrote a Pascal program to play Bad Apple, though it operates entirely in the command line. I'm too lazy to provide the compiled binary. Since I use Linux, it would be useless for Windows users anyway. Therefore, I'm sharing the source code below—compile it yourself using FPC. uses crt; var fin:text; i: longint ; s:...