Author: Michal Lokša [SinDiKat]
Category: Christmas Challenge
System: C64
Language: Basic V2
Compiled by: CBM prg Studio 3.14.0 (open XMasTree.cbmprj)
Length of source code: 132 Bytes
Length of exe file: 90 Bytes
Instructions:
Run xmasstar.prg in any C64 emulator, e.g. Vice (x64sc.exe) by opening from menu
or directly from command line (x64sc.exe xmasstar.prg)
Description:
Program draws 5 stars from bigger to smaller. This is first loop.
Each star is drawn by on one continous draw consisting of 8 lines. This is second loop.
There are two different line lengths in each star.
Line is drawn in third loop. Relative position of next "pixel" for current line is get from data string.
This relative position is coded as value plus offset 42, because we need positive and negative values
and ASC can return only positive values.
Comments:
-