Work on pickups and multiplayer
This commit is contained in:
81
templates/datablock_pickup.tscn
Normal file
81
templates/datablock_pickup.tscn
Normal file
@@ -0,0 +1,81 @@
|
||||
[gd_scene load_steps=8 format=4 uid="uid://dyvov4i48mqoi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://du3s0b1kotb6l" path="res://scripts/collectable.gd" id="1_mbwd5"]
|
||||
[ext_resource type="Texture2D" uid="uid://b7s2n7xcvntpl" path="res://models/datablock_0.png" id="2_vuv4s"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ucvlk"]
|
||||
resource_name = "material_0"
|
||||
transparency = 2
|
||||
alpha_scissor_threshold = 0.05
|
||||
alpha_antialiasing_mode = 0
|
||||
cull_mode = 2
|
||||
albedo_texture = ExtResource("2_vuv4s")
|
||||
texture_filter = 0
|
||||
texture_repeat = false
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_m2shw"]
|
||||
_surfaces = [{
|
||||
"aabb": AABB(-0.5, 0, -0.5, 1, 1, 1),
|
||||
"format": 34896613377,
|
||||
"index_count": 36,
|
||||
"index_data": PackedByteArray("AAABAAIAAQADAAIAAwAAAAIAAAAEAAEAAQAFAAMABAAFAAEAAwAGAAAABgAEAAAABQAGAAMABgAHAAQABAAHAAUABQAHAAYA"),
|
||||
"name": "material_0",
|
||||
"primitive": 3,
|
||||
"uv_scale": Vector4(0, 0, 0, 0),
|
||||
"vertex_count": 8,
|
||||
"vertex_data": PackedByteArray("/////wAAAAD//wAA//8AAP///////wAAAAD/////AAD//wAAAAAAAAAAAAD//wAAAAD//wAAAAAAAAAAAAAAAA==")
|
||||
}]
|
||||
blend_shape_mode = 0
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_v5j1m"]
|
||||
resource_name = "blockbench_export_mesh"
|
||||
_surfaces = [{
|
||||
"aabb": AABB(-0.5, 0, -0.5, 1, 1, 1),
|
||||
"attribute_data": PackedByteArray("//8AAAAA//8AAAAA//////////8AAAAA//8AAAAA//8AAP////8AAP////8AAAAA/////wAAAAD//wAAAAD///////8AAAAA//8AAAAA/////wAAAAD//wAAAAD/////"),
|
||||
"format": 34896613399,
|
||||
"index_count": 36,
|
||||
"index_data": PackedByteArray("AAABAAIAAAADAAEABAAFAAYABAAHAAUACAAJAAoACAALAAkADAANAA4ADAAPAA0AEAARABIAEAATABEAFAAVABYAFAAXABUA"),
|
||||
"material": SubResource("StandardMaterial3D_ucvlk"),
|
||||
"name": "material_0",
|
||||
"primitive": 3,
|
||||
"uv_scale": Vector4(0, 0, 0, 0),
|
||||
"vertex_count": 24,
|
||||
"vertex_data": PackedByteArray("/////wAA/7///wAA////v/////////+///8AAAAA/78AAAAA////vwAA//8AAP+/AAD//////78AAAAAAAD/vwAA//////+//////wAA/7//////////vwAA//8AAP+///8AAAAA/78AAAAA////v///AAD///+/AAAAAAAA/7///wAA//8AgAAA/////wCA////////AIAAAAAA//8AgAAA//8AAP////8AAAAA////////AAD//wAAAAAAAP///38AAP9/AAD/fwAA/38AAP9/////f////3////9///////9/////f////3////9/AAD/fwAA/38AAP9/AAD/f/9/////f////3////9/////f////3////9/////f///")
|
||||
}]
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_m2shw")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lnid6"]
|
||||
shading_mode = 2
|
||||
diffuse_mode = 3
|
||||
specular_mode = 1
|
||||
disable_ambient_light = true
|
||||
disable_fog = true
|
||||
disable_specular_occlusion = true
|
||||
albedo_texture = ExtResource("2_vuv4s")
|
||||
emission_enabled = true
|
||||
emission = Color(1, 1, 1, 1)
|
||||
emission_energy_multiplier = 1.66
|
||||
emission_operator = 1
|
||||
emission_texture = ExtResource("2_vuv4s")
|
||||
texture_filter = 0
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_5c3s5"]
|
||||
size = Vector3(0.6, 0.6, 0.6)
|
||||
|
||||
[node name="Datablock Pickup" type="Area3D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_mbwd5")
|
||||
|
||||
[node name="mesh" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(0.21338832, -0.036611654, 0.125, 0.125, 0.125, -0.17677669, -0.036611654, 0.21338832, 0.125, 0.0036189556, 0.63486314, -0.1206578)
|
||||
mesh = SubResource("ArrayMesh_v5j1m")
|
||||
skeleton = NodePath("")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_lnid6")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.63486314, 0)
|
||||
shape = SubResource("BoxShape3D_5c3s5")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
Reference in New Issue
Block a user