This commit is contained in:
Felix Kaiser
2025-02-17 16:46:19 +01:00
parent 534181eb88
commit 3f62e5e31d
245 changed files with 15711 additions and 2 deletions

BIN
ui/Harmful or Fatal.mp3 Normal file

Binary file not shown.

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bhdgj026wwjyf"
path="res://.godot/imported/Harmful or Fatal.mp3-04cdd511ddc3c52186868478be3df699.mp3str"
[deps]
source_file="res://ui/Harmful or Fatal.mp3"
dest_files=["res://.godot/imported/Harmful or Fatal.mp3-04cdd511ddc3c52186868478be3df699.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

BIN
ui/Kenney Pixel.ttf Normal file

Binary file not shown.

View File

@@ -0,0 +1,34 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://cxsy0lcmx4shj"
path="res://.godot/imported/Kenney Pixel.ttf-ea0ba1af7a618281ed12ae4bb9dbfa6b.fontdata"
[deps]
source_file="res://ui/Kenney Pixel.ttf"
dest_files=["res://.godot/imported/Kenney Pixel.ttf-ea0ba1af7a618281ed12ae4bb9dbfa6b.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

BIN
ui/Rocket.mp3 Normal file

Binary file not shown.

19
ui/Rocket.mp3.import Normal file
View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://8su8i2fdv5b0"
path="res://.godot/imported/Rocket.mp3-a68900d95a69284de7e9b3c22983218e.mp3str"
[deps]
source_file="res://ui/Rocket.mp3"
dest_files=["res://.godot/imported/Rocket.mp3-a68900d95a69284de7e9b3c22983218e.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

BIN
ui/ammo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

34
ui/ammo.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cifu5rvbmveey"
path="res://.godot/imported/ammo.png-440272a6e8c516bc0986ccf8ee55bca7.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/ammo.png"
dest_files=["res://.godot/imported/ammo.png-440272a6e8c516bc0986ccf8ee55bca7.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/ammobar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

34
ui/ammobar.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://6e0sno8b8kp1"
path="res://.godot/imported/ammobar.png-d59079af03a80049797e29f6c70fd897.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/ammobar.png"
dest_files=["res://.godot/imported/ammobar.png-d59079af03a80049797e29f6c70fd897.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/armor_chip.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

34
ui/armor_chip.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bhc78ab33sstd"
path="res://.godot/imported/armor_chip.png-3b0512b136eac5e49aece69fbb4f16cd.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/armor_chip.png"
dest_files=["res://.godot/imported/armor_chip.png-3b0512b136eac5e49aece69fbb4f16cd.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/armorbar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

34
ui/armorbar.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c2blxg2oh7wsx"
path="res://.godot/imported/armorbar.png-9445f70843e08e2d4c34cdf146fef06c.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/armorbar.png"
dest_files=["res://.godot/imported/armorbar.png-9445f70843e08e2d4c34cdf146fef06c.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/armorhit.ogg Normal file

Binary file not shown.

19
ui/armorhit.ogg.import Normal file
View File

@@ -0,0 +1,19 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://bquih7puk711s"
path="res://.godot/imported/armorhit.ogg-58b8f4e133b4d48849ed42541a9e3e47.oggvorbisstr"
[deps]
source_file="res://ui/armorhit.ogg"
dest_files=["res://.godot/imported/armorhit.ogg-58b8f4e133b4d48849ed42541a9e3e47.oggvorbisstr"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

BIN
ui/blipSelect(4).wav Normal file

Binary file not shown.

View File

@@ -0,0 +1,24 @@
[remap]
importer="wav"
type="AudioStreamWAV"
uid="uid://c706bklll356l"
path="res://.godot/imported/blipSelect(4).wav-7d8acddd56355288b0ed226378e534c2.sample"
[deps]
source_file="res://ui/blipSelect(4).wav"
dest_files=["res://.godot/imported/blipSelect(4).wav-7d8acddd56355288b0ed226378e534c2.sample"]
[params]
force/8_bit=false
force/mono=false
force/max_rate=false
force/max_rate_hz=44100
edit/trim=false
edit/normalize=false
edit/loop_mode=0
edit/loop_begin=0
edit/loop_end=-1
compress/mode=0

9
ui/buttonsettings.tres Normal file
View File

@@ -0,0 +1,9 @@
[gd_resource type="LabelSettings" load_steps=2 format=3 uid="uid://ctjkw4olkyj6p"]
[ext_resource type="FontFile" uid="uid://cxsy0lcmx4shj" path="res://ui/Kenney Pixel.ttf" id="1_s60x0"]
[resource]
font = ExtResource("1_s60x0")
font_size = 128
outline_size = 22
outline_color = Color(0, 0, 0, 1)

9
ui/dialog_box.gd Normal file
View File

@@ -0,0 +1,9 @@
extends Area3D
@export_multiline var strings: Array[String]
func _on_body_entered(body: Node3D) -> void:
if body is Player:
HudSignalBus.roll_dialog.emit(strings)

44
ui/dialogbox.gd Normal file
View File

@@ -0,0 +1,44 @@
extends TextureRect
@onready var label: Label = $MarginContainer/Label
var current_string : int = 0
var current_strings : Array[String]
@onready var timer: Timer = $Timer
signal dialog_page_finished
@onready var enternote: Label = $ENTERNOTE
func _ready() -> void:
HudSignalBus.roll_dialog.connect(roll_dialog)
func roll_dialog(strings: Array[String]):
enternote.visible = false
get_tree().create_tween().tween_property(self, "position:y", 395, 1)
await get_tree().create_timer(1).timeout
current_strings = strings
current_string = 0
roll_page()
func roll_page():
enternote.visible = false
label.text = current_strings[current_string]
label.visible_characters = 0
timer.start()
current_string = current_string + 1
func _process(delta: float) -> void:
if Input.is_action_just_pressed("advance_dialog") and current_strings.size() > 0 and timer.is_stopped():
if current_string < current_strings.size():
roll_page()
else:
current_strings = []
label.text = ""
get_tree().create_tween().tween_property(self, "position:y", 648, 1)
func _on_timer_timeout() -> void:
if label.visible_characters < label.text.length():
label.visible_characters += 3
else:
enternote.visible = true
timer.stop()
dialog_page_finished.emit()

7
ui/grabber.tres Normal file
View File

@@ -0,0 +1,7 @@
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://df85ux2pf7kt"]
[ext_resource type="Texture2D" uid="uid://dq635fgef7krw" path="res://ui/raiderbutton.png" id="1_dw6yo"]
[resource]
atlas = ExtResource("1_dw6yo")
region = Rect2(281, 81.5, 55, 55)

7
ui/grabbergrabbed.tres Normal file
View File

@@ -0,0 +1,7 @@
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://c7hkswt8vjxr8"]
[ext_resource type="Texture2D" uid="uid://dq635fgef7krw" path="res://ui/raiderbutton.png" id="1_wdg66"]
[resource]
atlas = ExtResource("1_wdg66")
region = Rect2(285, 85.5, 50, 50)

290
ui/hud.tscn Normal file
View File

@@ -0,0 +1,290 @@
[gd_scene load_steps=24 format=3 uid="uid://bjplc6hm4ce4o"]
[ext_resource type="Texture2D" uid="uid://cf8xg6bohoij0" path="res://ui/target.png" id="1_8is2x"]
[ext_resource type="Script" path="res://ui/target_reticle.gd" id="2_vb68s"]
[ext_resource type="Texture2D" uid="uid://biwtstdgbcrey" path="res://ui/raider_uii.png" id="3_cgh4y"]
[ext_resource type="Texture2D" uid="uid://6e0sno8b8kp1" path="res://ui/ammobar.png" id="4_ruqdu"]
[ext_resource type="Script" path="res://ui/weapon_progress_bar.gd" id="5_6eqwa"]
[ext_resource type="Texture2D" uid="uid://cifu5rvbmveey" path="res://ui/ammo.png" id="6_yr201"]
[ext_resource type="Texture2D" uid="uid://c2blxg2oh7wsx" path="res://ui/armorbar.png" id="7_bmin4"]
[ext_resource type="Texture2D" uid="uid://bhc78ab33sstd" path="res://ui/armor_chip.png" id="8_g0mxm"]
[ext_resource type="Texture2D" uid="uid://c5l30hicfpu7i" path="res://ui/missile_bar.png" id="8_ombef"]
[ext_resource type="Texture2D" uid="uid://33o2l11bfifq" path="res://ui/missile.png" id="9_dv7f0"]
[ext_resource type="Texture2D" uid="uid://dtnf1tacuer52" path="res://ui/raiderui v2.png" id="11_pixjs"]
[ext_resource type="Script" path="res://ui/dialogbox.gd" id="12_2f8jb"]
[ext_resource type="AudioStream" uid="uid://c706bklll356l" path="res://ui/blipSelect(4).wav" id="13_qfwy3"]
[ext_resource type="FontFile" uid="uid://cxsy0lcmx4shj" path="res://ui/Kenney Pixel.ttf" id="13_syern"]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_pw65h"]
particle_flag_disable_z = true
angle_min = 239.5
angle_max = 239.5
spread = 10.0
initial_velocity_min = 140.15
initial_velocity_max = 172.71
angular_velocity_min = 300.0
angular_velocity_max = 310.0
gravity = Vector3(0, 100, 0)
scale_min = 0.07
scale_max = 0.09
[sub_resource type="LabelSettings" id="LabelSettings_rqb8c"]
font_size = 128
outline_size = 20
outline_color = Color(0, 0, 0, 1)
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_imc84"]
particle_flag_disable_z = true
direction = Vector3(0, 1, 0)
spread = 5.0
initial_velocity_min = -2300.0
initial_velocity_max = -2300.0
angular_velocity_min = -180.0
angular_velocity_max = 180.0
gravity = Vector3(0, 98, 0)
scale_min = 0.08
scale_max = 0.08
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_8ihp0"]
particle_flag_disable_z = true
spread = 0.0
initial_velocity_min = 2000.0
initial_velocity_max = 2000.0
gravity = Vector3(0, 98, 0)
damping_min = 105.11
damping_max = 105.11
scale_min = 0.06
scale_max = 0.06
[sub_resource type="LabelSettings" id="LabelSettings_q0bbp"]
font = ExtResource("13_syern")
font_size = 92
[sub_resource type="LabelSettings" id="LabelSettings_8y4bg"]
font = ExtResource("13_syern")
font_size = 92
[sub_resource type="Animation" id="Animation_q0r4o"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_rhbqr"]
resource_name = "new_animation"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:modulate")
tracks/0/interp = 0
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_o3jym"]
_data = {
"RESET": SubResource("Animation_q0r4o"),
"new_animation": SubResource("Animation_rhbqr")
}
[node name="HUD" type="CanvasLayer"]
[node name="TargetReticle" type="TextureRect" parent="."]
modulate = Color(0.576471, 1, 0.494118, 1)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_8is2x")
script = ExtResource("2_vb68s")
[node name="TextureRect" type="TextureRect" parent="."]
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -127.0
offset_right = 507.0
offset_bottom = 380.0
grow_vertical = 0
scale = Vector2(0.25, 0.25)
texture = ExtResource("3_cgh4y")
[node name="MinigunProgressBar" type="TextureProgressBar" parent="TextureRect"]
z_index = -1
layout_mode = 1
anchors_preset = -1
offset_left = 228.0
offset_top = 64.0
offset_right = 898.0
offset_bottom = 484.0
scale = Vector2(0.415, 0.415)
min_value = -50.0
value = 100.0
texture_progress = ExtResource("4_ruqdu")
script = ExtResource("5_6eqwa")
[node name="GPUParticles2D" type="GPUParticles2D" parent="TextureRect/MinigunProgressBar"]
z_index = -2
position = Vector2(173.494, 202.409)
scale = Vector2(9.63855, 9.63855)
emitting = false
amount = 16
process_material = SubResource("ParticleProcessMaterial_pw65h")
texture = ExtResource("6_yr201")
lifetime = 2.0
speed_scale = 1.5
fixed_fps = 60
[node name="Label" type="Label" parent="TextureRect/MinigunProgressBar"]
visible = false
z_index = 1
layout_mode = 0
offset_left = -39.0
offset_top = 96.0
offset_right = 229.0
offset_bottom = 310.0
text = "999"
label_settings = SubResource("LabelSettings_rqb8c")
horizontal_alignment = 1
vertical_alignment = 1
[node name="ArmorProgressBar" type="TextureProgressBar" parent="TextureRect"]
z_index = -1
layout_mode = 0
offset_left = 44.0
offset_top = 16.0
offset_right = 727.0
offset_bottom = 1386.0
scale = Vector2(0.243, 0.29)
value = 100.0
fill_mode = 3
texture_progress = ExtResource("7_bmin4")
script = ExtResource("5_6eqwa")
weapon_signal_name = "armor"
[node name="GPUParticles2D" type="GPUParticles2D" parent="TextureRect/ArmorProgressBar"]
position = Vector2(329.218, 1379.31)
emitting = false
amount = 24
process_material = SubResource("ParticleProcessMaterial_imc84")
texture = ExtResource("8_g0mxm")
lifetime = 3.0
speed_scale = 2.0
[node name="Label" type="Label" parent="TextureRect/ArmorProgressBar"]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 23.0
[node name="MissileProgressBar" type="TextureProgressBar" parent="TextureRect"]
z_index = -1
layout_mode = 0
offset_left = 276.0
offset_top = 240.0
offset_right = 1257.0
offset_bottom = 1089.0
scale = Vector2(0.245, 0.245)
min_value = -25.0
value = 100.0
texture_progress = ExtResource("8_ombef")
script = ExtResource("5_6eqwa")
weapon_signal_name = "missile"
[node name="Label" type="Label" parent="TextureRect/MissileProgressBar"]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 23.0
[node name="GPUParticles2D" type="GPUParticles2D" parent="TextureRect/MissileProgressBar"]
z_index = -1
position = Vector2(97.9592, 293.878)
emitting = false
amount = 12
process_material = SubResource("ParticleProcessMaterial_8ihp0")
texture = ExtResource("9_dv7f0")
lifetime = 2.0
speed_scale = 2.0
fixed_fps = 60
[node name="Dialogbox" type="TextureRect" parent="."]
anchors_preset = -1
anchor_top = 0.283333
anchor_right = 0.292266
anchor_bottom = 0.413333
offset_left = 263.0
offset_top = 291.0
offset_right = 1135.9
offset_bottom = 582.2
grow_vertical = 2
scale = Vector2(0.3, 0.2)
texture = ExtResource("11_pixjs")
script = ExtResource("12_2f8jb")
[node name="MarginContainer" type="MarginContainer" parent="Dialogbox"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 64
theme_override_constants/margin_top = 64
theme_override_constants/margin_right = 64
theme_override_constants/margin_bottom = 64
[node name="Label" type="Label" parent="Dialogbox/MarginContainer"]
custom_minimum_size = Vector2(200, 400)
layout_mode = 2
label_settings = SubResource("LabelSettings_q0bbp")
vertical_alignment = 1
autowrap_mode = 2
[node name="Timer" type="Timer" parent="Dialogbox"]
wait_time = 0.05
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="Dialogbox"]
stream = ExtResource("13_qfwy3")
volume_db = -15.0
bus = &"SFX"
[node name="ENTERNOTE" type="Label" parent="Dialogbox"]
visible = false
layout_mode = 0
offset_left = 936.667
offset_top = 290.002
offset_right = 1186.67
offset_bottom = 360.002
text = "ENTER ->"
label_settings = SubResource("LabelSettings_8y4bg")
[node name="AnimationPlayer" type="AnimationPlayer" parent="Dialogbox/ENTERNOTE"]
libraries = {
"": SubResource("AnimationLibrary_o3jym")
}
autoplay = "new_animation"
[connection signal="timeout" from="Dialogbox/Timer" to="Dialogbox" method="_on_timer_timeout"]
[connection signal="timeout" from="Dialogbox/Timer" to="Dialogbox/AudioStreamPlayer" method="play"]

BIN
ui/missile.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

34
ui/missile.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://33o2l11bfifq"
path="res://.godot/imported/missile.png-638d0d9da549cd7130ba3b18e6c170ab.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/missile.png"
dest_files=["res://.godot/imported/missile.png-638d0d9da549cd7130ba3b18e6c170ab.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/missile_bar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

34
ui/missile_bar.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c5l30hicfpu7i"
path="res://.godot/imported/missile_bar.png-74808ae3082f76c7579716b45a845e4b.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/missile_bar.png"
dest_files=["res://.godot/imported/missile_bar.png-74808ae3082f76c7579716b45a845e4b.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/raider title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://c6x7cpyc3s57s"
path="res://.godot/imported/raider title.png-6072a547477597e3a8d945bec2ba2ed8.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/raider title.png"
dest_files=["res://.godot/imported/raider title.png-6072a547477597e3a8d945bec2ba2ed8.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

8
ui/raider_ui.mtl Normal file
View File

@@ -0,0 +1,8 @@
# WaveFront *.mtl file (generated by Autodesk ATF)
newmtl Steel_-_Satin_(1)
Kd 0.000000 0.000000 0.000000
newmtl Steel_-_Satin
Kd 0.000000 0.000000 0.000000

BIN
ui/raider_uii.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

34
ui/raider_uii.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://biwtstdgbcrey"
path="res://.godot/imported/raider_uii.png-825016fd6589fff7eb9215d094474df3.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/raider_uii.png"
dest_files=["res://.godot/imported/raider_uii.png-825016fd6589fff7eb9215d094474df3.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/raiderbutton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dq635fgef7krw"
path="res://.godot/imported/raiderbutton.png-ce570d50bfc4c5b6fab872e60935f802.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/raiderbutton.png"
dest_files=["res://.godot/imported/raiderbutton.png-ce570d50bfc4c5b6fab872e60935f802.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/raiderbuttonpressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dtiygj2v6kfpw"
path="res://.godot/imported/raiderbuttonpressed.png-0d936b307b7cd93f8bc8491818e60b88.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/raiderbuttonpressed.png"
dest_files=["res://.godot/imported/raiderbuttonpressed.png-0d936b307b7cd93f8bc8491818e60b88.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/raiderui v2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

34
ui/raiderui v2.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dtnf1tacuer52"
path="res://.godot/imported/raiderui v2.png-cd9051398ed719d2dbbe220edf92ff26.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/raiderui v2.png"
dest_files=["res://.godot/imported/raiderui v2.png-cd9051398ed719d2dbbe220edf92ff26.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
ui/rough_sketch3.mp3 Normal file

Binary file not shown.

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://nmgx57isjld3"
path="res://.godot/imported/rough_sketch3.mp3-a3378f10c0a608923c77803ddafb6864.mp3str"
[deps]
source_file="res://ui/rough_sketch3.mp3"
dest_files=["res://.godot/imported/rough_sketch3.mp3-a3378f10c0a608923c77803ddafb6864.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

18
ui/start_button.gd Normal file
View File

@@ -0,0 +1,18 @@
extends TextureButton
@onready var color_rect: ColorRect = $"../ColorRect"
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
func _on_pressed() -> void:
get_tree().create_tween().tween_property(color_rect, "color", Color.BLACK, 1)
await get_tree().create_timer(1).timeout
get_tree().change_scene_to_file("res://level/level_2.tscn")

BIN
ui/target.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

34
ui/target.png.import Normal file
View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cf8xg6bohoij0"
path="res://.godot/imported/target.png-3debb5b15fab6478ba90d58d780f2869.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/target.png"
dest_files=["res://.godot/imported/target.png-3debb5b15fab6478ba90d58d780f2869.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

21
ui/target_reticle.gd Normal file
View File

@@ -0,0 +1,21 @@
extends TextureRect
var current_target : Node3D
var current_camera : Camera3D
func _ready() -> void:
HudSignalBus.current_camera_changed.connect(set_current_camera)
current_camera = HudSignalBus.current_camera
HudSignalBus.new_weapon_target.connect(set_current_target)
func set_current_camera(value):
current_camera = value
func set_current_target(value):
current_target = value
func _physics_process(delta: float) -> void:
if is_instance_valid(current_target):
position = current_camera.unproject_position(current_target.global_position)-Vector2(32,32)
else:
position = Vector2(-300,-300)

23
ui/weapon_progress_bar.gd Normal file
View File

@@ -0,0 +1,23 @@
extends TextureProgressBar
@export var weapon_signal_name = "minigun"
@onready var reset_position = position
var last_ammo : int = 99999
func _ready() -> void:
HudSignalBus.connect(weapon_signal_name, update)
func update(current_ammo : int, max_ammo : int):
if current_ammo < last_ammo:
last_ammo = current_ammo
$GPUParticles2D.emitting = true
get_tree().create_timer(0.1).timeout.connect(particle_foo)
value = (current_ammo*100.0)/max_ammo
$Label.text = str(current_ammo)
var tween = get_tree().create_tween()
tween.tween_property(self, "position", reset_position+(6*Vector2.ONE),.05)
tween.tween_property(self, "position", reset_position,.05)
func particle_foo():
$GPUParticles2D.emitting = false