浏览代码

:wrench: Add "clouds"

That still godot icons, but that's a first with parallax.
DricomDragon 1 年之前
父节点
当前提交
77f9e47481
共有 2 个文件被更改,包括 31 次插入2 次删除
  1. 2 1
      godot/component/props/godot_logo/godot_logo.tscn
  2. 29 1
      godot/run/levels/level_1.tscn

+ 2 - 1
godot/component/props/godot_logo/godot_logo.tscn

@@ -6,7 +6,7 @@
 bounce = 0.46
 
 [sub_resource type="RectangleShape2D" id="RectangleShape2D_hyykr"]
-size = Vector2(120, 120)
+size = Vector2(240, 240)
 
 [node name="Body" type="StaticBody2D"]
 collision_layer = 3
@@ -14,6 +14,7 @@ collision_mask = 3
 physics_material_override = SubResource("PhysicsMaterial_jopk8")
 
 [node name="GodotLogo" type="Sprite2D" parent="."]
+scale = Vector2(2, 2)
 texture = ExtResource("1_mexma")
 
 [node name="CollisionShape2D" type="CollisionShape2D" parent="."]

+ 29 - 1
godot/run/levels/level_1.tscn

@@ -1,5 +1,6 @@
-[gd_scene load_steps=6 format=3 uid="uid://bmb72w7tf6fu4"]
+[gd_scene load_steps=7 format=3 uid="uid://bmb72w7tf6fu4"]
 
+[ext_resource type="Texture2D" uid="uid://diymsf2qlhkbe" path="res://icon.svg" id="1_3tqy7"]
 [ext_resource type="PackedScene" uid="uid://cqdewtd1yr4cn" path="res://component/props/godot_logo/godot_logo.tscn" id="1_36ls2"]
 [ext_resource type="PackedScene" uid="uid://dlkwtp1gl45r" path="res://component/ships/BiBiShip.tscn" id="2_hw8a6"]
 [ext_resource type="PackedScene" uid="uid://bi4ilbgyhjrnx" path="res://component/control/keyboard/keyboard_control.tscn" id="3_o4rax"]
@@ -8,6 +9,33 @@
 
 [node name="Level1" type="Node2D"]
 
+[node name="ParallaxBackground" type="ParallaxBackground" parent="."]
+
+[node name="Clouds" type="ParallaxLayer" parent="ParallaxBackground"]
+modulate = Color(0, 0.74902, 0.74902, 1)
+position = Vector2(3, -3)
+motion_scale = Vector2(0.8, 0.8)
+motion_mirroring = Vector2(10000, 5000)
+
+[node name="Cloud1" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+texture = ExtResource("1_3tqy7")
+
+[node name="Cloud2" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+position = Vector2(6226, 921)
+texture = ExtResource("1_3tqy7")
+
+[node name="Cloud3" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+position = Vector2(4356, 2913)
+texture = ExtResource("1_3tqy7")
+
+[node name="Cloud4" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+position = Vector2(1722, 3018)
+texture = ExtResource("1_3tqy7")
+
+[node name="Cloud5" type="Sprite2D" parent="ParallaxBackground/Clouds"]
+position = Vector2(8675, 3482)
+texture = ExtResource("1_3tqy7")
+
 [node name="GodotLogo" parent="." instance=ExtResource("1_36ls2")]
 
 [node name="GodotLogo2" parent="." instance=ExtResource("1_36ls2")]