Pls test Jas

This commit is contained in:
tiffanyfrias10
2021-11-22 22:15:28 -06:00
parent 436f2db61f
commit 506253d310
36 changed files with 694 additions and 109 deletions

16
snowball.gd Normal file
View File

@@ -0,0 +1,16 @@
extends Area2D
var move = Vector2.ZERO
var look_vec = Vector2.ZERO
var player = null
var speed = 3
func _ready():
look_vec = player.position - global_position
func _physics_process(delta):
move = Vector2.ZERO
move = move.move_toward(look_vec, delta)
move = move.normalized() * speed
position += move