Added delivery quest (very crappy realisation)
This commit is contained in:
parent
33bcd65c53
commit
c6bf51f1b0
9 changed files with 71 additions and 13 deletions
|
|
@ -8,13 +8,17 @@ var type = "hostile"
|
|||
var tmi = {
|
||||
"hostile": 0,
|
||||
"base": 1,
|
||||
"loot": 2
|
||||
"loot": 2,
|
||||
"quest": 3
|
||||
}
|
||||
|
||||
func _ready():
|
||||
marker.frame = tmi[type]
|
||||
|
||||
func _process(_delta):
|
||||
if !is_instance_valid(target):
|
||||
queue_free()
|
||||
return
|
||||
rotation = ship.global_position.angle_to_point(target.global_position)
|
||||
var sp_scale = 1024 / clamp(ship.global_position.distance_to(target.global_position), 512, 2048)
|
||||
marker.scale = Vector2(sp_scale, sp_scale)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue