Xmas Card - Tony Samuels (Your Spectrum-Issue 10-Page 87) NOTE: The correction to line 440, printed in issue 12 on page 19, has been included in XMASCARD.TAP. This program generates a Christmassy scene on-screen, prints up our compliments of the season to all our readers in double- height characters and BEEPs a few of your favourite carols. To modify the message at the bottom of the screen, use the 'message-coder' routine given. 'Tis nearly Christmas ... and I bet a lot of you out there haven't even given a thought to giving Grannie a Christmas card. Well, here's an idea from the author of Softek's Ugh! - why not send a computer-generated Christmas card with your own personalised message? First, type in the main program as it stands and you'll get a personalised Christmas card from everyone here at YS - with accompanying Christmas carols. But once you've tired of our card to you, why not use the additional routine to place your own message in line 570 and wish all your friends a computerised 'Happy Christmas' on the day. All you have to do is RUN the 'message- coder' routine and input your required message, and then put the output data in place of the data we've put in line 570. Couldn't be simpler ... Line 10 Clears space in memory for the machine code routine (at lines 550-560) and sets up the screen with the necessary colours. Lines 20-30 Line 20 READs and then POKEs in the user-defined graphics data contained in line 30. Lines 40-100 This routine draws a snowscape at random along the bottom part of the screen. Line 110 Draws the trunk of a Christmas tree. Line 120 This line makes sure that there's some snow around the bottom of the tree trunk. Lines 130-170 Draw the main part of the Christmas tree in position on the tree trunk. Lines 180-190 Elaborate the tree with a few fairy lights. Well it's nearly Christmas after all! Lines 200-240 Position a star up in the left hand corner of the screen. Lines 300-340 A few random stars are thrown in to make the whole effect more realistic. Line 350 This line clears an area of the bottom of the screen for a Christmassy type message. Line 360 READs and POKEs the machine code data into the area created for it in memory by line 10. Lines 400-410 READ and POKE the message created by line 570. Lines 420-470 This routine READs the data from lines 500-540 and plays the Christmas carols that accompany the message as it scrolls from right to left across the bottom of the screen. Lines 500-540 Contain the data for the Christmas carols. If you've an ear for music and find Tony's interpretations of all your favourite carols a little out of tune, this is the data you want to be looking to change. Lines 550-560 The machine code routine to run the program. Line 57O This line contains the coded message from all of us here at YS to you lot out there. To alter the message, type your own Christmas greeting into the 'message coder' routine and then type its output into this line and type RUN. XMAS CARD MESSAGE CODER This routine allows you to insert your own Christmas message into the program. When you RUN the listing, you will be asked to insert your message - don't make it too long, otherwise you'll be very busy typing in all the data! ------------------------------------------------------------------------------ TYPE: Utility COMMENT: This info file was typed by Jim Grimwood Downloaded from: Desert Island Disks -- http://www.image.dk/~frankie/ Maintained by: Michael Bruhn -- frankie@image.dk