base platformer
This commit is contained in:
parent
51be54d905
commit
499b2416e1
10 changed files with 129 additions and 12 deletions
7
games/asteroids/bullet.gd
Normal file
7
games/asteroids/bullet.gd
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
extends Area2D
|
||||
|
||||
@export var speed : float = 100
|
||||
var goal : Vector2
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
position = position.move_toward(goal,delta * speed)
|
||||
Loading…
Add table
Add a link
Reference in a new issue