newest Version as of right now
This commit is contained in:
42
sidescroller/scenes/obstacle.tscn
Normal file
42
sidescroller/scenes/obstacle.tscn
Normal file
@ -0,0 +1,42 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://ctw5n2m0kj374"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b8ewx8kbbdns1" path="res://scripts/obstacle.gd" id="1_7ukg5"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_71j4m"]
|
||||
size = Vector2(76, 72)
|
||||
|
||||
[sub_resource type="QuadMesh" id="QuadMesh_71j4m"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7ukg5"]
|
||||
size = Vector2(71, 20)
|
||||
|
||||
[node name="Obstacle" type="StaticBody2D"]
|
||||
script = ExtResource("1_7ukg5")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, -36)
|
||||
shape = SubResource("RectangleShape2D_71j4m")
|
||||
|
||||
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
|
||||
modulate = Color(0.204699, 0.452404, 0.537435, 1)
|
||||
position = Vector2(0, -36.543)
|
||||
scale = Vector2(-76.1197, 73.0578)
|
||||
mesh = SubResource("QuadMesh_71j4m")
|
||||
|
||||
[node name="triggerzone_left" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
|
||||
[node name="triggerzone_left_cs" type="CollisionShape2D" parent="triggerzone_left"]
|
||||
position = Vector2(-190, -10)
|
||||
scale = Vector2(0.5, 1)
|
||||
shape = SubResource("RectangleShape2D_7ukg5")
|
||||
|
||||
[node name="triggerzone_right" type="Area2D" parent="."]
|
||||
collision_layer = 2
|
||||
collision_mask = 2
|
||||
|
||||
[node name="triggerzone_right_cs" type="CollisionShape2D" parent="triggerzone_right"]
|
||||
position = Vector2(190, -10)
|
||||
scale = Vector2(0.5, 1)
|
||||
shape = SubResource("RectangleShape2D_7ukg5")
|
||||
Reference in New Issue
Block a user