. Random Graphics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CHR$ and ASC Functions
..........................
5. ADVANCEDCOLORAND GRAPHICCOMMANDS ..
. Colorand Graphics .................................
. PRINTingColors....................................
· Color CHR$ Codes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . .
. PEEKsand POKEs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
r.- Screen Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. Screen Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. Color Memory Map .................................
. More BouncingBalls ................................
6. SPRITE GRAPHICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. Introductionto Sprites ...............................
. Sprite Creation .. .. ... ... .. ... .. ... .. ... ..
. Additional Noteson Sprites.. . . . . . . . . . . . . . . . . . . . . . . . . .
. BinaryArithmetic...................................
7. CREATINGSOUND.. .. .. .. .. .. .. .. .. ... .. .. . .. .. .. .
. Using Sound if You're Not a
Computer Programmer ............................
. Structure of a Sound Program ........................
. Sample Sound Program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. Making Music on Your Commodore 64 . ... .. ... .. ... ...
. Important Sound Settings ............................
. Playing a Song on the Commodore 64 .. ...............
. CreatingSoundEffects..............................
. Sample Sound Effects To Try .........................
8. ADVANCEDDATAHANDLING......................
.
READ and DATA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. Averages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. Subscripted Variables ...............................
One-DimensionalArrays ...........................
Averages Revisited. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. DIMENSiON........................................
. Simulated Dice Roll With Arrays. . . . . . . . . . . . . . . . . . . . . . .
. T~o-Dimensional Arrays. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
iv
"
"
"""-/
-
53
53
55
56
56
58
60
62
62
64
65
67
68
69
75
76
79
80
80
80
81
83
88
89
90
91
92
94
95
96
97
98
99
100