Skip to content

Commit 9626ae3

Browse files
committed
add net pong
1 parent a5f1404 commit 9626ae3

29 files changed

+1493
-0
lines changed

net-pong/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Normalize line endings for all files that Git considers text files.
2+
* text=auto eol=lf

net-pong/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Godot 4+ specific ignores
2+
.godot/
3+
4+
# Godot-specific ignores
5+
.import/
6+
export.cfg
7+
export_presets.cfg
8+
9+
# Imported translations (automatically generated from CSV files)
10+
*.translation
11+
12+
# Mono-specific ignores
13+
.mono/
14+
data_*/
15+
mono_crash.*.json

net-pong/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Asdrome
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

net-pong/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Godot Rust Multiplayer Pong
2+
based on https://godotengine.org/asset-library/asset/2798
3+
4+
## License
5+
6+
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
7+
8+
The godot-rust Ferris icon was obtained from [their repository](https://github.com/godot-rust/assets) and its licence's details are explained [here](https://github.com/godot-rust/assets/blob/master/asset-licenses.md).
9+
10+
Shield: [![CC BY 4.0][cc-by-shield]][cc-by]
11+
12+
This work is licensed under a
13+
[Creative Commons Attribution 4.0 International License][cc-by].
14+
15+
[![CC BY 4.0][cc-by-image]][cc-by]
16+
17+
[cc-by]: http://creativecommons.org/licenses/by/4.0/
18+
[cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png
19+
[cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
20+
21+
## Acknowledgments
22+
23+
- [Godot Engine](https://godotengine.org/)
24+
- [Godot Rust](https://github.com/godot-rust/gdext) for their fantastic work on integrating Rust with Godot.

net-pong/godot/.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8

net-pong/godot/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Normalize EOL for all files that Git considers text files.
2+
* text=auto eol=lf

net-pong/godot/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Godot 4+ specific ignores
2+
.godot/
3+
/android/

net-pong/godot/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Pong Multiplayer
2+
3+
A multiplayer implementation of the classic pong game.
4+
One of the players should press **Host**, while the other
5+
should type in the host's IP address and press **Join**.
6+
7+
Language: GDScript
8+
9+
Renderer: Compatibility
10+
11+
Note: The non-multiplayer version is available [here](https://github.com/godotengine/godot-demo-projects/tree/master/2d/pong).
12+
13+
Check out this demo on the asset library: https://godotengine.org/asset-library/asset/2798
14+
15+
## Screenshots
16+
17+
![Screenshot](screenshots/pong_multiplayer.png)

net-pong/godot/ball.png

115 Bytes
Loading

net-pong/godot/ball.tscn

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[gd_scene load_steps=3 format=3 uid="uid://bjmldn1x3lpa"]
2+
3+
[ext_resource type="Texture2D" uid="uid://i1imfdcn7ui" path="res://ball.png" id="2"]
4+
5+
[sub_resource type="CircleShape2D" id="1"]
6+
radius = 5.11969
7+
8+
[node name="Ball" type="Ball"]
9+
10+
[node name="Sprite2D" type="Sprite2D" parent="."]
11+
texture = ExtResource("2")
12+
13+
[node name="Shape3D" type="CollisionShape2D" parent="."]
14+
shape = SubResource("1")

0 commit comments

Comments
 (0)