adapted monster structure and save game

This commit is contained in:
Luca 2024-09-22 13:44:49 +02:00
parent 04873e3880
commit aa4afc4c4b
22 changed files with 358 additions and 183 deletions

View file

@ -1,7 +1,9 @@
class_name Monster
extends CharacterBody3D
@export var stats: MonsterStats
signal level_up
@export var stats: MonsterData = MonsterData.new()
var spawn_point: Vector3 = Vector3(0, 0, 0)
@ -9,7 +11,6 @@ var spawn_point: Vector3 = Vector3(0, 0, 0)
@onready var time: float = 16.0
@onready var frequency: float = 1.0
@onready var amplitude: float = 0.5
var in_battle: bool = false
# Called when the node enters the scene tree for the first time.