Added controller warning
This commit is contained in:
@@ -20,10 +20,12 @@ const MUSIC_BUS = "Music"
|
||||
|
||||
@export_group("UI Streams", "ui_stream")
|
||||
@export var ui_stream_accept : AudioStream
|
||||
@export var ui_stream_best_with_controller : AudioStream
|
||||
@export var ui_stream_decline : AudioStream
|
||||
@export var ui_stream_select : AudioStream
|
||||
|
||||
@export_group("SFX Streams", "sfx_stream")
|
||||
|
||||
@export var sfx_stream_congratulations : AudioStream
|
||||
@export var sfx_stream_corruption : AudioStream
|
||||
@export var sfx_stream_danger : AudioStream
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://dh2awtco3curi" path="res://game/managers/sound_manager.gd" id="1_cg0sy"]
|
||||
[ext_resource type="AudioStream" uid="uid://cwmibbhy2fpq2" path="res://sound/ui/accept.wav" id="2_ge1il"]
|
||||
[ext_resource type="AudioStream" uid="uid://bh6ukmdbt5jw8" path="res://sound/ui/best_with_controller.wav" id="3_3d1ws"]
|
||||
[ext_resource type="AudioStream" uid="uid://d2tsomsqmhf0h" path="res://sound/ui/decline.wav" id="3_agyxs"]
|
||||
[ext_resource type="AudioStream" uid="uid://cfb2adf5hft7b" path="res://sound/ui/select.wav" id="4_0i6kl"]
|
||||
[ext_resource type="AudioStream" uid="uid://duahboiexw0ic" path="res://sound/sfx/congratulations.wav" id="5_13qx5"]
|
||||
@@ -30,6 +31,7 @@ pitch_sfx_max = 1.05
|
||||
player_count_ui = 8
|
||||
player_count_sfx = 32
|
||||
ui_stream_accept = ExtResource("2_ge1il")
|
||||
ui_stream_best_with_controller = ExtResource("3_3d1ws")
|
||||
ui_stream_decline = ExtResource("3_agyxs")
|
||||
ui_stream_select = ExtResource("4_0i6kl")
|
||||
sfx_stream_congratulations = ExtResource("5_13qx5")
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
class_name ControllerSplash
|
||||
extends Control
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
SoundManager.play_ui_stream(SoundManager.ui_stream_best_with_controller)
|
||||
|
||||
var label : Label = $Label
|
||||
var _opacity_tween := create_tween()
|
||||
_opacity_tween.tween_property(label, "modulate:a", 0.0, 0.0)
|
||||
_opacity_tween.tween_property(label, "modulate:a", 1.0, 1.0)
|
||||
_opacity_tween.tween_property(label, "modulate:a", 1.0, 1.0)
|
||||
_opacity_tween.tween_property(label, "modulate:a", 0.0, 1.0)
|
||||
_opacity_tween.tween_property(label, "modulate:a", 0.0, 0.1)
|
||||
|
||||
await _opacity_tween.finished
|
||||
|
||||
get_tree().change_scene_to_file("res://game/menu/main_menu.tscn")
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://b0cr7wxlu83mw
|
||||
@@ -0,0 +1,34 @@
|
||||
[gd_scene format=3 uid="uid://b6qsnwora82c7"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b0cr7wxlu83mw" path="res://game/menu/controller_splash.gd" id="1_vb85k"]
|
||||
[ext_resource type="Theme" uid="uid://bqj884yfvhhft" path="res://game/themes/main_menu.tres" id="1_yb6jc"]
|
||||
|
||||
[node name="ControllerSplash" type="Control" unique_id=696254260]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_yb6jc")
|
||||
script = ExtResource("1_vb85k")
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="." unique_id=103592670]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.19607843, 0.19215687, 0.23137255, 1)
|
||||
|
||||
[node name="Label" type="Label" parent="." unique_id=1222018571]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "BEST PLAYED WITH A CONTROLLER"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
+1
-1
@@ -11,7 +11,7 @@ config_version=5
|
||||
[application]
|
||||
|
||||
config/name="NeonCollapse"
|
||||
run/main_scene="uid://cl0h2acqcq5wq"
|
||||
run/main_scene="uid://b6qsnwora82c7"
|
||||
config/features=PackedStringArray("4.7", "GL Compatibility")
|
||||
run/max_fps=240
|
||||
boot_splash/show_image=false
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://bh6ukmdbt5jw8"
|
||||
path="res://.godot/imported/best_with_controller.wav-cc962472a83c4856241a4cdcde157eb4.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://sound/ui/best_with_controller.wav"
|
||||
dest_files=["res://.godot/imported/best_with_controller.wav-cc962472a83c4856241a4cdcde157eb4.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
Reference in New Issue
Block a user