Lunar/game.tscn

56 lines
1.9 KiB
Text
Raw Normal View History

2025-06-27 16:39:28 +10:00
[gd_scene load_steps=8 format=3 uid="uid://hv07lm2tjwn4"]
[ext_resource type="PackedScene" uid="uid://crrbht7mwhgyc" path="res://Prefabs/lander.tscn" id="1_80nbo"]
[ext_resource type="Script" uid="uid://bltj2frs6vqwj" path="res://autoscroll.gd" id="1_feb5d"]
[ext_resource type="Texture2D" uid="uid://evhjxwdbsmlo" path="res://Sprites/start.png" id="2_e2o6t"]
[sub_resource type="Gradient" id="Gradient_mwb40"]
offsets = PackedFloat32Array(0.806763, 1)
[sub_resource type="FastNoiseLite" id="FastNoiseLite_80nbo"]
frequency = 0.1855
domain_warp_enabled = true
domain_warp_amplitude = 43.465
[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_mwb40"]
width = 6400
height = 360
color_ramp = SubResource("Gradient_mwb40")
noise = SubResource("FastNoiseLite_80nbo")
[sub_resource type="RectangleShape2D" id="RectangleShape2D_feb5d"]
size = Vector2(115, 20)
[node name="Game" type="Node2D"]
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="ParallaxBackground" type="ParallaxBackground" parent="CanvasLayer"]
[node name="ParallaxLayer" type="ParallaxLayer" parent="CanvasLayer/ParallaxBackground"]
motion_scale = Vector2(0.5, 0)
[node name="TextureRect" type="TextureRect" parent="CanvasLayer/ParallaxBackground/ParallaxLayer"]
offset_right = 40.0
offset_bottom = 40.0
texture = SubResource("NoiseTexture2D_mwb40")
[node name="Camera2D" type="Camera2D" parent="."]
anchor_mode = 0
script = ExtResource("1_feb5d")
[node name="Lander" parent="." instance=ExtResource("1_80nbo")]
position = Vector2(95, 324)
[node name="Start" type="StaticBody2D" parent="."]
position = Vector2(320, 180)
[node name="Sprite2D" type="Sprite2D" parent="Start"]
texture = ExtResource("2_e2o6t")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Start"]
position = Vector2(-262.5, 170)
shape = SubResource("RectangleShape2D_feb5d")
[connection signal="moved" from="Lander" to="Camera2D" method="_on_lander_moved"]