bug fixes, and a easter egg
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=73 format=3 uid="uid://b2sygl55s6fng"]
|
||||
[gd_scene load_steps=79 format=3 uid="uid://b2sygl55s6fng"]
|
||||
|
||||
[ext_resource type="Script" path="res://main.gd" id="1_ubs1p"]
|
||||
[ext_resource type="Texture2D" uid="uid://b8on1case224h" path="res://LoopPressed.png" id="2_iolk5"]
|
||||
@@ -37,6 +37,8 @@
|
||||
[ext_resource type="Script" path="res://CustomButtonColor.gd" id="32_pwgec"]
|
||||
[ext_resource type="Script" path="res://loading_failed_screen.gd" id="37_mkkhu"]
|
||||
[ext_resource type="AudioStream" uid="uid://n8g3v41u2u48" path="res://Error.wav" id="38_nkjlp"]
|
||||
[ext_resource type="Script" path="res://birthday_container.gd" id="38_pitc3"]
|
||||
[ext_resource type="AudioStream" uid="uid://bwfw3l3iyv67o" path="res://roblox win sound effect.mp3" id="39_3er0p"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kvkfy"]
|
||||
shader = ExtResource("8_xtnau")
|
||||
@@ -187,6 +189,33 @@ shadow_size = 4
|
||||
shadow_color = Color(0.290196, 0.290196, 0.290196, 0.270588)
|
||||
shadow_offset = Vector2(2, 3)
|
||||
|
||||
[sub_resource type="Curve" id="Curve_wqjqk"]
|
||||
_data = [Vector2(0, 0), 0.0, 16.8231, 0, 0, Vector2(0.119342, 1), 0.0, 0.0, 0, 0, Vector2(0.991769, 1), 8.04663e-07, 0.0, 0, 0]
|
||||
point_count = 3
|
||||
|
||||
[sub_resource type="CurveTexture" id="CurveTexture_wg7pm"]
|
||||
curve = SubResource("Curve_wqjqk")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_cr82i"]
|
||||
particle_flag_disable_z = true
|
||||
angle_min = -406.2
|
||||
angle_max = 219.7
|
||||
direction = Vector3(0, -1, 0)
|
||||
initial_velocity_min = 357.05
|
||||
initial_velocity_max = 586.59
|
||||
gravity = Vector3(0, 392, 0)
|
||||
scale_min = 10.0
|
||||
scale_max = 22.95
|
||||
scale_curve = SubResource("CurveTexture_wg7pm")
|
||||
hue_variation_min = -0.77
|
||||
hue_variation_max = 0.22
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_f1d3e"]
|
||||
font_size = 80
|
||||
shadow_size = 2
|
||||
shadow_color = Color(0, 0, 0, 0.556863)
|
||||
shadow_offset = Vector2(6.55, 6.735)
|
||||
|
||||
[node name="Node2D" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@@ -1234,6 +1263,47 @@ cancel_button_text = "No"
|
||||
[node name="FailedAudioCue" type="AudioStreamPlayer" parent="LoadingFailedScreen"]
|
||||
stream = ExtResource("38_nkjlp")
|
||||
|
||||
[node name="BirthdayContainer" type="Control" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 0
|
||||
script = ExtResource("38_pitc3")
|
||||
|
||||
[node name="BirthdayParticles" type="GPUParticles2D" parent="BirthdayContainer"]
|
||||
emitting = false
|
||||
amount = 120
|
||||
process_material = SubResource("ParticleProcessMaterial_cr82i")
|
||||
lifetime = 5.0
|
||||
one_shot = true
|
||||
explosiveness = 0.9
|
||||
visibility_rect = Rect2(-750, -750, 1500, 1000)
|
||||
|
||||
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="BirthdayContainer"]
|
||||
stream = ExtResource("39_3er0p")
|
||||
volume_db = -17.885
|
||||
|
||||
[node name="BirthdayHappy" type="Label" parent="."]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -62.5
|
||||
offset_top = -11.5
|
||||
offset_right = 62.5
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Happy Birthday!"
|
||||
label_settings = SubResource("LabelSettings_f1d3e")
|
||||
|
||||
[connection signal="toggled" from="SelectPlaylist" to="SelectPlaylist" method="_on_toggled"]
|
||||
[connection signal="pressed" from="PlaylistPanelHolder/PlaylistsPanel/PlaylistsContainer/VBoxContainer/HBoxContainer/CreatePlaylist" to="PlaylistPanelHolder/PlaylistsPanel" method="_on_create_playlist_pressed"]
|
||||
[connection signal="toggled" from="PlaylistPanelHolder/PlaylistsPanel/PlaylistsContainer/VBoxContainer/HBoxContainer/PlayAll" to="PlaylistPanelHolder/PlaylistsPanel" method="_on_play_all_toggled"]
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
extends Control
|
||||
|
||||
@onready var birthday_particles: GPUParticles2D = $BirthdayParticles
|
||||
@onready var audio_stream_player: AudioStreamPlayer = $AudioStreamPlayer
|
||||
@onready var birthday_happy: Label = $"../BirthdayHappy"
|
||||
|
||||
var awaitingJumpscare:bool
|
||||
var IsFocused:bool
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
birthday_happy.hide()
|
||||
print("user: ",DiscordRPC.get_current_user().get("username"))
|
||||
var bday:bool
|
||||
if owner.DiscordUsername == "woostudiosjohn":
|
||||
if Time.get_datetime_dict_from_system().day == 5:
|
||||
if Time.get_datetime_dict_from_system().month == 11:
|
||||
await get_tree().create_timer(0.2).timeout
|
||||
awaitingJumpscare = true
|
||||
bday = true
|
||||
|
||||
func _notification(what):
|
||||
if what == get_tree().NOTIFICATION_APPLICATION_FOCUS_IN:
|
||||
IsFocused = true
|
||||
if what == get_tree().NOTIFICATION_APPLICATION_FOCUS_OUT:
|
||||
IsFocused = false
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
if awaitingJumpscare && IsFocused:
|
||||
birthday_happy.show()
|
||||
awaitingJumpscare = false
|
||||
birthday_particles.emitting = true
|
||||
audio_stream_player.play()
|
||||
if !awaitingJumpscare:
|
||||
birthday_happy.modulate.a -= delta/5
|
||||
@@ -312,9 +312,9 @@ func SetVolume(Volume:float):
|
||||
|
||||
var volume = (-50 + (Volume/2))
|
||||
if Volume >= 2:
|
||||
AudioServer.set_bus_volume_db(0,volume)
|
||||
AudioServer.set_bus_volume_db(1,volume)
|
||||
else:
|
||||
AudioServer.set_bus_volume_db(0,-1000)
|
||||
AudioServer.set_bus_volume_db(1,-1000)
|
||||
volume_slider.value = Volume
|
||||
|
||||
func SelectPlaylistDir():
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://bwfw3l3iyv67o"
|
||||
path="res://.godot/imported/roblox win sound effect.mp3-39d0ba8b033f858214671048098e2f18.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://roblox win sound effect.mp3"
|
||||
dest_files=["res://.godot/imported/roblox win sound effect.mp3-39d0ba8b033f858214671048098e2f18.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=false
|
||||
loop_offset=0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
||||
Reference in New Issue
Block a user