This commit is contained in:
Rosia E Evans 2024-08-17 02:17:04 +01:00
commit fbec1fb554
9 changed files with 73 additions and 53 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=3 uid="uid://dgm3241ceqpim"]
[gd_scene load_steps=7 format=3 uid="uid://dgm3241ceqpim"]
[ext_resource type="Script" path="res://scripts/body.gd" id="1_21au4"]
[ext_resource type="PackedScene" uid="uid://nusoljma3t55" path="res://scenes/pickaxe_arm.tscn" id="2_m4hhp"]
@ -11,11 +11,13 @@ height = 10.0
[sub_resource type="SphereShape3D" id="SphereShape3D_16w3w"]
radius = 5.0
[node name="Body" type="RigidBody3D" node_paths=PackedStringArray("arms")]
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_vlifr"]
plane = Plane(1000, 0, 0, 0)
[node name="Body" type="RigidBody3D"]
axis_lock_linear_x = true
axis_lock_angular_z = true
script = ExtResource("1_21au4")
arms = [NodePath("ArmPivot/PickaxeArm")]
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
mesh = SubResource("SphereMesh_jcpb6")
@ -31,3 +33,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.8945, 0)
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 32, 0, 0)
script = ExtResource("3_mslwr")
[node name="RaycastPlane" type="StaticBody3D" parent="."]
collision_layer = 2
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="RaycastPlane"]
shape = SubResource("WorldBoundaryShape3D_vlifr")

View file

@ -39,6 +39,7 @@ layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
mouse_filter = 2
metadata/_edit_lock_ = true
[node name="World" type="Node3D" parent="."]

View file

@ -12,6 +12,33 @@
[ext_resource type="Texture2D" uid="uid://en11sbhcxflt" path="res://assets/startNote.png" id="9_pbwjt"]
[ext_resource type="Texture2D" uid="uid://3w080vs4k15v" path="res://assets/instructions.png" id="10_hirgk"]
[sub_resource type="Animation" id="Animation_5l3d8"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureButton:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.133149]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.240703]
}
[sub_resource type="Animation" id="Animation_bqavq"]
resource_name = "idle"
length = 1.5
@ -41,33 +68,6 @@ tracks/1/keys = {
"values": [0.0872665, -0.0872665]
}
[sub_resource type="Animation" id="Animation_5l3d8"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("TextureButton:rotation")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-0.133149]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("TextureRect:rotation")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.240703]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rcg3x"]
_data = {
"RESET": SubResource("Animation_5l3d8"),

View file

@ -4,6 +4,21 @@
[ext_resource type="Texture2D" uid="uid://b0olfb3q10r26" path="res://assets/storyImage1.png" id="2_8se21"]
[ext_resource type="Texture2D" uid="uid://due5f7l8a66rm" path="res://assets/frame1.png" id="3_lqbjx"]
[sub_resource type="Animation" id="Animation_do1id"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("background:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-47, 46)]
}
[sub_resource type="Animation" id="Animation_wrkak"]
resource_name = "idle"
length = 20.0
@ -21,21 +36,6 @@ tracks/0/keys = {
"values": [Vector2(-47, 46), Vector2(53, -44)]
}
[sub_resource type="Animation" id="Animation_do1id"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("background:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(-47, 46)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jgudp"]
_data = {
"RESET": SubResource("Animation_do1id"),
@ -60,12 +60,14 @@ offset_left = -47.0
offset_top = 46.0
offset_right = 603.0
offset_bottom = 696.0
texture = ExtResource("2_8se21")
[node name="foreground" type="TextureRect" parent="."]
layout_mode = 0
offset_top = -1.0
offset_right = 651.0
offset_bottom = 650.0
texture = ExtResource("3_lqbjx")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {