Home » Archimedes archive » Archimedes World » AW-1993-08.adf » AWAug93 » !AWAug93/Goodies/Basic2/ReadMe
!AWAug93/Goodies/Basic2/ReadMe
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Archimedes World » AW-1993-08.adf » AWAug93 |
Filename: | !AWAug93/Goodies/Basic2/ReadMe |
Read OK: | ✔ |
File size: | 0528 bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
Basic for Beginners By G.Stanley � Archimedes World 1993 This month we take a look at how sprites are flipped in a X and Y direction, we also look at some more sprite related commands. The new sprite commands are very important, they show the sprite area has its own filing system, which we discussed last month. Animation 4 In this program 10 sprites of varying colours are displayed bouncing up and down across the screen. Load the sprite file into paint to see what is happening. I would suggest you try some of your own designs, then reproduce them to the screen using the programs routines. If you followed last months animation, you should have no problem understanding the program. Animation 5 Well it had to be done, yes a silly looking sprite. But it does point out what is going on here. The program shows the flipping of the bug in the Y direction using the important sprite command. Animation 6 The final animation shows the sprite moving in all X and Y directions. This shows the sprite moving in a circular movement. Once again by two simple sprite commands. (For further information see magazine articles) Have fun and experiment, thats all for this month.
00000000 0a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |. | 00000010 20 20 20 20 20 20 20 20 20 20 20 42 61 73 69 63 | Basic| 00000020 20 66 6f 72 20 42 65 67 69 6e 6e 65 72 73 0a 0a | for Beginners..| 00000030 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000040 20 20 20 20 20 20 20 20 20 20 20 20 20 42 79 20 | By | 00000050 47 2e 53 74 61 6e 6c 65 79 0a 0a 20 20 20 20 20 |G.Stanley.. | 00000060 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000070 20 20 20 a9 20 41 72 63 68 69 6d 65 64 65 73 20 | . Archimedes | 00000080 57 6f 72 6c 64 20 31 39 39 33 0a 20 20 20 20 20 |World 1993. | 00000090 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000000a0 20 20 20 0a 0a 0a 54 68 69 73 20 6d 6f 6e 74 68 | ...This month| 000000b0 20 77 65 20 74 61 6b 65 20 61 20 6c 6f 6f 6b 20 | we take a look | 000000c0 61 74 20 68 6f 77 20 73 70 72 69 74 65 73 20 61 |at how sprites a| 000000d0 72 65 20 66 6c 69 70 70 65 64 20 69 6e 20 61 20 |re flipped in a | 000000e0 58 20 61 6e 64 20 59 20 64 69 72 65 63 74 69 6f |X and Y directio| 000000f0 6e 2c 0a 77 65 20 61 6c 73 6f 20 6c 6f 6f 6b 20 |n,.we also look | 00000100 61 74 20 73 6f 6d 65 20 6d 6f 72 65 20 73 70 72 |at some more spr| 00000110 69 74 65 20 72 65 6c 61 74 65 64 20 63 6f 6d 6d |ite related comm| 00000120 61 6e 64 73 2e 20 54 68 65 20 6e 65 77 20 73 70 |ands. The new sp| 00000130 72 69 74 65 20 63 6f 6d 6d 61 6e 64 73 0a 61 72 |rite commands.ar| 00000140 65 20 76 65 72 79 20 69 6d 70 6f 72 74 61 6e 74 |e very important| 00000150 2c 20 74 68 65 79 20 73 68 6f 77 20 74 68 65 20 |, they show the | 00000160 73 70 72 69 74 65 20 61 72 65 61 20 68 61 73 20 |sprite area has | 00000170 69 74 73 20 6f 77 6e 20 66 69 6c 69 6e 67 20 73 |its own filing s| 00000180 79 73 74 65 6d 2c 0a 77 68 69 63 68 20 77 65 20 |ystem,.which we | 00000190 64 69 73 63 75 73 73 65 64 20 6c 61 73 74 20 6d |discussed last m| 000001a0 6f 6e 74 68 2e 0a 0a 0a 41 6e 69 6d 61 74 69 6f |onth....Animatio| 000001b0 6e 20 34 0a 0a 49 6e 20 74 68 69 73 20 70 72 6f |n 4..In this pro| 000001c0 67 72 61 6d 20 31 30 20 73 70 72 69 74 65 73 20 |gram 10 sprites | 000001d0 6f 66 20 76 61 72 79 69 6e 67 20 63 6f 6c 6f 75 |of varying colou| 000001e0 72 73 20 61 72 65 20 64 69 73 70 6c 61 79 65 64 |rs are displayed| 000001f0 20 62 6f 75 6e 63 69 6e 67 20 75 70 20 61 6e 64 | bouncing up and| 00000200 0a 64 6f 77 6e 20 61 63 72 6f 73 73 20 74 68 65 |.down across the| 00000210 20 73 63 72 65 65 6e 2e 20 4c 6f 61 64 20 74 68 | screen. Load th| 00000220 65 20 73 70 72 69 74 65 20 66 69 6c 65 20 69 6e |e sprite file in| 00000230 74 6f 20 70 61 69 6e 74 20 74 6f 20 73 65 65 20 |to paint to see | 00000240 77 68 61 74 20 69 73 0a 68 61 70 70 65 6e 69 6e |what is.happenin| 00000250 67 2e 20 49 20 77 6f 75 6c 64 20 73 75 67 67 65 |g. I would sugge| 00000260 73 74 20 79 6f 75 20 74 72 79 20 73 6f 6d 65 20 |st you try some | 00000270 6f 66 20 79 6f 75 72 20 6f 77 6e 20 64 65 73 69 |of your own desi| 00000280 67 6e 73 2c 20 74 68 65 6e 20 72 65 70 72 6f 64 |gns, then reprod| 00000290 75 63 65 0a 74 68 65 6d 20 74 6f 20 74 68 65 20 |uce.them to the | 000002a0 73 63 72 65 65 6e 20 75 73 69 6e 67 20 74 68 65 |screen using the| 000002b0 20 70 72 6f 67 72 61 6d 73 20 72 6f 75 74 69 6e | programs routin| 000002c0 65 73 2e 20 49 66 20 79 6f 75 20 66 6f 6c 6c 6f |es. If you follo| 000002d0 77 65 64 20 6c 61 73 74 20 6d 6f 6e 74 68 73 0a |wed last months.| 000002e0 61 6e 69 6d 61 74 69 6f 6e 2c 20 79 6f 75 20 73 |animation, you s| 000002f0 68 6f 75 6c 64 20 68 61 76 65 20 6e 6f 20 70 72 |hould have no pr| 00000300 6f 62 6c 65 6d 20 75 6e 64 65 72 73 74 61 6e 64 |oblem understand| 00000310 69 6e 67 20 74 68 65 20 70 72 6f 67 72 61 6d 2e |ing the program.| 00000320 0a 0a 0a 41 6e 69 6d 61 74 69 6f 6e 20 35 0a 0a |...Animation 5..| 00000330 57 65 6c 6c 20 69 74 20 68 61 64 20 74 6f 20 62 |Well it had to b| 00000340 65 20 64 6f 6e 65 2c 20 79 65 73 20 61 20 73 69 |e done, yes a si| 00000350 6c 6c 79 20 6c 6f 6f 6b 69 6e 67 20 73 70 72 69 |lly looking spri| 00000360 74 65 2e 20 42 75 74 20 69 74 20 64 6f 65 73 20 |te. But it does | 00000370 70 6f 69 6e 74 20 6f 75 74 0a 77 68 61 74 20 69 |point out.what i| 00000380 73 20 67 6f 69 6e 67 20 6f 6e 20 68 65 72 65 2e |s going on here.| 00000390 20 54 68 65 20 70 72 6f 67 72 61 6d 20 73 68 6f | The program sho| 000003a0 77 73 20 74 68 65 20 66 6c 69 70 70 69 6e 67 20 |ws the flipping | 000003b0 6f 66 20 74 68 65 20 62 75 67 20 69 6e 20 74 68 |of the bug in th| 000003c0 65 20 59 0a 64 69 72 65 63 74 69 6f 6e 20 75 73 |e Y.direction us| 000003d0 69 6e 67 20 74 68 65 20 69 6d 70 6f 72 74 61 6e |ing the importan| 000003e0 74 20 73 70 72 69 74 65 20 63 6f 6d 6d 61 6e 64 |t sprite command| 000003f0 2e 20 0a 0a 0a 41 6e 69 6d 61 74 69 6f 6e 20 36 |. ...Animation 6| 00000400 0a 0a 54 68 65 20 66 69 6e 61 6c 20 61 6e 69 6d |..The final anim| 00000410 61 74 69 6f 6e 20 73 68 6f 77 73 20 74 68 65 20 |ation shows the | 00000420 73 70 72 69 74 65 20 6d 6f 76 69 6e 67 20 69 6e |sprite moving in| 00000430 20 61 6c 6c 20 58 20 61 6e 64 20 59 20 64 69 72 | all X and Y dir| 00000440 65 63 74 69 6f 6e 73 2e 20 54 68 69 73 0a 73 68 |ections. This.sh| 00000450 6f 77 73 20 74 68 65 20 73 70 72 69 74 65 20 6d |ows the sprite m| 00000460 6f 76 69 6e 67 20 69 6e 20 61 20 63 69 72 63 75 |oving in a circu| 00000470 6c 61 72 20 6d 6f 76 65 6d 65 6e 74 2e 20 4f 6e |lar movement. On| 00000480 63 65 20 61 67 61 69 6e 20 62 79 20 74 77 6f 20 |ce again by two | 00000490 73 69 6d 70 6c 65 0a 73 70 72 69 74 65 20 63 6f |simple.sprite co| 000004a0 6d 6d 61 6e 64 73 2e 0a 0a 0a 20 20 20 20 20 20 |mmands.... | 000004b0 20 20 20 20 20 20 20 28 46 6f 72 20 66 75 72 74 | (For furt| 000004c0 68 65 72 20 69 6e 66 6f 72 6d 61 74 69 6f 6e 20 |her information | 000004d0 73 65 65 20 6d 61 67 61 7a 69 6e 65 20 61 72 74 |see magazine art| 000004e0 69 63 6c 65 73 29 0a 0a 20 20 20 20 20 20 20 20 |icles).. | 000004f0 20 20 20 20 48 61 76 65 20 66 75 6e 20 61 6e 64 | Have fun and| 00000500 20 65 78 70 65 72 69 6d 65 6e 74 2c 20 74 68 61 | experiment, tha| 00000510 74 73 20 61 6c 6c 20 66 6f 72 20 74 68 69 73 20 |ts all for this | 00000520 6d 6f 6e 74 68 2e 20 20 |month. | 00000528