Update items
This commit is contained in:
16
src/items/PickupItem.gdshader
Normal file
16
src/items/PickupItem.gdshader
Normal file
@@ -0,0 +1,16 @@
|
||||
shader_type spatial;
|
||||
render_mode unshaded, depth_draw_never;
|
||||
|
||||
uniform vec4 shine_color : source_color = vec4( 1.0, 1.0, 1.0, 1.0 );
|
||||
uniform float cycle_interval : hint_range(0.5, 5.0) = 1.0;
|
||||
uniform float shine_speed : hint_range(1.0, 5.0) = 3.0;
|
||||
uniform float shine_width : hint_range(1.0, 100.0) = 3.0;
|
||||
|
||||
void fragment( )
|
||||
{
|
||||
vec3 vertex = ( INV_VIEW_MATRIX * vec4( VERTEX, 1.0 ) ).xyz;
|
||||
float width = shine_width * 0.001 * cycle_interval;
|
||||
float frequency = floor( sin( vertex.z * cycle_interval + TIME * shine_speed * cycle_interval ) + width );
|
||||
ALBEDO = shine_color.rgb;
|
||||
ALPHA = clamp( ( 1.0 - dot( NORMAL, VIEW ) ) * frequency * shine_color.a, 0.0, 1.0 );
|
||||
}
|
||||
@@ -16,7 +16,7 @@ collision_mask = 4
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0322805, 0)
|
||||
pixel_size = 0.0003
|
||||
pixel_size = 0.0006
|
||||
billboard = 2
|
||||
double_sided = false
|
||||
alpha_cut = 1
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.9 KiB |
@@ -28,7 +28,7 @@ collision_mask = 4
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0322805, 0)
|
||||
pixel_size = 0.001
|
||||
pixel_size = 0.002
|
||||
billboard = 2
|
||||
double_sided = false
|
||||
alpha_cut = 1
|
||||
|
||||
16
src/items/consumable/resources/AmritShard.tres
Normal file
16
src/items/consumable/resources/AmritShard.tres
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=3 format=3 uid="uid://d0cxrf0nldona"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://ttmu3vttq8yo" path="res://src/items/consumable/textures/amrit shard.PNG" id="1_f1n30"]
|
||||
[ext_resource type="Script" path="res://src/items/consumable/ConsumableItemStats.cs" id="2_riwik"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_riwik")
|
||||
HealHPAmount = 60
|
||||
RaiseHPAmount = 16
|
||||
HealVTAmount = 0
|
||||
RaiseVTAmount = 0
|
||||
Name = "Amrit Shard"
|
||||
Description = "A droplet of the heavenly elixir, frozen in time.
|
||||
Restores 60 HP. If HP full, raises MAX HP by 16."
|
||||
Texture = ExtResource("1_f1n30")
|
||||
SpawnRate = 0.5
|
||||
16
src/items/consumable/resources/PastSelfRemnant.tres
Normal file
16
src/items/consumable/resources/PastSelfRemnant.tres
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=3 format=3 uid="uid://dns281deffo6q"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bg47n2tmintm0" path="res://src/items/consumable/textures/past self remnant.PNG" id="1_rc8t1"]
|
||||
[ext_resource type="Script" path="res://src/items/consumable/ConsumableItemStats.cs" id="2_e61q8"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_e61q8")
|
||||
HealHPAmount = 30
|
||||
RaiseHPAmount = 8
|
||||
HealVTAmount = 0
|
||||
RaiseVTAmount = 0
|
||||
Name = "Ydunic Shard"
|
||||
Description = "A fragment of the divine fruit, frozen in time.
|
||||
Restores 30 HP. If HP full, raises MAX HP by 8."
|
||||
Texture = ExtResource("1_rc8t1")
|
||||
SpawnRate = 0.5
|
||||
15
src/items/consumable/resources/PastSelfSpirit.tres
Normal file
15
src/items/consumable/resources/PastSelfSpirit.tres
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=3 format=3 uid="uid://bnec53frgyue8"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cj0x1u7rknrvy" path="res://src/items/consumable/textures/past self spirit.PNG" id="1_jx43p"]
|
||||
[ext_resource type="Script" path="res://src/items/consumable/ConsumableItemStats.cs" id="2_wmtl1"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_wmtl1")
|
||||
HealHPAmount = 0
|
||||
RaiseHPAmount = 0
|
||||
HealVTAmount = 1000
|
||||
RaiseVTAmount = 25
|
||||
Name = "Past Self's Spirit"
|
||||
Description = "Restores all VT. If VT full, raises MAX VT by 20."
|
||||
Texture = ExtResource("1_jx43p")
|
||||
SpawnRate = 0.5
|
||||
16
src/items/consumable/resources/SunaFragment.tres
Normal file
16
src/items/consumable/resources/SunaFragment.tres
Normal file
@@ -0,0 +1,16 @@
|
||||
[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=3 format=3 uid="uid://ypw2yg10430p"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dbl5v5i1s3m2u" path="res://src/items/consumable/textures/stelo fragment.PNG" id="1_2qtta"]
|
||||
[ext_resource type="Script" path="res://src/items/consumable/ConsumableItemStats.cs" id="2_41hue"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_41hue")
|
||||
HealHPAmount = 0
|
||||
RaiseHPAmount = 0
|
||||
HealVTAmount = 60
|
||||
RaiseVTAmount = 20
|
||||
Name = "Suna Fragment"
|
||||
Description = "A large gathered piece of the former heavens.
|
||||
Restores 30 VT. If VT full, raises MAX VT by 10."
|
||||
Texture = ExtResource("1_2qtta")
|
||||
SpawnRate = 0.5
|
||||
15
src/items/consumable/resources/YdunicShard.tres
Normal file
15
src/items/consumable/resources/YdunicShard.tres
Normal file
@@ -0,0 +1,15 @@
|
||||
[gd_resource type="Resource" script_class="ConsumableItemStats" load_steps=3 format=3 uid="uid://lu0ddu3538p6"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dw06kkltgk3sv" path="res://src/items/consumable/textures/ydunic fragment.PNG" id="1_4llax"]
|
||||
[ext_resource type="Script" path="res://src/items/consumable/ConsumableItemStats.cs" id="2_q4pyq"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_q4pyq")
|
||||
HealHPAmount = 1000
|
||||
RaiseHPAmount = 25
|
||||
HealVTAmount = 0
|
||||
RaiseVTAmount = 0
|
||||
Name = "Ydunic Shard"
|
||||
Description = "Restores all HP. If HP full, raises MAX HP by 8."
|
||||
Texture = ExtResource("1_4llax")
|
||||
SpawnRate = 0.5
|
||||
BIN
src/items/consumable/textures/amrit shard.PNG
Normal file
BIN
src/items/consumable/textures/amrit shard.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
@@ -2,27 +2,26 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cgoubcl86pib4"
|
||||
path.s3tc="res://.godot/imported/armor.png-09542d6705cb16e2f3946b1b9613fb06.s3tc.ctex"
|
||||
uid="uid://ttmu3vttq8yo"
|
||||
path="res://.godot/imported/amrit shard.PNG-23a55a1bb7d06a5be7415aa697551420.ctex"
|
||||
metadata={
|
||||
"imported_formats": ["s3tc_bptc"],
|
||||
"vram_texture": true
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/armor/armor.png"
|
||||
dest_files=["res://.godot/imported/armor.png-09542d6705cb16e2f3946b1b9613fb06.s3tc.ctex"]
|
||||
source_file="res://src/items/consumable/textures/amrit shard.PNG"
|
||||
dest_files=["res://.godot/imported/amrit shard.PNG-23a55a1bb7d06a5be7415aa697551420.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=2
|
||||
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=true
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
BIN
src/items/consumable/textures/past self remnant.PNG
Normal file
BIN
src/items/consumable/textures/past self remnant.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
34
src/items/consumable/textures/past self remnant.PNG.import
Normal file
34
src/items/consumable/textures/past self remnant.PNG.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bg47n2tmintm0"
|
||||
path="res://.godot/imported/past self remnant.PNG-ea5a4a4ccf2107f35ad1f867c61e12ee.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/consumable/textures/past self remnant.PNG"
|
||||
dest_files=["res://.godot/imported/past self remnant.PNG-ea5a4a4ccf2107f35ad1f867c61e12ee.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=0
|
||||
BIN
src/items/consumable/textures/past self spirit.PNG
Normal file
BIN
src/items/consumable/textures/past self spirit.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
34
src/items/consumable/textures/past self spirit.PNG.import
Normal file
34
src/items/consumable/textures/past self spirit.PNG.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cj0x1u7rknrvy"
|
||||
path="res://.godot/imported/past self spirit.PNG-75c61955a4c45cf77c3086abe5fb7c7f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/consumable/textures/past self spirit.PNG"
|
||||
dest_files=["res://.godot/imported/past self spirit.PNG-75c61955a4c45cf77c3086abe5fb7c7f.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=0
|
||||
BIN
src/items/consumable/textures/suna fragment.PNG
Normal file
BIN
src/items/consumable/textures/suna fragment.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.2 KiB |
34
src/items/consumable/textures/suna fragment.PNG.import
Normal file
34
src/items/consumable/textures/suna fragment.PNG.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bqyjjdgub6iem"
|
||||
path="res://.godot/imported/suna fragment.PNG-549d5b874b83189bde36ace3c7ae46c7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/consumable/textures/suna fragment.PNG"
|
||||
dest_files=["res://.godot/imported/suna fragment.PNG-549d5b874b83189bde36ace3c7ae46c7.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=0
|
||||
BIN
src/items/consumable/textures/ydunic fragment.PNG
Normal file
BIN
src/items/consumable/textures/ydunic fragment.PNG
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
34
src/items/consumable/textures/ydunic fragment.PNG.import
Normal file
34
src/items/consumable/textures/ydunic fragment.PNG.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dw06kkltgk3sv"
|
||||
path="res://.godot/imported/ydunic fragment.PNG-fc040e7fba1c332c8770eb9e76f5206b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://src/items/consumable/textures/ydunic fragment.PNG"
|
||||
dest_files=["res://.godot/imported/ydunic fragment.PNG-fc040e7fba1c332c8770eb9e76f5206b.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=0
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=9 format=3 uid="uid://1fl6s352e2ej"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://1fl6s352e2ej"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/items/throwable/ThrowableItem.cs" id="1_nac2l"]
|
||||
[ext_resource type="Resource" uid="uid://bph8c6by4s047" path="res://src/items/throwable/resources/GeomanticDice.tres" id="2_pefeg"]
|
||||
@@ -10,57 +10,19 @@ size = Vector3(0.371643, 0.289612, 0.286743)
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_03cqg"]
|
||||
size = Vector3(0.778381, 0.929947, 0.731567)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_d22ed"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Hitbox:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_7gvmx"]
|
||||
resource_name = "throw"
|
||||
length = 2.0
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Hitbox:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 2),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 1, 0), Vector3(0, 1, -15)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_qfght"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_d22ed"),
|
||||
"throw": SubResource("Animation_7gvmx")
|
||||
}
|
||||
|
||||
[node name="ThrowableItem" type="Node3D"]
|
||||
script = ExtResource("1_nac2l")
|
||||
ThrowableItemInfo = ExtResource("2_pefeg")
|
||||
|
||||
[node name="Hitbox" type="Area3D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
collision_layer = 16
|
||||
collision_mask = 16
|
||||
script = ExtResource("3_qpunu")
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Hitbox"]
|
||||
unique_name_in_owner = true
|
||||
pixel_size = 0.0005
|
||||
pixel_size = 0.001
|
||||
billboard = 2
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hitbox"]
|
||||
@@ -74,9 +36,3 @@ collision_mask = 4
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hitbox/Pickup"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0600509, 0.26725, 0.180481)
|
||||
shape = SubResource("BoxShape3D_03cqg")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
unique_name_in_owner = true
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_qfght")
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://db206brufi83s"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://db206brufi83s"]
|
||||
|
||||
[ext_resource type="Script" path="res://src/items/weapons/Weapon.cs" id="1_7pkyf"]
|
||||
[ext_resource type="Texture2D" uid="uid://cvtcsi2sagfwm" path="res://src/items/weapons/textures/SWAN SWORD.PNG" id="2_qxo05"]
|
||||
|
||||
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wll7p"]
|
||||
radius = 0.470016
|
||||
@@ -15,13 +16,13 @@ collision_mask = 4
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="Pickup"]
|
||||
unique_name_in_owner = true
|
||||
pixel_size = 0.0003
|
||||
transform = Transform3D(0.0978955, 0, 0.995197, 0, 1, 0, -0.995197, 0, 0.0978955, 0, 0.271026, 0)
|
||||
pixel_size = 0.0006
|
||||
billboard = 2
|
||||
double_sided = false
|
||||
alpha_cut = 1
|
||||
alpha_scissor_threshold = 0.511
|
||||
alpha_antialiasing_mode = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_qxo05")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Pickup"]
|
||||
shape = SubResource("CapsuleShape3D_wll7p")
|
||||
|
||||
Reference in New Issue
Block a user