Basic player controls and aiming
This commit is contained in:
parent
56695d303e
commit
f5999da412
114 changed files with 6611 additions and 2 deletions
12
objects/weapons/projectiles/throwable.gd
Normal file
12
objects/weapons/projectiles/throwable.gd
Normal file
|
@ -0,0 +1,12 @@
|
|||
class_name Throwable
|
||||
extends RigidBody2D
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_interacted(user: Node) -> void:
|
||||
var player = user as Player
|
||||
if player:
|
||||
player.pick_up(self)
|
Reference in a new issue