godot-demo-projects/mono/pong
Aaron Franke bbe50fc9da
Convert demos to Godot 4 using regular expressions in a script
2022-03-26 16:09:10 -05:00
..
Logic Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
screenshots Ensure most demos have descriptions and screenshots 2021-08-16 21:13:06 -05:00
Pong with C#.csproj Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
Pong with C#.sln
README.md Ensure most demos have descriptions and screenshots 2021-08-16 21:13:06 -05:00
ball.png
ball.png.import Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
icon.png
icon.png.import Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
paddle.png
paddle.png.import Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
pong.tscn Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
project.godot Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
separator.png
separator.png.import Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00

README.md

Pong with C#

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

Language: C#

Renderer: GLES 2

Note: There is a GDScript 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/535

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