feat: implemented combat basics

This commit is contained in:
Sara 2024-12-06 17:12:06 +01:00
parent fdea9b3fdc
commit c322abdaa4
56 changed files with 2809 additions and 518 deletions

View file

@ -0,0 +1,50 @@
[gd_scene load_steps=8 format=3 uid="uid://be2yogspyg40p"]
[ext_resource type="Material" uid="uid://cnpi4nqbif0st" path="res://particles/materials/dirt_splatters.tres" id="1_70hen"]
[sub_resource type="Curve" id="Curve_f77sp"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -3.4158, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_jj8d7"]
curve = SubResource("Curve_f77sp")
[sub_resource type="Curve" id="Curve_58b4i"]
max_value = 3.0
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.0803571, 0.990632), 0.0, 0.0, 0, 0, Vector2(1, 2.70316), 0.0, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_62j87"]
curve = SubResource("Curve_58b4i")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2cudr"]
particle_flag_align_y = true
particle_flag_rotate_y = true
angle_min = 1.07288e-05
angle_max = 720.0
direction = Vector3(0, 0, 1)
spread = 2.905
initial_velocity_min = 1.5
initial_velocity_max = 10.0
scale_max = 1.5
scale_curve = SubResource("CurveTexture_62j87")
scale_over_velocity_min = 1.0
scale_over_velocity_max = 5.0
alpha_curve = SubResource("CurveTexture_jj8d7")
[sub_resource type="QuadMesh" id="QuadMesh_ccn0f"]
material = ExtResource("1_70hen")
size = Vector2(1.5, 1.5)
[node name="ExplosionParticles" type="GPUParticles3D"]
transform = Transform3D(-1, 0, -8.74228e-08, -8.74228e-08, 4.37114e-08, 1, 0, 1, -4.37114e-08, 0, 0, 0)
emitting = false
amount = 20
lifetime = 1.5
one_shot = true
explosiveness = 0.99
fixed_fps = 60
visibility_aabb = AABB(-3, -3, -1, 6, 6, 10)
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_2cudr")
draw_pass_1 = SubResource("QuadMesh_ccn0f")

View file

@ -0,0 +1,13 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://cnpi4nqbif0st"]
[ext_resource type="Texture2D" uid="uid://evisqjqwkms5" path="res://particles/textures/dirt_splatters.png" id="1_3l7wc"]
[resource]
transparency = 1
vertex_color_use_as_albedo = true
albedo_texture = ExtResource("1_3l7wc")
billboard_mode = 3
billboard_keep_scale = true
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84a48be755cfda4d052cdde6eeb44a53ac5e6181723fe338cb9528175349ee8a
size 5020550

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://evisqjqwkms5"
path.s3tc="res://.godot/imported/dirt_splatters.png-0bb5e5bc05cbbd02895b9062e1744bad.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://particles/textures/dirt_splatters.png"
dest_files=["res://.godot/imported/dirt_splatters.png-0bb5e5bc05cbbd02895b9062e1744bad.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
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=0

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 KiB