16
TI Z80 / TiltBall - a puzzle game!
« on: November 13, 2011, 10:43:45 pm »
TILTBALL!
Tiltball is my first game for the calc, written in axe.
I asked a question for the math of this game earlier, but now i realize that i will probably need to ask more questions...
a brief overview of the game:
I have the rotation of the lines worked out, but still have two of questions:
1. Is there any way to clip the lines without sacrificing too much speed?
2. How to calculate angle of bounce? so if the ball is coming in at velocity of xv, yv, and slope of the line m, how to bounce off?
Thanks in advance!
Tiltball is my first game for the calc, written in axe.
I asked a question for the math of this game earlier, but now i realize that i will probably need to ask more questions...
a brief overview of the game:
The ball falls from the cieling, due to gravity. the goal is to get the ball to the floor, without hitting the walls. There will be lines in the way of the ball, which the ball bounces off of. The only thing you can control is the rotation of the lines, as shown in the pictures below.That is the general idea.
The original level:
Now, after you press the -> arrow on the keyboard:
all of the lines have been rotated counterclockwise around the center point.
I have the rotation of the lines worked out, but still have two of questions:
1. Is there any way to clip the lines without sacrificing too much speed?
2. How to calculate angle of bounce? so if the ball is coming in at velocity of xv, yv, and slope of the line m, how to bounce off?
Thanks in advance!