Skip to content

gameidea-studio/godot-pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godot Pong Game

Pong game made in Godot engine 4.5. 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 CharacterBody2D 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 and position resetting.
  • Goals as in table tennis. When ball misses any racket and crosses the screen to the left or right, a goal is registered for one player.
  • Score updating for both the players. GUI labels are updated for scores.

Releases

No releases published

Packages

No packages published