29 lines
1.3 KiB
Plaintext
29 lines
1.3 KiB
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://ditud5veuxqyb"]
|
|
|
|
[ext_resource type="Script" uid="uid://b8a23hkmesx0l" path="res://script/asteroid.gd" id="1_p0ukn"]
|
|
[ext_resource type="Texture2D" uid="uid://dbingmvgsgvfv" path="res://assets/asteroidx1.png" id="1_u87q6"]
|
|
|
|
[node name="asteroid" type="RigidBody2D"]
|
|
collision_layer = 3
|
|
collision_mask = 3
|
|
mass = 5.0
|
|
contact_monitor = true
|
|
max_contacts_reported = 10
|
|
script = ExtResource("1_p0ukn")
|
|
|
|
[node name="Asteroid" type="Sprite2D" parent="."]
|
|
texture = ExtResource("1_u87q6")
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
polygon = PackedVector2Array(12, -1, 6, -6, 5, -13, -8, -12, -12, -5, -12, 4, -6, 13, -2, 10, 2, 14, 12, 3)
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="Area2D"]
|
|
polygon = PackedVector2Array(14, -1, 9, -6, 8, -13, 5, -15, -9, -13, -12, -9, -14, 3, -11, 8, -6, 14, -2, 14, 3, 15, 14, 3)
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
|
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|
|
[connection signal="body_exited" from="Area2D" to="." method="_on_area_2d_body_exited"]
|