scene.org File Archive

File download

<root>­/­parties­/­2022­/­vccc22­/­christmas_star_challenge/holzhey_atarixl_basic_vc3-2022.zip

File size:
65 375 bytes (63.84K)
File date:
2022-12-30 11:32:13
Download count:
all-time: 4

Preview

  • __MACOSX/._result.png 688B
  • __MACOSX/._source.cas 220B
  • __MACOSX/._source.png 688B
  • __MACOSX/._source.txt 276B
  • file_id.diz 1.05K
  • result.png 48.13K
  • source.cas 436B
  • source.png 58.61K
  • source.txt 185B

file_id.diz

Mirrored Star

Author: Alexandre Lehmann Holzhey
Category: Christmas Challenge
System:   Atari
Language: BASIC
Len source code: 185 bytes (source.txt)
Len exe file: 436 bytes (source.cas)
Len code only: 185 bytes (source.txt)
Instructions:
1. Install atari800 (https://github.com/atari800/atari800)
2. Execute "atari800 -xl -basic -tape source.cas"
3. In the emulator, type "CLOAD" and hit enter
4. When "Ready" prompt comes back, type "RUN" and hit enter
Description:
The code draws a triangle four times in order to generate the star.
At each time, it start the base of the triangle from a point displaced from the center
by using the values from the data statement.
Comments:
The approach i used was the simplest one that benefits from drawing using coordinates.
I tried to replace the values in the data statement by geometric steps, but required
code was longer than the current one. I also tried to use a kind of compression algo,
but data values would be too big and the complexity will be greater as well in order
to handle the mirroring and the center of the star.