Add charge throw mechanics; refactor bullet and brick components
This commit is contained in:
9
scripts/components/straight_motion_component.gd
Normal file
9
scripts/components/straight_motion_component.gd
Normal file
@@ -0,0 +1,9 @@
|
||||
class_name StraightMotionComponent
|
||||
extends Node
|
||||
|
||||
@export var root: Node2D
|
||||
@export var launch_component: LaunchComponent
|
||||
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
root.position += launch_component.get_initial_velocity() * delta
|
||||
Reference in New Issue
Block a user