Prechádzať zdrojové kódy

Remove systematic "Init(i)alization here" from _ready()

Rémi Verschelde 9 rokov pred
rodič
commit
eb167ebcaa

+ 0 - 1
2d/dynamic_collision_shapes/ball.gd

@@ -14,5 +14,4 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_process(true)

+ 0 - 1
2d/dynamic_collision_shapes/dynamic_colobjs.gd

@@ -16,5 +16,4 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_process(true)

+ 0 - 1
2d/fog_of_war/fog.gd

@@ -71,7 +71,6 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	# Create a square filled with the 100% opaque fog
 	for x in range(x_min, x_max):
 		for y in range(y_min, y_max):

+ 0 - 1
2d/fog_of_war/troll.gd

@@ -35,5 +35,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)

+ 0 - 1
2d/hdr/beach_cave.gd

@@ -18,5 +18,4 @@ func _input(event):
 
 
 func _ready():
-	# Initialization here
 	set_process_input(true)

+ 0 - 1
2d/hexamap/troll.gd

@@ -35,5 +35,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)

+ 0 - 1
2d/isometric/troll.gd

@@ -35,5 +35,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)

+ 0 - 1
2d/isometric_light/cubio.gd

@@ -81,6 +81,5 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_fixed_process(true)
 	set_process_input(true)

+ 0 - 1
2d/isometric_light/shoot.gd

@@ -18,5 +18,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_fixed_process(true)

+ 0 - 1
2d/kinematic_char/player.gd

@@ -120,5 +120,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	#Initalization here
 	set_fixed_process(true)

+ 0 - 1
2d/kinematic_col/player.gd

@@ -28,5 +28,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)

+ 0 - 1
2d/lookat/lookat.gd

@@ -30,5 +30,4 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_process(true)

+ 0 - 1
2d/motion/motion.gd

@@ -27,7 +27,6 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initialization here
 	if (use_idle):
 		set_process(true)
 	else:

+ 0 - 1
2d/navpoly/navigation.gd

@@ -50,5 +50,4 @@ func _input(event):
 
 
 func _ready():
-	# Initialization here
 	set_process_input(true)

+ 0 - 1
2d/platformer/bullet.gd

@@ -13,5 +13,4 @@ func disable():
 
 
 func _ready():
-	# Initalization here
 	get_node("Timer").start()

+ 0 - 1
2d/platformer/enemy.gd

@@ -79,6 +79,5 @@ func _integrate_forces(s):
 
 
 func _ready():
-	# Initalization here
 	rc_left = get_node("raycast_left")
 	rc_right = get_node("raycast_right")

+ 0 - 1
2d/platformer/moving_platform.gd

@@ -17,5 +17,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)

+ 0 - 1
2d/platformer/player.gd

@@ -220,7 +220,6 @@ func _integrate_forces(s):
 
 
 func _ready():
-	# Initalization here
 	enemy = ResourceLoader.load("res://enemy.xml")
 	
 #	if !Globals.has_singleton("Facebook"):

+ 0 - 1
2d/pong/pong.gd

@@ -62,7 +62,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initalization here
 	screen_size = get_viewport_rect().size # Get actual size
 	pad_size = get_node("left").get_texture().get_size()
 	set_process(true)

+ 0 - 1
2d/screen_space_shaders/screen_shaders.gd

@@ -3,7 +3,6 @@ extends Control
 
 
 func _ready():
-	# Initialization here
 	for c in get_node("pictures").get_children():
 		get_node("picture").add_item("PIC: " + c.get_name())
 	for c in get_node("effects").get_children():

+ 0 - 1
2d/shower_of_bullets/bullets.gd

@@ -42,7 +42,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	shape = Physics2DServer.shape_create(Physics2DServer.SHAPE_CIRCLE)
 	Physics2DServer.shape_set_data(shape, 8) # Radius
 	

+ 0 - 1
2d/shower_of_bullets/shower.gd

@@ -22,5 +22,4 @@ func _on_player_body_exit_shape(body_id, body, body_shape, area_shape):
 
 
 func _ready():
-	# Initialization here
 	set_process_input(true)

+ 0 - 1
2d/space_shooter/asteroid.gd

@@ -15,7 +15,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here	
 	speed_y = rand_range(-Y_RANDOM, Y_RANDOM)
 
 

+ 0 - 1
2d/space_shooter/enemy2.gd

@@ -40,7 +40,6 @@ func destroy():
 
 
 func _ready():
-	# Initialization here
 	set_fixed_process(true)
 
 

+ 0 - 1
2d/space_shooter/enemy_shot.gd

@@ -12,7 +12,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_process(true)
 
 

+ 0 - 1
2d/space_shooter/main_menu.gd

@@ -3,7 +3,6 @@ extends Control
 
 
 func _ready():
-	# Initialization here
 	get_node("score").set_text("HIGH SCORE: " + str(get_node("/root/game_state").max_points))
 
 

+ 0 - 1
2d/space_shooter/rail.gd

@@ -16,5 +16,4 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_process(true)

+ 0 - 1
2d/space_shooter/ship.gd

@@ -52,7 +52,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	screen_size = get_viewport().get_rect().size
 	set_process(true)
 

+ 0 - 1
2d/space_shooter/shot.gd

@@ -12,7 +12,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initialization here
 	set_process(true)
 
 

+ 0 - 1
2d/tetris/grid.gd

@@ -188,7 +188,6 @@ func setup(w, h):
 
 
 func _ready():
-	# Initalization here
 	setup(10, 20)
 	score_label = get_node("../score")
 	

+ 0 - 1
2d/texscreen/bubbles.gd

@@ -6,7 +6,6 @@ const MAX_BUBBLES = 10
 
 
 func _ready():
-	# Initialization here
 	for i in range(MAX_BUBBLES):
 		var bubble = preload("res://lens.scn").instance()
 		add_child(bubble)

+ 0 - 1
3d/kinematic_char/cubio.gd

@@ -79,7 +79,6 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)
 
 

+ 0 - 1
3d/navmesh/navmesh.gd

@@ -85,7 +85,6 @@ func _input(event):
 
 
 func _ready():
-	# Initalization here
 	set_process_input(true)
 	m.set_line_width(3)
 	m.set_point_size(3)

+ 0 - 1
3d/platformer/player.gd

@@ -208,5 +208,4 @@ func _integrate_forces(state):
 
 
 func _ready():
-	# Initalization here
 	get_node("AnimationTreePlayer").set_active(true)

+ 0 - 1
3d/truck_town/vehicle.gd

@@ -42,5 +42,4 @@ func _fixed_process(delta):
 
 
 func _ready():
-	# Initalization here
 	set_fixed_process(true)

+ 0 - 1
misc/udp_chat/chat.gd

@@ -23,7 +23,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initalization here
 	get_node("chat").add_style_override("panel", get_stylebox("bg", "Tree"))
 	set_process(true)
 

+ 0 - 1
viewport/2d_in_3d/pong.gd

@@ -61,7 +61,6 @@ func _process(delta):
 
 
 func _ready():
-	# Initalization here
 	screen_size = get_viewport_rect().size # Get actual size
 	pad_size = get_node("left").get_texture().get_size()
 	set_process(true)

+ 0 - 1
viewport/2d_in_3d/pong3d.gd

@@ -3,6 +3,5 @@ extends Spatial
 
 
 func _ready():
-	# Initalization here
 	var tex = get_node("Viewport").get_render_target_texture()
 	get_node("Quad").get_material_override().set_texture(FixedMaterial.PARAM_DIFFUSE, tex)

+ 0 - 1
viewport/gui_in_3d/gui_3d.gd

@@ -33,6 +33,5 @@ func _on_area_input_event(camera, event, click_pos, click_normal, shape_idx):
 
 
 func _ready():
-	# Initalization here
 	get_node("area/quad").get_material_override().set_texture(FixedMaterial.PARAM_DIFFUSE, get_node("viewport").get_render_target_texture())
 	set_process_input(true)