diff options
Diffstat (limited to 'demos/2d')
31 files changed, 0 insertions, 31 deletions
diff --git a/demos/2d/dynamic_collision_shapes/ball.gd b/demos/2d/dynamic_collision_shapes/ball.gd index 8ffa33f746..169079ea46 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 1595195c74..25db51642b 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 82979264c4..3ac8df0e17 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 454a3ac3a3..6f40072e84 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 9829bd3611..fcc878e565 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 0e4d7ce535..82938fdf10 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 c44a622899..d8d4880df1 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 7e2ff2a5c4..508cd3728c 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 bf0b09dc0b..b48d4ad34b 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 a5c64a303a..2890cc2ce3 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 48d54d1a33..ce09e1509e 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 25b5e638d7..c45c3ad622 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 a7031b24e6..f9bbd6f90d 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 50ea4c8965..4cfa2ad733 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 f66bca6b24..3aee69714e 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 75f13e3ee9..5a4d8af579 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 db75f6db6c..21c312d5c3 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 3bf4f0f94c..7ed99df9bd 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 b31e3c3d71..81afbd9961 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 e2fb50048f..b847a9c923 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 b62c796f32..e0eba2682a 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 0f87c60bcd..50c1109489 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 0a54e4e780..9f6734e122 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 ca35f45faa..bfdb743103 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 8a27a4ca22..6c782b69f1 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 8b3162389e..a7f242da7b 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 b00684a98f..7362dff97d 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 b9020d6fe1..b6c1200632 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 31b5b24367..936dde73d1 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 73607d7cf6..75fabb4210 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 38877679d8..400da1a205 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) |