diff --git a/教学/node_2d.gd b/教学/node_2d.gd new file mode 100644 index 0000000..2cecd9c --- /dev/null +++ b/教学/node_2d.gd @@ -0,0 +1,11 @@ +extends Node2D + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/教学/node_2d.tscn b/教学/node_2d.tscn index e506d57..b8c647f 100644 --- a/教学/node_2d.tscn +++ b/教学/node_2d.tscn @@ -1,8 +1,10 @@ -[gd_scene load_steps=2 format=3 uid="uid://dwpbn3x8kh3qm"] +[gd_scene load_steps=3 format=3 uid="uid://dwpbn3x8kh3qm"] +[ext_resource type="Script" path="res://node_2d.gd" id="1_7g16r"] [ext_resource type="AudioStream" uid="uid://6gqhxvgw5y3y" path="res://摇啊摇诡异pipa.wav" id="1_jxs8q"] [node name="Node2D" type="Node2D"] +script = ExtResource("1_7g16r") [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]