first commit
79
Effects/FadeIn.tscn
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
[gd_scene load_steps=5 format=2]
|
||||
|
||||
[ext_resource path="res://Effects/transitionPattern.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Effects/Transition.gd" type="Script" id=2]
|
||||
|
||||
[sub_resource type="Animation" id=1]
|
||||
resource_name = "FadeIn"
|
||||
length = 0.5
|
||||
step = 0.05
|
||||
tracks/0/type = "bezier"
|
||||
tracks/0/path = NodePath("TransitionSprite:position:x")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"points": PoolRealArray( 0, -0.25, 0, 0.25, 0, 384, -0.25, 0, 0.25, 0 ),
|
||||
"times": PoolRealArray( 0, 0.5 )
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0.5 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"values": [ {
|
||||
"args": [ ],
|
||||
"method": "finish_animation"
|
||||
} ]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "FadeOut"
|
||||
length = 0.75
|
||||
step = 0.05
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("TransitionSprite:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.5 ),
|
||||
"transitions": PoolRealArray( 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 384, 0 ), Vector2( 0, 0 ) ]
|
||||
}
|
||||
tracks/1/type = "method"
|
||||
tracks/1/path = NodePath(".")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/keys = {
|
||||
"times": PoolRealArray( 0.75 ),
|
||||
"transitions": PoolRealArray( 1 ),
|
||||
"values": [ {
|
||||
"args": [ ],
|
||||
"method": "finish_animation"
|
||||
} ]
|
||||
}
|
||||
|
||||
[node name="Transition" type="CanvasLayer"]
|
||||
script = ExtResource( 2 )
|
||||
|
||||
[node name="TransitionSprite" type="Sprite" parent="."]
|
||||
visible = false
|
||||
z_index = 400
|
||||
texture = ExtResource( 1 )
|
||||
centered = false
|
||||
region_enabled = true
|
||||
region_rect = Rect2( 0, 0, 768, 216 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
anims/FadeIn = SubResource( 1 )
|
||||
anims/FadeOut = SubResource( 2 )
|
||||
11
Effects/FadeOut.gd
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
extends CanvasLayer
|
||||
|
||||
# set scene you want to load, uses main menu as fallback
|
||||
var scene_to_load = "res://Menu/MenuPage.tscn"
|
||||
|
||||
func _ready():
|
||||
$AnimationPlayer.play("FadeOut")
|
||||
$TransitionSprite.visible = true
|
||||
|
||||
func finish_animation():
|
||||
var _new_scene = get_tree().change_scene(scene_to_load)
|
||||
7
Effects/FadeOut.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Effects/FadeIn.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Effects/FadeOut.gd" type="Script" id=2]
|
||||
|
||||
[node name="FadeOut" instance=ExtResource( 1 )]
|
||||
script = ExtResource( 2 )
|
||||
10
Effects/Transition.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends CanvasLayer
|
||||
|
||||
onready var animation = $AnimationPlayer
|
||||
|
||||
func _ready():
|
||||
animation.play("FadeIn")
|
||||
$TransitionSprite.visible = true
|
||||
|
||||
func finish_animation():
|
||||
queue_free()
|
||||
BIN
Effects/confetti.png
Normal file
|
After Width: | Height: | Size: 144 B |
34
Effects/confetti.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/confetti.png-65cdf006cd216a4b0e4ec59142855a0e.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/confetti.png"
|
||||
dest_files=[ "res://.import/confetti.png-65cdf006cd216a4b0e4ec59142855a0e.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
17
Effects/confetti.tres
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
[gd_resource type="AnimatedTexture" load_steps=4 format=2]
|
||||
|
||||
[ext_resource path="res://Effects/confetti1.png" type="Texture" id=1]
|
||||
[ext_resource path="res://Effects/confetti2.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Effects/confetti3.png" type="Texture" id=3]
|
||||
|
||||
[resource]
|
||||
frames = 3
|
||||
pause = true
|
||||
oneshot = true
|
||||
fps = 5.0
|
||||
frame_0/texture = ExtResource( 1 )
|
||||
frame_0/delay_sec = 1.0
|
||||
frame_1/texture = ExtResource( 2 )
|
||||
frame_1/delay_sec = 0.0
|
||||
frame_2/texture = ExtResource( 3 )
|
||||
frame_2/delay_sec = 1.0
|
||||
BIN
Effects/confetti1.png
Normal file
|
After Width: | Height: | Size: 105 B |
34
Effects/confetti1.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/confetti1.png-78825925c31b43e18dc070bc7f2c74f0.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/confetti1.png"
|
||||
dest_files=[ "res://.import/confetti1.png-78825925c31b43e18dc070bc7f2c74f0.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
Effects/confetti2.png
Normal file
|
After Width: | Height: | Size: 103 B |
34
Effects/confetti2.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/confetti2.png-655e72064710c2b27f348966295f01a2.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/confetti2.png"
|
||||
dest_files=[ "res://.import/confetti2.png-655e72064710c2b27f348966295f01a2.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
Effects/confetti3.png
Normal file
|
After Width: | Height: | Size: 105 B |
34
Effects/confetti3.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/confetti3.png-a85bc62e22817bd36fbe646bb5688904.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/confetti3.png"
|
||||
dest_files=[ "res://.import/confetti3.png-a85bc62e22817bd36fbe646bb5688904.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
Effects/greenParticle.png
Normal file
|
After Width: | Height: | Size: 97 B |
34
Effects/greenParticle.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/greenParticle.png-97f6c99e3184aa86d4936279a6f7c61d.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/greenParticle.png"
|
||||
dest_files=[ "res://.import/greenParticle.png-97f6c99e3184aa86d4936279a6f7c61d.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
Effects/stars.png
Normal file
|
After Width: | Height: | Size: 173 B |
34
Effects/stars.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/stars.png-76a65097044e2a024f64943193927cd0.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/stars.png"
|
||||
dest_files=[ "res://.import/stars.png-76a65097044e2a024f64943193927cd0.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||
BIN
Effects/transitionPattern.png
Normal file
|
After Width: | Height: | Size: 261 B |
34
Effects/transitionPattern.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/transitionPattern.png-330dc8c3116d3e93f4010c3378d6a318.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Effects/transitionPattern.png"
|
||||
dest_files=[ "res://.import/transitionPattern.png-330dc8c3116d3e93f4010c3378d6a318.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=1
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=false
|
||||
svg/scale=1.0
|
||||