summaryrefslogtreecommitdiff
path: root/demos/misc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-11-21 13:31:25 +0100
committerRémi Verschelde <rverschelde@gmail.com>2015-12-09 08:39:12 +0100
commit8c4f19e79d3e8ac8bc8c283073dce5ccfbf222b5 (patch)
treec1124b6d4957389006024d1e1baa5de56e207fec /demos/misc
parent8639cecf4cedd56452b47503be19c44b304cd02f (diff)
Use upper-cased first letter at the start of comment sentences
Diffstat (limited to 'demos/misc')
-rw-r--r--demos/misc/autoload/global.gd4
-rw-r--r--demos/misc/autoload/scene_a.gd4
-rw-r--r--demos/misc/autoload/scene_b.gd4
-rw-r--r--demos/misc/joysticks/joysticks.gd10
-rw-r--r--demos/misc/regex/regex.gd2
-rw-r--r--demos/misc/scene_changer/scene_a.gd4
-rw-r--r--demos/misc/scene_changer/scene_b.gd4
-rw-r--r--demos/misc/threads/thread.gd16
-rw-r--r--demos/misc/tween/main.gd2
-rw-r--r--demos/misc/udp_chat/chat.gd2
-rw-r--r--demos/misc/window_management/control.gd2
-rw-r--r--demos/misc/window_management/observer/observer.gd4
12 files changed, 29 insertions, 29 deletions
diff --git a/demos/misc/autoload/global.gd b/demos/misc/autoload/global.gd
index 126cbc0ab7..e094ab9784 100644
--- a/demos/misc/autoload/global.gd
+++ b/demos/misc/autoload/global.gd
@@ -1,6 +1,6 @@
extends Node
-# member variables
+# Member variables
var current_scene = null
@@ -34,7 +34,7 @@ func _deferred_goto_scene(path):
func _ready():
# Get the current scene, the first time.
- # it is always the last child of root,
+ # It is always the last child of root,
# after the autoloaded nodes.
var root = get_tree().get_root()
diff --git a/demos/misc/autoload/scene_a.gd b/demos/misc/autoload/scene_a.gd
index b95ce7dc6e..f9c39887b0 100644
--- a/demos/misc/autoload/scene_a.gd
+++ b/demos/misc/autoload/scene_a.gd
@@ -1,7 +1,7 @@
extends Panel
-# member variables here, example:
+# Member variables here, example:
# var a=2
# var b="textvar"
@@ -13,4 +13,4 @@ func _ready():
func _on_goto_scene_pressed():
get_node("/root/global").goto_scene("res://scene_b.scn")
- pass # replace with function body
+ pass # Replace with function body
diff --git a/demos/misc/autoload/scene_b.gd b/demos/misc/autoload/scene_b.gd
index 599058848b..fdf2287a04 100644
--- a/demos/misc/autoload/scene_b.gd
+++ b/demos/misc/autoload/scene_b.gd
@@ -1,7 +1,7 @@
extends Panel
-# member variables here, example:
+# Member variables here, example:
# var a=2
# var b="textvar"
@@ -13,4 +13,4 @@ func _ready():
func _on_goto_scene_pressed():
get_node("/root/global").goto_scene("res://scene_a.scn")
- pass # replace with function body
+ pass # Replace with function body
diff --git a/demos/misc/joysticks/joysticks.gd b/demos/misc/joysticks/joysticks.gd
index dc9166e49e..7add88573d 100644
--- a/demos/misc/joysticks/joysticks.gd
+++ b/demos/misc/joysticks/joysticks.gd
@@ -8,7 +8,7 @@ extends Node2D
#
# Licensed under the MIT license
-# member variables
+# Member variables
var joy_num
var cur_joy
var axis_value
@@ -16,21 +16,21 @@ var btn_state
func _input(event):
- # get the joystick device number from the spinbox
+ # Get the joystick device number from the spinbox
joy_num = get_node("joy_num").get_value()
- # display the name of the joystick if we haven't already
+ # Display the name of the joystick if we haven't already
if joy_num != cur_joy:
cur_joy = joy_num
get_node("joy_name").set_text(Input.get_joy_name(joy_num))
- # loop through the axes and show their current values
+ # Loop through the axes and show their current values
for axis in range(0, 8):
axis_value = Input.get_joy_axis(joy_num, axis)
get_node("axis_prog" + str(axis)).set_value(100*axis_value)
get_node("axis_val" + str(axis)).set_text(str(axis_value))
- # loop through the buttons and highlight the ones that are pressed
+ # Loop through the buttons and highlight the ones that are pressed
for btn in range(0, 17):
btn_state = 1
if (Input.is_joy_button_pressed(joy_num, btn)):
diff --git a/demos/misc/regex/regex.gd b/demos/misc/regex/regex.gd
index 4921f4ff2e..98e5ca8828 100644
--- a/demos/misc/regex/regex.gd
+++ b/demos/misc/regex/regex.gd
@@ -1,7 +1,7 @@
extends VBoxContainer
-# member variables
+# Member variables
var regex = RegEx.new()
diff --git a/demos/misc/scene_changer/scene_a.gd b/demos/misc/scene_changer/scene_a.gd
index e27c48cf11..0e80395e84 100644
--- a/demos/misc/scene_changer/scene_a.gd
+++ b/demos/misc/scene_changer/scene_a.gd
@@ -1,7 +1,7 @@
extends Panel
-# member variables here, example:
+# Member variables here, example:
# var a=2
# var b="textvar"
@@ -13,4 +13,4 @@ func _ready():
func _on_goto_scene_pressed():
get_tree().change_scene("res://scene_b.scn")
- pass # replace with function body
+ pass # Replace with function body
diff --git a/demos/misc/scene_changer/scene_b.gd b/demos/misc/scene_changer/scene_b.gd
index b785ada45c..9ed13cf26b 100644
--- a/demos/misc/scene_changer/scene_b.gd
+++ b/demos/misc/scene_changer/scene_b.gd
@@ -1,7 +1,7 @@
extends Panel
-# member variables here, example:
+# Member variables here, example:
# var a=2
# var b="textvar"
@@ -13,4 +13,4 @@ func _ready():
func _on_goto_scene_pressed():
get_tree().change_scene("res://scene_a.scn")
- pass # replace with function body
+ pass # Replace with function body
diff --git a/demos/misc/threads/thread.gd b/demos/misc/threads/thread.gd
index fbfd68af2b..1ef67e403c 100644
--- a/demos/misc/threads/thread.gd
+++ b/demos/misc/threads/thread.gd
@@ -1,31 +1,31 @@
extends Node2D
-# member variables
+# Member variables
var thread = Thread.new()
-# this function runs in a thread!
-# threads always take one userdata argument
+# This function runs in a thread!
+# Threads always take one userdata argument
func _bg_load(path):
print("THREAD FUNC!")
- # load the resource
+ # Load the resource
var tex = ResourceLoader.load(path)
- # call _bg_load_done on main thread
+ # Call _bg_load_done on main thread
call_deferred("_bg_load_done")
return tex # return it
func _bg_load_done():
- # wait for the thread to complete, get the returned value
+ # Wait for the thread to complete, get the returned value
var tex = thread.wait_to_finish()
- # set to the sprite
+ # Set to the sprite
get_node("sprite").set_texture(tex)
func _on_load_pressed():
if (thread.is_active()):
- # already working
+ # Already working
return
print("START THREAD!")
thread.start(self, "_bg_load", "res://mona.png")
diff --git a/demos/misc/tween/main.gd b/demos/misc/tween/main.gd
index 4d37c18ba9..512271311e 100644
--- a/demos/misc/tween/main.gd
+++ b/demos/misc/tween/main.gd
@@ -1,7 +1,7 @@
extends Control
-# member variables
+# Member variables
var trans = ["linear", "sine", "quint", "quart", "quad", "expo", "elastic", "cubic", "circ", "bounce", "back"]
var eases = ["in", "out", "in_out", "out_in"]
var modes = ["move", "color", "scale", "rotate", "callback", "follow", "repeat", "pause"]
diff --git a/demos/misc/udp_chat/chat.gd b/demos/misc/udp_chat/chat.gd
index a2d52bf126..71286895f4 100644
--- a/demos/misc/udp_chat/chat.gd
+++ b/demos/misc/udp_chat/chat.gd
@@ -5,7 +5,7 @@ extends Panel
# (UDP can lose packets and you won't normally find out, so don't do a chat this way)
# This is just a demo that shows how to use the UDP class.
-# member variables
+# Member variables
var udp = PacketPeerUDP.new()
diff --git a/demos/misc/window_management/control.gd b/demos/misc/window_management/control.gd
index 881dbdc798..cd8e0e185b 100644
--- a/demos/misc/window_management/control.gd
+++ b/demos/misc/window_management/control.gd
@@ -1,7 +1,7 @@
extends Control
-# member variables
+# Member variables
var mousepos
diff --git a/demos/misc/window_management/observer/observer.gd b/demos/misc/window_management/observer/observer.gd
index c1878bca43..f100811859 100644
--- a/demos/misc/window_management/observer/observer.gd
+++ b/demos/misc/window_management/observer/observer.gd
@@ -1,7 +1,7 @@
extends Spatial
-# member variables
+# Member variables
var r_pos = Vector2()
var state
@@ -29,7 +29,7 @@ func _fixed_process(delta):
if(Input.get_mouse_mode() != Input.MOUSE_MODE_CAPTURED):
Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)
- var dir = Vector3()
+ var dir = Vector3()
var cam = get_global_transform()
var org = get_translation()