Push project up
This commit is contained in:
5
scenes/environments/base_environment.gd
Normal file
5
scenes/environments/base_environment.gd
Normal file
@@ -0,0 +1,5 @@
|
||||
class_name BaseEnvironment extends Node3D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
1
scenes/environments/base_environment.gd.uid
Normal file
1
scenes/environments/base_environment.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cvsrejn43b7xu
|
||||
25
scenes/environments/base_environment.tscn
Normal file
25
scenes/environments/base_environment.tscn
Normal file
@@ -0,0 +1,25 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://djtq6hbp70kut"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cvsrejn43b7xu" path="res://scenes/environments/base_environment.gd" id="1_pm2xn"]
|
||||
|
||||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_yw8f4"]
|
||||
|
||||
[sub_resource type="Sky" id="Sky_uwrxv"]
|
||||
sky_material = SubResource("ProceduralSkyMaterial_yw8f4")
|
||||
|
||||
[sub_resource type="Environment" id="Environment_jtak5"]
|
||||
background_mode = 2
|
||||
sky = SubResource("Sky_uwrxv")
|
||||
ambient_light_source = 3
|
||||
reflected_light_source = 2
|
||||
|
||||
[node name="base_environment" type="Node3D"]
|
||||
script = ExtResource("1_pm2xn")
|
||||
|
||||
[node name="world" type="WorldEnvironment" parent="."]
|
||||
environment = SubResource("Environment_jtak5")
|
||||
|
||||
[node name="sun" type="DirectionalLight3D" parent="."]
|
||||
transform = Transform3D(0.49999997, 0.43301272, -0.75000006, 0, 0.8660254, 0.50000006, 0.86602545, -0.24999999, 0.43301266, 0, 225, 0)
|
||||
|
||||
[node name="sounds" type="Node3D" parent="."]
|
||||
9
scenes/screens/start_screen/start.gd
Normal file
9
scenes/screens/start_screen/start.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
class_name StartMenu extends Node3D
|
||||
|
||||
|
||||
@onready var base_environment: Node = $base_environment
|
||||
@onready var animation_player: AnimationPlayer = $animation_player
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
animation_player.play("rotation")
|
||||
1
scenes/screens/start_screen/start.gd.uid
Normal file
1
scenes/screens/start_screen/start.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cywa27h25s1j8
|
||||
61
scenes/screens/start_screen/start.tscn
Normal file
61
scenes/screens/start_screen/start.tscn
Normal file
@@ -0,0 +1,61 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://1uhmlnh88yq7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cywa27h25s1j8" path="res://scenes/screens/start_screen/start.gd" id="1_mqdda"]
|
||||
[ext_resource type="PackedScene" uid="uid://djtq6hbp70kut" path="res://scenes/environments/base_environment.tscn" id="2_7nvb2"]
|
||||
[ext_resource type="PackedScene" uid="uid://da0ok71rkjpx8" path="res://scenes/ui/start_screen/start_ui.tscn" id="4_hk434"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_qell1"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("rotation_dolly:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_rxs04"]
|
||||
resource_name = "rotation"
|
||||
length = 60.0
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("rotation_dolly:rotation")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 60),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(0, 6.2831855, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_cn28k"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_qell1"),
|
||||
&"rotation": SubResource("Animation_rxs04")
|
||||
}
|
||||
|
||||
[node name="start_screen" type="Node3D"]
|
||||
script = ExtResource("1_mqdda")
|
||||
|
||||
[node name="base_environment" parent="." instance=ExtResource("2_7nvb2")]
|
||||
|
||||
[node name="rotation_dolly" type="Node3D" parent="."]
|
||||
|
||||
[node name="camera" type="Camera3D" parent="rotation_dolly"]
|
||||
transform = Transform3D(0.9995127, 0.012299462, -0.028690739, 0, 0.9191053, 0.39401212, 0.031215947, -0.39382014, 0.9186573, 0.020791333, 1.2903607, 1.9422052)
|
||||
current = true
|
||||
|
||||
[node name="start_ui" parent="rotation_dolly/camera" instance=ExtResource("4_hk434")]
|
||||
|
||||
[node name="animation_player" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_cn28k")
|
||||
}
|
||||
1
scenes/ui/start_screen/start_ui.gd
Normal file
1
scenes/ui/start_screen/start_ui.gd
Normal file
@@ -0,0 +1 @@
|
||||
class_name StartMenuControls extends Control
|
||||
1
scenes/ui/start_screen/start_ui.gd.uid
Normal file
1
scenes/ui/start_screen/start_ui.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ykbcl0j1wouh
|
||||
34
scenes/ui/start_screen/start_ui.tscn
Normal file
34
scenes/ui/start_screen/start_ui.tscn
Normal file
@@ -0,0 +1,34 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://da0ok71rkjpx8"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://ykbcl0j1wouh" path="res://scenes/ui/start_screen/start_ui.gd" id="1_mwcbl"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_o8har"]
|
||||
font_size = 45
|
||||
font_color = Color(1, 0.10980392, 0.02745098, 1)
|
||||
outline_size = 5
|
||||
|
||||
[node name="start_ui" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_mwcbl")
|
||||
|
||||
[node name="vbox" type="VBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="alert" type="Label" parent="vbox"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 6
|
||||
text = "No Game PCK Loaded"
|
||||
label_settings = SubResource("LabelSettings_o8har")
|
||||
uppercase = true
|
||||
Reference in New Issue
Block a user