123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- [gd_scene load_steps=11 format=2]
- [ext_resource path="res://PremierLoading4.gd" type="Script" id=1]
- [ext_resource path="res://prog4.gd" type="Script" id=2]
- [ext_resource path="res://Aigle.tscn" type="PackedScene" id=3]
- [ext_resource path="res://icon.png" type="Texture" id=4]
- [ext_resource path="res://alata-regular.ttf" type="DynamicFontData" id=6]
- [sub_resource type="StyleBoxFlat" id=1]
- bg_color = Color( 0, 1, 0.0509804, 1 )
- [sub_resource type="DynamicFont" id=2]
- size = 32
- font_data = ExtResource( 6 )
- [sub_resource type="DynamicFont" id=3]
- size = 64
- font_data = ExtResource( 6 )
- [sub_resource type="Shader" id=4]
- code = "shader_type canvas_item;
- float grid(vec2 uv, float velocity, float iTime)
- {
- vec2 size = vec2(uv.y, uv.y * uv.y * 0.2) * 0.01;
- uv += vec2(0.0, iTime * 4.0 * (velocity + 0.05));
- uv = abs(fract(uv) - 0.5);
- vec2 lines = smoothstep(size, vec2(0.0), uv);
- lines += smoothstep(size * 5.0, vec2(0.0), uv) * 0.4 * velocity;
- return clamp(lines.x + lines.y, 0.0, 3.0);
- }
- void fragment()
- {
- vec2 uv = (2.0 * FRAGCOORD.xy.xy - (1.0 / SCREEN_PIXEL_SIZE).xy)/(1.0 / SCREEN_PIXEL_SIZE).y;
- float velocity = 1.0;
-
- {
- // Grid
- vec3 col = vec3(0.0, 0.1, 0.2);
- if (uv.y < -0.2)
- {
- uv.y = 3.0 / (abs(uv.y + 0.2) + 0.05);
- uv.x *= uv.y * 1.0;
- float gridVal = grid(uv, velocity, TIME);
- col = mix(col, vec3(0.5, 0.5, 1.0), gridVal);
- }
- else
- {
- uv.y -= velocity * 1.1 - 0.51;
- }
- col = mix(vec3(col.r, col.r, col.r) * 0.5, col, 0.7);
- COLOR = vec4(col,1.0);
- }
-
- }"
- [sub_resource type="ShaderMaterial" id=5]
- shader = SubResource( 4 )
- [node name="PremierLoading4" type="Node2D"]
- script = ExtResource( 1 )
- [node name="ColorRect" type="ColorRect" parent="."]
- visible = false
- margin_right = 1378.0
- margin_bottom = 766.0
- color = Color( 0, 0, 0, 1 )
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="prog4" type="ProgressBar" parent="."]
- anchor_right = 0.215
- margin_left = 385.0
- margin_top = 357.0
- margin_right = 985.0
- margin_bottom = 402.0
- custom_styles/fg = SubResource( 1 )
- custom_fonts/font = SubResource( 2 )
- custom_colors/font_color = Color( 1, 1, 1, 1 )
- max_value = 155.0
- script = ExtResource( 2 )
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="Label" type="Label" parent="."]
- margin_left = 540.0
- margin_top = 258.889
- margin_right = 832.0
- margin_bottom = 347.889
- custom_fonts/font = SubResource( 3 )
- text = "Loading..."
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="Timer" type="Timer" parent="."]
- wait_time = 6.5
- autostart = true
- [node name="Aigle" parent="." instance=ExtResource( 3 )]
- position = Vector2( -117.466, 508.009 )
- [node name="Sprite" type="Sprite" parent="."]
- modulate = Color( 0.129412, 0.796078, 0.0901961, 1 )
- material = SubResource( 5 )
- position = Vector2( 696.736, 391.835 )
- scale = Vector2( 22.773, 13.245 )
- z_index = -1
- texture = ExtResource( 4 )
- [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|