From 2efaf67003b62e6de27e9d6eecd830f24b254cd7 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 3 Apr 2022 02:37:44 +0200 Subject: [PATCH] :broom: Use snake_case --- src/entities/behaviours/BulletSpawn.gd | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/entities/behaviours/BulletSpawn.gd b/src/entities/behaviours/BulletSpawn.gd index 69af19b..1a90a8e 100644 --- a/src/entities/behaviours/BulletSpawn.gd +++ b/src/entities/behaviours/BulletSpawn.gd @@ -9,9 +9,8 @@ func _process(_delta): _on_Click() func _on_Click(): - var newBullet = bullet.instance() - newBullet.set_position(spawner.position) - var bulletRotation = rad2deg(newBullet.get_angle_to(get_global_mouse_position())) - newBullet.set_rotation_degrees(bulletRotation) - add_child(newBullet) - + var new_bullet = bullet.instance() + new_bullet.set_position(spawner.position) + var bullet_rotation = rad2deg(new_bullet.get_angle_to(get_global_mouse_position())) + new_bullet.set_rotation_degrees(bullet_rotation) + add_child(new_bullet)