feat: choice system
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 2m24s

This commit is contained in:
2025-08-02 20:01:01 +02:00
parent 3450c463f9
commit 12b02877bb
17 changed files with 14656 additions and 48 deletions

24
main.gd
View File

@ -8,6 +8,7 @@ var active_camera: SuperCamera
@onready var opening_fade_to_black: ColorRect = $OpeningFadeToBlack
@onready var opening_cutscene: AnimationPlayer = $OpeningCutscene
@onready var dance_cutscene: AnimationPlayer = $DanceCutscene
@onready var background_far: TileMapLayer = $BackgroundFar
@onready var background_middle: TileMapLayer = $BackgroundMiddle
@ -15,10 +16,12 @@ var active_camera: SuperCamera
@onready var foreground_far: TileMapLayer = $ForegroundFar
@export_group("Parallax")
@export var parallax_far = 0.1
@export var parallax_middle = 0.3
@export var parallax_close = 0.5
@export var foreground = 0.8
@export var parallax_far = 0.5
@export var parallax_middle = 0.4
@export var parallax_close = 0.3
@export var foreground = 0.2
@onready var choices_container: MarginContainer = %ChoicesContainer
# Called when the node enters the scene tree for the first time.
@ -39,9 +42,22 @@ func _process(delta: float) -> void:
next_dialogue.global_position.x = active_camera.global_position.x + 133.0
bubbles_back.global_position.x = active_camera.global_position.x
bubbles_interior.global_position.x = active_camera.global_position.x
choices_container.global_position.x = active_camera.global_position.x - 100
background_far.global_position.x = active_camera.global_position.x * parallax_far
background_middle.global_position.x = active_camera.global_position.x * parallax_middle
background_close.global_position.x = active_camera.global_position.x * parallax_close
foreground_far.global_position.x = active_camera.global_position.x * foreground
func _on_start_dancing() -> void:
dance_cutscene.play("dance")
func restart_at_first_scene():
pass
func to_main_menu():
pass
func quit_game():
pass