Files
hotdesking/Gameplay/marble.tscn
2025-07-09 18:00:42 -04:00

55 lines
2.0 KiB
Plaintext

[gd_scene load_steps=9 format=3 uid="uid://c8n4lue2bn25n"]
[ext_resource type="Script" uid="uid://b1bipn8tmpggr" path="res://Gameplay/Marble.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://dd3s6x86dgxem" path="res://art/checkerboard.png" id="3_o5glk"]
[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="PhysicsMaterial" id="PhysicsMaterial_803qd"]
bounce = 1.0
[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/globe_magnitude = 1.0
[sub_resource type="CircleShape2D" id="CircleShape2D_803qd"]
radius = 60.0
[node name="Marble" type="RigidBody2D"]
input_pickable = true
mass = 3.0
physics_material_override = SubResource("PhysicsMaterial_803qd")
gravity_scale = 0.0
contact_monitor = true
max_contacts_reported = 1
linear_damp = 2.0
script = ExtResource("1_7ritg")
metadata/_edit_group_ = true
[node name="Texture" type="Sprite2D" parent="."]
material = SubResource("ShaderMaterial_bdlqm")
position = Vector2(0, 1.3113e-06)
scale = Vector2(1.2, 1.2)
texture = ExtResource("3_o5glk")
[node name="Shadow" type="Sprite2D" parent="Texture"]
position = Vector2(0, -1.1708e-06)
scale = Vector2(0.390625, 0.390625)
texture = ExtResource("4_803qd")
[node name="Shine" type="Sprite2D" parent="Texture"]
position = Vector2(0, -1.1708e-06)
scale = Vector2(0.3976, 0.3976)
texture = ExtResource("5_fkve3")
[node name="Bounds" type="CollisionShape2D" parent="."]
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"]