mirror of
https://github.com/RYGhub/the-cold-night.git
synced 2024-11-22 12:44:20 +00:00
🧹 Use snake_case
This commit is contained in:
parent
844bf08a8d
commit
2efaf67003
1 changed files with 5 additions and 6 deletions
|
@ -9,9 +9,8 @@ func _process(_delta):
|
||||||
_on_Click()
|
_on_Click()
|
||||||
|
|
||||||
func _on_Click():
|
func _on_Click():
|
||||||
var newBullet = bullet.instance()
|
var new_bullet = bullet.instance()
|
||||||
newBullet.set_position(spawner.position)
|
new_bullet.set_position(spawner.position)
|
||||||
var bulletRotation = rad2deg(newBullet.get_angle_to(get_global_mouse_position()))
|
var bullet_rotation = rad2deg(new_bullet.get_angle_to(get_global_mouse_position()))
|
||||||
newBullet.set_rotation_degrees(bulletRotation)
|
new_bullet.set_rotation_degrees(bullet_rotation)
|
||||||
add_child(newBullet)
|
add_child(new_bullet)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue