diff --git a/doc/demo01_hello/editor.md b/doc/demo01_hello/editor.md new file mode 100644 index 0000000..033a384 --- /dev/null +++ b/doc/demo01_hello/editor.md @@ -0,0 +1,39 @@ +# godot界面介绍 + +![Image text](image/godot-editor.PNG) + +### 侧面分栏(Dock) + +- 点击侧面分栏的右上角可以调整分栏的位置 + + +- 左侧面分栏具体包括: + 1. 文件系统(FileSystem),显示了当前项目中所有的资源文件 + 2. 导入(Import),显示了文件系统分栏中所选资源文件的导入设置。 + 3. 场景(Scene),按照层级结构显示当前场景中的所有节点。 + + +- 右侧面分栏具体包括: + 1. 属性(Inspector),显示了场景分栏中所选节点的属性。 + 2. 节点(Node),显示了与当前场景分栏中所选节点对应的一些“信息”。 + + +- 中间面板具体包括: + - 主工作区(Workspace) + - 2D,当在场景分栏中所选节点为2D类型时,会自动进入此工作区。 + - 3D,当在场景分栏中所选节点为3D类型时,会自动进入此工作区。 + - 脚本(Script),此工作区可以对当前项目中的脚本进行编辑。 + - 资源库(AssetLib),可以搜索并浏览网站上的资源 + + - 底部面板(Bottom Panel) + - 隐藏 + + +- 与Unity和UE4不同的是:Godot这种布局关系当前是相对固定的,即它不能随意调整任意一个面板的位置或脱离成独立的窗口。虽然这看似是一个缺点,不过从某种程度上讲也让引擎变得更简单了。 + +# godot的快捷键和界面基础操作 + +- Q,选择,v移动锚点,shift + v 拖拽锚点 +- W,移动 +- R,旋转 +- S,缩放 diff --git a/doc/demo01_hello/hello.md b/doc/demo01_hello/hello.md index 4da044d..ed938e5 100644 --- a/doc/demo01_hello/hello.md +++ b/doc/demo01_hello/hello.md @@ -28,13 +28,13 @@ - godot和ue对比 - 自主可控(避免被“卡脖子”),从开源软件的角度分析,godot是游戏引擎界的Linux,ue和unity算是Windows - ue虽然开源源代码,但是代码量太大,历史包袱太重,不适合深入研究底层代码的人 - ![Image text](engine-source.PNG) + ![Image text](image/engine-source.PNG) - godot的作者尽最大努力的减少第三方库的依赖,最终使其代码非常精简,适合学习 - 源代码开源,不收费,unity和ue都是要收费的,ue超过100万美元触发5%的分成费用 - ![Image text](apache-license.png) - ![Image text](gd-home.JPG) + ![Image text](image/apache-license.png) + ![Image text](image/gd-home.JPG) - 使用godot你既可以用GDScript去编写代码,也可以用C++去编写代码,还可以去改底层引擎代码 diff --git a/doc/demo01_hello/apache-license.png b/doc/demo01_hello/image/apache-license.png similarity index 100% rename from doc/demo01_hello/apache-license.png rename to doc/demo01_hello/image/apache-license.png diff --git a/doc/demo01_hello/image/apache-license.png.import b/doc/demo01_hello/image/apache-license.png.import new file mode 100644 index 0000000..4ce0160 --- /dev/null +++ b/doc/demo01_hello/image/apache-license.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/apache-license.png-833c82965906632987b8a574a8271ab7.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://doc/demo01_hello/image/apache-license.png" +dest_files=[ "res://.import/apache-license.png-833c82965906632987b8a574a8271ab7.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/doc/demo01_hello/engine-source.PNG b/doc/demo01_hello/image/engine-source.PNG similarity index 100% rename from doc/demo01_hello/engine-source.PNG rename to doc/demo01_hello/image/engine-source.PNG diff --git a/doc/demo01_hello/engine-source.PNG.import b/doc/demo01_hello/image/engine-source.PNG.import similarity index 67% rename from doc/demo01_hello/engine-source.PNG.import rename to doc/demo01_hello/image/engine-source.PNG.import index 86e3c30..d6c0819 100644 --- a/doc/demo01_hello/engine-source.PNG.import +++ b/doc/demo01_hello/image/engine-source.PNG.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/engine-source.PNG-6224446f4b0c318ef08a9533a9012997.stex" +path="res://.import/engine-source.PNG-f92c0641b2021339fd796565468ae074.stex" metadata={ "vram_texture": false } [deps] -source_file="res://doc/demo01_hello/engine-source.PNG" -dest_files=[ "res://.import/engine-source.PNG-6224446f4b0c318ef08a9533a9012997.stex" ] +source_file="res://doc/demo01_hello/image/engine-source.PNG" +dest_files=[ "res://.import/engine-source.PNG-f92c0641b2021339fd796565468ae074.stex" ] [params] diff --git a/doc/demo01_hello/gd-home.JPG b/doc/demo01_hello/image/gd-home.JPG similarity index 100% rename from doc/demo01_hello/gd-home.JPG rename to doc/demo01_hello/image/gd-home.JPG diff --git a/doc/demo01_hello/gd-home.JPG.import b/doc/demo01_hello/image/gd-home.JPG.import similarity index 70% rename from doc/demo01_hello/gd-home.JPG.import rename to doc/demo01_hello/image/gd-home.JPG.import index 7e5d47b..e315c36 100644 --- a/doc/demo01_hello/gd-home.JPG.import +++ b/doc/demo01_hello/image/gd-home.JPG.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/gd-home.JPG-3866ba9615d150fc9f82a3f7e19e041e.stex" +path="res://.import/gd-home.JPG-f25736bdeff8c578ae8bf5e8dde647c8.stex" metadata={ "vram_texture": false } [deps] -source_file="res://doc/demo01_hello/gd-home.JPG" -dest_files=[ "res://.import/gd-home.JPG-3866ba9615d150fc9f82a3f7e19e041e.stex" ] +source_file="res://doc/demo01_hello/image/gd-home.JPG" +dest_files=[ "res://.import/gd-home.JPG-f25736bdeff8c578ae8bf5e8dde647c8.stex" ] [params] diff --git a/doc/demo01_hello/image/godot-editor.PNG b/doc/demo01_hello/image/godot-editor.PNG new file mode 100644 index 0000000..565fd34 Binary files /dev/null and b/doc/demo01_hello/image/godot-editor.PNG differ diff --git a/doc/demo01_hello/apache-license.png.import b/doc/demo01_hello/image/godot-editor.PNG.import similarity index 67% rename from doc/demo01_hello/apache-license.png.import rename to doc/demo01_hello/image/godot-editor.PNG.import index 88a2489..231203c 100644 --- a/doc/demo01_hello/apache-license.png.import +++ b/doc/demo01_hello/image/godot-editor.PNG.import @@ -2,15 +2,15 @@ importer="texture" type="StreamTexture" -path="res://.import/apache-license.png-599073122cee1d1b6911d29651e28109.stex" +path="res://.import/godot-editor.PNG-b03f8dad21107b1a527907551134d978.stex" metadata={ "vram_texture": false } [deps] -source_file="res://doc/demo01_hello/apache-license.png" -dest_files=[ "res://.import/apache-license.png-599073122cee1d1b6911d29651e28109.stex" ] +source_file="res://doc/demo01_hello/image/godot-editor.PNG" +dest_files=[ "res://.import/godot-editor.PNG-b03f8dad21107b1a527907551134d978.stex" ] [params] diff --git a/scene/demo01_hello/hello_world.tscn b/scene/demo01_hello/hello_world.tscn index 92ae009..7f58219 100644 --- a/scene/demo01_hello/hello_world.tscn +++ b/scene/demo01_hello/hello_world.tscn @@ -6,10 +6,11 @@ script = ExtResource( 1 ) [node name="Label" type="Label" parent="."] -margin_left = 353.108 +margin_left = 359.408 margin_top = 248.378 -margin_right = 589.108 +margin_right = 595.408 margin_bottom = 358.378 +rect_pivot_offset = Vector2( -0.558563, -0.7173 ) text = "Hello World" align = 1 valign = 1