extends RigidBody2D

var force = 500

func _ready():
	var force = force * 2
	print(force)

func _process(delta):
	pass
	
func _physics_process(delta):
	if Input.is_action_pressed("move_right"): # x+
		apply_force(Vector2(force,0))
	if Input.is_action_pressed("move_left"): # x-
		apply_force(Vector2(-force,0))
	if Input.is_action_pressed("move_down"): # y+
		apply_force(Vector2(0,force))
	if Input.is_action_pressed("move_up"): # y-
		apply_force(Vector2(0,-force))

	
	
