Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > i want it bounce!
2012-01-08 07:50
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?
2012-01-08 12:30
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!
2012-01-08 20:20
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..


2012-01-09 04:52
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 !!!
2012-01-09 09:55
Testa
Account closed

Registered: Oct 2004
Posts: 197
welcome to the world of coders in progress...
2012-01-09 10:25
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
2012-01-09 11:24
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.


2012-01-09 13:01
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
macx
Scrap/Genesis Project
Acidchild/Padua
Guests online: 83
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top NTSC-Fixers
1 Pudwerx  (10)
2 Booze  (9.7)
3 Stormbringer  (9.7)
4 Fungus  (9.6)
5 Grim Reaper  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.04 sec.