7-28-25 @ 11:39pm
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://qlhqpubnb7t2"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://3vjkqdwxwtot"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://b6vvt5o0008ob" path="res://shaders/globe.gdshader" id="2_oil24"]
|
||||
[ext_resource type="Script" uid="uid://cccd8cs6b5xmd" path="res://Gameplay/CueBall.cs" id="2_x5gxx"]
|
||||
[ext_resource type="Script" path="res://Gameplay/CueBall.cs" id="2_x5gxx"]
|
||||
|
||||
[sub_resource type="PhysicsMaterial" id="PhysicsMaterial_yj7wd"]
|
||||
bounce = 5.0
|
||||
@@ -16,6 +16,9 @@ shader_parameter/globe_magnitude = 0.0
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_803qd"]
|
||||
radius = 18.0
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_x5gxx"]
|
||||
radius = 18.0
|
||||
|
||||
[node name="CueBall" type="RigidBody2D" groups=["balls"]]
|
||||
z_index = 1
|
||||
input_pickable = true
|
||||
@@ -33,6 +36,14 @@ material = SubResource("ShaderMaterial_yj7wd")
|
||||
position = Vector2(0, -7.10543e-15)
|
||||
shape = SubResource("CircleShape2D_803qd")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
disable_mode = 2
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
shape = SubResource("CircleShape2D_x5gxx")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="OnBodyEntered"]
|
||||
[connection signal="mouse_entered" from="." to="." method="OnMouseEntered"]
|
||||
[connection signal="mouse_exited" from="." to="." method="OnMouseExited"]
|
||||
[connection signal="mouse_entered" from="Area2D" to="." method="OnMouseEntered"]
|
||||
[connection signal="mouse_exited" from="Area2D" to="." method="OnMouseExited"]
|
||||
|
||||
Reference in New Issue
Block a user