3 ms·
In what language is this animation written?
by ehsan_akbari 10y ago
In what language is this animation written?
- bitmapbrother 10y agoProbably Assembly. It was the primary language for demo's and games for the Amiga.
- vardump 10y agoI'd guess BCPL. Most early Amiga software was written in it.
- spc476 10y agoOnly the file system portion (dos.library) was written in BCPL (ported from TRIPOS in two or three weeks). The kernel (exec.library) was in assembly, and the GUI (intuition.library) was written in C.
- vardump 10y agoWell, whatever it was, it just needed to compute ball velocity, set a few values in a copper list and start audio DMA on collision. Any compiled language would have been good enough.
- obarthel 10y agoThe program was written mainly in 'C' (some 830 lines of main program, with about 300 lines for the sound code). A small assembly language snippet provided the sine/cosine calculation code (about 100 lines, most of which contain the sine/cosine lookup table). The setup for the animation and the background is quite clever and compact. The background is rendered first by drawing lines. Then the ball image (it's referred to as the "globe" in the code) is rendered, segment by segment, and for each segment, each facet of the ball is rendered as 8 strips. These are used for colour-cycling, giving the appearance that the ball is rotating. The demo automatically adapts to PAL or NTSC, changing the aspect ratio for the background pattern and the ball. The sound effect of the ball hitting the correctly pans right and left as the ball moves around. All setup and rendering operations are performed using operating system functions only.