Implemented spawn points correctly. Added saving & loading (currently only implemented with the spawn_index). You can now set spawn indicies in the DynamicAreaLoader to automatically load when the game is set to that value (on ready). Added configuration warnings to DynamicAreaLoader & PlayerSpawnPoint Added some generic translation (pot) files. Added AudioManager autoload to play, stop, fade audio streams (and set the bus directly). Added SceneFader autoload. Added SaveManager autoload. Added OptionsMenu with currently only volume sliders and a fullscreen toggle button. Added PauseMenu
15 lines
318 B
GDScript
15 lines
318 B
GDScript
extends Node3D
|
|
|
|
@export var spin_speed: float = 7.0
|
|
|
|
@onready var saw_skin: Node3D = $SawSkin
|
|
|
|
|
|
func _ready() -> void:
|
|
saw_skin.rotation.z = randf() * TAU
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _physics_process(delta: float) -> void:
|
|
saw_skin.rotate_z(spin_speed * delta)
|