Border.tscn 692 B

123456789101112131415161718192021222324252627
  1. [gd_scene load_steps=4 format=2]
  2. [sub_resource type="PhysicsMaterial" id=1]
  3. friction = 0.0
  4. bounce = 1.0
  5. [sub_resource type="RectangleShape2D" id=2]
  6. extents = Vector2( 50, 300 )
  7. [sub_resource type="RectangleShape2D" id=3]
  8. extents = Vector2( 300, 50 )
  9. [node name="Walls" type="StaticBody2D"]
  10. collision_layer = 2
  11. physics_material_override = SubResource( 1 )
  12. [node name="Left" type="CollisionShape2D" parent="."]
  13. position = Vector2( -50, 200 )
  14. shape = SubResource( 2 )
  15. [node name="Right" type="CollisionShape2D" parent="."]
  16. position = Vector2( 450, 200 )
  17. shape = SubResource( 2 )
  18. [node name="Top" type="CollisionShape2D" parent="."]
  19. position = Vector2( 200, -50 )
  20. shape = SubResource( 3 )