decal for mortar

This commit is contained in:
Michael Campbell 2026-03-19 01:59:17 -04:00
parent ae7d507a4c
commit 829b383a2a
2 changed files with 26 additions and 0 deletions

View file

@ -13,6 +13,8 @@ const MOVE_SPEED := 7.5
const DASH_SPEED := 35.
const DASH_COST := .5
const MORTAR_IDX := 2
static var instance: Player
@export var shake_noise: FastNoiseLite
@ -143,6 +145,9 @@ func _process(delta: float) -> void:
gun_index = 1
if Input.is_action_just_pressed("mortar"):
gun_index = 2
%MortarDecal.visible = gun_index == MORTAR_IDX
%MortarDecal.global_position = %Reticle.global_position
func damage(damager: Node3D) -> void:
if health <= 0: return