[gd_scene load_steps=12 format=3 uid="uid://ce5rw02b3373d"] [ext_resource type="Script" uid="uid://b2tub370i3s3v" path="res://scenes/main.gd" id="1_e1tai"] [ext_resource type="Texture2D" uid="uid://jj8b7vqj3ihx" path="res://resources/Mini Pixel Pack 3/Space_BG (2 frames) (64 x 64).png" id="2_4s157"] [ext_resource type="PackedScene" uid="uid://bkuucjejc7p2v" path="res://scenes/player.tscn" id="3_yoeq8"] [ext_resource type="PackedScene" uid="uid://c4vq2ytntfvoj" path="res://scenes/enemy.tscn" id="4_cvw54"] [ext_resource type="PackedScene" uid="uid://k0yw686ys6ug" path="res://scenes/ui.tscn" id="5_4s3oi"] [ext_resource type="Texture2D" uid="uid://bonoqs5pisflo" path="res://resources/Mini Pixel Pack 3/UI objects/START (48 x 8).png" id="6_bsja2"] [ext_resource type="Texture2D" uid="uid://bubqwoum50gf8" path="res://resources/Mini Pixel Pack 3/UI objects/GAME_OVER (72 x 8).png" id="7_4s157"] [ext_resource type="Script" uid="uid://c0c3rj5bcpif0" path="res://scenes/start.gd" id="7_tipki"] [sub_resource type="Animation" id="Animation_vcsgt"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Background:region_rect") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Rect2(0, 0, 240, 320)] } [sub_resource type="Animation" id="Animation_rarhs"] resource_name = "scroll" length = 2.0 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Background:region_rect") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 2), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Rect2(0, 0, 240, 320), Rect2(0, -64, 240, 320)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_c01mt"] _data = { &"RESET": SubResource("Animation_vcsgt"), &"scroll": SubResource("Animation_rarhs") } [node name="Main" type="Node2D"] script = ExtResource("1_e1tai") [node name="Background" type="Sprite2D" parent="."] texture_repeat = 2 texture = ExtResource("2_4s157") centered = false region_enabled = true region_rect = Rect2(0, 0, 240, 320) [node name="Player" parent="." instance=ExtResource("3_yoeq8")] [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_c01mt") } autoplay = "scroll" [node name="Enemy" parent="." instance=ExtResource("4_cvw54")] position = Vector2(-13, 3) [node name="CanvasLayer" type="CanvasLayer" parent="."] [node name="UI" parent="CanvasLayer" instance=ExtResource("5_4s3oi")] [node name="CenterContainer" type="CenterContainer" parent="CanvasLayer"] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Start" type="TextureButton" parent="CanvasLayer/CenterContainer"] layout_mode = 2 texture_normal = ExtResource("6_bsja2") script = ExtResource("7_tipki") [node name="GameOver" type="TextureRect" parent="CanvasLayer/CenterContainer"] layout_mode = 2 texture = ExtResource("7_4s157") [connection signal="area_entered" from="Player" to="Player" method="_on_area_entered"] [connection signal="died" from="Player" to="." method="_on_player_died"] [connection signal="shield_changed" from="Player" to="CanvasLayer/UI" method="update_shield"] [connection signal="pressed" from="CanvasLayer/CenterContainer/Start" to="." method="_on_start_pressed"]