godot-demo-projects/mono/pong/README.md

27 lines
967 B
Markdown
Raw Normal View History

# 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: GLES 2
Note: There is a GDScript version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/2d/pong).
Note: There is a VisualScript version available [here](https://github.com/godotengine/godot-demo-projects/tree/master/visual_script/pong).
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`](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
![Screenshot](../../2d/pong/screenshots/pong.png)