11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Remove all lines 20 to 96 and line 201. Add these lines:10 REM MAKE PICTURES -—30 INPUT " BLOCK NUMBER";B35IFBO00THEN3040GOSUB20096 LIST 300240 PRINT N,280 NEXT J:PRINT:NEXT I292 INPUT" NEXT PICTURE ";A$How to use the program:LIST it to see the box made of DATA statements.Draw your new picture.Then run the program and enter a block number from 200 to 255. The picture isstored in the block.Also, the numbers draw the picture are shown on the screen so you can copythem down if you want. You can put these numbers into DATA statements ifyou want to write a program which uses that picture.Finally, the DATA statements are LISTed again so you can draw a new pictureto store in another block.You can store many pictures for one sprite to use, and change from one picture toanother by POKEing a new block number into the sprite pointer box. (Remember, forsprite 0 the pointer is in box 2040.) Change the pictures very fast and you can make amovie!Assignment 31 A:1. Use MAKE PICTURES to store a smiley face in block 200. Then draw a frowning faceand store it in block 201. (The smile in 200 is still there.)Then write a program to make first the smile, then the frown, show in the middle ofthe screen. (Hint: Use sprite 0 and change its pointer B in a loop.)2. Now that you know how, store several faces and write a program which changes theface slowly from a big smile, to a small smile, then to a puzzled look, then to a frown,then to an angry face.180

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!