rearrange some vars and add a couple comments

This commit is contained in:
tonydero 2024-10-16 15:16:54 -06:00
parent a0cef620e0
commit e0f78f3915
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -1,3 +1,4 @@
# base NPC class
class_name NPC
extends CharacterBody2D

View File

@ -1,3 +1,4 @@
# base NPCEnemy class
class_name NPCEnemy
extends NPC