


Most game companies license parts of the game engine from other companies. The truth is, there's rarely that much incentive in switching to. The solution I thought of was, add a getScore() method which returns the value of speed, minus 1. 5 The game development world is a funny one: On one hand, they're often quick to accept new ideas, on the other hand, they're still in the stone age.

The only inconvenience is that the punctuations start in 0 and not in 1 as "speed". Instead of creating a new property, I am going to re-use "speed". The property "speed" will be 1 initially, and it will increase each time we hit the ball with the racquet.įor the puctuation we need another property to increase each time we hit the ball. We are going to include a property called "speed" in the Game class to keep the speed of the game. Changing the speed of these two objects, we will modify the speed of the game. The moving objects of the game are the ball and the racquet.
