Erster Prototyp
This commit is contained in:
parent
2da5af8954
commit
885351b624
48 changed files with 1350 additions and 0 deletions
50
scenes/Block/block_part.tscn
Normal file
50
scenes/Block/block_part.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://yajhyi0j8b6a"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/Block/block_part.gd" id="1_nb58p"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_tjkbt"]
|
||||
size = Vector2(64, 64)
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_puslh"]
|
||||
|
||||
[node name="BlockPart" type="Area2D"]
|
||||
collision_layer = 2
|
||||
collision_mask = 4
|
||||
script = ExtResource("1_nb58p")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_tjkbt")
|
||||
|
||||
[node name="Raycasts" type="Node2D" parent="."]
|
||||
|
||||
[node name="RayCastTOP" type="RayCast2D" parent="Raycasts"]
|
||||
position = Vector2(0, -48)
|
||||
target_position = Vector2(0, -16)
|
||||
collision_mask = 11
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="RayCastRIGHT" type="RayCast2D" parent="Raycasts"]
|
||||
position = Vector2(48, 0)
|
||||
target_position = Vector2(16, 0)
|
||||
collision_mask = 11
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="RayCastBOTTOM" type="RayCast2D" parent="Raycasts"]
|
||||
position = Vector2(0, 48)
|
||||
target_position = Vector2(0, 16)
|
||||
collision_mask = 11
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="RayCastLEFT" type="RayCast2D" parent="Raycasts"]
|
||||
position = Vector2(-48, 0)
|
||||
target_position = Vector2(-16, 0)
|
||||
collision_mask = 11
|
||||
hit_from_inside = true
|
||||
collide_with_areas = true
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
||||
scale = Vector2(62, 62)
|
||||
mesh = SubResource("QuadMesh_puslh")
|
||||
Loading…
Add table
Add a link
Reference in a new issue