main.tscn 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [gd_scene load_steps=8 format=2]
  2. [ext_resource path="res://assets/space_env.tres" type="Environment" id=1]
  3. [ext_resource path="res://resources/planets/planet_2/planet_2.tscn" type="PackedScene" id=2]
  4. [ext_resource path="res://resources/planets/planet/planet.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://camera.tscn" type="PackedScene" id=4]
  6. [ext_resource path="res://assets/sun.png" type="Texture" id=5]
  7. [ext_resource path="res://assets/saturn5.dae" type="PackedScene" id=6]
  8. [ext_resource path="res://planet_switcher.gd" type="Script" id=8]
  9. [node name="Spatial" type="Spatial"]
  10. script = ExtResource( 8 )
  11. [node name="camera" parent="." instance=ExtResource( 4 )]
  12. [node name="WorldEnvironment" type="WorldEnvironment" parent="."]
  13. environment = ExtResource( 1 )
  14. [node name="Sun" type="Sprite3D" parent="."]
  15. transform = Transform( 1400, 0, 0, 0, 1400, 0, 0, 0, 1400, 0, 0, 0 )
  16. billboard = 1
  17. texture = ExtResource( 5 )
  18. region_rect = Rect2( 64, 64, 128, 128 )
  19. [node name="OmniLight" type="OmniLight" parent="Sun"]
  20. light_energy = 3.0
  21. omni_range = 500000.0
  22. omni_attenuation = 4.28709
  23. [node name="planet" parent="." instance=ExtResource( 3 )]
  24. transform = Transform( 6, 0, 0, 0, 6, 0, 0, 0, 6, 50000, 0, 0 )
  25. [node name="planet2" parent="." instance=ExtResource( 2 )]
  26. transform = Transform( 3, 0, 0, 0, 3, 0, 0, 0, 3, 10000, 0, 0 )
  27. [node name="ItemList" type="ItemList" parent="."]
  28. margin_right = 70.0
  29. margin_bottom = 95.0
  30. items = [ "Sun", null, false, "Planet", null, false, "Planet 2", null, false, "Saturn 5", null, false ]
  31. __meta__ = {
  32. "_edit_use_anchors_": false
  33. }
  34. [node name="saturn5" parent="." instance=ExtResource( 6 )]
  35. transform = Transform( 0.02, 0, 0, 0, 0.02, 0, 0, 0, 0.02, 49988.8, -7.80296, -0.0304167 )
  36. [connection signal="item_selected" from="ItemList" to="." method="_on_ItemList_item_selected"]