pull/2/head
jaysunxiao 2021-10-07 09:31:11 +08:00
parent 5539e85aca
commit 4d44f98f21
68 changed files with 1184 additions and 39 deletions

View File

@ -0,0 +1,7 @@
![Image text](image/canvas1.png)
![Image text](image/canvas2.png)
![Image text](image/canvas3.png)
![Image text](image/canvas4.png)
![Image text](image/canvas5.png)
![Image text](image/canvas6.png)
![Image text](image/canvas7.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas1.png-4c1d783a19c1f682ef3b3a5ba0c58ef7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas1.png"
dest_files=[ "res://.import/canvas1.png-4c1d783a19c1f682ef3b3a5ba0c58ef7.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas2.png-a6be494bee7fd3ce70c655a8548aa3ab.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas2.png"
dest_files=[ "res://.import/canvas2.png-a6be494bee7fd3ce70c655a8548aa3ab.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas3.png-eecb6a8b6a8c068305732a37209e1888.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas3.png"
dest_files=[ "res://.import/canvas3.png-eecb6a8b6a8c068305732a37209e1888.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas4.png-34a9a702d18329ed9d953f6e9c16441b.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas4.png"
dest_files=[ "res://.import/canvas4.png-34a9a702d18329ed9d953f6e9c16441b.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas5.png-d14d8f83f832ffa6361dbb9020364ecb.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas5.png"
dest_files=[ "res://.import/canvas5.png-d14d8f83f832ffa6361dbb9020364ecb.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas6.png-2efcd5b60c254d6cb6dc3a7c64f35c34.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas6.png"
dest_files=[ "res://.import/canvas6.png-2efcd5b60c254d6cb6dc3a7c64f35c34.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvas7.png-567bf8dcd0d6ed20f5747b2a0297dbb5.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo09_canvas/image/canvas7.png"
dest_files=[ "res://.import/canvas7.png-567bf8dcd0d6ed20f5747b2a0297dbb5.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

View File

@ -0,0 +1,6 @@
![Image text](image/camera1.png)
![Image text](image/camera2.png)
![Image text](image/camera3.png)
![Image text](image/camera4.png)
![Image text](image/camera5.png)
![Image text](image/camera6.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/camera1.png-fc07482130a119c95de10708c448e724.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/camera1.png"
dest_files=[ "res://.import/camera1.png-fc07482130a119c95de10708c448e724.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/camera2.png-b7f6d03a65a87b21e6da053438af7baf.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/camera2.png"
dest_files=[ "res://.import/camera2.png-b7f6d03a65a87b21e6da053438af7baf.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/camera3.png-6f029d8cbea7358313c06a7783ed296e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/camera3.png"
dest_files=[ "res://.import/camera3.png-6f029d8cbea7358313c06a7783ed296e.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/camera4.png-be6140df61be3aab9d4d3e994a887832.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/camera4.png"
dest_files=[ "res://.import/camera4.png-be6140df61be3aab9d4d3e994a887832.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/camera5.png-d2509bf3fe9eac03d7b171408b260ba3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/camera5.png"
dest_files=[ "res://.import/camera5.png-d2509bf3fe9eac03d7b171408b260ba3.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/camera6.png-7a0846a8f5b1356d31ba860bee967b51.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/camera6.png"
dest_files=[ "res://.import/camera6.png-7a0846a8f5b1356d31ba860bee967b51.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

View File

@ -7,4 +7,19 @@
免费可商用 免费可商用
``` ```
# controller
![Image text](image/gui1.png)
![Image text](image/gui2.png)
![Image text](image/gui3.png)
![Image text](image/gui4.png)
![Image text](image/gui5.png)
![Image text](image/gui6.png)
![Image text](image/gui7.png)
![Image text](image/gui8.png)
![Image text](image/gui9.png)
![Image text](image/gui10.png)
![Image text](image/gui11.png)
![Image text](image/gui12.png)
![Image text](image/gui13.png)
![Image text](image/gui14.png)
![Image text](image/gui15.png)

BIN
doc/demo_gui/image/gui1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui1.png-2dc707455017fe3a7134409974094e3d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui1.png"
dest_files=[ "res://.import/gui1.png-2dc707455017fe3a7134409974094e3d.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui10.png-4f0ab5b43dd23594053a21f1dc2b1c59.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui10.png"
dest_files=[ "res://.import/gui10.png-4f0ab5b43dd23594053a21f1dc2b1c59.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui11.png-50686685ef04938b301ffd6ada55bc91.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui11.png"
dest_files=[ "res://.import/gui11.png-50686685ef04938b301ffd6ada55bc91.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui12.png-d492dc2142172405ac69377abab825f0.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui12.png"
dest_files=[ "res://.import/gui12.png-d492dc2142172405ac69377abab825f0.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui13.png-167600ea5dcb9dfb02abc5ecda0f3973.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui13.png"
dest_files=[ "res://.import/gui13.png-167600ea5dcb9dfb02abc5ecda0f3973.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui14.png-11d9cd3bdd320dfb9feafbbe34d58710.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui14.png"
dest_files=[ "res://.import/gui14.png-11d9cd3bdd320dfb9feafbbe34d58710.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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui15.png-a69a715dcea818629d6e3c3364c6e891.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui15.png"
dest_files=[ "res://.import/gui15.png-a69a715dcea818629d6e3c3364c6e891.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

BIN
doc/demo_gui/image/gui2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui2.png-5890f2fbd5b106b63af97457f8fc54ef.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui2.png"
dest_files=[ "res://.import/gui2.png-5890f2fbd5b106b63af97457f8fc54ef.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

BIN
doc/demo_gui/image/gui3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui3.png-ed7869da72835b236413a3a8f02a686d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui3.png"
dest_files=[ "res://.import/gui3.png-ed7869da72835b236413a3a8f02a686d.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

BIN
doc/demo_gui/image/gui4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui4.png-1a3cbe79aef26566c723b225677d76d5.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui4.png"
dest_files=[ "res://.import/gui4.png-1a3cbe79aef26566c723b225677d76d5.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

BIN
doc/demo_gui/image/gui5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui5.png-e96f353a53d9d118a411e6fd75d6f3ab.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui5.png"
dest_files=[ "res://.import/gui5.png-e96f353a53d9d118a411e6fd75d6f3ab.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

BIN
doc/demo_gui/image/gui6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui6.png-6c5e420f42774c5b034188f334d2e58e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui6.png"
dest_files=[ "res://.import/gui6.png-6c5e420f42774c5b034188f334d2e58e.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

BIN
doc/demo_gui/image/gui7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui7.png-480ed10cf5b6a8e2a9bafba4897707e4.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui7.png"
dest_files=[ "res://.import/gui7.png-480ed10cf5b6a8e2a9bafba4897707e4.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

BIN
doc/demo_gui/image/gui8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui8.png-18980ab27fcf2e8600ae1732a022c3f9.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui8.png"
dest_files=[ "res://.import/gui8.png-18980ab27fcf2e8600ae1732a022c3f9.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

BIN
doc/demo_gui/image/gui9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/gui9.png-3004fd932b5f7bcc7f0d77f661976e3e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/gui9.png"
dest_files=[ "res://.import/gui9.png-3004fd932b5f7bcc7f0d77f661976e3e.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

Binary file not shown.

View File

@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://script/demo09_canvas/canvas.gd" type="Script" id=1]
[node name="Node2D" type="Node2D"]
script = ExtResource( 1 )

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=13 format=2] [gd_scene load_steps=14 format=2]
[ext_resource path="res://icon.png" type="Texture" id=1] [ext_resource path="res://icon.png" type="Texture" id=1]
[ext_resource path="res://scene/demo_animation/image/run-6.png" type="Texture" id=2] [ext_resource path="res://scene/demo_animation/image/run-6.png" type="Texture" id=2]
@ -52,6 +52,23 @@ tracks/2/keys = {
"values": [ Vector2( 1, 1 ), Vector2( 3, 3 ) ] "values": [ Vector2( 1, 1 ), Vector2( 3, 3 ) ]
} }
[sub_resource type="Animation" id=3]
resource_name = "animation_2"
length = 0.6
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("player:frame")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.1, 0.2, 0.3, 0.4, 0.5 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ),
"update": 1,
"values": [ 0, 1, 2, 3, 4, 5 ]
}
[sub_resource type="SpriteFrames" id=2] [sub_resource type="SpriteFrames" id=2]
animations = [ { animations = [ {
"frames": [ ExtResource( 9 ), ExtResource( 10 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 3 ), ExtResource( 2 ), ExtResource( 4 ), ExtResource( 5 ) ], "frames": [ ExtResource( 9 ), ExtResource( 10 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 3 ), ExtResource( 2 ), ExtResource( 4 ), ExtResource( 5 ) ],
@ -65,9 +82,9 @@ animations = [ {
[node name="Animation_1" type="Node2D" parent="."] [node name="Animation_1" type="Node2D" parent="."]
[node name="icon" type="Sprite" parent="Animation_1"] [node name="icon" type="Sprite" parent="Animation_1"]
position = Vector2( 863.129, 129.537 ) position = Vector2( 315.475, 141.204 )
rotation = 6.28319 rotation = 6.28319
scale = Vector2( 3, 3 ) scale = Vector2( 1.06651, 1.06651 )
texture = ExtResource( 1 ) texture = ExtResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="Animation_1"] [node name="AnimationPlayer" type="AnimationPlayer" parent="Animation_1"]
@ -77,9 +94,14 @@ anims/my_animation_1 = SubResource( 1 )
[node name="Animation_2" type="Node2D" parent="."] [node name="Animation_2" type="Node2D" parent="."]
[node name="player" type="Sprite" parent="Animation_2"] [node name="player" type="Sprite" parent="Animation_2"]
position = Vector2( 427.441, 334.192 ) position = Vector2( 317.132, 336.313 )
scale = Vector2( 1.86179, 1.57452 )
texture = ExtResource( 8 ) texture = ExtResource( 8 )
hframes = 13 hframes = 60
[node name="AnimationPlayer" type="AnimationPlayer" parent="Animation_2"]
autoplay = "animation_2"
anims/animation_2 = SubResource( 3 )
[node name="Animation_3" type="Node2D" parent="."] [node name="Animation_3" type="Node2D" parent="."]
position = Vector2( 308.251, 522.067 ) position = Vector2( 308.251, 522.067 )
@ -89,5 +111,5 @@ __meta__ = {
[node name="AnimatedSprite" type="AnimatedSprite" parent="Animation_3"] [node name="AnimatedSprite" type="AnimatedSprite" parent="Animation_3"]
frames = SubResource( 2 ) frames = SubResource( 2 )
frame = 2 frame = 5
playing = true playing = true

View File

@ -0,0 +1,24 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://script/demo_camera/player.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[node name="Node2D" type="Node2D"]
position = Vector2( -82.76, 10.6787 )
[node name="icon" type="Sprite" parent="."]
modulate = Color( 0.141176, 0.878431, 0.117647, 1 )
position = Vector2( -227.193, 239.648 )
texture = ExtResource( 2 )
[node name="icon2" type="Sprite" parent="."]
position = Vector2( 665.147, 246.323 )
texture = ExtResource( 2 )
[node name="player" type="Sprite" parent="."]
position = Vector2( 77.117, 245.968 )
texture = ExtResource( 2 )
script = ExtResource( 1 )
[node name="Camera2D" type="Camera2D" parent="player"]
current = true

View File

@ -0,0 +1,39 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://script/demo_camera/switch_camera.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[node name="Node2D" type="Node2D"]
script = ExtResource( 1 )
[node name="icon" type="Sprite" parent="."]
modulate = Color( 0.964706, 0.0313726, 0.0313726, 1 )
position = Vector2( -470.777, 240.836 )
texture = ExtResource( 2 )
[node name="icon2" type="Sprite" parent="."]
modulate = Color( 0.882353, 0.796078, 0.0901961, 1 )
position = Vector2( 713.424, 294.807 )
texture = ExtResource( 2 )
[node name="icon3" type="Sprite" parent="."]
modulate = Color( 0.0588235, 0.152941, 0.584314, 1 )
position = Vector2( -469.983, 848.017 )
texture = ExtResource( 2 )
[node name="icon4" type="Sprite" parent="."]
modulate = Color( 0.0705882, 0.92549, 0.666667, 1 )
position = Vector2( 733.267, 888.495 )
texture = ExtResource( 2 )
[node name="Camera2D1" type="Camera2D" parent="."]
position = Vector2( -514.899, 305.125 )
[node name="Camera2D2" type="Camera2D" parent="."]
position = Vector2( 509.602, 305.125 )
[node name="Camera2D3" type="Camera2D" parent="."]
position = Vector2( -511.721, 903.722 )
[node name="Camera2D4" type="Camera2D" parent="."]
position = Vector2( 513.839, 898.425 )

View File

@ -1,41 +1,11 @@
[gd_scene load_steps=4 format=2] [gd_scene load_steps=3 format=2]
[ext_resource path="res://script/demo_test/demoTest.gd" type="Script" id=1] [ext_resource path="res://script/demo_test/demoTest.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2] [ext_resource path="res://icon.png" type="Texture" id=2]
[sub_resource type="Animation" id=1]
resource_name = "my_move"
length = 2.0
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("icon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 2 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector2( 261.246, 300.702 ), Vector2( 946.091, 516.699 ) ]
}
[node name="Node2D" type="Node2D"] [node name="Node2D" type="Node2D"]
script = ExtResource( 1 ) script = ExtResource( 1 )
[node name="icon" type="Sprite" parent="."] [node name="icon" type="Sprite" parent="."]
position = Vector2( 946.091, 516.699 ) position = Vector2( 958.772, 540.059 )
texture = ExtResource( 2 ) texture = ExtResource( 2 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "my_move"
anims/my_move = SubResource( 1 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="ColorRect" type="ColorRect" parent="."]
margin_right = 40.0
margin_bottom = 40.0
__meta__ = {
"_edit_use_anchors_": false
}

View File

@ -0,0 +1,34 @@
extends Node2D
var whiteColor: Color = Color(1,1,1,1)
# For Draw_Circle
var circleRadius: float = 10
# For Draw_Multiline
var multiLine: PoolVector2Array = PoolVector2Array([Vector2(200,300),Vector2(300,400),Vector2(300,400),Vector2(400,300)])
# For Draw_Rect
var rect: Rect2 = Rect2(200.0,300.0, 200.0,200.0)
# For Draw_Primitive
var pointsArray: PoolVector2Array = PoolVector2Array([Vector2(700,100),Vector2(800,150),Vector2(900,100)])
var colorArray: PoolColorArray = PoolColorArray([Color(1,1,1,1),Color(1,1,1,1),Color(1,1,1,1)])
# For Draw_String
var dynamic_font = DynamicFont.new()
func _ready() -> void:
# For Draw_String
dynamic_font.font_data = load("res://scene/demo09_canvas/BarlowCondensed-Bold.ttf")
dynamic_font.size = 64
func _draw() -> void:
draw_circle(Vector2(100,100), circleRadius, whiteColor)
draw_line(Vector2(0,0),Vector2(100,100),whiteColor)
draw_multiline(multiLine, whiteColor)
draw_rect(rect, whiteColor, false) # filled is false
draw_primitive(pointsArray,colorArray, pointsArray)
draw_string(dynamic_font, Vector2(600,500), 'I draw good!')
# For Draw_String

View File

@ -0,0 +1,29 @@
extends Sprite
# How fast the player will move (pixels/sec).
export var speed = 400
# Size of the game window.
var screen_size
func _ready():
screen_size = get_viewport_rect().size
func _process(delta):
var velocity = Vector2.ZERO # The player's movement vector.
if Input.is_action_pressed("move_right"):
velocity.x += 1
if Input.is_action_pressed("move_left"):
velocity.x -= 1
if Input.is_action_pressed("move_down"):
velocity.y += 1
if Input.is_action_pressed("move_up"):
velocity.y -= 1
if velocity.length() <= 0:
return
velocity = velocity.normalized() * speed
position += velocity * delta

View File

@ -0,0 +1,41 @@
extends Node2D
var camera1: Camera2D
var camera2: Camera2D
var camera3: Camera2D
var camera4: Camera2D
var timerCounter = 0
func _ready() -> void:
camera1 = get_node("Camera2D1")
camera2 = get_node("Camera2D2")
camera3 = get_node("Camera2D3")
camera4 = get_node("Camera2D4")
func _physics_process(delta: float) -> void:
timerCounter += delta
if(int(timerCounter) == 1):
switchCamera1()
if(int(timerCounter) == 2):
switchCamera2()
if(int(timerCounter) == 3):
switchCamera3()
if(int(timerCounter) == 4):
switchCamera4()
timerCounter = 0
func switchCamera1() -> void:
camera1.current = true;
func switchCamera2() -> void:
camera2.current = true;
func switchCamera3() -> void:
camera3.current = true;
func switchCamera4() -> void:
camera4.current = true;