added bow
This commit is contained in:
parent
5d01f40535
commit
2d3fc72ebe
50 changed files with 610 additions and 151 deletions
13
objects/player/arrow_projectile.gd
Normal file
13
objects/player/arrow_projectile.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready():
|
||||
scale.x = get_parent().get_node("Player").sprite.scale.x
|
||||
|
||||
func _physics_process(delta):
|
||||
position.x += 4 * scale.x
|
||||
|
||||
|
||||
func _on_Area2D_body_entered(body):
|
||||
if body is TileMap or body is StaticBody2D:
|
||||
queue_free()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue