mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 00:10:09 +01:00
- Also add a link the other way around (from the C# version to the GDScript version) to match Dodge the Creeps. - Use GitHub admonition syntax.
27 lines
829 B
Markdown
27 lines
829 B
Markdown
# Pong with C#
|
|
|
|
A simple Pong game. This demo shows best practices
|
|
for game development in Godot, including
|
|
[signals](https://docs.godotengine.org/en/latest/getting_started/step_by_step/signals.html).
|
|
|
|
Language: [C#](https://docs.godotengine.org/en/latest/tutorials/scripting/c_sharp/index.html)
|
|
|
|
Renderer: Compatibility
|
|
|
|
> [!NOTE]
|
|
>
|
|
> There is a GDScript version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/2d/pong).
|
|
|
|
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2796
|
|
|
|
## How does it work?
|
|
|
|
The walls, paddle, and ball are all
|
|
[`Area2D`](https://docs.godotengine.org/en/latest/classes/class_area2d.html)
|
|
nodes. When the ball touches the walls or the paddles,
|
|
they emit signals and modify the ball.
|
|
|
|
## Screenshots
|
|
|
|

|