godot-demo-projects/2d/pong
Aaron Franke b7e0a470c7
Update demos to Godot 3.4
2021-11-05 11:48:47 -05:00
..
logic Minor tweaks to Pong and Dodge the Creeps 2021-07-11 13:08:01 -04:00
screenshots Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
README.md Minor tweaks to Pong and Dodge the Creeps 2021-07-11 13:08:01 -04:00
ball.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
ball.png.import Update demos to Godot 3.4 2021-11-05 11:48:47 -05:00
icon.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
icon.png.import Update demos to Godot 3.4 2021-11-05 11:48:47 -05:00
paddle.png Created C# networked Pong 2020-10-20 23:18:57 -04:00
paddle.png.import Update demos to Godot 3.4 2021-11-05 11:48:47 -05:00
pong.tscn Update projects to Godot 3.3 2021-04-21 19:17:12 -04:00
project.godot Update demos to Godot 3.4 2021-11-05 11:48:47 -05:00
separator.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
separator.png.import Update demos to Godot 3.4 2021-11-05 11:48:47 -05:00

README.md

Pong with GDScript

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

Language: GDScript

Renderer: GLES 2

Note: There is a C# version available here.

Note: There is a VisualScript version available here.

Note: There is a GDNative C++ version available here.

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

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