Last modifs (maybe (we dunno))

This commit is contained in:
2024-09-02 00:04:56 +02:00
parent c4961da0dc
commit 55afdb608e
25 changed files with 236 additions and 63 deletions

View File

@@ -3,8 +3,6 @@ extends Control
@onready var next_seed: TextureRect = $HBoxContainer/NextSeed
@onready var queue_image := [
$HBoxContainer/Queue/Seed1,
$HBoxContainer/Queue/Seed2,
$HBoxContainer/Queue/Seed3,
$HBoxContainer/Queue/Seed4,
$HBoxContainer/Queue/Seed5,
@@ -15,7 +13,7 @@ var planter: Planter
func update_queue():
var next_seed_param := planter.get_plant_from_queue()
next_seed.texture = next_seed_param.seed_sprite
var index := 0
var index := 2
for child in queue_image:
var seed_param := planter.get_plant_from_queue(index)
child.texture = seed_param.seed_sprite

View File

@@ -3,7 +3,7 @@ extends CenterContainer
@export var gradient : GradientTexture1D
const CURSOR_WIDTH = 0.08
const CURSOR_WIDTH = 0.04
# Called when the node enters the scene tree for the first time.
func _ready():

View File

@@ -13,6 +13,13 @@ signal Planted
@onready var wanderer: Wanderer = $Wanderer
@onready var planting: Timer = $Planting
@onready var move_sounds = [
$MoveSound,
$MoveSound2,
$MoveSound3,
$MoveSound4,
$MoveSound5,
]
var target_pos := Vector2()
@@ -42,7 +49,7 @@ func _process(delta: float) -> void:
$AnimatedSprite2D.flip_h = true
func go_to(new_target_pos: Vector2):
$MoveSound.play()
move_sounds[randi()%len(move_sounds)].play()
state = MoveState.MOVING
target_pos = new_target_pos

View File

@@ -20,6 +20,7 @@ var cursor = 0
func _ready():
next_text()
show()
$RobotSpeak.playing = true
func _input(event):