home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1993 March
/
1993-03.d64
/
powerdemo
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
60 lines
10 rem ** powersprite demo **
20 ifpeek(49152)<>76thenload"powersprite",8,1
30 poke53280,11:poke53281,6
40 print"[147]"chr$(14):poke53269,0
50 print" [208]ower[211]prite [196]emonstration"
60 print"[159] [208]ositioning, moving and animating "
70 print" multiple sprites is now a snap. [212]his "
80 print" utility connects up to eight sprites to"
90 print" create a giant '[208]ower[211]prite', that can "
100 print" be moved or animated with one command. "
110 print" [208]ower[211]prite is accessed using simple "
120 print" [211][217][211] commands from direct mode, or your "
130 print" own [194][193][211][201][195] or machine language programs."
140 print"[158] - [200]it a key to [195]ontinue -"
150 get k$:ifk$=""then150
160 print"[147][159] [208]ower[211]prite can be used to store data "
170 print" for all sprites, including all [216] and [217] "
180 print" values, colors, frames, and expansion. "
190 print" [193] simple editor allows sprite setup "
200 print" without tedious [208][197][197][203][211] and [208][207][203][197][211]. [196]ata "
210 print" can be stored on disk for use in your "
220 print" own programs. [196]ata is recalled with "
230 print" one simple command. [208]lease hit a key "
240 print" to see a [208]ower[211]prite in action... "
250 get k$:ifk$=""then250
260 rem ** powersprite demo **
270 print"[147]":poke53281,0
280 print"[159][212]he big block is a [208]ower[211]prite using "
290 print"all eight sprites connected. [193] single "
300 print"command will move or animate this giant "
310 print"sprite. [206][207][212][197]: [208]ower[211]prite is not a "
320 print"sprite editor. [193]ny sprite editor, such "
330 print"as [211]prite [205]agic will create graphics "
340 print"compatible with [208]ower[211]prite.
350 [153]"sys - left$it a key & wait to lenontinue -"
360 [129] x[178]12288 [164] 12352:[151]x,255:[130]
370 [158] 49158: [143] ** display/recall sprites
380 [158] 49164,50,200,0: [143] ** set start x and y coordinates for powersprite
390 [129] x[178]50 [164] 200 [169] 2
400 [158]49164,x,200,0:[130]
410 [129] y[178]200 [164] 100 [169] [171]1
420 [158]49164,200,y,0:[130]
430 [129] x[178]200 [164] 50 [169] [171]2
440 [158]49164,x,100,0:[130]
450 [129] y[178]100 [164] 200
460 [158]49164,50,y,0:[130]
470 [139] [194](198)[178]0[167] 390
480 [151]53269,0:[151]53281,6:[151]198,0
490 [153]"load (NULL)ower(NULL)prite lenommands"
500 [153]"sysatnll accessable thru peekatn(NULL)right$len or direct mode"
510 [153]" (NULL)(NULL)(NULL) 49152 open- valnter (NULL)ower(NULL)prite editor
520 print" [211][217][211] 49155 [159]- [211]tore sprite info manually"
530 print" [211][217][211] 49158 [159]- [196]isplay/recall sprites"
540 print" [211][217][211] 49161,[198][159] - [193]nimates a [208]ower[211]prite"
550 print" [211][217][211] 49164,[216],[217],[205] [159]- [205]oves a [208]ower[211]prite"
560 print"[158] [208]lease see article for a detailed "
570 print" explanation of each command."
580 get k$:if k$=""then580
590 goto30