starcheese/main.tscn

122 lines
4.1 KiB
Plaintext

[gd_scene load_steps=13 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="Script" path="res://laser.gd" id="4_uhf7q"]
[ext_resource type="Script" path="res://weapons_system.gd" id="5_gf6oh"]
[ext_resource type="Script" path="res://asteroid.gd" id="6_n4dsl"]
[ext_resource type="Texture2D" uid="uid://bxgw2u7j4b634" path="res://images/laser_turret.png" id="6_qxhyw"]
[ext_resource type="Texture2D" uid="uid://buirp1h6onqai" path="res://images/AsteroidBrown.png" id="7_0tjls"]
[ext_resource type="Script" path="res://hardpoint.gd" id="7_6cr6a"]
[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)
[sub_resource type="CircleShape2D" id="CircleShape2D_w58nc"]
radius = 88.0057
[node name="Main" type="Node2D"]
[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(908, 835)
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="WeaponsSystem" type="Node" parent="spaceship"]
script = ExtResource("5_gf6oh")
[node name="HardPoint1" type="Node2D" parent="spaceship"]
position = Vector2(0, -46)
script = ExtResource("7_6cr6a")
[node name="asteroid" type="StaticBody2D" parent="."]
position = Vector2(564, 144)
collision_mask = 2
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="AsteroidCollisionPolygon2D" 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)
[node name="AsteroidHealthLabel" type="Label" parent="asteroid"]
offset_left = 105.0
offset_top = 38.0
offset_right = 181.0
offset_bottom = 80.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="asteroid"]
position = Vector2(-2, 1)
shape = SubResource("CircleShape2D_w58nc")
[node name="asteroid2" type="StaticBody2D" parent="."]
position = Vector2(1405, 413)
script = ExtResource("6_n4dsl")
[node name="Sprite2D" type="Sprite2D" parent="asteroid2"]
position = Vector2(1.00006, -3.99998)
scale = Vector2(1.2, 1.181)
texture = ExtResource("7_0tjls")
[node name="AsteroidCollisionPolygon2D" type="CollisionPolygon2D" parent="asteroid2"]
position = Vector2(-519, -164)
polygon = PackedVector2Array(548, 101, 613, 169, 597, 210, 548, 240, 462, 221, 431, 184, 434, 133, 497, 90)
[node name="AsteroidHealthLabel" type="Label" parent="asteroid2"]
offset_left = 105.0
offset_top = 38.0
offset_right = 181.0
offset_bottom = 80.0