bouncing ball Archive
-
Simple bouncing ball algorithm
Posted on July 7, 2009 | 1 CommentMade some more progress on my DS coding. Po_Ng now has two bats and a ball. The ball bounces around the screen using this absurdly simple bit of code: if (xpos < 0 || xpos >= 256) xv *= -1; if (ypos < 0 ||...