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
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
ball.png
ball.png.import
icon.png
icon.png.import
paddle.png
paddle.png.import
pong.tscn
project.godot
separator.png
separator.png.import

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