Files
hotdesking/Gameplay/ball.tscn
cojoedmo 9057a21613 7-10-25 11:32am7-10-25 11:32am7-10-25 11:32am7-10-25 11:32am7-10-25
11:32am7-10-25 11:32am7-10-25 11:32am7-10-25 11:32am7-10-25
11:32am7-10-25 11:32am
2025-07-10 11:31:52 -04:00

51 lines
1.9 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://c8n4lue2bn25n"]
[ext_resource type="Script" uid="uid://b1bipn8tmpggr" path="res://Gameplay/Ball.cs" id="1_7ritg"]
[ext_resource type="Shader" uid="uid://b6vvt5o0008ob" path="res://shaders/globe.gdshader" id="2_6v01e"]
[ext_resource type="Texture2D" uid="uid://dy4lmwn1dit26" path="res://art/shade.png" id="3_yj7wd"]
[ext_resource type="Texture2D" uid="uid://duy62uv828xcg" path="res://art/shadow.png" id="4_803qd"]
[ext_resource type="Texture2D" uid="uid://c4jron4g4jalp" path="res://art/shine.png" id="5_fkve3"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bdlqm"]
resource_local_to_scene = true
shader = ExtResource("2_6v01e")
shader_parameter/scroll_x = 0.0
shader_parameter/scroll_y = 0.0
shader_parameter/rotation = 0.0
shader_parameter/globe_magnitude = 0.0
[sub_resource type="CircleShape2D" id="CircleShape2D_803qd"]
radius = 60.0
[node name="Ball" type="RigidBody2D"]
input_pickable = true
gravity_scale = 0.0
linear_damp = 2.0
script = ExtResource("1_7ritg")
metadata/_edit_group_ = true
[node name="Texture" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_bdlqm")
scale = Vector2(0.46875, 0.46875)
texture = ExtResource("3_yj7wd")
[node name="Shadow" type="Sprite2D" parent="."]
visible = false
position = Vector2(0, -9.36601e-08)
scale = Vector2(0.46875, 0.46875)
texture = ExtResource("4_803qd")
[node name="Shine" type="Sprite2D" parent="."]
visible = false
position = Vector2(0, -9.36601e-08)
scale = Vector2(0.47712, 0.47712)
texture = ExtResource("5_fkve3")
[node name="Bounds" type="CollisionShape2D" parent="."]
position = Vector2(0, -7.10543e-15)
shape = SubResource("CircleShape2D_803qd")
[connection signal="body_entered" from="." to="." method="OnBodyEntered"]
[connection signal="mouse_entered" from="." to="." method="OnMouseEntered"]
[connection signal="mouse_exited" from="." to="." method="OnMouseExited"]