summaryrefslogtreecommitdiff
path: root/Sprite.gd
blob: 1e879c8e3f65fb4660da0b34fcfd370c7e7f9bc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extends Sprite

export var gravity = 15

var angular_speed = PI
var velocity = Vector2(500, -800)

# Called when the node enters the scene tree for the first time.
func _ready():
	pass # Replace with function body.

# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
	position += velocity * delta
	rotation += angular_speed * delta

	velocity.y += gravity