Article Preview
Buy Now
COLUMN
Xojo Tennis, Part 3
Playing tennis with Xojo and MBS
Issue: 23.4 (July/August 2025)
Author: Stefanie Juchmes-Simonis
Author Bio: Stefanie studied computer science at the University of Bonn. She came into contact with Xojo due to the work of her brother-in-law and got a junior developer position in early 2019 at Monkeybread Software.
Article Description: No description available.
Article Length (in bytes): 15,637
Starting Page Number: 63
Article Number: 23407
Resource File(s):
project23407.zip Updated: 2025-06-30 14:16:29
Related Link(s): None
Excerpt of article text...
In the previous part, we brought movement into our game. Today we want to control these movements with Phidgets instead of the keyboard. But before we start, I would like to show you how to implement the improvements suggested in the last part. We start with the random start position of the ball. To do this, we first go to the RestartGame method. At the moment, we reset the position of the ball to
0/0/0
. Now, we no longer want the ball to be shot from there, but from anyy
value.Y
therefore becomes a variable here. It now looks like this:
...
Ball.Position = New SCNVector3MBS(0.0, PosY, 0.0)
...
...End of Excerpt. Please purchase the magazine to read the full article.