PremierLoading5tscn 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. [gd_scene load_steps=11 format=2]
  2. [ext_resource path="res://PremierLoading4.gd" type="Script" id=1]
  3. [ext_resource path="res://prog4.gd" type="Script" id=2]
  4. [ext_resource path="res://Aigle.tscn" type="PackedScene" id=3]
  5. [ext_resource path="res://icon.png" type="Texture" id=4]
  6. [ext_resource path="res://alata-regular.ttf" type="DynamicFontData" id=6]
  7. [sub_resource type="StyleBoxFlat" id=1]
  8. bg_color = Color( 0, 1, 0.0509804, 1 )
  9. [sub_resource type="DynamicFont" id=2]
  10. size = 32
  11. font_data = ExtResource( 6 )
  12. [sub_resource type="DynamicFont" id=3]
  13. size = 64
  14. font_data = ExtResource( 6 )
  15. [sub_resource type="Shader" id=4]
  16. code = "shader_type canvas_item;
  17. float grid(vec2 uv, float velocity, float iTime)
  18. {
  19. vec2 size = vec2(uv.y, uv.y * uv.y * 0.2) * 0.01;
  20. uv += vec2(0.0, iTime * 4.0 * (velocity + 0.05));
  21. uv = abs(fract(uv) - 0.5);
  22. vec2 lines = smoothstep(size, vec2(0.0), uv);
  23. lines += smoothstep(size * 5.0, vec2(0.0), uv) * 0.4 * velocity;
  24. return clamp(lines.x + lines.y, 0.0, 3.0);
  25. }
  26. void fragment()
  27. {
  28. vec2 uv = (2.0 * FRAGCOORD.xy.xy - (1.0 / SCREEN_PIXEL_SIZE).xy)/(1.0 / SCREEN_PIXEL_SIZE).y;
  29. float velocity = 1.0;
  30. {
  31. // Grid
  32. vec3 col = vec3(0.0, 0.1, 0.2);
  33. if (uv.y < -0.2)
  34. {
  35. uv.y = 3.0 / (abs(uv.y + 0.2) + 0.05);
  36. uv.x *= uv.y * 1.0;
  37. float gridVal = grid(uv, velocity, TIME);
  38. col = mix(col, vec3(0.5, 0.5, 1.0), gridVal);
  39. }
  40. else
  41. {
  42. uv.y -= velocity * 1.1 - 0.51;
  43. }
  44. col = mix(vec3(col.r, col.r, col.r) * 0.5, col, 0.7);
  45. COLOR = vec4(col,1.0);
  46. }
  47. }"
  48. [sub_resource type="ShaderMaterial" id=5]
  49. shader = SubResource( 4 )
  50. [node name="PremierLoading4" type="Node2D"]
  51. script = ExtResource( 1 )
  52. [node name="ColorRect" type="ColorRect" parent="."]
  53. visible = false
  54. margin_right = 1378.0
  55. margin_bottom = 766.0
  56. color = Color( 0, 0, 0, 1 )
  57. __meta__ = {
  58. "_edit_use_anchors_": false
  59. }
  60. [node name="prog4" type="ProgressBar" parent="."]
  61. anchor_right = 0.215
  62. margin_left = 385.0
  63. margin_top = 357.0
  64. margin_right = 985.0
  65. margin_bottom = 402.0
  66. custom_styles/fg = SubResource( 1 )
  67. custom_fonts/font = SubResource( 2 )
  68. custom_colors/font_color = Color( 1, 1, 1, 1 )
  69. max_value = 155.0
  70. script = ExtResource( 2 )
  71. __meta__ = {
  72. "_edit_use_anchors_": false
  73. }
  74. [node name="Label" type="Label" parent="."]
  75. margin_left = 540.0
  76. margin_top = 258.889
  77. margin_right = 832.0
  78. margin_bottom = 347.889
  79. custom_fonts/font = SubResource( 3 )
  80. text = "Loading..."
  81. __meta__ = {
  82. "_edit_use_anchors_": false
  83. }
  84. [node name="Timer" type="Timer" parent="."]
  85. wait_time = 6.5
  86. autostart = true
  87. [node name="Aigle" parent="." instance=ExtResource( 3 )]
  88. position = Vector2( -117.466, 508.009 )
  89. [node name="Sprite" type="Sprite" parent="."]
  90. modulate = Color( 0.129412, 0.796078, 0.0901961, 1 )
  91. material = SubResource( 5 )
  92. position = Vector2( 696.736, 391.835 )
  93. scale = Vector2( 22.773, 13.245 )
  94. z_index = -1
  95. texture = ExtResource( 4 )
  96. [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]