scene.org File Archive

File download

<root>­/­parties­/­2023­/­vccc23­/­christmas-diamonds/zoon_spectrum_basic_vc3-2023.zip

File size:
42 560 bytes (41.56K)
File date:
2024-01-03 14:15:18
Download count:
all-time: 4

Preview

  • file_id.diz 769B
  • result.png 19.32K
  • source.png 23.20K
  • source.txt 163B
  • stars.tap 159B

file_id.diz

<stars>

Author: zoon@lu.onet.pl
Category: <Christmas Challenge or Wild>
System:   <ZX Spectrum>
Language: <Sinclair BASIC>
Len source code: <163 bytes>
Len tap file:    <159 bytes>
Instructions:
<Just open stars.tap file in any ZX Spectrum emulator,
if it doesn't start - type LOAD "" and press Enter>
Description:
<I noticed that (almost) desired pattern is generated 
when for star coordinates x+y or x-y are divided by 6
without remainder. I only had to shift by 3 lines to
get diamond shapes instead of X shapes. That's why
y loop starts with 3.>
Comments:
<There is no MOD() function in Sinclair Basic so I had
to use INT() and compare values.
There is also no ELSE part of IF command so I had to set
initial value of s$ variable to space.>