Skip to content

Commit

Permalink
fade in on start of level
Browse files Browse the repository at this point in the history
  • Loading branch information
zabayrer committed May 17, 2024
1 parent cdfae9a commit 0b8eb10
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scenes/fire_particle_2.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=2 format=3 uid="uid://bs8ryit1q2i3t"]
[gd_scene load_steps=2 format=3 uid="uid://cscfo63mmurx6"]

[ext_resource type="Texture2D" uid="uid://dkte24xxcek5b" path="res://art/fire_02.png" id="1_fuv57"]

Expand Down
2 changes: 1 addition & 1 deletion scenes/ogre.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[ext_resource type="Script" path="res://scripts/ogre.gd" id="1_3lsmk"]
[ext_resource type="Texture2D" uid="uid://e8riu5j0moty" path="res://art/ogreswing-Sheet.png" id="1_i8oap"]
[ext_resource type="Texture2D" uid="uid://ce4lgqmvbhjho" path="res://art/ogre-Sheet.png" id="3_4mhx3"]
[ext_resource type="PackedScene" uid="uid://bs8ryit1q2i3t" path="res://fire_particle_2.tscn" id="4_wgpv8"]
[ext_resource type="PackedScene" path="res://scenes/fire_particle_2.tscn" id="4_wgpv8"]

[sub_resource type="AtlasTexture" id="AtlasTexture_ff038"]
atlas = ExtResource("1_i8oap")
Expand Down
10 changes: 9 additions & 1 deletion scripts/test_world.gd
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ extends Node2D
@onready var tutorial_nodes = $TutorialNodes

func _ready():
standard_bgm.play()
standard_bgm.volume_db = -50
pass

func _process(delta):
if standard_bgm.volume_db <= 0:
standard_bgm.volume_db += 0.5
print(standard_bgm.volume_db)
#await get_tree().create_timer(0.1).timeout
pass

0 comments on commit 0b8eb10

Please sign in to comment.