Coming soon.
Breakdown
- A paddle is made as a character-body-2d node which can only go up and down.
- ball is made as a rigid-body that is physics based.
- ball is initially given a random impulse and after that, we must control it using the two pedals.
- Golas are made behind each player, if ball goes into Goal1, player2 gets point else player1 gets point.
- Their points get written in the score labels.
- Table tennis-like spin is also present due to nature of rigid body.
The detailed post will be updated soon, it is currently a preview.
Thank you for reading <3