2018-05-23 01:40:45 -04:00
|
|
|
extends Node
|
|
|
|
|
2018-05-23 03:57:15 -04:00
|
|
|
signal refund
|
|
|
|
signal speed_upgrade
|
|
|
|
signal bullet_delay_upgrade
|
|
|
|
signal add_laser
|
|
|
|
signal plasma_lasers
|
|
|
|
|
2018-05-23 21:35:16 -04:00
|
|
|
var bullet_delay_tier
|
2018-05-23 11:02:52 -04:00
|
|
|
var shooting_speed_tier
|
|
|
|
var ship_speed_tier
|
|
|
|
var double_lasers
|
2018-05-23 01:40:45 -04:00
|
|
|
|
|
|
|
func _ready():
|
|
|
|
pass
|
|
|
|
|
2018-05-23 21:35:16 -04:00
|
|
|
func _process(delta):
|
|
|
|
$ShootingSpeedIcon.frame = bullet_delay_tier
|
|
|
|
if (Input.is_action_pressed("ui_quit")):
|
|
|
|
get_tree().quit()
|
2018-05-23 01:40:45 -04:00
|
|
|
|
|
|
|
func _on_Button_pressed():
|
|
|
|
get_tree().paused = false
|
|
|
|
queue_free()
|
2018-05-23 03:57:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
func _on_Refund_pressed():
|
|
|
|
get_tree().paused = false
|
|
|
|
emit_signal("refund")
|
2018-05-23 11:02:52 -04:00
|
|
|
$ShootingSpeedIcon.frame = 0
|
2018-05-23 03:57:15 -04:00
|
|
|
pass # replace with function body
|
2018-05-23 11:02:52 -04:00
|
|
|
|
|
|
|
func shooting_speed_upgrade_success():
|
|
|
|
$ShootingSpeedIcon.frame += 1
|
|
|
|
|
|
|
|
func _on_ShootingSpeedUpgrade_pressed():
|
|
|
|
get_tree().paused = false
|
|
|
|
emit_signal("bullet_delay_upgrade")
|
2018-05-23 21:35:16 -04:00
|
|
|
bullet_delay_tier = get_parent().bullet_delay_tier
|
2018-05-23 11:02:52 -04:00
|
|
|
pass
|