Started cutscene system

This commit is contained in:
2025-01-05 15:30:00 -06:00
parent e74878eb80
commit 0554f5719d
11 changed files with 135 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
class_name CutscenePrintEvent extends "res://scripts/Cutscene/CutsceneEvent.gd"
var text:String = ""
func _init(text:String) -> void:
self.text = text
func start() -> void:
print(self.text)

View File

@@ -0,0 +1,12 @@
class_name CutsceneWaitEvent extends "res://scripts/Cutscene/CutsceneEvent.gd"
var wait:float = 0.0
func _init(wait:float) -> void:
self.wait = wait
func update(delta:float) -> void:
self.wait -= delta
func isDone() -> bool:
return self.wait <= 0.0