diff --git a/source/assets/scripts/loading_handlers/game_loading_screen_handler.gd b/source/assets/scripts/loading_handlers/game_loading_screen_handler.gd new file mode 100644 index 0000000..59812d1 --- /dev/null +++ b/source/assets/scripts/loading_handlers/game_loading_screen_handler.gd @@ -0,0 +1,34 @@ +extends Node2D + +var time = 0 +var first_transitioned = false +var transitioned = false + +func _ready(): + $FunCitGameLogoDarkTransparent.modulate[3] = 0 + $Fb_Geo_Game.modulate[3] = 0 + pass + +func _process(delta): + time += delta + if time > 0.01 and $Fb_Geo_Game.modulate[3] < 1.1 and not first_transitioned: + $Fb_Geo_Game.modulate[3] += 0.01 + time = 0 + if $Fb_Geo_Game.modulate[3] > 1 and time > 2: + first_transitioned = true + time = 0 + if first_transitioned and $Fb_Geo_Game.modulate[3] > 0 and time > 0.01: + $Fb_Geo_Game.modulate[3] -= 0.01 + time = 0 + if time > 0.01 and $FunCitGameLogoDarkTransparent.modulate[3] < 1.1 and first_transitioned and not transitioned: + $FunCitGameLogoDarkTransparent.modulate[3] += 0.01 + time = 0 + if $FunCitGameLogoDarkTransparent.modulate[3] > 1 and time > 2: + transitioned = true + time = 0 + if transitioned and $FunCitGameLogoDarkTransparent.modulate[3] > 0 and time > 0.01: + $FunCitGameLogoDarkTransparent.modulate[3] -= 0.01 + time = 0 + if transitioned and $FunCitGameLogoDarkTransparent.modulate[3] <= 0: + #change scene to menu + pass diff --git a/source/assets/sprites/GUI/logo_design/FB-GEO-GAME.png b/source/assets/sprites/GUI/logo_design/FB-GEO-GAME.png new file mode 100644 index 0000000..a0280f2 Binary files /dev/null and b/source/assets/sprites/GUI/logo_design/FB-GEO-GAME.png differ diff --git a/source/assets/sprites/GUI/logo_design/FUNCit_game_logo.svg b/source/assets/sprites/GUI/logo_design/FUNCit_game_logo.svg index 28a98fd..0dca3f5 100644 --- a/source/assets/sprites/GUI/logo_design/FUNCit_game_logo.svg +++ b/source/assets/sprites/GUI/logo_design/FUNCit_game_logo.svg @@ -30,7 +30,7 @@ - Prototype + Prototype diff --git a/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark.svg b/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark.svg index f3da6da..14893c8 100644 --- a/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark.svg +++ b/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark.svg @@ -30,7 +30,7 @@ - Prototype + Prototype diff --git a/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark_transparent.svg b/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark_transparent.svg index d638a97..834b85e 100644 --- a/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark_transparent.svg +++ b/source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark_transparent.svg @@ -29,7 +29,7 @@ - Prototype + Prototype diff --git a/source/scenes/GUI/game_loading_screen.tscn b/source/scenes/GUI/game_loading_screen.tscn new file mode 100644 index 0000000..2dfaf39 --- /dev/null +++ b/source/scenes/GUI/game_loading_screen.tscn @@ -0,0 +1,22 @@ +[gd_scene load_steps=5 format=2] + +[ext_resource path="res://source/assets/sprites/GUI/logo_design/FUNCit_game_logo_dark_transparent.png" type="Texture" id=1] +[ext_resource path="res://source/assets/sprites/GUI/background_lobby.svg" type="Texture" id=2] +[ext_resource path="res://source/assets/scripts/loading_handlers/game_loading_screen_handler.gd" type="Script" id=3] +[ext_resource path="res://source/assets/sprites/GUI/logo_design/FB-GEO-GAME.png" type="Texture" id=4] + +[node name="Node2D" type="Node2D"] +script = ExtResource( 3 ) + +[node name="BackgroundLobby" type="Sprite" parent="."] +position = Vector2( 960, 540 ) +texture = ExtResource( 2 ) + +[node name="FunCitGameLogoDarkTransparent" type="Sprite" parent="."] +position = Vector2( 960, 540 ) +scale = Vector2( 0.696296, 0.696296 ) +texture = ExtResource( 1 ) + +[node name="Fb_Geo_Game" type="Sprite" parent="."] +position = Vector2( 960, 540 ) +texture = ExtResource( 4 )