Make Obstacle its own scene for cleanliness
This commit is contained in:
parent
31dbaa0bbd
commit
0d71743285
16
Level.tscn
16
Level.tscn
@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=6 format=2]
|
||||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://icon.png" type="Texture" id=2]
|
||||
@ -7,8 +7,6 @@
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
|
||||
[node name="Level" type="Node2D"]
|
||||
|
||||
[node name="Background" type="TextureRect" parent="."]
|
||||
@ -45,15 +43,3 @@ texture = ExtResource( 2 )
|
||||
[node name="PlayerCollision" type="CollisionShape2D" parent="Player"]
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Obstacle" type="StaticBody2D" parent="."]
|
||||
__meta__ = {
|
||||
"_edit_group_": true
|
||||
}
|
||||
|
||||
[node name="ObstacleTexture" type="TextureRect" parent="Obstacle"]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="ObstacleCollision" type="CollisionShape2D" parent="Obstacle"]
|
||||
shape = SubResource( 3 )
|
||||
|
||||
|
16
Obstacle.tscn
Normal file
16
Obstacle.tscn
Normal file
@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=3]
|
||||
|
||||
[node name="Obstacle" type="StaticBody2D"]
|
||||
__meta__ = {
|
||||
"_edit_group_": true
|
||||
}
|
||||
|
||||
[node name="ObstacleTexture" type="TextureRect" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="ObstacleCollision" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource( 3 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user