[gd_scene load_steps=12 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://bigvacjklr7in" path="res://art/playerGrey_up1.png" id="2_76m5q"] [ext_resource type="Texture2D" uid="uid://bskloxogmm7ox" path="res://art/playerGrey_up2.png" id="3_4rms2"] [ext_resource type="Texture2D" uid="uid://dkduh13hcei0w" path="res://art/fruit.png" id="3_6v01e"] [ext_resource type="Texture2D" uid="uid://cww2tug20ksn3" path="res://art/playerGrey_walk1.png" id="4_iy80h"] [ext_resource type="Texture2D" uid="uid://csm4ru8wkc2cb" path="res://art/playerGrey_walk2.png" id="5_ryns1"] [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="SpriteFrames" id="SpriteFrames_n7ghd"] animations = [{ "frames": [{ "duration": 1.0, "texture": ExtResource("2_76m5q") }, { "duration": 1.0, "texture": ExtResource("3_4rms2") }], "loop": true, "name": &"up", "speed": 5.0 }, { "frames": [{ "duration": 1.0, "texture": ExtResource("4_iy80h") }, { "duration": 1.0, "texture": ExtResource("5_ryns1") }], "loop": true, "name": &"walk", "speed": 5.0 }] [sub_resource type="CircleShape2D" id="CircleShape2D_803qd"] radius = 56.0803 [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 = 3.0 script = ExtResource("1_7ritg") metadata/_edit_group_ = true [node name="Sprite2D" type="Sprite2D" parent="."] material = SubResource("ShaderMaterial_bdlqm") position = Vector2(0, 1.3113e-06) scale = Vector2(0.0861539, 0.0861539) texture = ExtResource("3_6v01e") [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] visible = false position = Vector2(0, 7) scale = Vector2(0.5, 0.5) sprite_frames = SubResource("SpriteFrames_n7ghd") animation = &"walk" [node name="CollisionShape2D" 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"]