added a basic ball that properly inverts velocity when colliding with a world boundary. my balls are getting stuck on each other tho

This commit is contained in:
2024-07-23 18:22:05 +02:00
parent 95fe8fbeff
commit 6b0843a725
11 changed files with 255 additions and 10 deletions
+10
View File
@@ -0,0 +1,10 @@
[gd_scene load_steps=3 format=3 uid="uid://cbygje4vi2rkv"]
[ext_resource type="Script" path="res://scenes/boundary.gd" id="1_dkemt"]
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_dxkod"]
[node name="Boundary" type="CollisionShape2D"]
shape = SubResource("WorldBoundaryShape2D_dxkod")
debug_color = Color(0.878431, 0, 0.415686, 0.419608)
script = ExtResource("1_dkemt")