I'm still getting used to Atari programming, actually, I have been learning asm for about one week, and I started a little simple project already.
It's just a game based on classics like Pong and Arkanoid.
But I am having headaches with the boucing thing.
Here's a piece from my code that should do it:
(it's positioned rigth below the end of Vblank routine)
lda #%10000000
bit CXP1FB
beq nobnp
sta CXCLR
lda HMP1
eor #%11100000
sta HMP1
nobnp
(here goes the rest of the code....)
I'm pretty sure that most of you understood what I meant there.
The HMP1 data is changing from the one that moves right and left each time the collision happens.
But there's a terrible bug somewhere, that makes the ball bounce normally at one side (the left side, because of it's first movement is toward left), and then it gets madly fast going to the right and don't bonce anymore, just "flying" around the screen...
I hope someone can help me before I get crazy.













