| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
i want it bounce!
i have a scrolltext in the middle part of 3 raster splitted parts. over and bottom are logos.
I want make it bounce.
Is possible to use a flp routine only in this splitted part? How?
Or i must use other kind of vertical scroll routine? |
|
| |
Digger
Registered: Mar 2005 Posts: 437 |
You could use charmap and draw the scroll there at any Y position. It's slower but I don't think you can split $D011 offset. Correct me if I am wrong! |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
so you have a logo at the top and a logo at the bottom and
in the middle of this you want a bouching scroller..
ldx #0
loop1
lda $d012
cmp $d012
beq *-3
and #7
ora #$18
sta $d011
inx
cpx sine
bne loop1
;the loop above determine how soon or late the badline
;must be triggered (3 lower bits of $d011 and $d012 equal)
lda $d012
clc
adc #$30
cmp $d012
bne *-3
;the above loop determine how many bounching lines you want
;to display
lda #$40
sec
sbc sine
tax
loop2
lda $d012
cmp $d012
beq *-3
and #7
ora #$18
sta $d011
dex
bne loop2
lda #$1b
sta $d011
this loop determine what the bottom line is of the total effect.. in this example it is #$30 (display state graphic lines) + #$40 idle state lines, this also means that the max value of the sine must be $3f
i hope this is enough, to be honest i find it hard to describe it in english and i dont want to look like a total lamer... but i have given it a shot... good luck..
edit: i have read your post again and i noticed that
you are talking about flp and not fld...
what do you mean:
flexible line position or flexible line distance ??
i think it is the same..
|
| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
Quoting Testa
edit: i have read your post again and i noticed that
you are talking about flp and not fld...
what do you mean:
flexible line position or flexible line distance ??
I think it is the same..
Tnx a lot for your (well commented) reply !
Yes, is the same. I wrote "Flexible line position" because with "distance" i think to the "fade" effect used on many pictures, entering the screen splitted in many bouncing lines.
I thought to "position" to give the idea of a single bouncing block of chars...
Edit: You have given 99% of what i need. TNX !!! |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
welcome to the world of coders in progress...
|
| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
Quote: welcome to the world of coders in progress...
tmx very much!
Wait a lot of incredible questions from me... I've just started here =)
Share, share, share your code!
=P |
| |
Testa Account closed
Registered: Oct 2004 Posts: 197 |
well, you can sent me a pm anytime and if you want i give
you source codes in turbo assembler format..don't think
i am a top coder but i think i can point you in the
right direction, i know from experience it is sometimes
annoying to start a topic for all those things you just
don't know yet... six years ago i started to code
again, my knowledge of computers wasn't that much..
f*ck i didn't even know what google and wiki was,
i also had approached a mathmatics teacher for things
what was nothing more then common knowledge for 15
years old students.. looking back at the proces, i can
laugh about it and i feel proud that i had the courage
to go for the confrontation, but if i had the change
to do it al over again, I would have done more research
before starting a topic, the attitude of the c64 scene
is friendly but some sceners were a bit arrogant, in my
eyes they forget that we are all little and big in things.
i mean i am a grown up man in a lot of ways.. and learn
how to code c64 was just one of the things on my list
nothing more, nothing less.
|
| |
Flavioweb
Registered: Nov 2011 Posts: 463 |
I agree with you.
For example, in this case, i googled and asked a lot to understand what i need to create an usable bounce fx. I thought to use fld but never experienced about this before. If i try myself to code this effect, surely was a waste of time. With help of others experienced coders i can focus to improve the rest of my code.
I think is useless to reinvent the whell every time. |