push project up sabs assets
This commit is contained in:
15
scenes/screens/start_screen/start.gd
Normal file
15
scenes/screens/start_screen/start.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
class_name StartMenu extends Node3D
|
||||
|
||||
|
||||
@onready var base_environment: Node3D = $base_environment
|
||||
@onready var animation_player: AnimationPlayer = $animation_player
|
||||
|
||||
|
||||
# NOTE: For future, look intio --> https://www.gotut.net/loading-screen-in-godot-4/
|
||||
# Sounds: https://www.pond5.com/
|
||||
func _ready() -> void:
|
||||
base_environment.game_music.stream = load("res://sounds/music/Blue Dot Sessions - 02 (Lemon and Melon).mp3")
|
||||
base_environment.game_music.stream.loop = true
|
||||
base_environment.game_music.play()
|
||||
|
||||
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
|
||||
66
scenes/screens/start_screen/start.tscn
Normal file
66
scenes/screens/start_screen/start.tscn
Normal file
@@ -0,0 +1,66 @@
|
||||
[gd_scene load_steps=8 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://2ib7f3y41pq4" path="res://assets/converted/full_pool_scene_original/scene.gltf" id="3_rfj27"]
|
||||
[ext_resource type="PackedScene" uid="uid://da0ok71rkjpx8" path="res://scenes/menus/start_menu/start_menu_controls.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="meshes" type="Node3D" parent="."]
|
||||
|
||||
[node name="table" parent="meshes" instance=ExtResource("3_rfj27")]
|
||||
|
||||
[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_menu_controls" parent="rotation_dolly/camera" instance=ExtResource("4_hk434")]
|
||||
|
||||
[node name="animation_player" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_cn28k")
|
||||
}
|
||||
Reference in New Issue
Block a user