Game Development Reference
In-Depth Information
3
Chapter
Finishing Pong: Scoring
and Game Interaction
In the previous chapter, you created a pretty cool game in just a few minutes.
You now have a grasp of the capabilities of GameSalad, but your project is far
from being perfect. In this chapter, you will continue learning GameSalad by
implementing some add-ons and fine-tuning the Pong game.
Let's Keep Score
Who's winning the game? When playing table tennis, isn't one of the top goals
to win or achieve a high score? But to do so, a game needs a scoring system.
So what are you waiting for?
For the Pong game, you will create a scoring system based on the following
rule: if you miss the ball, your opponent scores a point. The first player to reach
11 wins the game.
You can open the file MyFirstPong_step6.gameproj to follow the next steps.
The trick to knowing if one player has missed the ball is to create an invisible
actor that will detect when the ball touches it----
-but one that is not collidable so
the ball goes through it. This actor will cover the complete height of the
gamefield. You will also take the opportunity to destroy the current ball instance.
This will free up some memory resources.
 
Search WWH ::




Custom Search