Files
godot-demo-projects/2d/pong
Hugo Locurcio 4d49bbd1b8 Update demos for Godot 4.4
- Resave all files with Godot 4.4 to make use of script/shader UIDs.
- Use AgX tonemapping in all demos that used a tonemapper other than Linear.
2025-03-21 02:00:41 +01:00
..
2025-03-21 02:00:41 +01:00
2020-08-16 17:48:38 -05:00
2020-10-20 23:18:57 -04:00
2025-03-21 02:00:41 +01:00
2025-03-21 02:00:41 +01:00
2020-08-16 17:48:38 -05:00

Pong with GDScript

A simple Pong game. This demo shows best practices for game development in Godot, including signals.

Language: GDScript

Renderer: Compatibility

Note: There is a C# version available here.

Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2728

How does it work?

The walls, paddle, and ball are all Area2D nodes. When the ball touches the walls or the paddles, they emit signals and modify the ball.

Screenshots

Screenshot