extends Sprite2D

func _init() -> void:
	print("hello world!")
	pass

extends Sprite2D:声明脚本继承自

func :函数定义符

_init():函数名

-> void: 一个无返回值类型的

pass:跳过