Browse Source

Merge pull request #496 from aaronfranke/demo-categories

Categorize demos and add README files
Aaron Franke 5 years ago
parent
commit
2434876738
82 changed files with 114 additions and 24 deletions
  1. 8 0
      2d/README.md
  2. 0 0
      2d/instancing/README.md
  3. 0 0
      2d/instancing/ball.tscn
  4. 0 0
      2d/instancing/ball_factory.gd
  5. 0 0
      2d/instancing/bowling_ball.png
  6. 0 0
      2d/instancing/bowling_ball.png.import
  7. 0 0
      2d/instancing/icon.png
  8. 0 0
      2d/instancing/icon.png.import
  9. 0 0
      2d/instancing/project.godot
  10. 0 0
      2d/instancing/scene_instancing.tscn
  11. 0 0
      2d/instancing/screenshots/.gdignore
  12. 0 0
      2d/instancing/screenshots/instancing.png
  13. 1 1
      2d/screen_space_shaders/README.md
  14. 0 3
      2d/sdf_font/default_environment.tres
  15. 0 0
      2d/tween/README.md
  16. 0 0
      2d/tween/godot.png
  17. 0 0
      2d/tween/godot.png.import
  18. 0 0
      2d/tween/icon.png
  19. 0 0
      2d/tween/icon.png.import
  20. 0 0
      2d/tween/main.gd
  21. 0 0
      2d/tween/main.tscn
  22. 0 0
      2d/tween/project.godot
  23. 0 0
      2d/tween/screenshots/.gdignore
  24. 0 0
      2d/tween/screenshots/tween.png
  25. 7 0
      3d/README.md
  26. 7 0
      audio/README.md
  27. 8 0
      gui/README.md
  28. 2 2
      gui/drag_and_drop/drag_drop_script.gd
  29. 0 0
      gui/regex/README.md
  30. 0 0
      gui/regex/icon.png
  31. 0 0
      gui/regex/icon.png.import
  32. 0 0
      gui/regex/project.godot
  33. 0 0
      gui/regex/regex.gd
  34. 0 0
      gui/regex/regex.tscn
  35. 0 0
      gui/regex/screenshots/.gdignore
  36. 0 0
      gui/regex/screenshots/regex.png
  37. 1 1
      gui/rich_text_bbcode/rich_text_bbcode.gd
  38. 1 1
      gui/sdf_font/README.md
  39. 0 0
      gui/sdf_font/font.font
  40. 0 0
      gui/sdf_font/icon.png
  41. 0 0
      gui/sdf_font/icon.png.import
  42. 0 1
      gui/sdf_font/project.godot
  43. 0 0
      gui/sdf_font/screenshots/.gdignore
  44. 0 0
      gui/sdf_font/screenshots/sdf.png
  45. 18 14
      gui/sdf_font/sdf_font_demo.tscn
  46. 7 0
      loading/README.md
  47. 10 0
      misc/README.md
  48. 9 0
      mobile/README.md
  49. 0 0
      mobile/android_iap/iap_demo.gd
  50. 0 0
      mobile/android_iap/icon.png
  51. 0 0
      mobile/android_iap/icon.png.import
  52. 0 0
      mobile/android_iap/main.tscn
  53. 0 0
      mobile/android_iap/project.godot
  54. 0 0
      mobile/multitouch_cubes/CubeScene.tscn
  55. 0 0
      mobile/multitouch_cubes/GestureArea.gd
  56. 0 0
      mobile/multitouch_cubes/Main.tscn
  57. 0 0
      mobile/multitouch_cubes/default_env.tres
  58. 0 0
      mobile/multitouch_cubes/icon.png
  59. 0 0
      mobile/multitouch_cubes/icon.png.import
  60. 0 0
      mobile/multitouch_cubes/project.godot
  61. 0 0
      mobile/multitouch_view/Main.gd
  62. 0 0
      mobile/multitouch_view/Main.tscn
  63. 0 0
      mobile/multitouch_view/README.md
  64. 0 0
      mobile/multitouch_view/TouchHelper.gd
  65. 0 0
      mobile/multitouch_view/icon.png
  66. 0 0
      mobile/multitouch_view/icon.png.import
  67. 0 0
      mobile/multitouch_view/project.godot
  68. 0 0
      mobile/multitouch_view/screenshots/.gdignore
  69. 0 0
      mobile/multitouch_view/screenshots/multitouch.png
  70. 0 0
      mobile/sensors/cube_6.png
  71. 0 0
      mobile/sensors/cube_6.png.import
  72. 0 0
      mobile/sensors/default_env.tres
  73. 0 0
      mobile/sensors/icon.png
  74. 0 0
      mobile/sensors/icon.png.import
  75. 0 0
      mobile/sensors/main.gd
  76. 0 0
      mobile/sensors/main.tscn
  77. 0 0
      mobile/sensors/project.godot
  78. 10 0
      mono/README.md
  79. 7 0
      networking/README.md
  80. 1 1
      networking/multiplayer_bomber/README.md
  81. 9 0
      viewport/README.md
  82. 8 0
      visual_script/README.md

+ 8 - 0
2d/README.md

@@ -0,0 +1,8 @@
+# 2D Demos
+
+These demos are all 2D, but otherwise do not have a common theme.
+
+Languages: Most have GDScript, some have
+[GDSL](https://docs.godotengine.org/en/latest/tutorials/shading/shading_reference/shading_language.html)
+
+Renderers: 6 of them are GLES 3, but most are GLES 2

+ 0 - 0
misc/instancing/README.md → 2d/instancing/README.md


+ 0 - 0
misc/instancing/ball.tscn → 2d/instancing/ball.tscn


+ 0 - 0
misc/instancing/ball_factory.gd → 2d/instancing/ball_factory.gd


+ 0 - 0
misc/instancing/bowling_ball.png → 2d/instancing/bowling_ball.png


+ 0 - 0
misc/instancing/bowling_ball.png.import → 2d/instancing/bowling_ball.png.import


+ 0 - 0
misc/instancing/icon.png → 2d/instancing/icon.png


+ 0 - 0
2d/sdf_font/icon.png.import → 2d/instancing/icon.png.import


+ 0 - 0
misc/instancing/project.godot → 2d/instancing/project.godot


+ 0 - 0
misc/instancing/scene_instancing.tscn → 2d/instancing/scene_instancing.tscn


+ 0 - 0
2d/sdf_font/screenshots/.gdignore → 2d/instancing/screenshots/.gdignore


+ 0 - 0
misc/instancing/screenshots/instancing.png → 2d/instancing/screenshots/instancing.png


+ 1 - 1
2d/screen_space_shaders/README.md

@@ -5,7 +5,7 @@ Many common full-res effects are implemented here for reference.
 
 Language: [GDSL](https://docs.godotengine.org/en/latest/tutorials/shading/shading_reference/shading_language.html) and GDScript
 
-Renderer: GLES 3
+Renderer: GLES 3 (the blur effect is not available in GLES 2, the rest work)
 
 ## Screenshots
 

+ 0 - 3
2d/sdf_font/default_environment.tres

@@ -1,3 +0,0 @@
-[gd_resource type="Environment" format=2]
-
-[resource]

+ 0 - 0
misc/tween/README.md → 2d/tween/README.md


+ 0 - 0
misc/tween/godot.png → 2d/tween/godot.png


+ 0 - 0
misc/tween/godot.png.import → 2d/tween/godot.png.import


+ 0 - 0
misc/tween/icon.png → 2d/tween/icon.png


+ 0 - 0
misc/android_iap/icon.png.import → 2d/tween/icon.png.import


+ 0 - 0
misc/tween/main.gd → 2d/tween/main.gd


+ 0 - 0
misc/tween/main.tscn → 2d/tween/main.tscn


+ 0 - 0
misc/tween/project.godot → 2d/tween/project.godot


+ 0 - 0
misc/instancing/screenshots/.gdignore → 2d/tween/screenshots/.gdignore


+ 0 - 0
misc/tween/screenshots/tween.png → 2d/tween/screenshots/tween.png


+ 7 - 0
3d/README.md

@@ -0,0 +1,7 @@
+# 3D Demos
+
+These demos are all 3D, but otherwise do not have a common theme.
+
+Languages: All are GDScript
+
+Renderers: Truck Town and Physics Tests are GLES 2, the rest are GLES 3

+ 7 - 0
audio/README.md

@@ -0,0 +1,7 @@
+# Audio Demos
+
+These demos showcase various audio features.
+
+Languages: All are GDScript
+
+Renderers: All are GLES 2

+ 8 - 0
gui/README.md

@@ -0,0 +1,8 @@
+# GUI Demos
+
+These demos showcase GUI features and text features via
+[`Control`](https://docs.godotengine.org/en/latest/classes/class_control.html) nodes.
+
+Languages: All are GDScript, except SDF has no code
+
+Renderers: All are GLES 2

+ 2 - 2
gui/drag_and_drop/drag_drop_script.gd

@@ -1,12 +1,12 @@
 extends ColorPickerButton
 
 func get_drag_data(_pos):
-	# Use another colorpicker as drag preview
+	# Use another colorpicker as drag preview.
 	var cpb = ColorPickerButton.new()
 	cpb.color = color
 	cpb.rect_size = Vector2(50, 50)
 	set_drag_preview(cpb)
-	# Return color as drag data
+	# Return color as drag data.
 	return color
 
 

+ 0 - 0
misc/regex/README.md → gui/regex/README.md


+ 0 - 0
misc/regex/icon.png → gui/regex/icon.png


+ 0 - 0
misc/instancing/icon.png.import → gui/regex/icon.png.import


+ 0 - 0
misc/regex/project.godot → gui/regex/project.godot


+ 0 - 0
misc/regex/regex.gd → gui/regex/regex.gd


+ 0 - 0
misc/regex/regex.tscn → gui/regex/regex.tscn


+ 0 - 0
misc/multitouch_view/screenshots/.gdignore → gui/regex/screenshots/.gdignore


+ 0 - 0
misc/regex/screenshots/regex.png → gui/regex/screenshots/regex.png


+ 1 - 1
gui/rich_text_bbcode/rich_text_bbcode.gd

@@ -2,7 +2,7 @@ extends Panel
 
 func _on_RichTextLabel_meta_clicked(meta):
 	var err = OS.shell_open(meta)
-	if (err == OK):
+	if err == OK:
 		print("Opened link '%s' successfully!" % meta)
 	else:
 		print("Failed opening the link '%s'!" % meta)

+ 1 - 1
2d/sdf_font/README.md → gui/sdf_font/README.md

@@ -4,7 +4,7 @@ This is a demo of Signed Distance Field fonts in Godot.
 The technique used allows the text to remain clear
 under arbitrary zooms and rotations.
 
-Language: GDScript
+Language: This demo contains no code.
 
 Renderer: GLES 3 (this effect is not available in GLES 2)
 

+ 0 - 0
2d/sdf_font/font.font → gui/sdf_font/font.font


+ 0 - 0
2d/sdf_font/icon.png → gui/sdf_font/icon.png


+ 0 - 0
misc/multitouch_cubes/icon.png.import → gui/sdf_font/icon.png.import


+ 0 - 1
2d/sdf_font/project.godot → gui/sdf_font/project.godot

@@ -34,4 +34,3 @@ singletons=[  ]
 [rendering]
 
 environment/default_clear_color=Color( 0.18, 0.1188, 0.15348, 1 )
-environment/default_environment="res://default_environment.tres"

+ 0 - 0
misc/regex/screenshots/.gdignore → gui/sdf_font/screenshots/.gdignore


+ 0 - 0
2d/sdf_font/screenshots/sdf.png → gui/sdf_font/screenshots/sdf.png


+ 18 - 14
2d/sdf_font/sdf_font_demo.tscn → gui/sdf_font/sdf_font_demo.tscn

@@ -6,7 +6,7 @@
 length = 15.0
 loop = true
 tracks/0/type = "value"
-tracks/0/path = NodePath(".:rotation_degrees")
+tracks/0/path = NodePath(".:rect_rotation")
 tracks/0/interp = 1
 tracks/0/loop_wrap = true
 tracks/0/imported = false
@@ -22,7 +22,7 @@ tracks/0/keys = {
 length = 10.0
 loop = true
 tracks/0/type = "value"
-tracks/0/path = NodePath(".:scale")
+tracks/0/path = NodePath(".:rect_scale")
 tracks/0/interp = 1
 tracks/0/loop_wrap = true
 tracks/0/imported = false
@@ -34,10 +34,18 @@ tracks/0/keys = {
 "values": [ Vector2( 1, 1 ), Vector2( 7, 7 ) ]
 }
 
-[node name="SDFFontDemo" type="Node2D"]
+[node name="SDFFontDemo" type="CenterContainer"]
+anchor_right = 1.0
+anchor_bottom = 1.0
+__meta__ = {
+"_edit_use_anchors_": false
+}
 
-[node name="Base" type="Position2D" parent="."]
-position = Vector2( 500, 300 )
+[node name="Base" type="Control" parent="."]
+margin_left = 512.0
+margin_top = 300.0
+margin_right = 512.0
+margin_bottom = 300.0
 
 [node name="Rotate" type="AnimationPlayer" parent="Base"]
 autoplay = "rotate"
@@ -48,11 +56,11 @@ anims/zoomin_zoomout = SubResource( 2 )
 autoplay = "zoomin_zoomout"
 anims/zoomin_zoomout = SubResource( 2 )
 
-[node name="Label" type="Label" parent="Base"]
-margin_left = -169.0
-margin_top = -49.0
-margin_right = 172.0
-margin_bottom = 56.0
+[node name="TextLabel" type="Label" parent="Base"]
+margin_left = -128.0
+margin_top = -50.0
+margin_right = 128.0
+margin_bottom = 51.0
 custom_fonts/font = ExtResource( 1 )
 custom_colors/font_color = Color( 0.853858, 0.771714, 0.753746, 1 )
 custom_colors/font_color_shadow = Color( 0.56592, 0.454525, 0.518426, 1 )
@@ -62,7 +70,3 @@ align = 1
 __meta__ = {
 "_edit_use_anchors_": false
 }
-
-[node name="Camera2D" type="Camera2D" parent="."]
-offset = Vector2( 512, 300 )
-current = true

+ 7 - 0
loading/README.md

@@ -0,0 +1,7 @@
+# Loading Demos
+
+These demos demonstrate various ways to load scenes and other data.
+
+Languages: All are GDScript
+
+Renderers: All are GLES 2

+ 10 - 0
misc/README.md

@@ -0,0 +1,10 @@
+# Miscellaneous Demos
+
+These demos don't fit into any other category, so they go into this folder.
+
+Languages: All have GDScript, OpenSimplexNoise has
+[GDSL](https://docs.godotengine.org/en/latest/tutorials/shading/shading_reference/shading_language.html),
+OS test has some
+[C#](https://docs.godotengine.org/en/latest/getting_started/scripting/c_sharp/index.html)
+
+Renderers: All are GLES 2

+ 9 - 0
mobile/README.md

@@ -0,0 +1,9 @@
+# Mobile Demos
+
+These demos depend on features only available in mobile phones or tablets.
+
+The Android IAP demo only runs on Android.
+
+Languages: All are GDScript
+
+Renderers: All are GLES 2

+ 0 - 0
misc/android_iap/iap_demo.gd → mobile/android_iap/iap_demo.gd


+ 0 - 0
misc/android_iap/icon.png → mobile/android_iap/icon.png


+ 0 - 0
misc/multitouch_view/icon.png.import → mobile/android_iap/icon.png.import


+ 0 - 0
misc/android_iap/main.tscn → mobile/android_iap/main.tscn


+ 0 - 0
misc/android_iap/project.godot → mobile/android_iap/project.godot


+ 0 - 0
misc/multitouch_cubes/CubeScene.tscn → mobile/multitouch_cubes/CubeScene.tscn


+ 0 - 0
misc/multitouch_cubes/GestureArea.gd → mobile/multitouch_cubes/GestureArea.gd


+ 0 - 0
misc/multitouch_cubes/Main.tscn → mobile/multitouch_cubes/Main.tscn


+ 0 - 0
misc/multitouch_cubes/default_env.tres → mobile/multitouch_cubes/default_env.tres


+ 0 - 0
misc/multitouch_cubes/icon.png → mobile/multitouch_cubes/icon.png


+ 0 - 0
misc/regex/icon.png.import → mobile/multitouch_cubes/icon.png.import


+ 0 - 0
misc/multitouch_cubes/project.godot → mobile/multitouch_cubes/project.godot


+ 0 - 0
misc/multitouch_view/Main.gd → mobile/multitouch_view/Main.gd


+ 0 - 0
misc/multitouch_view/Main.tscn → mobile/multitouch_view/Main.tscn


+ 0 - 0
misc/multitouch_view/README.md → mobile/multitouch_view/README.md


+ 0 - 0
misc/multitouch_view/TouchHelper.gd → mobile/multitouch_view/TouchHelper.gd


+ 0 - 0
misc/multitouch_view/icon.png → mobile/multitouch_view/icon.png


+ 0 - 0
misc/sensors/icon.png.import → mobile/multitouch_view/icon.png.import


+ 0 - 0
misc/multitouch_view/project.godot → mobile/multitouch_view/project.godot


+ 0 - 0
misc/tween/screenshots/.gdignore → mobile/multitouch_view/screenshots/.gdignore


+ 0 - 0
misc/multitouch_view/screenshots/multitouch.png → mobile/multitouch_view/screenshots/multitouch.png


+ 0 - 0
misc/sensors/cube_6.png → mobile/sensors/cube_6.png


+ 0 - 0
misc/sensors/cube_6.png.import → mobile/sensors/cube_6.png.import


+ 0 - 0
misc/sensors/default_env.tres → mobile/sensors/default_env.tres


+ 0 - 0
misc/sensors/icon.png → mobile/sensors/icon.png


+ 0 - 0
misc/tween/icon.png.import → mobile/sensors/icon.png.import


+ 0 - 0
misc/sensors/main.gd → mobile/sensors/main.gd


+ 0 - 0
misc/sensors/main.tscn → mobile/sensors/main.tscn


+ 0 - 0
misc/sensors/project.godot → mobile/sensors/project.godot


+ 10 - 0
mono/README.md

@@ -1,3 +1,13 @@
+# Mono Demos
+
+These demos are written in [C#](https://docs.godotengine.org/en/latest/getting_started/scripting/c_sharp/index.html).
+You must have the Mono version of Godot to run these.
+
+Languages: All have [C#](https://docs.godotengine.org/en/latest/getting_started/scripting/c_sharp/index.html),
+2.5D has some GDScript
+
+Renderers: Dodge the Creeps is GLES 3, rest are GLES 2
+
 # Note: Godot 3.2.2 or newer is required
 
 While most of the demos work with any 3.2.x version, these demos require

+ 7 - 0
networking/README.md

@@ -0,0 +1,7 @@
+# Networking Demos
+
+These demos showcase networking and/or multiplayer features.
+
+Languages: All have GDScript, WebRTC uses some GDNative
+
+Renderers: Multiplayer Bomber is GLES 3, rest are GLES 2

+ 1 - 1
networking/multiplayer_bomber/README.md

@@ -6,7 +6,7 @@ should type in his address and press "play".
 
 Language: GDScript
 
-Renderer: GLES 2
+Renderer: GLES 3
 
 ## Screenshots
 

+ 9 - 0
viewport/README.md

@@ -0,0 +1,9 @@
+# Viewport Demos
+
+These demos showcase various ways to use the
+[`Viewport`](https://docs.godotengine.org/en/stable/classes/class_viewport.html) node.
+
+Languages: All have GDScript, Dynamic Split Screen has
+[GDSL](https://docs.godotengine.org/en/latest/tutorials/shading/shading_reference/shading_language.html)
+
+Renderers: 3D in 2D and GUI in 3D use GLES 3, the rest are GLES 2

+ 8 - 0
visual_script/README.md

@@ -0,0 +1,8 @@
+# VisualScript Demos
+
+These demos are written in [VisualScript](https://docs.godotengine.org/en/latest/getting_started/scripting/visual_script/index.html).
+
+Languages: All are [VisualScript](https://docs.godotengine.org/en/latest/getting_started/scripting/visual_script/index.html),
+Multitouch View has some GDScript
+
+Renderers: All are GLES 2