A little folders cleanup
This commit is contained in:
parent
997e3c0982
commit
545da7be1f
90 changed files with 68 additions and 1661 deletions
49
scenes/Star System/Required Scenes/pause_controller.tscn
Normal file
49
scenes/Star System/Required Scenes/pause_controller.tscn
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://c7is7y341f6wa"]
|
||||
|
||||
[sub_resource type="Theme" id="Theme_d8vjy"]
|
||||
default_font_size = 48
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_6uw1d"]
|
||||
resource_name = "pause_controller"
|
||||
script/source = "extends Control
|
||||
|
||||
# TODO: implement save
|
||||
|
||||
## Resumes game
|
||||
func _on_resume_button_up():
|
||||
get_tree().current_scene.unpause()
|
||||
|
||||
## Saves profile and exits game
|
||||
func _on_exit_button_up():
|
||||
get_tree().current_scene.unpause()
|
||||
get_tree().change_scene_to_file(\"res://scenes/MainMenu.tscn\")
|
||||
#Game.profile_save(get_tree().current_scene)
|
||||
"
|
||||
|
||||
[node name="PauseController" type="Control"]
|
||||
process_mode = 2
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
theme = SubResource("Theme_d8vjy")
|
||||
script = SubResource("GDScript_6uw1d")
|
||||
|
||||
[node name="Resume" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 444.0
|
||||
offset_top = 254.0
|
||||
offset_right = 779.0
|
||||
offset_bottom = 329.0
|
||||
text = "Resume game"
|
||||
|
||||
[node name="Exit" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 449.0
|
||||
offset_top = 357.0
|
||||
offset_right = 763.0
|
||||
offset_bottom = 432.0
|
||||
text = "Save and exit"
|
||||
|
||||
[connection signal="button_up" from="Resume" to="." method="_on_resume_button_up"]
|
||||
[connection signal="button_up" from="Exit" to="." method="_on_exit_button_up"]
|
||||
51
scenes/Star System/Required Scenes/star.tscn
Normal file
51
scenes/Star System/Required Scenes/star.tscn
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[gd_scene load_steps=11 format=3 uid="uid://kyuhwil8vq7n"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bf8treonq7va1" path="res://sprites/star/star1.png" id="1_g74du"]
|
||||
[ext_resource type="Texture2D" uid="uid://dbl6rw04dnuho" path="res://sprites/star/star2.png" id="2_pxcya"]
|
||||
[ext_resource type="Texture2D" uid="uid://vndhtc8ymg2k" path="res://sprites/star/star3.png" id="3_plj80"]
|
||||
[ext_resource type="Texture2D" uid="uid://cays6dmt6ucv7" path="res://sprites/star/star4.png" id="4_21ld8"]
|
||||
[ext_resource type="Texture2D" uid="uid://du274dr3lf2es" path="res://sprites/star/star5.png" id="5_pyjfw"]
|
||||
[ext_resource type="Texture2D" uid="uid://bm8tx4w1irp7s" path="res://sprites/star/star6.png" id="6_uxgjf"]
|
||||
[ext_resource type="Texture2D" uid="uid://jbcvgid8o5f6" path="res://sprites/star/star7.png" id="7_3kjtu"]
|
||||
[ext_resource type="Texture2D" uid="uid://dgp48jj1knk1y" path="res://sprites/star/star8.png" id="8_5xmav"]
|
||||
[ext_resource type="Script" path="res://scripts/Star System/star.gd" id="9_kew3k"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_oggfj"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("1_g74du")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("2_pxcya")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("3_plj80")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("4_21ld8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("5_pyjfw")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("6_uxgjf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("7_3kjtu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": ExtResource("8_5xmav")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 8.0
|
||||
}]
|
||||
|
||||
[node name="Star" type="AnimatedSprite2D"]
|
||||
z_index = -19
|
||||
sprite_frames = SubResource("SpriteFrames_oggfj")
|
||||
autoplay = "default"
|
||||
frame = 1
|
||||
frame_progress = 0.66336
|
||||
script = ExtResource("9_kew3k")
|
||||
22
scenes/Star System/Required Scenes/star_generator.tscn
Normal file
22
scenes/Star System/Required Scenes/star_generator.tscn
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dpggye27ln436"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/Star System/stars_generator.gd" id="1_uxmpu"]
|
||||
[ext_resource type="PackedScene" uid="uid://kyuhwil8vq7n" path="res://scenes/Star System/Required Scenes/star.tscn" id="2_ypr5c"]
|
||||
|
||||
[node name="Stars" type="ParallaxBackground"]
|
||||
process_mode = 1
|
||||
layer = -5
|
||||
scroll_ignore_camera_zoom = true
|
||||
script = ExtResource("1_uxmpu")
|
||||
star = ExtResource("2_ypr5c")
|
||||
|
||||
[node name="CloseStars" type="ParallaxLayer" parent="."]
|
||||
scale = Vector2(2, 2)
|
||||
motion_scale = Vector2(0.9, 0.9)
|
||||
|
||||
[node name="DistinctStars" type="ParallaxLayer" parent="."]
|
||||
scale = Vector2(1.5, 1.5)
|
||||
motion_scale = Vector2(0.5, 0.5)
|
||||
|
||||
[node name="FarAwayStars" type="ParallaxLayer" parent="."]
|
||||
motion_scale = Vector2(0.1, 0.1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue