Article View: net.micro.cbm
Article #2295Sprite Help on the C-128
From: sean1
Date: Thu, 25 Sep 1986 12:08
Date: Thu, 25 Sep 1986 12:08
50 lines
3162 bytes
3162 bytes
My Problem: I am very familiar with the operations of sprites on the
Commodore 64. I have a Commodore 128 and decided to write a program
in native 128 mode using sprites. No matter what I tried, using the
SSHAPE and SPRSAV commands the sprites showed mounds of junk instead
of the image I wanted. Is there no way to use the VICII's locations
directly, thereby overriding the BASIC 7.0 commands? Some of those
commands are GREAT, like the BiZillion features of MOVSPR, but the
actual definition and page flipping of sprite definitions MUST be
easier.
Here is one example:
I drew a small 2x2 box on the screen at 100,100. Then I used:
SSHAPE A$,100,100,102,102 : rem should save all data from 100,100
to 102,102 into A$.
then:
SPRSAV A$,5 : rem assigns the data in A$ to sprite 5
Now, sometimes this would ALMOST work, I would get the general shape
I was looking for, but I would also get a few bits of junk that is
not supposed to be there. Also, it was NOT what I drew on the screen.
Can anyone out there (Maybe someone has a copy of the Programmer's Reference
guide for the 128, I dont't) tell me how to define the sprites the old
fashioned Read-a-file and assign-sprite-page-pointers method? Surely there
must be a way. Maybe due to my inexperience with the commands, I have made
an error somewhere.
I also tried defining A$ myself, This almost worked too. Four out of the
six sprites were perfect, but two of them had JUNK at the bottom. These
commands are the same as the Super Expander, which I bought last year but
seldom used.
HHHHEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP!
(What I would really appreciate is a memory map of the sprite pointers
to see where they have been relocated and of the sprite registers so
I can use them the old way. If it is possible.)
/~~~~~\ |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
|/ / \ \| | UUCP: {akgua,allegra,cbosgd,ihnp4,mcvax,utesri}!garfield!sean1 |
[|-@-@-|] | CDNNET: sean1@garfield.mun.cdn |
\| ^ |/ | Sean Huxter |
| \_/ | | Apt. 420, 235 Blackmarsh Rd., St. John's, NF, Canada |
\___/ |(Can YOU say NEWFOUNDLAND, boys and girls?) (and pronounce it?) |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The opinions expressed here will be put to a general vote and the
results will be posted. Stand by...
Technical Details
Message-ID:
<2388@garfield.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utcsri!utai!garfield!sean1Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 GARFIELD 20/11/84; site garfield.UUCP Path: arc1-ca.pugleaf.net!utzoo!utcsri!utai!garfield!sean1 From: sean1@garfield.UUCP Newsgroups: net.micro.cbm Subject: Sprite Help on the C-128 Message-ID: <2388@garfield.UUCP> Date: Thu, 25-Sep-86 08:08:08 EDT Article-I.D.: garfield.2388 Posted: Thu Sep 25 08:08:08 1986 Date-Received: Fri, 26-Sep-86 01:41:55 EDT Sender: perry@garfield.UUCP Reply-To: sean1@garfield.UUCP (Sean Huxter) Organization: Memorial U. of Nfld. C.S. Dept., St. John's Lines: 50 Keywords: SPRSAV, SSHAPE, MOVSPR, sprites