fixed camera script and restructured ui folder
This commit is contained in:
parent
877ebafc74
commit
5748d34b34
32 changed files with 781 additions and 162 deletions
|
|
@ -1,8 +1,6 @@
|
|||
class_name Monster
|
||||
extends CharacterBody3D
|
||||
|
||||
signal level_up
|
||||
|
||||
@export var data: MonsterData = MonsterData.new()
|
||||
|
||||
var spawn_point: Vector3 = Vector3(0, 0, 0)
|
||||
|
|
@ -28,8 +26,9 @@ func _physics_process(delta: float) -> void:
|
|||
|
||||
time += delta
|
||||
var x_movement = sin(time * frequency) * amplitude
|
||||
var y_movement = sin(time * 25) * 4.0
|
||||
var z_movement = cos(time * frequency) * amplitude
|
||||
velocity = Vector3(x_movement, 0, z_movement)
|
||||
velocity = Vector3(x_movement, y_movement, z_movement)
|
||||
|
||||
# if move_and_slide reports collisions
|
||||
if move_and_slide():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue