22 lines
873 B
Plaintext
22 lines
873 B
Plaintext
[gd_scene load_steps=3 format=3 uid="uid://xldavgivpb3j"]
|
|
|
|
[ext_resource type="Script" uid="uid://b8a23hkmesx0l" path="res://script/asteroid.gd" id="1_pojcu"]
|
|
[ext_resource type="Texture2D" uid="uid://bs836c8u5j3y6" path="res://assets/asteroidx4.png" id="2_gv6mu"]
|
|
|
|
[node name="asteroid" type="RigidBody2D"]
|
|
collision_layer = 3
|
|
collision_mask = 3
|
|
mass = 40.0
|
|
contact_monitor = true
|
|
max_contacts_reported = 4
|
|
script = ExtResource("1_pojcu")
|
|
|
|
[node name="Asteroid" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2_gv6mu")
|
|
|
|
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="."]
|
|
polygon = PackedVector2Array(55, 3, 35, -20, 34, -40, 1, -49, -35, -52, -55, -29, -58, -1, -48, 30, -22, 53, 13, 58, 40, 30)
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
|
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|