Browse Source

Moving away from instantiated block to ensure not including within save data

pull/7/head
Ryan Reed 1 month ago
parent
commit
c095078d42
1 changed files with 29 additions and 3 deletions
  1. +29
    -3
      scenes/blocks/dropped_block.tscn

+ 29
- 3
scenes/blocks/dropped_block.tscn View File

@ -1,7 +1,9 @@
[gd_scene load_steps=7 format=3 uid="uid://bn2olldntd7a6"]
[gd_scene load_steps=13 format=3 uid="uid://bn2olldntd7a6"]
[ext_resource type="Script" uid="uid://dkd2qbndc3q1o" path="res://scenes/blocks/dropped_block.gd" id="1_50ggx"]
[ext_resource type="PackedScene" uid="uid://b8evbp40gnomt" path="res://scenes/blocks/block.tscn" id="3_qtifl"]
[ext_resource type="Script" uid="uid://buvqmrrtmxs2h" path="res://scenes/blocks/block.gd" id="2_qtifl"]
[ext_resource type="Material" uid="uid://bgc6efqf8aiqo" path="res://assets/materials/block_highlight.tres" id="3_8xfh1"]
[ext_resource type="Texture2D" uid="uid://dsvk3faenewrl" path="res://assets/textures/grass-block.png" id="3_ix4xk"]
[sub_resource type="Animation" id="Animation_kym7p"]
length = 0.001
@ -66,6 +68,18 @@ _data = {
&"start_animation": SubResource("Animation_50ggx")
}
[sub_resource type="BoxShape3D" id="BoxShape3D_n5naa"]
[sub_resource type="BoxMesh" id="BoxMesh_7fut1"]
material = ExtResource("3_8xfh1")
size = Vector3(1.01, 1.01, 1.01)
[sub_resource type="BoxMesh" id="BoxMesh_e15ke"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4e127"]
albedo_texture = ExtResource("3_ix4xk")
texture_filter = 0
[sub_resource type="SphereShape3D" id="SphereShape3D_5kft2"]
radius = 1.0
@ -78,7 +92,19 @@ libraries = {
}
autoplay = "start_animation"
[node name="Block" parent="." instance=ExtResource("3_qtifl")]
[node name="Block" type="StaticBody3D" parent="."]
script = ExtResource("2_qtifl")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Block"]
shape = SubResource("BoxShape3D_n5naa")
[node name="HighlightMesh" type="MeshInstance3D" parent="Block"]
visible = false
mesh = SubResource("BoxMesh_7fut1")
[node name="BlockMesh" type="MeshInstance3D" parent="Block"]
mesh = SubResource("BoxMesh_e15ke")
surface_material_override/0 = SubResource("StandardMaterial3D_4e127")
[node name="PickupArea" type="Area3D" parent="Block"]
transform = Transform3D(0.965926, -0.258819, 0, 0.258819, 0.965926, 0, 0, 0, 1, 0, 0, 0)


Loading…
Cancel
Save