Skip to content

Commit

Permalink
Parry Dagger Prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
StaringLongingly committed Sep 8, 2024
1 parent 80560f5 commit 779f844
Show file tree
Hide file tree
Showing 30 changed files with 1,918 additions and 45 deletions.
528 changes: 528 additions & 0 deletions GamECC6.tmp

Large diffs are not rendered by default.

528 changes: 528 additions & 0 deletions GamFC9.tmp

Large diffs are not rendered by default.

528 changes: 528 additions & 0 deletions GamFD12.tmp

Large diffs are not rendered by default.

51 changes: 47 additions & 4 deletions Game.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[gd_scene load_steps=59 format=3 uid="uid://g4pomsca342k"]
[gd_scene load_steps=61 format=3 uid="uid://g4pomsca342k"]

[ext_resource type="Script" path="res://scripts/Spawn Enemies.gd" id="1_4y6e0"]
[ext_resource type="Texture2D" uid="uid://bx50dl8v58bq7" path="res://sprites/helmet.png" id="1_gwdp4"]
[ext_resource type="Script" path="res://scripts/HelmetFollowBody.gd" id="2_htryi"]
[ext_resource type="Script" path="res://scripts/character_body_2d.gd" id="3_qhakb"]
[ext_resource type="PackedScene" uid="uid://dl405np67k5lm" path="res://artifacts/scenes/Parrying Dagger.tscn" id="4_dt56w"]
[ext_resource type="Texture2D" uid="uid://2cit8h8jrbqo" path="res://sprites/drill_v3/drill_v3_1.png" id="7_t7ou3"]
[ext_resource type="Texture2D" uid="uid://cj3mww8f4q3hg" path="res://sprites/drill_v3/drill_v3_2.png" id="8_6xc34"]
[ext_resource type="Texture2D" uid="uid://cnp4wfv8jwj32" path="res://sprites/drill_v3/drill_v3_3.png" id="9_4s2rv"]
Expand Down Expand Up @@ -46,10 +47,10 @@
[ext_resource type="PackedScene" uid="uid://c4xp778afjv25" path="res://scenes/stack_artifact.tscn" id="39_ks1ve"]
[ext_resource type="PackedScene" uid="uid://cngy4em37bsf0" path="res://scenes/block.tscn" id="41_p7r45"]
[ext_resource type="Script" path="res://scripts/Generic Entity.gd" id="43_00hfy"]
[ext_resource type="Shader" path="res://shaders/CutoffArrow.gdshader" id="44_cptut"]
[ext_resource type="Texture2D" uid="uid://cb8wlwjjfv1mq" path="res://sprites/border.png" id="44_fuhxg"]
[ext_resource type="FontFile" uid="uid://6q2xyetu31xx" path="res://fonts/TerminessNerdFontMono-Bold.ttf" id="46_54msb"]
[ext_resource type="Shader" path="res://shaders/Cutoff.gdshader" id="48_egvxd"]
[ext_resource type="PackedScene" uid="uid://bpci6118aiv1h" path="res://enemies/common/Bombshroom.tscn" id="48_lq7pk"]
[ext_resource type="Texture2D" uid="uid://cqfn8bjxloegd" path="res://sprites/Chain 4 links.png" id="49_wfxxo"]

[sub_resource type="SpriteFrames" id="SpriteFrames_ai074"]
Expand Down Expand Up @@ -140,6 +141,12 @@ animations = [{
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0pqpx"]
bg_color = Color(0, 0, 0, 1)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_li3nl"]
shader = ExtResource("44_cptut")
shader_parameter/progress = 1.0
shader_parameter/angle = 15.0
shader_parameter/modulate = Vector4(1, 1, 1, 1)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_68dla"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_usk3l"]
Expand Down Expand Up @@ -185,6 +192,7 @@ hitParticles = ExtResource("26_2cqtc")
hpText = NodePath("HP display3")
hp = 300.0
hpRegenRate = 0.5
parryingDagger = ExtResource("4_dt56w")

[node name="Helmet" type="AnimatedSprite2D" parent="Player" node_paths=PackedStringArray("target") groups=["Player"]]
sprite_frames = SubResource("SpriteFrames_ai074")
Expand Down Expand Up @@ -346,6 +354,43 @@ offset_bottom = 400.0
scale = Vector2(100, 100)
color = Color(0, 0, 0, 0.788235)

[node name="Description_v3" type="RichTextLabel" parent="HUD"]
z_index = 1
custom_minimum_size = Vector2(208.575, 0)
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -192.0
offset_top = 101.0
offset_right = 33.125
offset_bottom = 232.0
grow_horizontal = 0
scale = Vector2(0.62, 0.485)
theme_override_fonts/normal_font = ExtResource("29_w8agl")
theme_override_fonts/italics_font = ExtResource("36_xikev")
theme_override_fonts/bold_italics_font = ExtResource("31_x1a1n")
theme_override_fonts/bold_font = ExtResource("32_xeoih")
theme_override_font_sizes/bold_italics_font_size = 25
theme_override_font_sizes/italics_font_size = 25
theme_override_font_sizes/mono_font_size = 25
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 25
bbcode_enabled = true
text = "[color=#000000]Parrying Dagger"

[node name="Dagger Cooldown" type="ColorRect" parent="HUD"]
material = SubResource("ShaderMaterial_li3nl")
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -202.0
offset_top = 100.0
offset_right = 198.0
offset_bottom = 500.0
grow_horizontal = 0
scale = Vector2(0.4, 0.05)
size_flags_horizontal = 8

[node name="Description_v2" type="RichTextLabel" parent="HUD"]
custom_minimum_size = Vector2(20, 0)
anchors_preset = 12
Expand Down Expand Up @@ -444,8 +489,6 @@ material = SubResource("ShaderMaterial_usk3l")
position = Vector2(2000, -20000)
sprite_frames = SubResource("SpriteFrames_toi1a")

[node name="Bombshroom" parent="." instance=ExtResource("48_lq7pk")]

[node name="Artifact" type="Node2D" parent="." node_paths=PackedStringArray("searchLabel", "itemCountLabel")]
script = ExtResource("37_nqwky")
searchLabel = NodePath("../HUD/Search")
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ You can find the version posted to the jam on the init commit.
- Hold shift to lock the drill rotation
- Drill Energy makes drilling faster
- Press Space to Dash (Consumes the 3 least valuable items)
- Press F to Parry enemy attacks
- Press Q, E, or R to search each inventory
- Type the ID of the item you want to select
- Press Left Click to use it
4 changes: 2 additions & 2 deletions artifacts/scenes/Bat Bite.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ angleVariation = 10.0
rotateSpeed = 360.0
distanceFromBody = 0.5

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
position = Vector2(14, -7)
Expand Down
6 changes: 3 additions & 3 deletions artifacts/scenes/Bite.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ DamageOverTimeDuration = 5.0
weaponType = "melee"
angleVariation = 10.0
rotateSpeed = 360.0
distanceFromBody = 1
distanceFromBody = 0.5

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-112, 78.75, -93.5, 107.75, 27, 115.75, 141, 92.75, 207.25, 29.75, 195.5, -23.5, 140.5, -90.25, 60.75, -104.25, -54.75, -84, -114.25, -0.5, -123.25, 50.5)
Expand Down
2 changes: 1 addition & 1 deletion artifacts/scenes/Bombshroom Explosion.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ animationDuration = 1.0
[node name="Area2D" type="Area2D" parent="."]
scale = Vector2(5, 5)
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionShape2D" parent="Area2D"]
scale = Vector2(50, 50)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Bombshroom Mortar.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ angleVariation = 10.0
mortarDelay = 2.0
explosionScene = ExtResource("3_uplb1")

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(216, 504, 240, -234, -5, -509, -242, -234, -216, 502)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Elven Sword Blade.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ angleVariation = 2.0
bulletSpeed = 20.0
bulletPenetration = 1

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(12.6667, 396, 50, 301.333, 66.6667, -12, 42.6667, -385.333, -18, -404.667, -44.6667, -360, -52.6667, 299.333, -22.6667, 398)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Hatchet.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ angleVariation = 20.0
rotateSpeed = -1440.0
bulletSpeed = 25.0

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-150, -140, 96, -266, 156, 64, 122, 461, 255, 495, 313, -351, 298, -508, -97, -463, -312, -361, -286, 132)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Magic Ball.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ rotateSpeed = 180.0
bulletSpeed = 5.0
bulletPenetration = 5

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-150, -140, 96, -266, 156, 64, 122, 461, 255, 495, 313, -351, 298, -508, -97, -463, -312, -361, -286, 132)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Old Pickaxe.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ angleVariation = 10.0
rotateSpeed = 360.0
bulletPenetration = 99

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)
Expand Down
43 changes: 43 additions & 0 deletions artifacts/scenes/Par1BE1.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[gd_scene load_steps=4 format=3 uid="uid://dl405np67k5lm"]

[ext_resource type="Texture2D" uid="uid://rj7hevv3oa1f" path="res://artifacts/sprites/Old Pickaxe.png" id="1_ohydw"]
[ext_resource type="Script" path="res://scripts/Generic Consumable.gd" id="2_tfvwb"]

[sub_resource type="SpriteFrames" id="SpriteFrames_jq806"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_ohydw")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="Parrying Dagger" type="AnimatedSprite2D" groups=["Parry"]]
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_jq806")
script = ExtResource("2_tfvwb")
itemRarity = "common"
damage = 5.0
DamageOverTimeDuration = 0.0
weaponType = "melee"
angleVariation = 10.0
rotateSpeed = 360.0
bulletPenetration = 99

[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)

[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["Parry"]]
collision_layer = 288
collision_mask = 32

[node name="Hitbox" type="CollisionPolygon2D" parent="CharacterBody2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
43 changes: 43 additions & 0 deletions artifacts/scenes/Par9379.tmp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[gd_scene load_steps=4 format=3 uid="uid://dl405np67k5lm"]

[ext_resource type="Texture2D" uid="uid://rj7hevv3oa1f" path="res://artifacts/sprites/Old Pickaxe.png" id="1_ohydw"]
[ext_resource type="Script" path="res://scripts/Generic Consumable.gd" id="2_tfvwb"]

[sub_resource type="SpriteFrames" id="SpriteFrames_jq806"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_ohydw")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="Parrying Dagger" type="AnimatedSprite2D"]
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_jq806")
script = ExtResource("2_tfvwb")
itemRarity = "common"
damage = 5.0
DamageOverTimeDuration = 0.0
weaponType = "melee"
angleVariation = 10.0
rotateSpeed = 360.0
bulletPenetration = 99

[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)

[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["Parry"]]
collision_layer = 288
collision_mask = 32

[node name="Hitbox" type="CollisionPolygon2D" parent="CharacterBody2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
42 changes: 42 additions & 0 deletions artifacts/scenes/Parrying Dagger.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[gd_scene load_steps=4 format=3 uid="uid://dl405np67k5lm"]

[ext_resource type="Texture2D" uid="uid://rj7hevv3oa1f" path="res://artifacts/sprites/Old Pickaxe.png" id="1_ohydw"]
[ext_resource type="Script" path="res://scripts/Generic Consumable.gd" id="2_tfvwb"]

[sub_resource type="SpriteFrames" id="SpriteFrames_jq806"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_ohydw")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]

[node name="Parrying Dagger" type="AnimatedSprite2D" groups=["Parry"]]
scale = Vector2(1.2, 1.2)
sprite_frames = SubResource("SpriteFrames_jq806")
script = ExtResource("2_tfvwb")
damage = 5.0
DamageOverTimeDuration = 0.0
weaponType = "melee"
angleVariation = 10.0
rotateSpeed = 500.0
bulletPenetration = 99

[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)

[node name="CharacterBody2D" type="CharacterBody2D" parent="." groups=["Parry"]]
collision_layer = 288
collision_mask = 32

[node name="Hitbox" type="CollisionPolygon2D" parent="CharacterBody2D"]
polygon = PackedVector2Array(-39.5, 1.5, -43, 396.5, 41.5, 397.5, 40.5, -363.5, 153.5, -361, 360.5, -260, 461.5, -205.5, 311.5, -399, 233, -449, 7, -452.5, -176, -457.5, -297.5, -404, -405.5, -292, -498.5, -171, -303.5, -287.5, -148.5, -351.5, -47.5, -357.5)

[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
4 changes: 2 additions & 2 deletions artifacts/scenes/Rocks.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ damage = 10.0
angleVariation = 10.0
rotateSpeed = 360.0

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(390, -132.5, 497.5, -30, 497.5, 235, 480, 360, 432.5, 407.5, -147.5, 412.5, -235, 492.5, -427.5, 295, -427.5, -42.5, -505, -117.5, -500, -240, -345, -392.5, -140, -385, -35, -495, 220, -495, 335, -380, 335, -207.5)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Ruined Dwarven Crossbow.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ angleVariation = 2.0
bulletSpeed = 15.0
bulletPenetration = 2

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(12.6667, 396, 50, 301.333, 66.6667, -12, 42.6667, -385.333, -18, -404.667, -44.6667, -360, -52.6667, 299.333, -22.6667, 398)
Expand Down
4 changes: 2 additions & 2 deletions artifacts/scenes/Rusty Nails.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ DamageOverTimeDuration = 10.0
angleVariation = 30.0
bulletSpeed = 30.0

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
polygon = PackedVector2Array(-175, 500, 198.333, 498.333, 468.333, 360, 323.333, -415, -315, -503.333, -505, 270)
Expand Down
6 changes: 3 additions & 3 deletions artifacts/scenes/Uruk Daggers.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ animations = [{
"speed": 5.0
}]

[node name="Uruk Dagger" type="AnimatedSprite2D"]
[node name="Uruk Daggers" type="AnimatedSprite2D"]
scale = Vector2(0.8, 0.8)
sprite_frames = SubResource("SpriteFrames_u1e0j")
script = ExtResource("2_1uutq")
Expand All @@ -25,9 +25,9 @@ DamageOverTimeDuration = 5.0
angleVariation = 3.0
bulletSpeed = 20.0

[node name="Area2D" type="Area2D" parent="."]
[node name="Area2D" type="Area2D" parent="." groups=["Artifact"]]
collision_layer = 32
collision_mask = 192
collision_mask = 224

[node name="Hitbox" type="CollisionPolygon2D" parent="Area2D"]
scale = Vector2(0.954639, 1.01036)
Expand Down
Loading

0 comments on commit 779f844

Please sign in to comment.