basic command blocks now working

This commit is contained in:
Clevertop 2024-08-10 22:37:32 +10:00
parent 220ca2886f
commit 52426368b1
15 changed files with 235 additions and 14 deletions

View file

@ -7,10 +7,10 @@
[ext_resource type="Material" uid="uid://didvwdmm46bmq" path="res://Assets/Materials/green_floor.tres" id="3_mnhg8"]
[ext_resource type="Texture2D" uid="uid://c1fesrqdpjloa" path="res://Assets/Textures/ice_0_old.png" id="4_v03h0"]
[ext_resource type="PackedScene" uid="uid://dqvq4ybcpws87" path="res://Commands/command_block.tscn" id="5_81jk1"]
[ext_resource type="Texture2D" uid="uid://dc23iehev1s8w" path="res://Assets/Textures/crystal_wall_2.png" id="6_g3qnb"]
[ext_resource type="Texture2D" uid="uid://bb8771vptn2l8" path="res://Assets/Textures/transparent_wall_new.png" id="6_nv7xj"]
[ext_resource type="Texture2D" uid="uid://dd150xco2ee5q" path="res://Assets/Textures/cobalt_stone_4.png" id="7_qjeey"]
[ext_resource type="PackedScene" uid="uid://cq4rfdsc5kghr" path="res://Commands/command_pedestal.tscn" id="10_sghta"]
[ext_resource type="Texture2D" uid="uid://vc7wwv4wgabf" path="res://Commands/jump.png" id="10_x6wpo"]
[sub_resource type="BoxMesh" id="BoxMesh_21vdj"]
material = ExtResource("2_0aj3l")
@ -138,15 +138,20 @@ mesh = SubResource("BoxMesh_lcav8")
[node name="CollisionShape3D" type="CollisionShape3D" parent="EndZone/Area3D"]
shape = SubResource("BoxShape3D_y4l56")
[node name="BaseCommand" parent="." instance=ExtResource("5_81jk1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.76166, 1.32179, -1.59377)
[node name="JumpCommand2" parent="." instance=ExtResource("5_81jk1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 1.322, -1.5)
command_name = "jump"
command_sprite = ExtResource("6_g3qnb")
command_sprite = ExtResource("10_x6wpo")
[node name="BaseCommand2" parent="." instance=ExtResource("5_81jk1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.70813, 1.32179, -1.59377)
[node name="JumpCommand3" parent="." instance=ExtResource("5_81jk1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.5, 1.322, -1.5)
command_name = "jump"
command_sprite = ExtResource("7_qjeey")
command_sprite = ExtResource("10_x6wpo")
[node name="JumpCommand4" parent="." instance=ExtResource("5_81jk1")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 1.322, -1.5)
command_name = "jump"
command_sprite = ExtResource("10_x6wpo")
[node name="Pedestals" type="Node3D" parent="."]
@ -180,4 +185,5 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 1, 2.5)
[node name="CommandPedestal10" parent="Pedestals" instance=ExtResource("10_sghta")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 1, 1.5)
[connection signal="broadcast" from="." to="Player" method="_on_chrono_manager_broadcast"]
[connection signal="object_clicked" from="Player" to="." method="_on_player_object_clicked"]