[gd_scene load_steps=9 format=3 uid="uid://8ocp10j32f62"] [ext_resource type="Texture2D" uid="uid://y6phkg4twpdm" path="res://images/bg_space_seamless.png" id="1_rpyi5"] [ext_resource type="Texture2D" uid="uid://cran7fr1i2qou" path="res://images/spaceship-placeholder.png" id="2_f2x66"] [ext_resource type="Script" path="res://spaceship.gd" id="3_ttkgl"] [ext_resource type="Texture2D" uid="uid://djwn5ruf1wln0" path="res://images/protocheese.png" id="4_i7fg5"] [ext_resource type="Script" path="res://cheeseCollision.gd" id="5_r3xo8"] [ext_resource type="Script" path="res://asteroid.gd" id="6_n4dsl"] [ext_resource type="Texture2D" uid="uid://buirp1h6onqai" path="res://images/AsteroidBrown.png" id="7_0tjls"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_u4a3y"] radius = 44.0 height = 100.0 [node name="Main" type="Node2D"] [node name="background" type="Sprite2D" parent="."] position = Vector2(955, 535) scale = Vector2(2, 2) texture = ExtResource("1_rpyi5") [node name="spaceship" type="CharacterBody2D" parent="."] position = Vector2(960, 540) motion_mode = 1 script = ExtResource("3_ttkgl") [node name="Sprite2D" type="Sprite2D" parent="spaceship"] z_index = 1 texture = ExtResource("2_f2x66") [node name="CollisionShape2D" type="CollisionShape2D" parent="spaceship"] position = Vector2(0, -1) shape = SubResource("CapsuleShape2D_u4a3y") [node name="RayCast2D" type="RayCast2D" parent="spaceship"] position = Vector2(0, 3) target_position = Vector2(0, -177) [node name="cheese" type="Area2D" parent="."] position = Vector2(300, 337) scale = Vector2(2, 2) script = ExtResource("5_r3xo8") [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="cheese"] polygon = PackedVector2Array(3, 17.5, 18.5, 0, 13.5, -20.5, -16.5, -7, -16, 13) [node name="Sprite2D" type="Sprite2D" parent="cheese"] texture = ExtResource("4_i7fg5") [node name="asteroid" type="Area2D" parent="."] position = Vector2(564, 144) script = ExtResource("6_n4dsl") [node name="Sprite2D" type="Sprite2D" parent="asteroid"] position = Vector2(1.00006, -3.99998) scale = Vector2(1.2, 1.181) texture = ExtResource("7_0tjls") [node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="asteroid"] position = Vector2(-519, -164) polygon = PackedVector2Array(548, 101, 613, 169, 597, 210, 548, 240, 462, 221, 431, 184, 434, 133, 497, 90) [connection signal="body_entered" from="cheese" to="cheese" method="_on_body_entered"]