sword sprite

pull/3/head
HumanoidSandvichDispenser 2023-04-01 16:25:33 -07:00
parent 17840f2b64
commit 4d70037685
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
9 changed files with 50 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dp7osg05ip5oo"
path="res://.godot/imported/sword.png-592de964f347a2f78f681639f77bd886.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Assets/Sprites/sword.png"
dest_files=["res://.godot/imported/sword.png-592de964f347a2f78f681639f77bd886.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

View File

@ -165,7 +165,6 @@ y_sort_enabled = true
script = ExtResource("7_43gq8")
[node name="Sword" parent="Inventory" instance=ExtResource("8_s3c8r")]
Knockback = 40.0
[node name="FlashAnimation" type="AnimationPlayer" parent="."]
libraries = {

View File

@ -47,6 +47,12 @@ namespace SupaLidlGame.Items
public Character Character { get; set; }
[Export]
public float MinDistanceHint { get; set; }
[Export]
public float MaxDistanceHint { get; set; }
public override bool StacksWith(Item item) => false;
public override void Equip(Character character)

View File

@ -139,6 +139,8 @@ namespace SupaLidlGame.Items.Weapons
IsParried = true;
AnimationPlayer.SpeedScale = 0.25f;
Character.Stun(1.5f);
GD.Print(ParryTimeOrigin);
GD.Print(otherWeapon.ParryTimeOrigin);
GetNode<AudioStreamPlayer2D>("ParrySound").OnWorld().Play();
}
}

View File

@ -293,7 +293,7 @@ _data = {
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_1lid1"]
[sub_resource type="ConvexPolygonShape2D" id="ConvexPolygonShape2D_tv0o2"]
points = PackedVector2Array(-11.314, -11.314, 0, -16, 11.314, -11.314, 16, 0, 11.314, 11.314, 0, 16, -11.314, 11.314, 0, 0)
points = PackedVector2Array(-14.142, -14.142, 0, -20, 14.142, -14.142, 20, 0, 14.142, 14.142, 0, 20, -14.142, 14.142, 0, 0)
[node name="Sword" type="Node2D" node_paths=PackedStringArray("Hitbox", "AnimationPlayer", "ParryParticles")]
y_sort_enabled = true
@ -302,13 +302,10 @@ position = Vector2(2, 0)
script = ExtResource("1_mlo73")
Hitbox = NodePath("Hitbox")
AnimationPlayer = NodePath("AnimationPlayer")
AttackTime = 0.1
ParryParticles = NodePath("Anchor/Sprite2D/ParryParticles")
Damage = 20.0
UseTime = 0.8
Knockback = 80.0
ItemName = "Sword"
Description = "A basic sword."
UseTime = 0.5
Knockback = 20.0
[node name="Anchor" type="Node2D" parent="."]
y_sort_enabled = true

File diff suppressed because one or more lines are too long