starcheese/main.tscn

81 lines
2.7 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=11 format=3 uid="uid://8ocp10j32f62"]
2024-10-01 16:43:34 +02:00
2024-10-03 18:12:33 +01:00
[ext_resource type="Script" path="res://main.gd" id="1_eedai"]
2024-10-01 16:43:34 +02:00
[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="Script" path="res://laser.gd" id="4_uhf7q"]
[ext_resource type="Texture2D" uid="uid://bxgw2u7j4b634" path="res://images/laser_turret.png" id="6_qxhyw"]
[ext_resource type="Script" path="res://hardpoint.gd" id="7_6cr6a"]
[ext_resource type="Script" path="res://spawn_asteroid_button.gd" id="9_21dg0"]
2024-10-01 16:43:34 +02:00
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_3vtwu"]
radius = 48.0
height = 102.0
[sub_resource type="Gradient" id="Gradient_sx4rn"]
offsets = PackedFloat32Array(0.961735, 1)
colors = PackedColorArray(1, 1, 0, 1, 1, 1, 1, 0.137255)
[node name="Main" type="Node2D"]
2024-10-03 18:12:33 +01:00
script = ExtResource("1_eedai")
2024-10-01 16:43:34 +02:00
[node name="background" type="Sprite2D" parent="."]
position = Vector2(955, 537)
scale = Vector2(2, 2)
texture = ExtResource("1_rpyi5")
[node name="spaceship" type="CharacterBody2D" parent="."]
position = Vector2(956, 623)
2024-10-01 16:43:34 +02:00
collision_layer = 2
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, 6)
rotation = -3.14159
shape = SubResource("CapsuleShape2D_3vtwu")
[node name="Laser1" type="Node2D" parent="spaceship"]
light_mask = 2
position = Vector2(95, -159)
script = ExtResource("4_uhf7q")
[node name="LaserSprite2D" type="Sprite2D" parent="spaceship/Laser1"]
position = Vector2(0, -5)
texture = ExtResource("6_qxhyw")
[node name="LaserBeam2D" type="RayCast2D" parent="spaceship/Laser1"]
position = Vector2(0, -17)
target_position = Vector2(0, -800)
collide_with_areas = true
[node name="LaserLine2D" type="Line2D" parent="spaceship/Laser1"]
points = PackedVector2Array(0, 0, 0, 0)
default_color = Color(1, 1, 0, 0.54902)
gradient = SubResource("Gradient_sx4rn")
texture_mode = 2
joint_mode = 2
[node name="DamageOutputLabel" type="Label" parent="spaceship/Laser1"]
offset_left = 18.0
offset_top = -71.0
offset_right = 104.0
offset_bottom = -20.0
[node name="HardPoint1" type="Node2D" parent="spaceship"]
position = Vector2(0, -46)
script = ExtResource("7_6cr6a")
[node name="SpawnAsteroidButton" type="Button" parent="."]
offset_left = 72.0
offset_top = 993.0
offset_right = 249.0
offset_bottom = 1049.0
text = "SPAWN ASTEROID"
script = ExtResource("9_21dg0")