Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 992 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 992 Bytes

Godot Pong Game

Pong game made in Godot engine 4.3. This is written for my pong game tutorial. Pong simulates table tennis (or ping pong) like game in 2D.

Recording 2024-10-12 at 10 35 16

The tutorial teaches some of the things such as:

  • Making a rigid body based ball in Godot, so ball can float freely in space and react when collision occurs.
  • Two rackets or pedals that we can use to hit the ball.
  • Logic for separate players. The racket/pedal is same, but controlled by two separate input events.
  • Ball spawning. When goal occurs, ball de-spawns and respawns for next round. This logic is written in level script.
  • Goals as in table tennis. When ball misses any racket and hits an area on the left or right edge of screen, it is a goal for the opposite team.
  • Score updating for both the players. GUI labels are updated for scores.