This commit is contained in:
2024-05-29 13:26:31 -07:00
parent 6740949b05
commit 242d74b0a7
2104 changed files with 45681 additions and 0 deletions

30
scenes/house/house.gd Normal file
View File

@@ -0,0 +1,30 @@
extends Scene
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
# Called when the node enters the scene tree for the first time.
func _ready():
super()
pass
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
var pasture = load("res://scenes/pasture/pasture.tscn")
func _on_forestexit_interacted():
var path = NavigationServer2D.map_get_path(self.map, self.pathfind.to_local(self.ego.global_position), pathfind.to_local($"pasture-exit-point".global_position), true)
start_main_script(ScriptBuilder.init(ScriptBuilder.walk_path(self.ego, path)).and_then(ScriptBuilder.transition(self, pasture, "house-exit-point")).can_interrupt().build(self, "_on_script_complete"))
pass # Replace with function body.
func _on_Mushrooms_interacted():
start_main_script(ScriptBuilder.init(ScriptBuilder.say(self.ego, "Nice mushrooms!")).can_interrupt().build(self, "_on_script_complete"))