Refactored a bit. Punching improved, for example
This commit is contained in:
1 parent
1e24e0a59a
commit
f1d7c8968a
8 files changed
+138
-65
No files matched your search
+5
-4
@@ -511,18 +511,19 @@ intent = "powerup"
|
||||
|
||||
[node name="Crates" type="Node" parent="."]
|
||||
|
||||
[node name="SmallCrate" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_u5sy4")]
|
||||
[node name="SmallCrate" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_u5sy4")]
|
||||
z_index = 10
|
||||
position = Vector2(-86, 25)
|
||||
|
||||
[node name="SmallCrate2" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_u5sy4")]
|
||||
[node name="SmallCrate2" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_u5sy4")]
|
||||
z_index = 10
|
||||
position = Vector2(229, -140)
|
||||
|
||||
[node name="SmallCrate3" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_u5sy4")]
|
||||
[node name="SmallCrate3" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_u5sy4")]
|
||||
z_index = 10
|
||||
position = Vector2(431, -222)
|
||||
|
||||
[node name="SmallCrate4" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_u5sy4")]
|
||||
[node name="SmallCrate4" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_u5sy4")]
|
||||
z_index = 10
|
||||
position = Vector2(-7, -210)
|
||||
|
||||
|
||||
+4
-4
@@ -511,19 +511,19 @@ intent = "powerup"
|
||||
|
||||
[node name="Crates" type="Node" parent="."]
|
||||
|
||||
[node name="SmallCrate" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_guvtl")]
|
||||
[node name="SmallCrate" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_guvtl")]
|
||||
z_index = 10
|
||||
position = Vector2(-146, -162)
|
||||
|
||||
[node name="SmallCrate2" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_guvtl")]
|
||||
[node name="SmallCrate2" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_guvtl")]
|
||||
z_index = 10
|
||||
position = Vector2(226, 60)
|
||||
|
||||
[node name="SmallCrate3" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_guvtl")]
|
||||
[node name="SmallCrate3" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_guvtl")]
|
||||
z_index = 10
|
||||
position = Vector2(623, 7)
|
||||
|
||||
[node name="SmallCrate4" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_guvtl")]
|
||||
[node name="SmallCrate4" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_guvtl")]
|
||||
z_index = 10
|
||||
position = Vector2(-433, -201)
|
||||
|
||||
|
||||
+4
-4
@@ -511,18 +511,18 @@ intent = "powerup"
|
||||
|
||||
[node name="Crates" type="Node" parent="."]
|
||||
|
||||
[node name="SmallCrate" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_5xqnf")]
|
||||
[node name="SmallCrate" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_5xqnf")]
|
||||
z_index = 10
|
||||
|
||||
[node name="SmallCrate2" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_5xqnf")]
|
||||
[node name="SmallCrate2" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_5xqnf")]
|
||||
z_index = 10
|
||||
position = Vector2(216, 52)
|
||||
|
||||
[node name="SmallCrate3" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_5xqnf")]
|
||||
[node name="SmallCrate3" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_5xqnf")]
|
||||
z_index = 10
|
||||
position = Vector2(-253, 10)
|
||||
|
||||
[node name="SmallCrate4" parent="Crates" groups=["explodable", "pushable"] instance=ExtResource("7_5xqnf")]
|
||||
[node name="SmallCrate4" parent="Crates" groups=["explodable", "punchable"] instance=ExtResource("7_5xqnf")]
|
||||
z_index = 10
|
||||
position = Vector2(-82, -5)
|
||||
|
||||
|
||||
+25
-11
@@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=56 format=3 uid="uid://d3y1iqmpknpyo"]
|
||||
[gd_scene load_steps=58 format=3 uid="uid://d3y1iqmpknpyo"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d3hp5rjoph7hg" path="res://scripts/player.gd" id="1_3vyb7"]
|
||||
[ext_resource type="Texture2D" uid="uid://dr3rp5hv7rexv" path="res://graphics/animations/player_idle/Player Idle 48x48.png" id="2_g2els"]
|
||||
[ext_resource type="Texture2D" uid="uid://uxdt2cgxicmt" path="res://graphics/animations/player_jump/player jump 48x48.png" id="3_dqkch"]
|
||||
[ext_resource type="Texture2D" uid="uid://bnnj3lw3souky" path="res://graphics/animations/player_punch/Player Punch 64x64(1).png" id="4_fjrip"]
|
||||
[ext_resource type="Texture2D" uid="uid://b27fd4xvrp2ov" path="res://graphics/animations/Player Jab 48x48.png" id="4_fjrip"]
|
||||
[ext_resource type="Texture2D" uid="uid://bgp8oow6hgh5o" path="res://graphics/animations/player_run/player run 48x48.png" id="4_qlg0r"]
|
||||
[ext_resource type="Texture2D" uid="uid://dadvc8tsvmkb6" path="res://graphics/animations/player_shoot/Player Running Shooting 48x48.png" id="5_tuyoq"]
|
||||
[ext_resource type="Texture2D" uid="uid://crll0t2wjtsly" path="res://graphics/animations/player_shoot/player shoot 2H 48x48.png" id="6_fjrip"]
|
||||
@@ -62,35 +62,43 @@ region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2dvfe"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(0, 0, 64, 64)
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_giy8y"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(64, 0, 64, 64)
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_fdfoy"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(128, 0, 64, 64)
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_hhpqf"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(192, 0, 64, 64)
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_g5jhy"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(256, 0, 64, 64)
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_holxr"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(320, 0, 64, 64)
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mx1m4"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(384, 0, 64, 64)
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4gjji"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(448, 0, 64, 64)
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_u2ulf"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(384, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6e8lb"]
|
||||
atlas = ExtResource("4_fjrip")
|
||||
region = Rect2(432, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_a8ls1"]
|
||||
atlas = ExtResource("4_qlg0r")
|
||||
@@ -273,6 +281,12 @@ animations = [{
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4gjji")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_u2ulf")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6e8lb")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"punch",
|
||||
@@ -399,7 +413,7 @@ position = Vector2(-16, -7)
|
||||
sprite_frames = SubResource("SpriteFrames_3vyb7")
|
||||
animation = &"punch"
|
||||
autoplay = "idle"
|
||||
frame = 7
|
||||
frame = 9
|
||||
frame_progress = 1.0
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
|
||||
Reference in new issue
Block a user