diff --git a/scripts/AbilityPlayer.gd b/scripts/AbilityPlayer.gd index d5e4ce0..08cd489 100644 --- a/scripts/AbilityPlayer.gd +++ b/scripts/AbilityPlayer.gd @@ -6,15 +6,16 @@ enum TARGTYPES { SINGLE, CLEAVE, CHAIN, SWIPE, WAVE, AREA, RAY } enum PDMGTYPES { SLICE, PUNCTURE, BASH, HACK, SHRED } enum MDMGTYPES { BURN, FREEZE, SHOCK, POISON, LIFE, RADIANT, ARCANE, FORCE } -var middleX -var playerPos - @export var attack_range := 0 @export var attack_type := TARGTYPES.SINGLE @export var attack_damage := 200 @export var attack_speed := 1.0 +var middleX +var playerPos + + func _ready() -> void: middleX = get_viewport_rect().size.x/2 diff --git a/scripts/NPC.gd b/scripts/NPC.gd index 10c992c..b5bbd9c 100644 --- a/scripts/NPC.gd +++ b/scripts/NPC.gd @@ -1,3 +1,4 @@ +# base NPC class class_name NPC extends CharacterBody2D diff --git a/scripts/NPCEnemy.gd b/scripts/NPCEnemy.gd index a8d6eda..238aeca 100644 --- a/scripts/NPCEnemy.gd +++ b/scripts/NPCEnemy.gd @@ -1,3 +1,4 @@ +# base NPCEnemy class class_name NPCEnemy extends NPC