conforms file names to consistant standard

This commit is contained in:
2026-02-21 04:24:04 +11:00
parent 6b67dd9755
commit 5a4ad8633a
1991 changed files with 3836 additions and 7976 deletions

21
scripts/sprite_bobber.gd Normal file
View File

@@ -0,0 +1,21 @@
class_name SpriteBobber
extends Node
@export var character: EnemyController
@export var sprite: Node3D
@export var height: float = 0.1
var default_height: float = 0.0
var sample_point: float = 0.0
func _ready() -> void:
default_height = sprite.position.y
func _process(delta: float) -> void:
sample_point += delta * (character.stats.movement_speed * 2.0)
var y_offset: float = sin(sample_point * 2.0) / 2.0 + 0.5
var x_offset: float = cos(sample_point)
sprite.position.y = default_height + (y_offset * height)
sprite.position.x = x_offset * 0.05