feat: choice system
This commit is contained in:
24
main.gd
24
main.gd
@ -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
|
||||
|
Reference in New Issue
Block a user