level_1.tscn 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. [gd_scene load_steps=8 format=3 uid="uid://bmb72w7tf6fu4"]
  2. [ext_resource type="Texture2D" uid="uid://diymsf2qlhkbe" path="res://icon.svg" id="1_3tqy7"]
  3. [ext_resource type="PackedScene" uid="uid://cqdewtd1yr4cn" path="res://component/props/godot_logo/godot_logo.tscn" id="1_36ls2"]
  4. [ext_resource type="Texture2D" uid="uid://dnrpwavhjaq1s" path="res://component/sky/ground/ground004.jpg" id="1_e8dj3"]
  5. [ext_resource type="PackedScene" uid="uid://dlkwtp1gl45r" path="res://component/ships/BiBiShip.tscn" id="2_hw8a6"]
  6. [ext_resource type="PackedScene" uid="uid://bi4ilbgyhjrnx" path="res://component/control/keyboard/keyboard_control.tscn" id="3_o4rax"]
  7. [ext_resource type="Script" path="res://component/control/gamepad/gamepad_control.gd" id="4_vfxyo"]
  8. [ext_resource type="Script" path="res://component/views/player_camera.gd" id="4_w3h2o"]
  9. [node name="Level1" type="Node2D"]
  10. [node name="ParallaxBackground" type="ParallaxBackground" parent="."]
  11. [node name="Ground" type="ParallaxLayer" parent="ParallaxBackground"]
  12. motion_scale = Vector2(0.2, 0.2)
  13. motion_mirroring = Vector2(6400, 6400)
  14. [node name="Grass" type="Sprite2D" parent="ParallaxBackground/Ground"]
  15. texture_repeat = 2
  16. texture = ExtResource("1_e8dj3")
  17. centered = false
  18. region_enabled = true
  19. region_rect = Rect2(0, 0, 6400, 6400)
  20. [node name="Clouds" type="ParallaxLayer" parent="ParallaxBackground"]
  21. modulate = Color(4.13924e-06, 0.747864, 0.749296, 1)
  22. position = Vector2(3, -3)
  23. motion_scale = Vector2(0.8, 0.8)
  24. motion_mirroring = Vector2(10000, 5000)
  25. [node name="Cloud1" type="Sprite2D" parent="ParallaxBackground/Clouds"]
  26. texture = ExtResource("1_3tqy7")
  27. [node name="Cloud2" type="Sprite2D" parent="ParallaxBackground/Clouds"]
  28. position = Vector2(6226, 921)
  29. texture = ExtResource("1_3tqy7")
  30. [node name="Cloud3" type="Sprite2D" parent="ParallaxBackground/Clouds"]
  31. position = Vector2(4356, 2913)
  32. texture = ExtResource("1_3tqy7")
  33. [node name="Cloud4" type="Sprite2D" parent="ParallaxBackground/Clouds"]
  34. position = Vector2(1722, 3018)
  35. texture = ExtResource("1_3tqy7")
  36. [node name="Cloud5" type="Sprite2D" parent="ParallaxBackground/Clouds"]
  37. position = Vector2(8675, 3482)
  38. texture = ExtResource("1_3tqy7")
  39. [node name="GodotLogo" parent="." instance=ExtResource("1_36ls2")]
  40. [node name="GodotLogo2" parent="." instance=ExtResource("1_36ls2")]
  41. position = Vector2(930, 491)
  42. [node name="BiBiShip" parent="." instance=ExtResource("2_hw8a6")]
  43. position = Vector2(462, 278)
  44. [node name="KeyboardControl" parent="BiBiShip" instance=ExtResource("3_o4rax")]
  45. [node name="Camera2D" type="Camera2D" parent="BiBiShip"]
  46. script = ExtResource("4_w3h2o")
  47. [node name="GamepadControl" type="Node" parent="BiBiShip"]
  48. script = ExtResource("4_vfxyo")
  49. [connection signal="moved" from="BiBiShip" to="BiBiShip/Camera2D" method="_on_moved"]
  50. [connection signal="dir_changed" from="BiBiShip/KeyboardControl" to="BiBiShip" method="_on_command"]
  51. [connection signal="dir_changed" from="BiBiShip/GamepadControl" to="BiBiShip" method="_on_command"]