Compare commits
2 Commits
5075426648
...
adc7138a8b
| Author | SHA1 | Date | |
|---|---|---|---|
| adc7138a8b | |||
| 8d0b2ec472 |
@ -11,3 +11,4 @@ _angle_degrees = Vector3(-50, -45, 0)
|
||||
|
||||
[node name="AudioListener3D" type="AudioListener3D" parent="."]
|
||||
top_level = true
|
||||
current = true
|
||||
|
||||
@ -58,6 +58,7 @@ func _process_following(delta: float) -> void:
|
||||
|
||||
global_position = follow_position + transform.basis.z * _distance
|
||||
_listener.global_position = follow_position
|
||||
_listener.global_rotation = global_rotation
|
||||
|
||||
|
||||
func _connect_player_signals(player: Player) -> void:
|
||||
|
||||
@ -89,9 +89,9 @@ func _destroy() -> void:
|
||||
|
||||
func _on_body_entered(node: Node3D) -> void:
|
||||
if node is Player:
|
||||
queue_free()
|
||||
var player := node as Player
|
||||
player.stats.damage()
|
||||
_destroy()
|
||||
return
|
||||
|
||||
if node is CollisionObject3D:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user