Hugo Locurcio 2a962929f3 Update demo files for Godot 4.2.1 (#1013) 8 месяцев назад
..
Logic bbe50fc9da Convert demos to Godot 4 using regular expressions in a script 2 лет назад
screenshots 7d64830cfe Ensure most demos have descriptions and screenshots 3 лет назад
Pong with C#.csproj bbe50fc9da Convert demos to Godot 4 using regular expressions in a script 2 лет назад
Pong with C#.sln 006309bd6f Many tweaks thanks to IAmActuallyCthulhu 4 лет назад
README.md 7d64830cfe Ensure most demos have descriptions and screenshots 3 лет назад
ball.png fcc7d5c723 Optimize PNG images using oxipng 4 лет назад
ball.png.import 2a962929f3 Update demo files for Godot 4.2.1 (#1013) 8 месяцев назад
icon.webp 63d1cd9a60 Use 128×128 WebP icons for all demos (#885) 1 год назад
icon.webp.import 63d1cd9a60 Use 128×128 WebP icons for all demos (#885) 1 год назад
paddle.png 3f8567f920 Created C# networked Pong 4 лет назад
paddle.png.import 2a962929f3 Update demo files for Godot 4.2.1 (#1013) 8 месяцев назад
pong.tscn bbe50fc9da Convert demos to Godot 4 using regular expressions in a script 2 лет назад
project.godot 2a962929f3 Update demo files for Godot 4.2.1 (#1013) 8 месяцев назад
separator.png fcc7d5c723 Optimize PNG images using oxipng 4 лет назад
separator.png.import 2a962929f3 Update demo files for Godot 4.2.1 (#1013) 8 месяцев назад

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