ajout d'un indicateur de la base lors de l'exploration et changements divers
* suppression des deux dernières étapes du tutoriel * fix des particules de score * ajout du loop dans l'import de la dernière musique
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
extends InGameIndicator
|
||||
class_name InGameBaseIndicator
|
||||
|
||||
@export var player : Player
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
setup(tr("GARDEN"))
|
||||
print(GameInfo.game_data.current_planet_data.garden_size/2)
|
||||
follow_game_position(GameInfo.game_data.current_planet_data.garden_size/2)
|
||||
|
||||
func _process(_delta):
|
||||
visible = player and (
|
||||
player.global_position.x < 0
|
||||
or player.global_position.x > GameInfo.game_data.current_planet_data.garden_size.x
|
||||
or player.global_position.y < 0
|
||||
or player.global_position.y > GameInfo.game_data.current_planet_data.garden_size.y
|
||||
)
|
||||
update()
|
||||
@@ -0,0 +1 @@
|
||||
uid://ds7ej47i3wsym
|
||||
@@ -33,7 +33,9 @@ func follow_entity(entity : Node2D):
|
||||
|
||||
func _process(_d):
|
||||
show()
|
||||
update()
|
||||
|
||||
func update():
|
||||
var camera = get_viewport().get_camera_2d()
|
||||
|
||||
var screen_size = get_viewport().get_visible_rect().size
|
||||
|
||||
@@ -13,8 +13,8 @@ var indicators : Array[InGameIndicator]
|
||||
TakeSeedStep.new(),
|
||||
PlantSeedStep.new(),
|
||||
RechargeStep.new(),
|
||||
WaitMaturePlant.new(),
|
||||
HarvestMaturePlant.new(),
|
||||
# WaitMaturePlant.new(),
|
||||
# HarvestMaturePlant.new(),
|
||||
]
|
||||
var actual_step : Step = null : set = pass_to_step
|
||||
|
||||
|
||||
Reference in New Issue
Block a user