Player gun, bullet and its collisiions. Refactor.
This commit is contained in:
parent
0dd3f24030
commit
ffb7c8bf99
28 changed files with 562 additions and 131 deletions
6
metroidvania/Scenes/Player/PlayerGun.gd
Normal file
6
metroidvania/Scenes/Player/PlayerGun.gd
Normal file
|
@ -0,0 +1,6 @@
|
|||
extends Node2D
|
||||
|
||||
|
||||
func _process(_delta):
|
||||
var player = get_parent()
|
||||
rotation = player.get_local_mouse_position().angle()
|
Loading…
Add table
Add a link
Reference in a new issue