[Coco] stuff
Simon Jonassen
simon at roust-it.dk
Sat Apr 12 03:24:02 EDT 2014
Hey Kip !
Took a while to get it to this stage....
The chessboard itself is SG8 it's being calculated and drawn once per frame.
The routine that does the actaul drawing to the screen gets generated by the
surrounding code that calculates the board so it's constantly varying, but
it's basically like this:
ldd #$xxxx
Std 2,x
Ldd #$xxxx
Std 4,x
Rts
That routine is 16 x ldd/std - which will draw all 32 screen locations (or
64 in this case because of 1/2 char)
There are 2 of these routines - one for even pixels one for odd...
If the pixels are the same on the next line it gets called again if not it
calls the other routine
When all Y coordinates have been exhausted, it goes back and recalcs X again
with the given scale
The whole routine runs in the VSYNC with 2x poke turned on in the border
area.
The apparent "smoothness" is because it uses 1/2 sg chars (eg 4px)
/Simon :-)
-----Oprindelig meddelelse-----
Fra: coco-bounces at maltedmedia.com [mailto:coco-bounces at maltedmedia.com] På
vegne af Kip Koon
Sendt: 12. april 2014 05:43
Til: 'CoCoList for Color Computer Enthusiasts'
Emne: Re: [Coco] stuff
Hi Simon!
Congratulations on a very smooth moving zooming routine! How did you do it?
Kip
-----Original Message-----
From: coco-bounces at maltedmedia.com [mailto:coco-bounces at maltedmedia.com] On
Behalf Of Simon Jonassen
Sent: Friday, April 11, 2014 1:06 PM
To: 'CoCoList for Color Computer Enthusiasts'
Subject: [Coco] stuff
Hey guys...
been away for a while workin' on ma demo 'n' stuff...
plodding along nicely learning all the time....
heres a bit of my recent madness ( this is by no means finished):
https://www.youtube.com/watch?v=R7VsE503b5g
this i realtime calculated running at 50fps (or 60 for the NTSC folks)
amazing what the little coco II can do if you tickle her belly a bit.....
/Simon :-)
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
-----
Ingen virus fundet i denne meddelelse.
Kontrolleret af AVG - www.avg.com
Version: 2012.0.2247 / Virusdatabase: 3722/6833 - Udgivelsesdato: 11-04-2014
More information about the Coco
mailing list