Login
VC3-2021-MMS
Title:VC3-2021-MMS
Category:Demo/BasicExample
Release Date:
Language:(none)
Size:16K
Machine:PAL & NTSC
Code Type:Basic
Distribution:Freeware
 Play Online!
Code by:MMS
Notes:AKA Christmas Tree. Official demo name confirmed by the author.
No votes yet.
VC3-2021-MMS Screenshot


Compos
ComposCategoryRankScoreNotes
VCCC 2021Size category65179Actually the score matches the used memory in bytes.


Description
Author:	          MMS
System: Commodore 264 series (16, 116, Plus/4)
Language: CBM BASIC v3.5, but OK on V2.0 and v7.0 (maybe v4.0?)
Length of code: 226 characters (BASIC code)
Length of ex.code 179 byte
How to run the code: LOAD+RUN

Description:
1. Define the array C with 14 elements
2. I read the width of the Christmas tree's 14 layers into a C array, width of the layer defined in the DATA lines (counted from the Challange's picture)
3. Before drawing the tree's coming layer, I center it by deducting tree's layer width from the 40 (width of +4 screen) and divided by two, and I used INT function to truncate it
4. I print as many * characters with a FOR cycle as defined in the layer's DIM
5. Repeat it as long as all layers are not drawn
6. end

Instead of TAB function I could use +4's CHAR function for positioning, but then it would be only compatible with +4 (or maybe C128).
This version probably runs on C64 and VIC-20 (maybe PETs too).

Copyright © Plus/4 World Team, 2001-2024