gdscript now builtin in nodes

This commit is contained in:
2023-02-12 15:11:53 +01:00
parent 526dbee987
commit 4397c83b86
5 changed files with 27 additions and 22 deletions

View File

@@ -1,5 +0,0 @@
extends Area2D
@export_file("*json") var file = ""
@export var title = ""
@export var introducedVillager = false

View File

@@ -1,11 +0,0 @@
extends StaticBody2D
@export var soundOn = true
func _ready():
$audio_stream_player_2d.autoplay = soundOn
if(soundOn):
$audio_stream_player_2d.play()
func OnAudioFinished():
if(soundOn):
$audio_stream_player_2d.play()