Did someone call? ;) Yes it was the early issues, it was issues 1-5 i
think, i was only talking to colin this evening about that, now ive
moved i really need to get on with finishing it, although i lost all my
code when i lost the sam harddrive. Ive now got a sam in a can and have
some new flash cards on order so ill get back to it and finish the
little game, maybe some articles on learning mc can be arranged.
Compiled sprites are (if im not mistaken) the fastest way to draw things
on the sam.
To use something like that from basic, you could just do the following
(this is off the top of my head after a bottle of wine, so it maybe
wrong ;) ) But each frame you could do the following (its basically a
double buffer system but from basic). When i say page 1, page 2 - i
don't mean physical memory pages, but any particular page, again from
memory it might have been the screen command that allowed you to open up
and use different screens. If you don't know then ill try and dig up
the info tomorrow.
IN BASIC:
Set the display to page 1
Update your game logic, move the cars etc
Use the MC sprite routine to draw the sprites on page 2
in the positions
Set the display to page 2, showing the sprites in the
new position
Update your game logic, move cars etc
Use the MC sprite routine to draw the sprites on page 1
in the positions
Repeat ;)
You still need to either A) handle storing what was under the sprites
and putting it back, or B) just redraw the entire screen before you draw
the sprites. B) is the easiest to start with but can be slow, but the
key is to get things working then speed them up. Doing this you are only
actually updating when you want to, you don't need interrupts, you don't
need anything clever in MC to do checking etc.
I might be completely off track here, so let me know J
Adrian.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Calvin Allett
Sent: 15 May 2007 23:31
To: Adrian
Subject: Re: MC Interrupts
no probs mate, I`m not exactly gonna be able to do anything with any MC
code yet anyhow, and I know your busy :) I do love looking through the
issue`s I have, it always eggs me on to do more coding, but I need to
get the early issue`s especially for the (sounding great) articles :D
[EMAIL PROTECTED] wrote:
Quoting Calvin Allett :
> I still need to catch up on the later issue`s, and the earlier
> ones... I`d forgot there was such an article, but I`d heard, one of
> the early ones I think :)
>
I've got a site to work on tonight, otherwise I'd be dipping in my
issues to
look for you :(
________________________________
To help you stay safe and secure online, we've developed the all new
Yahoo! Security Centre
<http://us.rd.yahoo.com/mail/uk/taglines/default/security_centre/*http:/
uk.security.yahoo.com/> .
APB Computer Services Ltd. Registered Address: 3 Springfield, Trevadlock,
Congdons Shop, Launceston, Cornwall, PL15 7PW. Registration Number: 4942193.
V.A.T. No: 826 0005 70
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
you have received this email in error please notify the system manager. This
message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.