diff --git a/demos/2d/dynamic_collision_shapes/ball.gd b/demos/2d/dynamic_collision_shapes/ball.gd index 8ffa33f7468..169079ea467 100644 --- a/demos/2d/dynamic_collision_shapes/ball.gd +++ b/demos/2d/dynamic_collision_shapes/ball.gd @@ -14,5 +14,4 @@ func _process(delta): func _ready(): - # Initialization here set_process(true) diff --git a/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd b/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd index 1595195c74c..25db51642ba 100644 --- a/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd +++ b/demos/2d/dynamic_collision_shapes/dynamic_colobjs.gd @@ -16,5 +16,4 @@ func _process(delta): func _ready(): - # Initialization here set_process(true) diff --git a/demos/2d/fog_of_war/fog.gd b/demos/2d/fog_of_war/fog.gd index 82979264c4a..3ac8df0e17f 100644 --- a/demos/2d/fog_of_war/fog.gd +++ b/demos/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): diff --git a/demos/2d/fog_of_war/troll.gd b/demos/2d/fog_of_war/troll.gd index 454a3ac3a30..6f40072e844 100644 --- a/demos/2d/fog_of_war/troll.gd +++ b/demos/2d/fog_of_war/troll.gd @@ -35,5 +35,4 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/2d/hdr/beach_cave.gd b/demos/2d/hdr/beach_cave.gd index 9829bd3611d..fcc878e565a 100644 --- a/demos/2d/hdr/beach_cave.gd +++ b/demos/2d/hdr/beach_cave.gd @@ -18,5 +18,4 @@ func _input(event): func _ready(): - # Initialization here set_process_input(true) diff --git a/demos/2d/hexamap/troll.gd b/demos/2d/hexamap/troll.gd index 0e4d7ce5359..82938fdf104 100644 --- a/demos/2d/hexamap/troll.gd +++ b/demos/2d/hexamap/troll.gd @@ -35,5 +35,4 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/2d/isometric/troll.gd b/demos/2d/isometric/troll.gd index c44a6228996..d8d4880df16 100644 --- a/demos/2d/isometric/troll.gd +++ b/demos/2d/isometric/troll.gd @@ -35,5 +35,4 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/2d/isometric_light/cubio.gd b/demos/2d/isometric_light/cubio.gd index 7e2ff2a5c44..508cd3728cd 100644 --- a/demos/2d/isometric_light/cubio.gd +++ b/demos/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) diff --git a/demos/2d/isometric_light/shoot.gd b/demos/2d/isometric_light/shoot.gd index bf0b09dc0b8..b48d4ad34b7 100644 --- a/demos/2d/isometric_light/shoot.gd +++ b/demos/2d/isometric_light/shoot.gd @@ -18,5 +18,4 @@ func _fixed_process(delta): func _ready(): - # Initialization here set_fixed_process(true) diff --git a/demos/2d/kinematic_char/player.gd b/demos/2d/kinematic_char/player.gd index a5c64a303ab..2890cc2ce30 100644 --- a/demos/2d/kinematic_char/player.gd +++ b/demos/2d/kinematic_char/player.gd @@ -120,5 +120,4 @@ func _fixed_process(delta): func _ready(): - #Initalization here set_fixed_process(true) diff --git a/demos/2d/kinematic_col/player.gd b/demos/2d/kinematic_col/player.gd index 48d54d1a336..ce09e1509ea 100644 --- a/demos/2d/kinematic_col/player.gd +++ b/demos/2d/kinematic_col/player.gd @@ -28,5 +28,4 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/2d/lookat/lookat.gd b/demos/2d/lookat/lookat.gd index 25b5e638d71..c45c3ad6228 100644 --- a/demos/2d/lookat/lookat.gd +++ b/demos/2d/lookat/lookat.gd @@ -30,5 +30,4 @@ func _process(delta): func _ready(): - # Initialization here set_process(true) diff --git a/demos/2d/motion/motion.gd b/demos/2d/motion/motion.gd index a7031b24e6e..f9bbd6f90d8 100644 --- a/demos/2d/motion/motion.gd +++ b/demos/2d/motion/motion.gd @@ -27,7 +27,6 @@ func _fixed_process(delta): func _ready(): - # Initialization here if (use_idle): set_process(true) else: diff --git a/demos/2d/navpoly/navigation.gd b/demos/2d/navpoly/navigation.gd index 50ea4c89659..4cfa2ad733c 100644 --- a/demos/2d/navpoly/navigation.gd +++ b/demos/2d/navpoly/navigation.gd @@ -50,5 +50,4 @@ func _input(event): func _ready(): - # Initialization here set_process_input(true) diff --git a/demos/2d/platformer/bullet.gd b/demos/2d/platformer/bullet.gd index f66bca6b246..3aee69714ef 100644 --- a/demos/2d/platformer/bullet.gd +++ b/demos/2d/platformer/bullet.gd @@ -13,5 +13,4 @@ func disable(): func _ready(): - # Initalization here get_node("Timer").start() diff --git a/demos/2d/platformer/enemy.gd b/demos/2d/platformer/enemy.gd index 75f13e3ee9d..5a4d8af5795 100644 --- a/demos/2d/platformer/enemy.gd +++ b/demos/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") diff --git a/demos/2d/platformer/moving_platform.gd b/demos/2d/platformer/moving_platform.gd index db75f6db6cc..21c312d5c33 100644 --- a/demos/2d/platformer/moving_platform.gd +++ b/demos/2d/platformer/moving_platform.gd @@ -17,5 +17,4 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/2d/platformer/player.gd b/demos/2d/platformer/player.gd index 3bf4f0f94c8..7ed99df9bda 100644 --- a/demos/2d/platformer/player.gd +++ b/demos/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"): diff --git a/demos/2d/pong/pong.gd b/demos/2d/pong/pong.gd index b31e3c3d71e..81afbd99618 100644 --- a/demos/2d/pong/pong.gd +++ b/demos/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) diff --git a/demos/2d/screen_space_shaders/screen_shaders.gd b/demos/2d/screen_space_shaders/screen_shaders.gd index e2fb50048f5..b847a9c923f 100644 --- a/demos/2d/screen_space_shaders/screen_shaders.gd +++ b/demos/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(): diff --git a/demos/2d/shower_of_bullets/bullets.gd b/demos/2d/shower_of_bullets/bullets.gd index b62c796f329..e0eba2682aa 100644 --- a/demos/2d/shower_of_bullets/bullets.gd +++ b/demos/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 diff --git a/demos/2d/shower_of_bullets/shower.gd b/demos/2d/shower_of_bullets/shower.gd index 0f87c60bcdf..50c1109489a 100644 --- a/demos/2d/shower_of_bullets/shower.gd +++ b/demos/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) diff --git a/demos/2d/space_shooter/asteroid.gd b/demos/2d/space_shooter/asteroid.gd index 0a54e4e7800..9f6734e1228 100644 --- a/demos/2d/space_shooter/asteroid.gd +++ b/demos/2d/space_shooter/asteroid.gd @@ -15,7 +15,6 @@ func _process(delta): func _ready(): - # Initialization here speed_y = rand_range(-Y_RANDOM, Y_RANDOM) diff --git a/demos/2d/space_shooter/enemy2.gd b/demos/2d/space_shooter/enemy2.gd index ca35f45faa7..bfdb743103a 100644 --- a/demos/2d/space_shooter/enemy2.gd +++ b/demos/2d/space_shooter/enemy2.gd @@ -40,7 +40,6 @@ func destroy(): func _ready(): - # Initialization here set_fixed_process(true) diff --git a/demos/2d/space_shooter/enemy_shot.gd b/demos/2d/space_shooter/enemy_shot.gd index 8a27a4ca222..6c782b69f16 100644 --- a/demos/2d/space_shooter/enemy_shot.gd +++ b/demos/2d/space_shooter/enemy_shot.gd @@ -12,7 +12,6 @@ func _process(delta): func _ready(): - # Initialization here set_process(true) diff --git a/demos/2d/space_shooter/main_menu.gd b/demos/2d/space_shooter/main_menu.gd index 8b3162389e4..a7f242da7b0 100644 --- a/demos/2d/space_shooter/main_menu.gd +++ b/demos/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)) diff --git a/demos/2d/space_shooter/rail.gd b/demos/2d/space_shooter/rail.gd index b00684a98fc..7362dff97d8 100644 --- a/demos/2d/space_shooter/rail.gd +++ b/demos/2d/space_shooter/rail.gd @@ -16,5 +16,4 @@ func _process(delta): func _ready(): - # Initialization here set_process(true) diff --git a/demos/2d/space_shooter/ship.gd b/demos/2d/space_shooter/ship.gd index b9020d6fe15..b6c1200632a 100644 --- a/demos/2d/space_shooter/ship.gd +++ b/demos/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) diff --git a/demos/2d/space_shooter/shot.gd b/demos/2d/space_shooter/shot.gd index 31b5b243673..936dde73d1f 100644 --- a/demos/2d/space_shooter/shot.gd +++ b/demos/2d/space_shooter/shot.gd @@ -12,7 +12,6 @@ func _process(delta): func _ready(): - # Initialization here set_process(true) diff --git a/demos/2d/tetris/grid.gd b/demos/2d/tetris/grid.gd index 73607d7cf63..75fabb42105 100644 --- a/demos/2d/tetris/grid.gd +++ b/demos/2d/tetris/grid.gd @@ -188,7 +188,6 @@ func setup(w, h): func _ready(): - # Initalization here setup(10, 20) score_label = get_node("../score") diff --git a/demos/2d/texscreen/bubbles.gd b/demos/2d/texscreen/bubbles.gd index 38877679d89..400da1a2057 100644 --- a/demos/2d/texscreen/bubbles.gd +++ b/demos/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) diff --git a/demos/3d/kinematic_char/cubio.gd b/demos/3d/kinematic_char/cubio.gd index c4d82761811..769ada3bcaf 100644 --- a/demos/3d/kinematic_char/cubio.gd +++ b/demos/3d/kinematic_char/cubio.gd @@ -79,7 +79,6 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/3d/navmesh/navmesh.gd b/demos/3d/navmesh/navmesh.gd index f3eaf766d27..30b8cfb32a0 100644 --- a/demos/3d/navmesh/navmesh.gd +++ b/demos/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) diff --git a/demos/3d/platformer/player.gd b/demos/3d/platformer/player.gd index 4cac1817e45..74714605382 100644 --- a/demos/3d/platformer/player.gd +++ b/demos/3d/platformer/player.gd @@ -208,5 +208,4 @@ func _integrate_forces(state): func _ready(): - # Initalization here get_node("AnimationTreePlayer").set_active(true) diff --git a/demos/3d/truck_town/vehicle.gd b/demos/3d/truck_town/vehicle.gd index 22c5b7f0d42..c4224577c6d 100644 --- a/demos/3d/truck_town/vehicle.gd +++ b/demos/3d/truck_town/vehicle.gd @@ -42,5 +42,4 @@ func _fixed_process(delta): func _ready(): - # Initalization here set_fixed_process(true) diff --git a/demos/misc/udp_chat/chat.gd b/demos/misc/udp_chat/chat.gd index 71286895f4b..b60afa9dedb 100644 --- a/demos/misc/udp_chat/chat.gd +++ b/demos/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) diff --git a/demos/viewport/2d_in_3d/pong.gd b/demos/viewport/2d_in_3d/pong.gd index bf93c63bf2b..ac3457453b5 100644 --- a/demos/viewport/2d_in_3d/pong.gd +++ b/demos/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) diff --git a/demos/viewport/2d_in_3d/pong3d.gd b/demos/viewport/2d_in_3d/pong3d.gd index 9e5e5b28c58..79a7a36801e 100644 --- a/demos/viewport/2d_in_3d/pong3d.gd +++ b/demos/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) diff --git a/demos/viewport/gui_in_3d/gui_3d.gd b/demos/viewport/gui_in_3d/gui_3d.gd index c640b133d34..b93c17521d9 100644 --- a/demos/viewport/gui_in_3d/gui_3d.gd +++ b/demos/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)