rearrange some vars and add a couple comments
This commit is contained in:
parent
a0cef620e0
commit
e0f78f3915
@ -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
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# base NPC class
|
||||
class_name NPC
|
||||
extends CharacterBody2D
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# base NPCEnemy class
|
||||
class_name NPCEnemy
|
||||
extends NPC
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user