Added level 1, base-level to abstract from, and level-controller
This commit is contained in:
+11
-2
@@ -1,8 +1,11 @@
|
||||
[gd_scene load_steps=5 format=2]
|
||||
[gd_scene load_steps=6 format=2]
|
||||
|
||||
[ext_resource path="res://assets/trolley-lg.png" type="Texture" id=1]
|
||||
[ext_resource path="res://scripts/trolley.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=4]
|
||||
radius = 172.29
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=2]
|
||||
extents = Vector2( 38, 10 )
|
||||
|
||||
@@ -13,6 +16,12 @@ extents = Vector2( 44.5, 8.25 )
|
||||
collision_layer = 4
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="TrolleySurroundingArea" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="TrolleySurroundingArea"]
|
||||
position = Vector2( 0, -45 )
|
||||
shape = SubResource( 4 )
|
||||
|
||||
[node name="TrolleySeatArea" type="Area2D" parent="."]
|
||||
collision_layer = 0
|
||||
|
||||
@@ -34,5 +43,5 @@ polygon = PoolVector2Array( 172, -5, 198, 106, 150, 106, 122, 127, 74, 109, 46,
|
||||
position = Vector2( 0, -2.25 )
|
||||
shape = SubResource( 3 )
|
||||
|
||||
[connection signal="body_shape_exited" from="TrolleySurroundingArea" to="." method="_on_TrolleySurroundingArea_body_exited"]
|
||||
[connection signal="body_entered" from="TrolleySeatArea" to="." method="_on_TrolleySeatArea_body_entered"]
|
||||
[connection signal="body_exited" from="TrolleySeatArea" to="." method="_on_TrolleySeatArea_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user