mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-05 07:20:07 +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
756 B
Markdown
27 lines
756 B
Markdown
# Pong with GDScript
|
|
|
|
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: GDScript
|
|
|
|
Renderer: Compatibility
|
|
|
|
> [!NOTE]
|
|
>
|
|
> There is a C# version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/mono/pong).
|
|
|
|
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2728
|
|
|
|
## 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
|
|
|
|

|