2 Weeks After Everyone Get Their Gp2x's


Last edited by a moderator:
dunno, but when i made one I used trig and velocities... then the collisions were realistic... of course assuming that the objects didnt dampen or that there wasnt friction involved... that would just make things more complicated... but yeah, to do proper rebounds getting the right angle you need trig, i think...

Actually no, you don't ;)

The basic "pong" bouncing code does not involve any concept of "angle". You just do something like this:

Code:
x = somewhere on the screen;
y = somewhere else;
deltaX = 1;
deltaY = 1;
loop forever {
    x = x+deltaX;
    y = y+deltaY;
    if (hit top or bottom wall) {
        deltaY = -deltaY;
    }  
    if (hit left or right wall) {
        deltaX = -deltaX;
    }
    draw ball at (x,y);
}

And that's all. No angles, no sin/cos functions, no trigonometry. :)

except the ball travels faster when going diagonally than it does horizontally or at a shallow angle with that ^_-
 
Last edited by a moderator:
I do have neat sinewave bounce and alternating background colour fading from black to white and rainbow colours red orange yellow green blue violet and back in between.... brings me back to the days of copperbar programming and try my smooth scrolling routines on the c64!

Gotta love the c64 demos :)


Amiga demos even better.
 
Last edited by a moderator:
Unfortunatly I missed the entire Amiga phase...
Poor kid that i was, had my C64 until the mid 90s :)
Then "upgraded" to a . . . . 286. . .

I'm still gonna pick up an Amiga one of these days. Maybe one of those newfangled ones that cost a fortune.
 
Unfortunatly I missed the entire Amiga phase...
Poor kid that i was, had my C64 until the mid 90s :)
Then "upgraded" to a . . . . 286. . .

I'm still gonna pick up an Amiga one of these days. Maybe one of those newfangled ones that cost a fortune.
Don't bother, the new ones are not compatible (for games/demos) with the older ones unless you run UAE, and you can do that on your existing Win/Lin/Mac box.
 
Last edited by a moderator:
For the later types of Amigas, and AGA machines there were "Degraders". Programs that made the system act like it was an earlier, more ancient machine or O/S or different type of memory.
 
Last edited by a moderator:
For the later types of Amigas, and AGA machines there were "Degraders". Programs that made the system act like it was an earlier, more ancient machine or O/S or different type of memory.

I think they were referring to the NEW new "Amiga", which was some PowerPC h/w with an Amiga badge on it. I still can't see the sense in it, seems like blasphemy.
 
Last edited by a moderator:
For the later types of Amigas, and AGA machines there were "Degraders".  Programs that made the system act like it was an earlier, more ancient machine or O/S or different type of memory.

I think they were referring to the NEW new "Amiga", which was some PowerPC h/w with an Amiga badge on it. I still can't see the sense in it, seems like blasphemy.
No, it sortof makes sense, for the same reason Apple went from 68K to PowerPC. 68K is not a cpu that anyone making a new desktop system would take seriously nowadays. If they're hoping to take the amiga back up to the level where it can even compete with something like Apple, not looking like a total dinosaur has to help :)
 
Last edited by a moderator:
Back
Top