godot-demo-projects/mono/pong
Hugo Locurcio 1d5184e235
Update most demos for Godot 4.0.beta10 (#782)
2023-01-05 16:50:17 +01: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 Many tweaks thanks to IAmActuallyCthulhu 2020-06-28 13:19:13 -04:00
README.md Ensure most demos have descriptions and screenshots 2021-08-16 21:13:06 -05:00
ball.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
ball.png.import Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
icon.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
icon.png.import Convert demos to Godot 4 using regular expressions in a script 2022-03-26 16:09:10 -05:00
paddle.png Created C# networked Pong 2020-10-20 23:18:57 -04:00
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 Update most demos for Godot 4.0.beta10 (#782) 2023-01-05 16:50:17 +01:00
separator.png Optimize PNG images using oxipng 2020-08-16 17:48:38 -05:00
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