[Minimal] Added loading scene.
@ -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
|
||||||
BIN
source/assets/sprites/GUI/logo_design/FB-GEO-GAME.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
@ -30,7 +30,7 @@
|
|||||||
<path id="Union_2-2" data-name="Union 2" d="M52.489,27.919v-5.3h-36.3v5.3H0V0H16.193V4.188H68.682V27.919Z" transform="translate(13.96 0) rotate(30)"/>
|
<path id="Union_2-2" data-name="Union 2" d="M52.489,27.919v-5.3h-36.3v5.3H0V0H16.193V4.188H68.682V27.919Z" transform="translate(13.96 0) rotate(30)"/>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<text id="Prototype" transform="translate(1225 843)" fill="#0f9ff5" font-size="93" font-family="Sarala-Bold, Sarala" font-weight="700" letter-spacing="0.046em"><tspan x="0" y="0">Prototype</tspan></text>
|
<text id="Prototype" transform="translate(1225 843)" fill="#418df2" font-size="93" font-family="Sarala-Bold, Sarala" font-weight="700" letter-spacing="0.046em"><tspan x="0" y="0">Prototype</tspan></text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
@ -30,7 +30,7 @@
|
|||||||
<path id="Union_2-2" data-name="Union 2" d="M52.489,27.919v-5.3h-36.3v5.3H0V0H16.193V4.188H68.682V27.919Z" transform="translate(13.96 0) rotate(30)" fill="#fff"/>
|
<path id="Union_2-2" data-name="Union 2" d="M52.489,27.919v-5.3h-36.3v5.3H0V0H16.193V4.188H68.682V27.919Z" transform="translate(13.96 0) rotate(30)" fill="#fff"/>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<text id="Prototype" transform="translate(1225 843)" fill="#0f9ff5" font-size="93" font-family="Sarala-Bold, Sarala" font-weight="700" letter-spacing="0.046em"><tspan x="0" y="0">Prototype</tspan></text>
|
<text id="Prototype" transform="translate(1225 843)" fill="#418df2" font-size="93" font-family="Sarala-Bold, Sarala" font-weight="700" letter-spacing="0.046em"><tspan x="0" y="0">Prototype</tspan></text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@ -29,7 +29,7 @@
|
|||||||
<path id="Union_2-2" data-name="Union 2" d="M52.489,27.919v-5.3h-36.3v5.3H0V0H16.193V4.188H68.682V27.919Z" transform="translate(13.96 0) rotate(30)" fill="#fff"/>
|
<path id="Union_2-2" data-name="Union 2" d="M52.489,27.919v-5.3h-36.3v5.3H0V0H16.193V4.188H68.682V27.919Z" transform="translate(13.96 0) rotate(30)" fill="#fff"/>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
<text id="Prototype" transform="translate(1225 843)" fill="#0f9ff5" font-size="93" font-family="Sarala-Bold, Sarala" font-weight="700" letter-spacing="0.046em"><tspan x="0" y="0">Prototype</tspan></text>
|
<text id="Prototype" transform="translate(1225 843)" fill="#418df2" font-size="93" font-family="Sarala-Bold, Sarala" font-weight="700" letter-spacing="0.046em"><tspan x="0" y="0">Prototype</tspan></text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
22
source/scenes/GUI/game_loading_screen.tscn
Normal file
@ -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 )
|
||||||