finished third class. Character Pawn moving and attack with left and right attacks.

This commit is contained in:
2025-06-21 02:17:41 -03:00
parent c0e2efebd2
commit d8b4402926
196 changed files with 2580 additions and 3 deletions

BIN
Factions/Knights/Troops/Pawn/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://1bwuduv7605p"
path="res://.godot/imported/Pawn_Blue.png-5bd920ed37f90d6f8d7cb2439504a5e1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Factions/Knights/Troops/Pawn/Blue/Pawn_Blue.png"
dest_files=["res://.godot/imported/Pawn_Blue.png-5bd920ed37f90d6f8d7cb2439504a5e1.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

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://br5voork4a3wp"
path="res://.godot/imported/Pawn_Purple.png-c9038d81ce3161439ae009bd5a14ca22.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Factions/Knights/Troops/Pawn/Purple/Pawn_Purple.png"
dest_files=["res://.godot/imported/Pawn_Purple.png-c9038d81ce3161439ae009bd5a14ca22.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

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://byuu0tfas3s5k"
path="res://.godot/imported/Pawn_Red.png-2a61be4edb4d91cbc33cc4a84784c4a1.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Factions/Knights/Troops/Pawn/Red/Pawn_Red.png"
dest_files=["res://.godot/imported/Pawn_Red.png-2a61be4edb4d91cbc33cc4a84784c4a1.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

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://n56bn8grmos5"
path="res://.godot/imported/Pawn_Yellow.png-f1568d8a9404644544cbf2d5bcc3d86f.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Factions/Knights/Troops/Pawn/Yellow/Pawn_Yellow.png"
dest_files=["res://.godot/imported/Pawn_Yellow.png-f1568d8a9404644544cbf2d5bcc3d86f.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

@@ -0,0 +1,122 @@
[gd_scene load_steps=10 format=3 uid="uid://dsp8jku6h5xxa"]
[ext_resource type="PackedScene" uid="uid://dfbpq23nrtd23" path="res://Factions/Knights/Troops/base_character.tscn" id="1_d2j80"]
[ext_resource type="Texture2D" uid="uid://1bwuduv7605p" path="res://Factions/Knights/Troops/Pawn/Blue/Pawn_Blue.png" id="2_c6f2o"]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_c6f2o"]
radius = 6.0
[sub_resource type="Animation" id="Animation_lftkj"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Texture:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [0]
}
[sub_resource type="Animation" id="Animation_em6uh"]
resource_name = "attack_axe"
length = 0.6
step = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Texture:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [18, 19, 20, 21, 22, 23]
}
[sub_resource type="Animation" id="Animation_7phpi"]
resource_name = "attack_hammer"
length = 0.6
step = 0.6
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Texture:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [12, 13, 14, 15, 16, 17]
}
[sub_resource type="Animation" id="Animation_c6f2o"]
resource_name = "idle"
length = 0.6
loop_mode = 1
step = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Texture:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [0, 1, 2, 3, 4, 5]
}
[sub_resource type="Animation" id="Animation_4028v"]
resource_name = "run"
length = 0.6
loop_mode = 1
step = 0.1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Texture:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [6, 7, 8, 9, 10, 11]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_7phpi"]
_data = {
&"RESET": SubResource("Animation_lftkj"),
&"attack_axe": SubResource("Animation_em6uh"),
&"attack_hammer": SubResource("Animation_7phpi"),
&"idle": SubResource("Animation_c6f2o"),
&"run": SubResource("Animation_4028v")
}
[node name="Pawn" instance=ExtResource("1_d2j80")]
_move_speed = 192.0
_left_attack_name = "attack_hammer"
_right_attack_name = "attack_axe"
[node name="Texture" parent="." index="0"]
position = Vector2(0, -26)
texture = ExtResource("2_c6f2o")
hframes = 6
vframes = 6
[node name="Collision" parent="." index="1"]
show_behind_parent = true
rotation = 1.5708
shape = SubResource("CapsuleShape2D_c6f2o")
[node name="Animation" parent="." index="2"]
libraries = {
&"": SubResource("AnimationLibrary_7phpi")
}