|
%!s(int64=4) %!d(string=hai) anos | |
---|---|---|
.. | ||
scripts | %!s(int64=5) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
ball.png | %!s(int64=5) %!d(string=hai) anos | |
ball.png.import | %!s(int64=5) %!d(string=hai) anos | |
icon.png | %!s(int64=5) %!d(string=hai) anos | |
icon.png.import | %!s(int64=5) %!d(string=hai) anos | |
paddle.png | %!s(int64=5) %!d(string=hai) anos | |
paddle.png.import | %!s(int64=4) %!d(string=hai) anos | |
pong.tscn | %!s(int64=4) %!d(string=hai) anos | |
project.godot | %!s(int64=4) %!d(string=hai) anos | |
separator.png | %!s(int64=5) %!d(string=hai) anos | |
separator.png.import | %!s(int64=5) %!d(string=hai) anos |
A simple Pong game. This demo shows best practices for game development in Godot, including signals.
Language: VisualScript
Renderer: GLES 2
Note: There is a GDScript version available here.
Note: There is a C# version available here.
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/136
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.