I HATE YOU

This commit is contained in:
pennyrigate 2024-07-05 21:01:19 -04:00
parent b3f1a30d13
commit 8e8869ba9f
16 changed files with 89 additions and 24 deletions

View file

@ -67,6 +67,16 @@ func hurt(amount: float) -> void:
func _attack() -> void:
var sg2083 := get_node(sg2083_path)
if sg2083.has_method("hurt"):
var r = RandomNumberGenerator.new()
r.randomize()
var snd = r.randi_range(0,2)
match snd:
0:
Audio.play_sound(Audio.a_mech_hurt_1,Audio.ac_die)
1:
Audio.play_sound(Audio.a_mech_hurt_2,Audio.ac_die)
2:
Audio.play_sound(Audio.a_mech_hurt_3,Audio.ac_die)
sg2083.hurt(punch_damage)
sg2083.knock_back(punch_knockback)

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=58 format=2]
[gd_scene load_steps=59 format=2]
[ext_resource path="res://objects/enemy/boss/famira.gd" type="Script" id=1]
[ext_resource path="res://shaders/scale3x.gdshader" type="Shader" id=2]
@ -4275,25 +4275,25 @@ collision_mask = 128
monitorable = false
[node name="Body" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 0.00461769, -23.9291 )
rotation = -0.0114693
position = Vector2( 0.00459766, -23.9291 )
rotation = -0.0114701
shape = SubResource( 13 )
[node name="Brain" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( 11.5072, -96.7914 )
position = Vector2( 11.5069, -96.7914 )
rotation = 2.48158
z_index = 100
shape = SubResource( 14 )
[node name="LowerJaw" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( -21.3082, -76.1166 )
position = Vector2( -21.3083, -76.1164 )
rotation = 1.66395
z_index = 100
shape = SubResource( 15 )
[node name="UpperJaw" type="CollisionShape2D" parent="Hitbox"]
position = Vector2( -21.8181, -103.259 )
rotation = -1.66238
position = Vector2( -21.8184, -103.259 )
rotation = -1.66239
z_index = 100
shape = SubResource( 16 )

View file

@ -38,7 +38,6 @@ onready var head_sprite = $"%Head"
func _physics_process(delta: float) -> void:
print(global_position)
match state:
State.DEAD:
return
@ -128,6 +127,7 @@ func knock_back(amount: float, can_duck: bool = false) -> void:
if can_duck and state == State.DUCK:
return
knockback += amount
print("YOWCH")
func _play_laser_sound(play: bool):

View file

@ -2242,7 +2242,7 @@ update_scale = false
[node name="KneeBack" type="Sprite" parent="Axle"]
modulate = Color( 0.74902, 0.74902, 0.74902, 1 )
position = Vector2( 6.25088, 28.1233 )
position = Vector2( 6.25089, 28.1233 )
scale = Vector2( 1, -1 )
z_index = -1
texture = ExtResource( 8 )