-
Notifications
You must be signed in to change notification settings - Fork 6
transition
The Transition class plays the intro sequence shown between the song-select screen and the start of gameplay. It displays the song title, subtitle, and an optional loading graphic, then slides the elements into position before the song begins. Owned by game as optional<Transition>.
Transition(const string& title, const string& subtitle, bool is_second);| Parameter | Description |
|---|---|
title |
Song title string displayed as outlined text |
subtitle |
Song subtitle string displayed beneath the title |
is_second |
Whether this is the second song in a multi-song session |
Creates OutlinedText objects for both strings and allocates all animations. Does not start playback until start() is called.
| Member | Type | Description |
|---|---|---|
is_second |
bool |
Affects the layout/animation of the second-song entry |
title |
unique_ptr<OutlinedText> |
Song title outlined text |
subtitle |
unique_ptr<OutlinedText> |
Song subtitle outlined text |
loading_graphic |
optional<ray::Texture2D> |
Song-specific Loading.png; drawn if present |
rainbow_up |
MoveAnimation* |
Slides the rainbow bar upward into position |
mini_up |
MoveAnimation* |
Slides the mini character display upward |
chara_down |
MoveAnimation* |
Slides the character graphic downward into frame |
song_info_fade |
FadeAnimation* |
Fades the song title/subtitle in |
song_info_fade_out |
FadeAnimation* |
Fades the song info out once complete |
void start();Begins all animations simultaneously. Called by GameScreen::on_screen_start() after the screen is fully initialised.
void add_loading_graphic(const string& path);Loads a texture from path and stores it as loading_graphic. Displayed instead of the default transition background when present.
void update(double current_ms);Advances all animations.
void draw();Draws the transition elements in order: loading graphic or default background, song info, character, and the decorative bars.
bool is_finished();Returns true when song_info_fade_out has completed, indicating gameplay should begin.
Building
libs
- animation
- audio
- config
- filesystem
- global_data
- input
- logging
- ray
- scores
- screen
- script
- song_parser
- text
- texture
- video
- webcam
libs/parsers
objects
objects/game
- player
- background
- gauge
- judgment
- combo
- branch_indicator
- ending_animations
- gogo_time
- fireworks
- song_info
- transition
- result_transition
- judge_counter
- score_counter
- score_counter_animation
- balloon_counter
- drumroll_counter
- kusudama_counter
- drum_hit_effect
- lane_hit_effect
- gauge_hit_effect
- combo_announce
- note_arc
objects/global
objects/title
objects/entry
objects/settings
objects/result
objects/song_select
- player
- navigator
- box_base
- box_song
- box_folder
- neiro
- modifier
- ura_switch
- diff_sort
- search_box
- dan_transition
- genre_bg
- score_history
- song_select_script
scenes