2024-07-22 19:37:26 -06:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://d75odchj18u1"]
|
2024-07-21 14:17:35 -06:00
|
|
|
|
2024-07-22 19:37:26 -06:00
|
|
|
[ext_resource type="Script" path="res://src/crosshair.gd" id="1_8vuwf"]
|
2024-07-21 14:38:56 -06:00
|
|
|
[ext_resource type="Shader" path="res://src/shaders/threshold.gdshader" id="1_bg1gg"]
|
2024-07-21 14:17:35 -06:00
|
|
|
[ext_resource type="PackedScene" uid="uid://drbiyuustse8b" path="res://src/maps/arena_map/arena_map.tscn" id="1_bvhtq"]
|
2024-07-22 19:37:26 -06:00
|
|
|
[ext_resource type="Shader" path="res://src/shaders/invert.gdshader" id="1_rg2hr"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bepxfquua1v6" path="res://assets/textures/crosshair_circle.png" id="3_1ycfj"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://hmt7s15m7eto" path="res://assets/textures/crosshair_dot.png" id="3_3u7nt"]
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ag8l2"]
|
|
|
|
shader = ExtResource("1_rg2hr")
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_csvvm"]
|
|
|
|
shader = ExtResource("1_rg2hr")
|
2024-07-21 14:17:35 -06:00
|
|
|
|
2024-07-21 14:38:56 -06:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ubp15"]
|
|
|
|
shader = ExtResource("1_bg1gg")
|
|
|
|
shader_parameter/color_low = Color(0, 0, 0, 1)
|
|
|
|
shader_parameter/color_hi = Color(1, 1, 1, 1)
|
2024-07-22 18:14:51 -06:00
|
|
|
shader_parameter/threshold = 0.506
|
2024-07-21 14:17:35 -06:00
|
|
|
shader_parameter/contrast = 1.0
|
2024-07-21 14:38:56 -06:00
|
|
|
shader_parameter/offset = 0.0
|
2024-07-21 14:17:35 -06:00
|
|
|
|
2024-07-22 19:37:26 -06:00
|
|
|
[node name="Main" type="Control"]
|
|
|
|
custom_minimum_size = Vector2(1900, 768)
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 0
|
|
|
|
|
|
|
|
[node name="Crosshair" type="CenterContainer" parent="." groups=["CrosshairGroup"]]
|
|
|
|
z_index = 1
|
|
|
|
layout_mode = 0
|
|
|
|
offset_right = 1900.0
|
|
|
|
offset_bottom = 768.0
|
|
|
|
script = ExtResource("1_8vuwf")
|
|
|
|
|
|
|
|
[node name="CrosshairContainer" type="Control" parent="Crosshair"]
|
|
|
|
custom_minimum_size = Vector2(32, 32)
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
[node name="CrosshairCircle" type="TextureRect" parent="Crosshair/CrosshairContainer"]
|
|
|
|
material = SubResource("ShaderMaterial_ag8l2")
|
|
|
|
layout_mode = 2
|
|
|
|
offset_right = 32.0
|
|
|
|
offset_bottom = 32.0
|
|
|
|
texture = ExtResource("3_1ycfj")
|
|
|
|
stretch_mode = 2
|
|
|
|
|
|
|
|
[node name="CrosshairDot" type="TextureRect" parent="Crosshair/CrosshairContainer"]
|
|
|
|
material = SubResource("ShaderMaterial_csvvm")
|
|
|
|
layout_mode = 2
|
|
|
|
offset_right = 32.0
|
|
|
|
offset_bottom = 32.0
|
|
|
|
texture = ExtResource("3_3u7nt")
|
2024-07-21 14:17:35 -06:00
|
|
|
|
|
|
|
[node name="ViewportContainer" type="SubViewportContainer" parent="."]
|
2024-07-21 14:38:56 -06:00
|
|
|
material = SubResource("ShaderMaterial_ubp15")
|
2024-07-22 19:37:26 -06:00
|
|
|
layout_mode = 0
|
2024-07-21 14:17:35 -06:00
|
|
|
offset_right = 1900.0
|
|
|
|
offset_bottom = 768.0
|
|
|
|
stretch = true
|
|
|
|
|
|
|
|
[node name="Viewport" type="SubViewport" parent="ViewportContainer"]
|
|
|
|
handle_input_locally = false
|
|
|
|
size = Vector2i(1900, 768)
|
|
|
|
render_target_update_mode = 4
|
|
|
|
|
|
|
|
[node name="ArenaMap" parent="ViewportContainer/Viewport" instance=ExtResource("1_bvhtq")]
|