-
Notifications
You must be signed in to change notification settings - Fork 6
screen
This document serves as an overview for the scene system. This is a header only library.
To create a screen, it must be manually added in the Screens enum. it also needs to be added to the inline function screens_to_string.
in the YataiDON, the screen should be included and added to the LoopState, to the screens map as a std::unique_ptr. Screen logic should not occur upon initialization.
void on_screen_start();Runs for the first time after switching to said screen. By default, this will load all textures and sounds corresponding to the name of the screen.
Screens on_screen_end(Screens next_screen)Runs before switching to the next screen. This unloads all sounds and textures corresponding to the name of the screen.
std::optional<Screens> update()Runs on every frame. Contains non drawing code.
void draw()Runs on every frame. contains drawing code.
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