Skip to content

Commit

Permalink
Remove systematic "Init(i)alization here" from _ready()
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga committed Dec 9, 2015
1 parent d6642f2 commit eb167eb
Show file tree
Hide file tree
Showing 39 changed files with 0 additions and 39 deletions.
1 change: 0 additions & 1 deletion 2d/dynamic_collision_shapes/ball.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ func _process(delta):


func _ready():
# Initialization here
set_process(true)
1 change: 0 additions & 1 deletion 2d/dynamic_collision_shapes/dynamic_colobjs.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ func _process(delta):


func _ready():
# Initialization here
set_process(true)
1 change: 0 additions & 1 deletion 2d/fog_of_war/fog.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion 2d/fog_of_war/troll.gd
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/hdr/beach_cave.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ func _input(event):


func _ready():
# Initialization here
set_process_input(true)
1 change: 0 additions & 1 deletion 2d/hexamap/troll.gd
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/isometric/troll.gd
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/isometric_light/cubio.gd
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,5 @@ func _fixed_process(delta):


func _ready():
# Initialization here
set_fixed_process(true)
set_process_input(true)
1 change: 0 additions & 1 deletion 2d/isometric_light/shoot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ func _fixed_process(delta):


func _ready():
# Initialization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/kinematic_char/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,4 @@ func _fixed_process(delta):


func _ready():
#Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/kinematic_col/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,4 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/lookat/lookat.gd
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ func _process(delta):


func _ready():
# Initialization here
set_process(true)
1 change: 0 additions & 1 deletion 2d/motion/motion.gd
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func _fixed_process(delta):


func _ready():
# Initialization here
if (use_idle):
set_process(true)
else:
Expand Down
1 change: 0 additions & 1 deletion 2d/navpoly/navigation.gd
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,4 @@ func _input(event):


func _ready():
# Initialization here
set_process_input(true)
1 change: 0 additions & 1 deletion 2d/platformer/bullet.gd
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ func disable():


func _ready():
# Initalization here
get_node("Timer").start()
1 change: 0 additions & 1 deletion 2d/platformer/enemy.gd
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,5 @@ func _integrate_forces(s):


func _ready():
# Initalization here
rc_left = get_node("raycast_left")
rc_right = get_node("raycast_right")
1 change: 0 additions & 1 deletion 2d/platformer/moving_platform.gd
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion 2d/platformer/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ func _integrate_forces(s):


func _ready():
# Initalization here
enemy = ResourceLoader.load("res://enemy.xml")

# if !Globals.has_singleton("Facebook"):
Expand Down
1 change: 0 additions & 1 deletion 2d/pong/pong.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion 2d/screen_space_shaders/screen_shaders.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
1 change: 0 additions & 1 deletion 2d/shower_of_bullets/bullets.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion 2d/shower_of_bullets/shower.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion 2d/space_shooter/asteroid.gd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ func _process(delta):


func _ready():
# Initialization here
speed_y = rand_range(-Y_RANDOM, Y_RANDOM)


Expand Down
1 change: 0 additions & 1 deletion 2d/space_shooter/enemy2.gd
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ func destroy():


func _ready():
# Initialization here
set_fixed_process(true)


Expand Down
1 change: 0 additions & 1 deletion 2d/space_shooter/enemy_shot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func _process(delta):


func _ready():
# Initialization here
set_process(true)


Expand Down
1 change: 0 additions & 1 deletion 2d/space_shooter/main_menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down
1 change: 0 additions & 1 deletion 2d/space_shooter/rail.gd
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ func _process(delta):


func _ready():
# Initialization here
set_process(true)
1 change: 0 additions & 1 deletion 2d/space_shooter/ship.gd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ func _process(delta):


func _ready():
# Initialization here
screen_size = get_viewport().get_rect().size
set_process(true)

Expand Down
1 change: 0 additions & 1 deletion 2d/space_shooter/shot.gd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func _process(delta):


func _ready():
# Initialization here
set_process(true)


Expand Down
1 change: 0 additions & 1 deletion 2d/tetris/grid.gd
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ func setup(w, h):


func _ready():
# Initalization here
setup(10, 20)
score_label = get_node("../score")

Expand Down
1 change: 0 additions & 1 deletion 2d/texscreen/bubbles.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion 3d/kinematic_char/cubio.gd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)


Expand Down
1 change: 0 additions & 1 deletion 3d/navmesh/navmesh.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion 3d/platformer/player.gd
Original file line number Diff line number Diff line change
Expand Up @@ -208,5 +208,4 @@ func _integrate_forces(state):


func _ready():
# Initalization here
get_node("AnimationTreePlayer").set_active(true)
1 change: 0 additions & 1 deletion 3d/truck_town/vehicle.gd
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,4 @@ func _fixed_process(delta):


func _ready():
# Initalization here
set_fixed_process(true)
1 change: 0 additions & 1 deletion misc/udp_chat/chat.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion viewport/2d_in_3d/pong.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion viewport/2d_in_3d/pong3d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion viewport/gui_in_3d/gui_3d.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit eb167eb

Please sign in to comment.