Ball.tscn 776 B

12345678910111213141516171819202122232425262728293031
  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://image/ball.png" type="Texture" id=1]
  3. [ext_resource path="res://scripts/Ball.gd" type="Script" id=2]
  4. [sub_resource type="PhysicsMaterial" id=1]
  5. friction = 0.0
  6. bounce = 1.0
  7. [sub_resource type="CircleShape2D" id=2]
  8. radius = 5.0
  9. [node name="Ball" type="RigidBody2D" groups=[
  10. "ball",
  11. ]]
  12. collision_mask = 14
  13. mode = 2
  14. physics_material_override = SubResource( 1 )
  15. gravity_scale = 0.0
  16. continuous_cd = 2
  17. contacts_reported = 1
  18. linear_velocity = Vector2( 100, 100 )
  19. linear_damp = 0.0
  20. script = ExtResource( 2 )
  21. interrupt_color = Color( 0.705882, 0.705882, 0.705882, 1 )
  22. [node name="Circle" type="CollisionShape2D" parent="."]
  23. shape = SubResource( 2 )
  24. [node name="Sprite" type="Sprite" parent="."]
  25. texture = ExtResource( 1 )