gdscript学习笔记1-HelloWorld

Hello World

Node2D.gd

extends Node2D

# Called when the node enters the scene tree for the first time.
func _ready():
	print("Hello World 1")
	print("Hello World 2\n")
	print("Hello World 3")

godot的print函数自带换行符

--- Debugging process started ---
Godot Engine v3.5.3.stable.mono.official.6c814135b - https://godotengine.org
OpenGL ES 2.0 Renderer: NVIDIA GeForce RTX 3060/PCIe/SSE2
 
Hello World 1
Hello World 2

Hello World 3
--- Debugging process stopped ---
posted @ 2024-04-02 21:21  南疯社  阅读(90)  评论(0)    收藏  举报