Extensive work on virtually all of the visuals and the net code
This commit is contained in:
@@ -3,25 +3,25 @@
|
||||
[ext_resource type="Script" uid="uid://bm50jiya4s3ei" path="res://scripts/hud.gd" id="1_jiiqi"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="1_k5de2"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhw2ao0dimytt" path="res://visuals/images/icons/bomb.png" id="1_t4m7m"]
|
||||
[ext_resource type="Script" uid="uid://c85j4kxafibj4" path="res://scripts/trap_display.gd" id="2_l86lr"]
|
||||
[ext_resource type="Script" uid="uid://c85j4kxafibj4" path="res://scripts/hack_display.gd" id="2_l86lr"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3ghacgxkqrn7" path="res://visuals/images/icons/player 1 tag.png" id="2_yda1o"]
|
||||
[ext_resource type="Texture2D" uid="uid://psxrbfkh3jyq" path="res://visuals/images/icons/force_panel.png" id="2_yful7"]
|
||||
[ext_resource type="Texture2D" uid="uid://bwweebntsivfn" path="res://visuals/images/icons/background.png" id="3_e7ody"]
|
||||
[ext_resource type="Texture2D" uid="uid://coe2q8jdu47it" path="res://visuals/images/icons/gas.png" id="3_jiiqi"]
|
||||
[ext_resource type="Texture2D" uid="uid://btjn353r1qg1q" path="res://visuals/images/icons/player 2 tag.png" id="3_k0acs"]
|
||||
[ext_resource type="Texture2D" uid="uid://urh11huy67cs" path="res://visuals/materials/health gradient.tres" id="3_vhta5"]
|
||||
[ext_resource type="PackedScene" uid="uid://xk323c0ta2b" path="res://templates/trap_icon.tscn" id="4_aopqe"]
|
||||
[ext_resource type="PackedScene" uid="uid://xk323c0ta2b" path="res://templates/hack_icon.tscn" id="4_aopqe"]
|
||||
[ext_resource type="Script" uid="uid://bolw6n14ocxt3" path="res://scripts/healthbar.gd" id="4_iv5le"]
|
||||
[ext_resource type="Texture2D" uid="uid://bcv3f38cib5xk" path="res://visuals/images/icons/mine.png" id="4_l86lr"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyuylbs0o72xk" path="res://visuals/images/icons/pitfall.png" id="5_aopqe"]
|
||||
[ext_resource type="Texture2D" uid="uid://cge3xladgqjp6" path="res://visuals/materials/poison gradient.tres" id="5_jf5vi"]
|
||||
[ext_resource type="Texture2D" uid="uid://hiwrcar5fnyk" path="res://visuals/images/icons/switch.png" id="6_e7ody"]
|
||||
[ext_resource type="Texture2D" uid="uid://cccpeolat5pk5" path="res://visuals/images/icons/selector.png" id="7_bftxg"]
|
||||
[ext_resource type="Texture2D" uid="uid://divrb0alxk567" path="res://visuals/images/icons/trap arrow.png" id="12_bftxg"]
|
||||
[ext_resource type="Texture2D" uid="uid://divrb0alxk567" path="res://visuals/images/icons/hack arrow.png" id="12_bftxg"]
|
||||
[ext_resource type="Script" uid="uid://dv3fk1ptmvltg" path="res://scripts/blinker.gd" id="13_bftxg"]
|
||||
[ext_resource type="AudioStream" uid="uid://cev1r8gqs7qbj" path="res://audio/sounds/9mm M&P Drop Mag Empty C.wav" id="14_d888c"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1g5jy6w66rys" path="res://visuals/images/icons/trap button.png" id="15_wc04a"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2tu6cwb6xftx" path="res://visuals/images/icons/lit trap button.png" id="16_aid7k"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1g5jy6w66rys" path="res://visuals/images/icons/install button.png" id="15_wc04a"]
|
||||
[ext_resource type="Texture2D" uid="uid://b2tu6cwb6xftx" path="res://visuals/images/icons/lit install button.png" id="16_aid7k"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxs0jj4y4clvv" path="res://visuals/images/icons/detect button.png" id="17_rpucv"]
|
||||
[ext_resource type="Texture2D" uid="uid://buh1sm00l81u5" path="res://visuals/images/icons/gun.png" id="18_iv5le"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxxm3c2lpmr4f" path="res://visuals/images/icons/lit detect button.png" id="18_yda1o"]
|
||||
@@ -122,73 +122,73 @@ poisoned_gradient = ExtResource("5_jf5vi")
|
||||
custom_minimum_size = Vector2(150, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TrapDisplay" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer"]
|
||||
[node name="HackDisplay" type="PanelContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
custom_minimum_size = Vector2(220, 100)
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_l86lr")
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_e7ody")
|
||||
|
||||
[node name="Control2" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
[node name="Control2" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Frame" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2"]
|
||||
[node name="Frame" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2"]
|
||||
clip_children = 1
|
||||
layout_mode = 0
|
||||
offset_right = 220.0
|
||||
offset_bottom = 100.0
|
||||
texture = ExtResource("1_t4m7m")
|
||||
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame"]
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame"]
|
||||
anchors_preset = 0
|
||||
offset_left = 35.0
|
||||
offset_right = 185.0
|
||||
offset_bottom = 100.0
|
||||
|
||||
[node name="TrapsContainer" type="HBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control"]
|
||||
[node name="HacksContainer" type="HBoxContainer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_right = 920.0
|
||||
offset_bottom = 100.0
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="Trap Icon" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer" instance=ExtResource("4_aopqe")]
|
||||
[node name="Hack Icon" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control/HacksContainer" instance=ExtResource("4_aopqe")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control/HacksContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_yful7")
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control/HacksContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("3_jiiqi")
|
||||
|
||||
[node name="TextureRect4" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
[node name="TextureRect4" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control/HacksContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_l86lr")
|
||||
|
||||
[node name="TextureRect5" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
[node name="TextureRect5" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control/HacksContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("5_aopqe")
|
||||
|
||||
[node name="TextureRect6" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control2/Frame/Control/TrapsContainer"]
|
||||
[node name="TextureRect6" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control2/Frame/Control/HacksContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("6_e7ody")
|
||||
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
[node name="Control" type="Control" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Selector" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control"]
|
||||
[node name="Selector" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control"]
|
||||
layout_mode = 0
|
||||
offset_left = 35.0
|
||||
offset_right = 185.0
|
||||
offset_bottom = 100.0
|
||||
texture = ExtResource("7_bftxg")
|
||||
|
||||
[node name="LeftArrow" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control"]
|
||||
[node name="LeftArrow" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 3.0
|
||||
@@ -198,7 +198,7 @@ offset_bottom = 77.0
|
||||
texture = ExtResource("12_bftxg")
|
||||
script = ExtResource("13_bftxg")
|
||||
|
||||
[node name="RightArrow" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay/Control"]
|
||||
[node name="RightArrow" type="TextureRect" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay/Control"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 0
|
||||
offset_left = 195.0
|
||||
@@ -209,7 +209,7 @@ texture = ExtResource("12_bftxg")
|
||||
flip_h = true
|
||||
script = ExtResource("13_bftxg")
|
||||
|
||||
[node name="CycleSound" type="AudioStreamPlayer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/TrapDisplay"]
|
||||
[node name="CycleSound" type="AudioStreamPlayer" parent="Control/PanelContainer/HBoxContainer/VBoxContainer/HackDisplay"]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("14_d888c")
|
||||
|
||||
@@ -321,7 +321,7 @@ offset_right = 200.0
|
||||
grow_vertical = 0
|
||||
script = ExtResource("21_jiiqv")
|
||||
|
||||
[node name="Trap" type="TextureButton" parent="ControlDisplay"]
|
||||
[node name="Hack" type="TextureButton" parent="ControlDisplay"]
|
||||
layout_mode = 0
|
||||
offset_left = 13.0
|
||||
offset_top = 71.0
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://v12wymuy2xk6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://5nrsscwod1xg" path="res://scripts/disarm_trap_modal.gd" id="1_eo0gq"]
|
||||
[ext_resource type="Script" uid="uid://5nrsscwod1xg" path="res://scripts/decompile_hack_modal.gd" id="1_eo0gq"]
|
||||
[ext_resource type="Texture2D" uid="uid://barbcaa2xvgkk" path="res://visuals/images/icons/switch button.png" id="2_cgabh"]
|
||||
[ext_resource type="Texture2D" uid="uid://diyks5oxgidoo" path="res://visuals/images/icons/ranged attack button.png" id="3_06srb"]
|
||||
|
||||
[node name="DisarmTrapModal" type="Control"]
|
||||
[node name="DecompileTrapModal" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
@@ -56,7 +56,7 @@ expand_mode = 1
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="DisarmSound" type="AudioStreamPlayer" parent="."]
|
||||
[node name="DecompileSound" type="AudioStreamPlayer" parent="."]
|
||||
|
||||
[node name="SuccessSound" type="AudioStreamPlayer" parent="."]
|
||||
|
||||
@@ -64,7 +64,7 @@ unique_name_in_owner = true
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
|
||||
[node name="DisarmWindow" type="PanelContainer" parent="CanvasLayer"]
|
||||
[node name="DecompileWindow" type="PanelContainer" parent="CanvasLayer"]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
anchors_preset = 8
|
||||
@@ -79,29 +79,29 @@ offset_bottom = 56.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/DisarmWindow"]
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/DecompileWindow"]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="PressToDisarmHeader" type="Label" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
|
||||
[node name="PressToDisarmHeader" type="Label" parent="CanvasLayer/DecompileWindow/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "PRESS TO DISARM"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="Panel" type="PanelContainer" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
|
||||
[node name="Panel" type="PanelContainer" parent="CanvasLayer/DecompileWindow/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="DisarmContainer" type="HBoxContainer" parent="CanvasLayer/DisarmWindow/VBoxContainer/Panel"]
|
||||
[node name="DecompileContainer" type="HBoxContainer" parent="CanvasLayer/DecompileWindow/VBoxContainer/Panel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="TimeRemainingLabel" type="Label" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
|
||||
[node name="TimeRemainingLabel" type="Label" parent="CanvasLayer/DecompileWindow/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "TIME REMAINING: "
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TimerLabel" type="Label" parent="CanvasLayer/DisarmWindow/VBoxContainer"]
|
||||
[node name="TimerLabel" type="Label" parent="CanvasLayer/DecompileWindow/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
text = "00.000"
|
||||
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Texture2D" uid="uid://bxs0jj4y4clvv" path="res://visuals/images/icons/detect button.png" id="1_tmc0a"]
|
||||
[ext_resource type="Texture2D" uid="uid://bxxm3c2lpmr4f" path="res://visuals/images/icons/lit detect button.png" id="2_75gk1"]
|
||||
|
||||
[node name="DisarmIcon" type="TextureButton"]
|
||||
[node name="DecompileIcon" type="TextureButton"]
|
||||
custom_minimum_size = Vector2(32, 32)
|
||||
toggle_mode = true
|
||||
texture_normal = ExtResource("1_tmc0a")
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=41 format=3 uid="uid://eaw46gqf17aw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dq4fq3sdlrtt2" path="res://scripts/trap_fx.gd" id="1_77qbl"]
|
||||
[ext_resource type="Script" uid="uid://dq4fq3sdlrtt2" path="res://scripts/hack_fx.gd" id="1_77qbl"]
|
||||
[ext_resource type="Material" uid="uid://d0igimpfbmiye" path="res://visuals/materials/explosion_cloud.tres" id="2_l2v4y"]
|
||||
[ext_resource type="AudioStream" uid="uid://dqup45qbcs0a0" path="res://audio/sounds/explosion_small_01.wav" id="3_8g7xx"]
|
||||
[ext_resource type="AudioStream" uid="uid://dg1on6er2ielh" path="res://audio/sounds/explosion_small_02.wav" id="4_d5gho"]
|
||||
|
||||
107
templates/floatbot.tscn
Normal file
107
templates/floatbot.tscn
Normal file
@@ -0,0 +1,107 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://t03mee1wag4n"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dvh2uowmdibki" path="res://models/floatbot.gltf" id="1_c5h2v"]
|
||||
[ext_resource type="Texture2D" uid="uid://dm4flob70q133" path="res://visuals/images/enemy vision tile.png" id="2_lseyt"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="3_e50dn"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_0fg7r"]
|
||||
resource_name = "Hover"
|
||||
loop_mode = 1
|
||||
tracks/0/type = "position_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Mesh")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0, 0.23333333, 1, 0, -0.05, 0, 0.5, 1, 0, 0, 0, 0.73333335, 1, 0, 0.05, 0, 1, 1, 0, 0, 0)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_cttrw"]
|
||||
length = 0.001
|
||||
tracks/0/type = "position_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Mesh")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 0, 0, 0)
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2pygi"]
|
||||
_data = {
|
||||
&"Hover": SubResource("Animation_0fg7r"),
|
||||
&"RESET": SubResource("Animation_cttrw")
|
||||
}
|
||||
|
||||
[node name="Floatbot" type="CharacterBody3D"]
|
||||
|
||||
[node name="Mesh" parent="." instance=ExtResource("1_c5h2v")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.40177745)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_2pygi")
|
||||
}
|
||||
|
||||
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
||||
follow_viewport_enabled = true
|
||||
|
||||
[node name="ViewZone" type="Node3D" parent="."]
|
||||
|
||||
[node name="Sprite3D" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.99577093, -1.0161133, 0.5048561)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D2" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.027071476, -1.0161133, 0.5048561)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D4" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.0439706, -1.0161133, 0.5048561)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D5" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.99577093, -1.0161133, 1.5390358)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D6" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.027071476, -1.0161133, 1.5390358)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D7" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.0439706, -1.0161133, 1.5390358)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D3" type="Sprite3D" parent="ViewZone"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.027071476, -1.0161133, -0.5017357)
|
||||
pixel_size = 0.0156
|
||||
axis = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_lseyt")
|
||||
|
||||
[node name="Sprite3D2" type="Sprite3D" parent="."]
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.02, 0, 0, 0, 0.1, 0, 0.316885, -0.3532338)
|
||||
cast_shadow = 0
|
||||
pixel_size = 0.0078
|
||||
billboard = 1
|
||||
no_depth_test = true
|
||||
fixed_size = true
|
||||
texture_filter = 0
|
||||
render_priority = 127
|
||||
texture = ExtResource("3_e50dn")
|
||||
133
templates/hack.tscn
Normal file
133
templates/hack.tscn
Normal file
@@ -0,0 +1,133 @@
|
||||
[gd_scene load_steps=13 format=4 uid="uid://bk3yqawritfnj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yjsgte3x7jjw" path="res://scripts/hack.gd" id="1_6h4aj"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmlp8tn6mnbd" path="res://visuals/images/icons/t-bomb.png" id="3_mxvh5"]
|
||||
[ext_resource type="Shader" uid="uid://c3fo17afoeh3v" path="res://hack.gdshader" id="4_mxvh5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cm288pisiir7v" path="res://visuals/images/force_panel_strip.png" id="4_oj6ox"]
|
||||
[ext_resource type="Material" uid="uid://csslbdbpj3gpc" path="res://models/material_0.tres" id="5_b2s8y"]
|
||||
[ext_resource type="Texture2D" uid="uid://0a53qj5dfrd6" path="res://hack texture.tres" id="5_odo83"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_dw7u0"]
|
||||
size = Vector3(0.8, 1, 0.8)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_6h4aj"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_odo83"]
|
||||
resource_local_to_scene = true
|
||||
render_priority = 0
|
||||
shader = ExtResource("4_mxvh5")
|
||||
shader_parameter/texture_image = ExtResource("5_odo83")
|
||||
shader_parameter/line_color = Color(1, 1, 1, 1)
|
||||
shader_parameter/line_width = 0.010000000475
|
||||
shader_parameter/line_blur = 0.3590000170525
|
||||
shader_parameter/line_speed = 0.01000004797499998
|
||||
shader_parameter/straight_lines = true
|
||||
shader_parameter/interrupt_width = 0.5
|
||||
shader_parameter/interrupt_blur = 0.314000014915
|
||||
shader_parameter/interrupt_speed = 0.23700005875750008
|
||||
shader_parameter/glow_color = Color(1, 1, 1, 1)
|
||||
shader_parameter/glow_itensity = 7.8000003705
|
||||
shader_parameter/glow_amount = 1.286000061085
|
||||
shader_parameter/flickering = 0.0
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_bybv3"]
|
||||
_surfaces = [{
|
||||
"aabb": AABB(-0.59375, 0.4375, -0.69375, 1.1875, 0.125, 1.3875),
|
||||
"format": 34896613377,
|
||||
"index_count": 72,
|
||||
"index_data": PackedByteArray("AAABAAIAAgADAAAAAAADAAQAAAAEAAUABQABAAAAAwAGAAQABQAEAAcABAAGAAcABQAHAAgACAABAAUABwAGAAkACAAHAAkACgAGAAMAAgAKAAMACQAGAAsACwAGAAoACAAJAAwADAAJAAsADAABAAgADQAKAAIADQALAAoAAgABAA0ADAALAA0ADQABAAwA"),
|
||||
"name": "material_0",
|
||||
"primitive": 3,
|
||||
"uv_scale": Vector4(0, 0, 0, 0),
|
||||
"vertex_count": 14,
|
||||
"vertex_data": PackedByteArray("2P8AANFFAAD/fwAA/38AAP//AABwugAAK+///3BOAAD/f///9hIAAP9/AAAAAAAA/3////9/AACyEP//Nk4AAAAAAACORQAAshD//46xAABM7///yLEAAP9///8I7QAAAAAAAC26AAD/fwAA//8AAA==")
|
||||
}]
|
||||
blend_shape_mode = 0
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_4gip8"]
|
||||
resource_name = "blockbench_export_mesh"
|
||||
_surfaces = [{
|
||||
"aabb": AABB(-0.59375, 0.4375, -0.69375, 1.1875, 0.125, 1.3875),
|
||||
"attribute_data": PackedByteArray("9EvHQf8lmS3/S1MZxVD/Lz12/yc5ef8vx1P/J/+B/3n/X/9n/4H/U/8l/1n/JZkt9EvHQf8//w97af8HBW3/D5BCNAj/gf95/1//Z/+B/1MAAN9B/yWZLf8l/1n8UP8XbHsyEP99/xeCVP8P/4H/ef9f/2f/gf9TAABrGf8lmS0AAN9BxVD/Jzx2/x85ef8nxlP/H/+B/3n/X/9n/4H/U/8lMwH/JZktAABrGf83/weGYQAAD2X/B5I6NAD/gf95/1//Z/+B/1P/S1MZ/yWZLf8lMwH8UP8fbHsyGP99/x+CVP8X/4H/ef9f/2f/gf9T"),
|
||||
"format": 34896613399,
|
||||
"index_count": 72,
|
||||
"index_data": PackedByteArray("AAABAAIAAwAEAAUAAwAGAAQABwAIAAkACgALAAwADQAOAA8ADQAQAA4AEQASABMAFAAVABYAFwAYABkAFwAaABgAGwAcAB0AHgAfACAAIQAiACMAIQAkACIAJQAmACcAKAApACoAKwAsAC0AKwAuACwALwAwADEAMgAzADQANQA2ADcANQA4ADYAOQA6ADsA"),
|
||||
"material": ExtResource("5_b2s8y"),
|
||||
"name": "material_0",
|
||||
"primitive": 3,
|
||||
"uv_scale": Vector4(0, 0, 0, 0),
|
||||
"vertex_count": 60,
|
||||
"vertex_data": PackedByteArray("2P8AANFF/7//fwAA/3//v///AABwuv+///8AAHC6GMMr7///cE4Yw9j/AADRRRjDTO///8ixGMNM7///yLEBwP9/////fwHAK+///3BOAcD/fwAAAAD/v/9/AAD/f/+/2P8AANFF/7/Y/wAA0UXs6f9////2Eu/p/38AAAAA7+kr7///cE7s6Svv//9wTmvJ/3////9/a8n/f///9hJryQAAAACORf+//38AAP9//7//fwAAAAD/v/9/AAAAAOjpshD//zZO6+kAAAAAjkXr6f9////2Eujp/3////YSJeL/f////38l4rIQ//82TiXiAAAAAC26/7//fwAA/3//vwAAAACORf+/AAAAAI5FDcOyEP//jrENwwAAAAAtug3DshD//zZODcOyEP//Nk4r//9/////fyv/shD//46xK///fwAA////v/9/AAD/f/+/AAAAAC26/78AAAAALbqXof9///8I7ZWh/38AAP//laGyEP//jrGYobIQ//+Osd7j/3////9/3uP/f///CO3e4///AABwuv+//38AAP9//7//fwAA////v/9/AAD//6mgTO///8ixqKD//wAAcLqooP9///8I7aqg/3///wjtkcr/f////3+Rykzv///IsZHKAAD/fwAA/38AAP9/Z64wF2euMBdnrjAXZ64wF278x4Fu/MeBbvzHgQAA/38AAP9/AAD/f9mkXAjUpFMI06RSCNqkXwib3jk9m945PZveOT0AAP9/AAD/fwAA/38BiJXc+Yea3PeHm9wEiJTch84QHYfOEB2HzhAdAAD/fwAA/38AAP9/N5eP0TeXj9E3l4/RN5eP0XPA6ABzwOgAc8DoAAAA/38AAP9/AAD/f3y5pbWLuae1jrmntXm5pLVom0qyaJtKsmibSrIAAP9/AAD/fwAA/3+1yEQ4s8hROLLIVDi2yEA42LqSoti6kqLYupKi")
|
||||
}]
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_bybv3")
|
||||
|
||||
[sub_resource type="ArrayMesh" id="ArrayMesh_tpds2"]
|
||||
resource_name = "blockbench_export_mesh"
|
||||
_surfaces = [{
|
||||
"aabb": AABB(-0.59375, 0.4375, -0.69375, 1.1875, 0.125, 1.3875),
|
||||
"attribute_data": PackedByteArray("9EvHQf8lmS3/S1MZxVD/Lz12/yc5ef8vx1P/J/+B/3n/X/9n/4H/U/8l/1n/JZkt9EvHQf8//w97af8HBW3/D5BCNAj/gf95/1//Z/+B/1MAAN9B/yWZLf8l/1n8UP8XbHsyEP99/xeCVP8P/4H/ef9f/2f/gf9TAABrGf8lmS0AAN9BxVD/Jzx2/x85ef8nxlP/H/+B/3n/X/9n/4H/U/8lMwH/JZktAABrGf83/weGYQAAD2X/B5I6NAD/gf95/1//Z/+B/1P/S1MZ/yWZLf8lMwH8UP8fbHsyGP99/x+CVP8X/4H/ef9f/2f/gf9T"),
|
||||
"format": 34896613399,
|
||||
"index_count": 72,
|
||||
"index_data": PackedByteArray("AAABAAIAAwAEAAUAAwAGAAQABwAIAAkACgALAAwADQAOAA8ADQAQAA4AEQASABMAFAAVABYAFwAYABkAFwAaABgAGwAcAB0AHgAfACAAIQAiACMAIQAkACIAJQAmACcAKAApACoAKwAsAC0AKwAuACwALwAwADEAMgAzADQANQA2ADcANQA4ADYAOQA6ADsA"),
|
||||
"material": SubResource("ShaderMaterial_odo83"),
|
||||
"name": "material_0",
|
||||
"primitive": 3,
|
||||
"uv_scale": Vector4(0, 0, 0, 0),
|
||||
"vertex_count": 60,
|
||||
"vertex_data": PackedByteArray("2P8AANFF/7//fwAA/3//v///AABwuv+///8AAHC6GMMr7///cE4Yw9j/AADRRRjDTO///8ixGMNM7///yLEBwP9/////fwHAK+///3BOAcD/fwAAAAD/v/9/AAD/f/+/2P8AANFF/7/Y/wAA0UXs6f9////2Eu/p/38AAAAA7+kr7///cE7s6Svv//9wTmvJ/3////9/a8n/f///9hJryQAAAACORf+//38AAP9//7//fwAAAAD/v/9/AAAAAOjpshD//zZO6+kAAAAAjkXr6f9////2Eujp/3////YSJeL/f////38l4rIQ//82TiXiAAAAAC26/7//fwAA/3//vwAAAACORf+/AAAAAI5FDcOyEP//jrENwwAAAAAtug3DshD//zZODcOyEP//Nk4r//9/////fyv/shD//46xK///fwAA////v/9/AAD/f/+/AAAAAC26/78AAAAALbqXof9///8I7ZWh/38AAP//laGyEP//jrGYobIQ//+Osd7j/3////9/3uP/f///CO3e4///AABwuv+//38AAP9//7//fwAA////v/9/AAD//6mgTO///8ixqKD//wAAcLqooP9///8I7aqg/3///wjtkcr/f////3+Rykzv///IsZHKAAD/fwAA/38AAP9/Z64wF2euMBdnrjAXZ64wF278x4Fu/MeBbvzHgQAA/38AAP9/AAD/f9mkXAjUpFMI06RSCNqkXwib3jk9m945PZveOT0AAP9/AAD/fwAA/38BiJXc+Yea3PeHm9wEiJTch84QHYfOEB2HzhAdAAD/fwAA/38AAP9/N5eP0TeXj9E3l4/RN5eP0XPA6ABzwOgAc8DoAAAA/38AAP9/AAD/f3y5pbWLuae1jrmntXm5pLVom0qyaJtKsmibSrIAAP9/AAD/fwAA/3+1yEQ4s8hROLLIVDi2yEA42LqSoti6kqLYupKi")
|
||||
}]
|
||||
blend_shape_mode = 0
|
||||
shadow_mesh = SubResource("ArrayMesh_4gip8")
|
||||
|
||||
[node name="Trap" type="Area3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_6h4aj")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("BoxShape3D_dw7u0")
|
||||
|
||||
[node name="Icon" type="Sprite3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 0.17676345, 0.06314404)
|
||||
pixel_size = 0.0075
|
||||
axis = 1
|
||||
double_sided = false
|
||||
texture = ExtResource("3_mxvh5")
|
||||
|
||||
[node name="RevealTimer" type="Timer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="RangeArea" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 0
|
||||
collision_mask = 6
|
||||
|
||||
[node name="RangeShape" type="CollisionShape3D" parent="RangeArea"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("BoxShape3D_6h4aj")
|
||||
|
||||
[node name="ActivationTimer" type="Timer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
wait_time = 5.0
|
||||
|
||||
[node name="ForceStrip" type="Sprite3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1.4, 0, 0, 0, -6.119594e-08, 1.4, 0, -1.4, -6.119594e-08, 0, 0.1, 0)
|
||||
visible = false
|
||||
texture_filter = 0
|
||||
texture = ExtResource("4_oj6ox")
|
||||
|
||||
[node name="Model" type="MeshInstance3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, -0.22, 0)
|
||||
mesh = SubResource("ArrayMesh_tpds2")
|
||||
skeleton = NodePath("")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="RevealTimer" to="." method="_on_reveal_timeout"]
|
||||
[connection signal="timeout" from="ActivationTimer" to="." method="_on_activation_timer_timeout"]
|
||||
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://xk323c0ta2b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://54k4gu5skdur" path="res://scripts/trap_icon.gd" id="1_soq3m"]
|
||||
[ext_resource type="Script" uid="uid://54k4gu5skdur" path="res://scripts/hack_icon.gd" id="1_soq3m"]
|
||||
[ext_resource type="Texture2D" uid="uid://dhw2ao0dimytt" path="res://visuals/images/icons/bomb.png" id="2_adsdf"]
|
||||
|
||||
[node name="Trap Icon" type="Control"]
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bn1dl7sexxcog"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cnrxwj03j5rw3" path="res://scripts/map_marker.gd" id="1_1gvyj"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdo6instl47uf" path="res://visuals/images/icons/enemy_trap_marker.png" id="2_43sjg"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdo6instl47uf" path="res://visuals/images/icons/enemy_hack_marker.png" id="2_43sjg"]
|
||||
|
||||
[node name="EnemyTrapMarker" type="Node3D"]
|
||||
script = ExtResource("1_1gvyj")
|
||||
@@ -1,7 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://gchb44afbosa"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cnrxwj03j5rw3" path="res://scripts/map_marker.gd" id="1_kw26n"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6wke2vs8rfyd" path="res://visuals/images/icons/friendly_trap_marker.png" id="2_rgmxc"]
|
||||
[ext_resource type="Texture2D" uid="uid://c6wke2vs8rfyd" path="res://visuals/images/icons/friendly_hack_marker.png" id="2_rgmxc"]
|
||||
|
||||
[node name="FriendlyTrapMarker" type="Node3D"]
|
||||
script = ExtResource("1_kw26n")
|
||||
File diff suppressed because one or more lines are too long
20067
templates/pawn_controller.tscn97108509959.tmp
Normal file
20067
templates/pawn_controller.tscn97108509959.tmp
Normal file
File diff suppressed because one or more lines are too long
@@ -2,7 +2,7 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://blljmwvft1g8m" path="res://scripts/pawn_display.gd" id="1_c4qnx"]
|
||||
[ext_resource type="Texture2D" uid="uid://dri0a20l6kpbj" path="res://visuals/images/icon.svg" id="2_dvd7o"]
|
||||
[ext_resource type="Script" uid="uid://qwyhu0gexeah" path="res://scripts/cs_trap_display.gd" id="3_ph4cm"]
|
||||
[ext_resource type="Script" uid="uid://qwyhu0gexeah" path="res://scripts/cs_hack_display.gd" id="3_ph4cm"]
|
||||
|
||||
[sub_resource type="Shader" id="Shader_fa52j"]
|
||||
code = "shader_type canvas_item;
|
||||
@@ -121,17 +121,17 @@ grow_vertical = 0
|
||||
[node name="Panel" type="PanelContainer" parent="Control/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TrapContainer" type="HBoxContainer" parent="Control/VBoxContainer/Panel"]
|
||||
[node name="HackContainer" type="HBoxContainer" parent="Control/VBoxContainer/Panel"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/VBoxContainer/Panel/TrapContainer"]
|
||||
[node name="TextureRect" type="TextureRect" parent="Control/VBoxContainer/Panel/HackContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_ph4cm")
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Panel/TrapContainer/TextureRect"]
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Panel/HackContainer/TextureRect"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -145,13 +145,13 @@ grow_vertical = 0
|
||||
text = "##"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/VBoxContainer/Panel/TrapContainer"]
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control/VBoxContainer/Panel/HackContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_ph4cm")
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Panel/TrapContainer/TextureRect2"]
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Panel/HackContainer/TextureRect2"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
@@ -165,13 +165,13 @@ grow_vertical = 0
|
||||
text = "##"
|
||||
horizontal_alignment = 2
|
||||
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/VBoxContainer/Panel/TrapContainer"]
|
||||
[node name="TextureRect3" type="TextureRect" parent="Control/VBoxContainer/Panel/HackContainer"]
|
||||
custom_minimum_size = Vector2(92, 64)
|
||||
layout_mode = 2
|
||||
expand_mode = 1
|
||||
script = ExtResource("3_ph4cm")
|
||||
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Panel/TrapContainer/TextureRect3"]
|
||||
[node name="Label" type="Label" parent="Control/VBoxContainer/Panel/HackContainer/TextureRect3"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 3
|
||||
anchor_left = 1.0
|
||||
|
||||
@@ -3,6 +3,16 @@
|
||||
[ext_resource type="Script" uid="uid://c14c3ogbf7i33" path="res://scripts/pitfall.gd" id="1_pl1py"]
|
||||
[ext_resource type="Texture2D" uid="uid://dvxj8a5dj535k" path="res://visuals/images/pitfall.png" id="2_4wfyu"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_r4vne"]
|
||||
length = 0.001
|
||||
tracks/0/type = "scale_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite3D")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_eaqbt"]
|
||||
resource_name = "expand"
|
||||
length = 0.2
|
||||
@@ -14,16 +24,6 @@ tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 0.1, 0.1, 0.1, 0.1, 1, 1.3, 1.3, 1.3, 0.16666667, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_r4vne"]
|
||||
length = 0.001
|
||||
tracks/0/type = "scale_3d"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite3D")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ywdt3"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_r4vne"),
|
||||
|
||||
30
templates/range_sphere.tscn
Normal file
30
templates/range_sphere.tscn
Normal file
@@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://bt7dqxcvxmivb"]
|
||||
|
||||
[ext_resource type="Shader" uid="uid://byr88gb5fk3w2" path="res://visuals/shaders/intersection.gdshader" id="1_besml"]
|
||||
[ext_resource type="Shader" uid="uid://g2hj3keuywp4" path="res://visuals/shaders/outline.gdshader" id="2_oohvj"]
|
||||
[ext_resource type="Texture2D" uid="uid://c4r0yuw28xqrc" path="res://visuals/textures/explosive_noise.tres" id="3_2bjjq"]
|
||||
[ext_resource type="Script" uid="uid://w801e8ko5s5d" path="res://scripts/range_sphere.gd" id="4_mfswp"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0nmat"]
|
||||
render_priority = 0
|
||||
shader = ExtResource("1_besml")
|
||||
shader_parameter/intersection_color = Color(1, 1, 0, 1)
|
||||
shader_parameter/intersection_thickness = 0.05
|
||||
shader_parameter/intensity = 5.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_0fg7r"]
|
||||
render_priority = 0
|
||||
next_pass = SubResource("ShaderMaterial_0nmat")
|
||||
shader = ExtResource("2_oohvj")
|
||||
shader_parameter/amount = 2.335
|
||||
shader_parameter/intensity = 4.54
|
||||
shader_parameter/fresnel_color = Color(0.73333335, 0.4745098, 0, 1)
|
||||
shader_parameter/noise_texture = ExtResource("3_2bjjq")
|
||||
|
||||
[node name="RangeSphere" type="CSGSphere3D"]
|
||||
radius = 1.5
|
||||
radial_segments = 36
|
||||
rings = 36
|
||||
smooth_faces = false
|
||||
material = SubResource("ShaderMaterial_0fg7r")
|
||||
script = ExtResource("4_mfswp")
|
||||
@@ -1,72 +0,0 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://bk3yqawritfnj"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://yjsgte3x7jjw" path="res://scripts/trap.gd" id="1_6h4aj"]
|
||||
[ext_resource type="ArrayMesh" uid="uid://bih57xe642hrc" path="res://models/trap.obj" id="2_oj6ox"]
|
||||
[ext_resource type="Texture2D" uid="uid://cmlp8tn6mnbd" path="res://visuals/images/icons/t-bomb.png" id="3_mxvh5"]
|
||||
[ext_resource type="Texture2D" uid="uid://cm288pisiir7v" path="res://visuals/images/force_panel_strip.png" id="4_oj6ox"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qcd3b"]
|
||||
albedo_color = Color(0, 0, 1, 1)
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_88ety"]
|
||||
resource_local_to_scene = true
|
||||
albedo_color = Color(1, 1, 0, 1)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_dw7u0"]
|
||||
size = Vector3(0.8, 1, 0.8)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_6h4aj"]
|
||||
resource_local_to_scene = true
|
||||
|
||||
[node name="Trap" type="Area3D"]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_6h4aj")
|
||||
|
||||
[node name="Model" type="MeshInstance3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0, 0)
|
||||
material_overlay = SubResource("StandardMaterial3D_qcd3b")
|
||||
mesh = ExtResource("2_oj6ox")
|
||||
skeleton = NodePath("")
|
||||
surface_material_override/0 = SubResource("StandardMaterial3D_88ety")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("BoxShape3D_dw7u0")
|
||||
|
||||
[node name="Icon" type="Sprite3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(0.6, 0, 0, 0, 0.6, 0, 0, 0, 0.6, 0, 0.1, 0)
|
||||
pixel_size = 0.0075
|
||||
axis = 1
|
||||
double_sided = false
|
||||
texture = ExtResource("3_mxvh5")
|
||||
|
||||
[node name="RevealTimer" type="Timer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="RangeArea" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 0
|
||||
collision_mask = 6
|
||||
|
||||
[node name="RangeShape" type="CollisionShape3D" parent="RangeArea"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
|
||||
shape = SubResource("BoxShape3D_6h4aj")
|
||||
|
||||
[node name="ActivationTimer" type="Timer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
wait_time = 5.0
|
||||
|
||||
[node name="ForceStrip" type="Sprite3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1.4, 0, 0, 0, -6.119594e-08, 1.4, 0, -1.4, -6.119594e-08, 0, 0.1, 0)
|
||||
visible = false
|
||||
texture_filter = 0
|
||||
texture = ExtResource("4_oj6ox")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="timeout" from="RevealTimer" to="." method="_on_reveal_timeout"]
|
||||
[connection signal="timeout" from="ActivationTimer" to="." method="_on_activation_timer_timeout"]
|
||||
@@ -1,10 +1,10 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bwj76wt4pab4t"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bj1udbw3sm73f" path="res://scripts/remove_trap_modal.gd" id="1_27jge"]
|
||||
[ext_resource type="Texture2D" uid="uid://barbcaa2xvgkk" path="res://visuals/images/icons/switch button.png" id="2_dmpk7"]
|
||||
[ext_resource type="Texture2D" uid="uid://diyks5oxgidoo" path="res://visuals/images/icons/ranged attack button.png" id="3_42gya"]
|
||||
[ext_resource type="Script" uid="uid://bj1udbw3sm73f" path="res://scripts/uninstall_hack_modal.gd" id="1_6m4cv"]
|
||||
[ext_resource type="Texture2D" uid="uid://barbcaa2xvgkk" path="res://visuals/images/icons/switch button.png" id="2_kftnf"]
|
||||
[ext_resource type="Texture2D" uid="uid://diyks5oxgidoo" path="res://visuals/images/icons/ranged attack button.png" id="3_wq05i"]
|
||||
|
||||
[node name="RemoveTrapModal" type="ConfirmationDialog"]
|
||||
[node name="UninstallHackModal" type="ConfirmationDialog"]
|
||||
handle_input_locally = false
|
||||
canvas_item_default_texture_filter = 2
|
||||
gui_disable_input = true
|
||||
@@ -20,7 +20,7 @@ content_scale_mode = 1
|
||||
content_scale_aspect = 2
|
||||
ok_button_text = "Remove"
|
||||
dialog_text = "Remove Trap?"
|
||||
script = ExtResource("1_27jge")
|
||||
script = ExtResource("1_6m4cv")
|
||||
|
||||
[node name="Control" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
@@ -37,7 +37,7 @@ offset_left = 36.0
|
||||
offset_top = 29.0
|
||||
offset_right = 68.0
|
||||
offset_bottom = 61.0
|
||||
texture = ExtResource("2_dmpk7")
|
||||
texture = ExtResource("2_kftnf")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="TextureRect2" type="TextureRect" parent="Control"]
|
||||
@@ -47,5 +47,5 @@ offset_left = 120.0
|
||||
offset_top = 29.0
|
||||
offset_right = 152.0
|
||||
offset_bottom = 61.0
|
||||
texture = ExtResource("3_42gya")
|
||||
texture = ExtResource("3_wq05i")
|
||||
expand_mode = 1
|
||||
Reference in New Issue
Block a user